WO2023246757A1 - Computing power service method and apparatus, and terminal - Google Patents

Computing power service method and apparatus, and terminal Download PDF

Info

Publication number
WO2023246757A1
WO2023246757A1 PCT/CN2023/101313 CN2023101313W WO2023246757A1 WO 2023246757 A1 WO2023246757 A1 WO 2023246757A1 CN 2023101313 W CN2023101313 W CN 2023101313W WO 2023246757 A1 WO2023246757 A1 WO 2023246757A1
Authority
WO
WIPO (PCT)
Prior art keywords
computing power
terminal
information
calculation
computing
Prior art date
Application number
PCT/CN2023/101313
Other languages
French (fr)
Chinese (zh)
Inventor
张鹏飞
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2023246757A1 publication Critical patent/WO2023246757A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities

Definitions

  • This application belongs to the field of communication technology, and specifically relates to a computing power service method, device and terminal.
  • the embodiments of this application provide a computing power service method, device and terminal, which can achieve the purpose of ensuring that the terminal can normally perform large-scale computing services.
  • the first aspect provides a computing power service method, including:
  • the first terminal acquires computing power information of at least one second terminal;
  • the first terminal selects at least one target second terminal based on the computing power information of the at least one second terminal;
  • the first terminal and the at least one target second terminal complete the computing power requirement or computing power task.
  • a computing power service device applied to the first terminal, including:
  • the acquisition module is used to obtain the computing power information of at least one second terminal when a computing power demand or computing power task is generated;
  • a selection module configured to select at least one target second terminal according to the computing power information of the at least one second terminal
  • An execution module configured to complete the computing power requirement or computing power task with the at least one target second terminal.
  • a computing power service method including:
  • the second terminal sends computing power information to the first terminal.
  • a computing power service device applied to the second terminal, including:
  • the sending module is used to send computing power information to the first terminal.
  • a terminal is provided.
  • the terminal is a first terminal.
  • the first terminal includes a processor and a memory.
  • the memory stores a program or instructions that can be run on the processor.
  • the program or instructions The steps of the method described in the first aspect are implemented when executed by the processor.
  • a terminal is provided.
  • the terminal is a first terminal and includes a processor and a communication interface.
  • the processor is used to obtain at least one second terminal when generating a computing power demand or a computing power task. computing power information; select at least one target second terminal according to the computing power information of the at least one second terminal; and complete the computing power requirement or computing power task with the at least one target second terminal.
  • a terminal is provided.
  • the terminal is a second terminal.
  • the second terminal includes a processor and a memory.
  • the memory stores a program or instructions that can be run on the processor.
  • the program or instructions The steps of the method as described in the third aspect are implemented when executed by the processor.
  • a terminal is provided.
  • the terminal is a second terminal and includes a processor and a communication interface, wherein the communication interface is used to send computing power information to the first terminal.
  • a ninth aspect provides a computing power service system, including: a first terminal and a second terminal.
  • the first terminal can be used to perform the steps of the computing power service method as described in the first aspect.
  • the second terminal It can be used to perform the steps of the computing power service method described in the third aspect.
  • a readable storage medium is provided. Programs or instructions are stored on the readable storage medium. When the programs or instructions are executed by a processor, the steps of the method described in the first aspect are implemented, or the steps of the method are implemented as described in the first aspect. The steps of the method described in the third aspect.
  • a chip in an eleventh aspect, includes a processor and a communication interface.
  • the communication interface is coupled to the processor.
  • the processor is used to run programs or instructions to implement the method described in the first aspect. method, or implement a method as described in the third aspect.
  • a computer program/program product is provided, the computer program/program product is stored in a storage medium, and the computer program/program product is executed by at least one processor to implement the first aspect or the second aspect.
  • the computing power resources by obtaining computing power information from at least one second terminal, and then selecting at least one target second terminal, and completing the computing power requirements or computing power tasks with the target second terminal, other computing power resources can be used.
  • the computing power resources provided by the provider complete its own computing power needs or computing power tasks, and can achieve the purpose of ensuring that the terminal can normally perform large-scale computing services.
  • Figure 1 is a block diagram of a wireless communication system applicable to the embodiment of the present application.
  • Figure 2 is one of the flow diagrams of the computing power service method according to the embodiment of the present application.
  • FIG. 3 is one of the detailed flow diagrams of the computing power service method according to the embodiment of the present application.
  • FIG. 4 is the second detailed flow diagram of the computing power service method according to the embodiment of the present application.
  • Figure 5 is the second schematic flow chart of the computing power service method according to the embodiment of the present application.
  • Figure 6 is one of the module schematic diagrams of the computing power service device according to the embodiment of the present application.
  • Figure 7 is a schematic structural diagram of a terminal according to an embodiment of the present application.
  • Figure 8 is the second module schematic diagram of the computing power service device according to the embodiment of the present application.
  • Figure 9 is a schematic structural diagram of a communication device according to an embodiment of the present application.
  • first, second, etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and that "first" and “second” are distinguished objects It is usually one type, and the number of objects is not limited.
  • the first object can be one or multiple.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the related objects are in an "or” relationship.
  • LTE Long Term Evolution
  • LTE-Advanced, LTE-A Long Term Evolution
  • CDMA Code Division Multiple Access
  • TDMA Time Division Multiple Access
  • FDMA Frequency Division Multiple Access
  • OFDMA Orthogonal Frequency Division Multiple Access
  • SC-FDMA Single-carrier Frequency Division Multiple Access
  • system and “network” in the embodiments of this application are often used interchangeably, and the described technology can be used not only for the above-mentioned systems and radio technologies, but also for other systems and radio technologies.
  • NR New Radio
  • the following description describes a New Radio (NR) system for example purposes, and uses NR terminology in much of the following description, but these techniques can also be applied to applications other than NR system applications, such as 6th Generation , 6G) communication system.
  • NR New Radio
  • FIG. 1 shows a block diagram of a wireless communication system to which embodiments of the present application are applicable.
  • the wireless communication system includes a terminal 11 and a network side device 12.
  • the terminal 11 can be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop Laptop Computer, also known as notebook computer, Personal Digital Assistant (PDA), handheld computer, netbook, ultra-mobile personal computer (UMPC), Mobile Internet Device , MID), augmented reality (AR)/virtual reality (VR) equipment, robots, wearable devices (Wearable Devices), vehicle user equipment (VUE), pedestrian terminals (Pedestrian User Equipment) , PUE), smart home (home equipment with wireless communication functions, such as refrigerators, TVs, washing machines or furniture, etc.), game consoles, personal computers (PC), teller machines or self-service machines and other terminal-side devices
  • wearable Equipment includes: smart watches, smart bracelets, smart headphones, smart glasses, smart jewelry (smart bracelets, smart bracelets, smart rings, smart necklaces, smart anklets, smart ankle
  • the network side device 12 may include an access network device or a core network device, where the access network device may also be called a radio access network device, a radio access network (Radio Access Network, RAN), a radio access network function or a wireless device. access network unit. Access network equipment may include base stations, Wireless Local Area Network (WLAN) access points or WiFi nodes, etc.
  • WLAN Wireless Local Area Network
  • the base stations may be called Node B, Evolved Node B (eNB), access point, base transceiver station ( Base Transceiver Station (BTS), radio base station, radio transceiver, Basic Service Set (BSS), Extended Service Set (ESS), home B-node, home evolved B-node, transmitting and receiving point ( Transmitting Receiving Point (TRP) or some other appropriate term in the field, as long as the same technical effect is achieved, the base station is not limited to specific technical terms. It should be noted that in the embodiment of this application, only in the NR system The base station is introduced as an example, and the specific type of base station is not limited.
  • Computing power network Also known as computing power aware network, it is a new network architecture proposed in response to the development trend of computing network integration. Based on ubiquitous network connections, it interconnects dynamically distributed computing resources through multiple dimensions such as network, storage, and computing power. The unified collaborative scheduling of resources enables a large number of applications to call computing resources in different places on demand in real time, achieving global optimization of connections and computing power in the network, and providing a consistent user experience. Therefore, computing power network architecture is an important evolution trend of future 6G networks.
  • Computing power computing speed or computing power. For example, describing the computing speed or computing capabilities of servers, central processing units (Central Processing Unit, CPU), graphics processing units (Graphics Processing Unit, GPU), terminals, etc., it is usually expressed by how many calculations are completed per second.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • terminals etc., it is usually expressed by how many calculations are completed per second.
  • Computing power requirements The computing power resources required to complete computing power tasks.
  • Computing tasks tasks to be completed that require a certain amount of computing power.
  • Computing power status computing power usage, computing power remaining, or computing power availability.
  • the computing power remaining or computing power availability can be the available computing power ;
  • the computing power usage can be the computing power usage rate.
  • Computing power allocation Allocate a part of the computing power to the task based on the computing power needs of the computing task.
  • Direct communication interface (PC5): The communication interface between terminals, that is, the short-distance direct communication interface between vehicles, people, and road infrastructure; its characteristics are: low-cost communication through direct connection, broadcast, and network scheduling. latency, high capacity, Highly reliable communication.
  • this embodiment of the present application provides a computing power service method, including:
  • Step 201 The first terminal obtains the computing power information of at least one second terminal when a computing power demand or computing power task is generated;
  • the computing power task is a work to be completed that requires a certain amount of computing power, such as an image recognition task, etc.; the computing power requirement is the computing power resources and/or calculations that need to be consumed to complete a specific computing power task.
  • Requirements for example, CPU core number, GPU core number, algorithm information, calculation amount per unit time, calculation time, calculation type, peak calculation amount, etc.; this computing power information can be understood as the computing power information that the second terminal can provide to the outside world. It can also be understood as externally available computing power resources that the second terminal can provide.
  • Step 202 The first terminal selects at least one target second terminal based on the computing power information of the at least one second terminal;
  • a second terminal can complete the computing power requirements or computing power tasks of the first terminal, the first terminal only needs to choose a second terminal; if the computing power requirements or computing power of the first terminal The computing power required for the task is relatively large, and the first terminal may need to select two or more second terminals to jointly complete the computing power requirements or computing power tasks of the first terminal.
  • Step 203 The first terminal and the at least one target second terminal complete the computing power requirement or computing power task.
  • first terminal in the embodiment of this application can be regarded as a computing power consumer, and the second terminal can be regarded as a computing power provider.
  • step 201 is:
  • the first terminal receives computing power information sent by at least one second terminal;
  • the computing power information is sent by the second terminal based on the computing power request information broadcast by the first terminal, or the computing power information is broadcast by the second terminal;
  • the computing power request information is based on computing power demand or computing power task broadcast.
  • the computing power information of the second terminal may be requested by the first terminal from multiple second terminals based on the generated computing power requirements or computing power tasks, or the first terminal may obtain the computing power information actively broadcast by the second terminal. force information.
  • the second terminal when the first terminal requests computing power information from multiple second terminals based on the generated computing power requirements or computing power tasks, the second terminal that receives the computing power request information broadcasted by the first terminal, in its own When the computing power meets the computing power requirements or computing power tasks of the first terminal, the computing power information that can be provided needs to be fed back to the first terminal; optionally, the second terminal can provide computing power information that satisfies the first terminal.
  • the computing power information is fed back when the computing power requirements (for example, the core requirements for performing computing power tasks) or the computing power requirements corresponding to the computing power tasks are met; it can also be when the service requirements of the computing power tasks of the first terminal are met. , feedback the computing power information that can be provided to the first terminal. For example, the first terminal performs the computing power task of image recognition, and the second terminal can provide image recognition services, then the second terminal feeds back to the first terminal the computing power information that can be provided. computing power information.
  • the computing power information of the second terminal may be actively broadcast by the second terminal when the second terminal has excess computing power. That is to say, the second terminal actively broadcasts the excess computing power when there is excess computing power. force information.
  • the computing power information is carried in the computing power response, and the computing power response It also includes: the computing power service information that can be provided and/or the identification information of the second terminal.
  • the computing power service information mentioned in the embodiment of this application may include: image recognition service, image 4k to 8k service type, etc.
  • the computing power information includes at least one of the following:
  • CPU central processing unit
  • GPU graphics processing unit
  • algorithm information calculation amount per unit time, calculation time, calculation type, and peak calculation amount.
  • the algorithm information is all algorithm types that the second terminal can provide; the calculation amount per unit time refers to the calculation amount that the second terminal can complete in the unit time, and the calculation amount is, for example, the number of calculations; the calculation time The time required for the second terminal to complete a calculation; the calculation type may be, for example, floating-point number operation; the peak calculation amount refers to the calculation amount when the maximum calculation peak value is reached.
  • the implementation of the first terminal and the at least one target second terminal to complete the computing power requirement or computing power task includes:
  • Step 2031 The first terminal sends target data required to perform computing power requirements or computing power tasks to the at least one target second terminal;
  • the first terminal needs to split the data and then send the split data to each second terminal.
  • Step 2032 The first terminal receives the calculation result sent by the at least one target second terminal;
  • Step 2033 The first terminal determines the computing power requirement or the final result of the computing power task based on the calculation result;
  • the calculation result fed back by the second terminal received by the first terminal is the final result corresponding to the computing power requirement or the computing power task. If the second terminal When a terminal uses multiple second terminals to complete a computing power task, after the first terminal receives the calculation results fed back by each second terminal, it needs to integrate the calculation results of the multiple second terminals to obtain the computing power requirements or computing power tasks. the final result.
  • the terminal acts as a computing power consumer and broadcasts computing power tasks or computing power requirements.
  • Step S301 the first terminal (computing power consumer) generates computing power requirements or computing power tasks
  • Step S302 the first terminal (computing power consumer) broadcasts computing power request information
  • the computing power request message carries computing power requirements or computing power tasks.
  • Step S303 The second terminal (computing power provider) that meets the above-mentioned computing power requirements or computing power tasks sends a computing power response to the first terminal (computing power consumer);
  • the computing power response includes the computing power information that the computing power provider can provide, and may also include the computing power service information that the computing power provider can provide and the identification information of the computing power provider, etc.;
  • Step S304 The computing power consumer selects one or more computing power providers based on its own computing power tasks/computing power needs and the computing power information provided by the computing power providers;
  • the process may involve dividing the computing power task
  • Step S305 Establish a secure data connection between the computing power consumer and the computing power provider
  • Step S306 The computing power consumer sends data required for computing power tasks or computing power requirements, or desensitized data, to the computing power provider;
  • the so-called desensitized data refers to the data obtained by desensitizing the data required for computing tasks or computing power requirements.
  • Step S307 The computing power provider sends the calculation results to the computing power consumer
  • the computing power consumer needs to integrate multiple returned computing power calculation results.
  • the terminal as a computing power provider, broadcasts the computing power information it can provide.
  • Step S401 the first terminal (computing power consumer) generates computing power requirements or computing power tasks
  • Step S402 The first terminal (computing power consumer) monitors the computing power information broadcast by the second terminal that can be provided to the outside world;
  • Step S403 When the computing power provider has excess computing power, the broadcast information carries the computing power information that can be provided to the outside world;
  • the number of CPU cores, GPU cores, algorithm information For example, the number of CPU cores, GPU cores, algorithm information, number of calculations, calculation amount per unit time, calculation time, calculation type, peak calculation amount, etc.;
  • Step S404 The computing power consumer selects one or more computing power providers based on its own computing power tasks/computing power needs and the computing power information provided by the computing power providers;
  • the process may involve dividing the computing power task
  • Step S405 establish a secure data connection between the computing power consumer and the computing power provider
  • Step S406 The computing power consumer sends data required for computing power tasks or computing power requirements, or desensitized data, to the computing power provider;
  • Step S407 The computing power provider sends the calculation results to the computing power consumer
  • the computing power consumer needs to integrate multiple returned computing power calculation results.
  • a terminal when a terminal generates a computing power demand or a computing power task, it can find other terminals with excess computing power to offload the computing power, which can ensure that the terminal can normally perform large-scale computing services. Purpose; at the same time, when the terminal has excess computing power, it can be effectively provided to other terminals with computing power needs.
  • this embodiment of the present application provides a computing power service method, including:
  • Step 501 The second terminal sends computing power information to the first terminal.
  • the second terminal sends computing power information to the first terminal, including:
  • the second terminal sends computing power information to the first terminal according to the computing power request information broadcast by the first terminal.
  • the computing power request information is sent by the first terminal based on computing power requirements or computing power tasks. of; or
  • the second terminal broadcasts computing power information to the first terminal.
  • sending the computing power information to the first terminal includes:
  • the second terminal sends a computing power response to the first terminal, where the computing power response carries the computing power information;
  • the computing power response also includes: computing power service information that can be provided and/or identification information of the second terminal.
  • the computing power information includes at least one of the following:
  • Number of CPU cores of the central processing unit Number of GPU cores of the graphics processor, algorithm information, calculation amount per unit time, calculation time, calculation type, and peak calculation amount.
  • the method also includes:
  • the second terminal receives the target data required to perform the computing power requirement or the computing power task sent by the first terminal;
  • the second terminal performs calculations on the target data and determines the calculation results
  • the second terminal sends the calculation result to the first terminal.
  • the execution subject may be a computing power service device.
  • the computing power service device executing the computing power service method is taken as an example to illustrate the computing power service device provided by the embodiment of this application.
  • the computing power service device 600 in the embodiment of the present application is applied to the first terminal and includes:
  • the acquisition module 601 is used to obtain the computing power information of at least one second terminal when a computing power demand or computing power task is generated;
  • the selection module 602 is configured to select at least one target second terminal according to the computing power information of the at least one second terminal;
  • Execution module 603 is configured to complete the computing power requirement or computing power task with the at least one target second terminal.
  • the acquisition module 601 is used for:
  • the computing power information is sent by the second terminal based on the computing power request information broadcast by the first terminal, or the computing power information is broadcast by the second terminal;
  • the computing power request information is based on computing power demand or computing power task broadcast.
  • the computing power information is carried in the computing power response, and the computing power response Also included: computing power services that can be provided service information and/or identification information of the second terminal.
  • the computing power information includes at least one of the following:
  • the number of CPU cores of the central processing unit the number of GPU cores of the graphics processor, algorithm information, calculation amount per unit time, calculation time, calculation type, and peak calculation amount.
  • the execution module 602 includes:
  • a first sending unit configured to send target data required to perform computing power requirements or computing power tasks to the at least one target second terminal
  • a receiving unit configured to receive the calculation result sent by the at least one target second terminal
  • a determining unit configured to determine the computing power requirement or the final result of the computing power task based on the calculation result.
  • this device embodiment corresponds to the above-mentioned method, and all implementation methods in the above-mentioned method embodiment are applicable to this device embodiment, and the same technical effect can be achieved.
  • the computing power service device in the embodiment of the present application may be an electronic device, such as an electronic device with an operating system, or may be a component in the electronic device, such as an integrated circuit or chip.
  • the electronic device may be a terminal or other devices other than the terminal.
  • terminals may include but are not limited to the types of terminals 11 listed above, and other devices may be servers, network attached storage (Network Attached Storage, NAS), etc., which are not specifically limited in the embodiment of this application.
  • NAS Network Attached Storage
  • the computing power service device provided by the embodiment of this application can implement each process implemented by the method embodiment in Figure 2 and achieve the same technical effect. To avoid duplication, the details will not be described here.
  • An embodiment of the present application also provides a terminal.
  • the terminal is a first terminal and includes a processor and a communication interface.
  • the processor is configured to obtain the computing power of at least one second terminal when a computing power demand or computing power task is generated. information; select at least one target second terminal according to the computing power information of the at least one second terminal; and complete the computing power requirement or computing power task with the at least one target second terminal.
  • the communication interface is used to: receive computing power information sent by at least one second terminal;
  • the computing power information is sent by the second terminal based on the computing power request information broadcast by the first terminal, or the computing power information is broadcast by the second terminal;
  • the computing power request information is based on computing power demand or computing power task broadcast.
  • the computing power information is carried in the computing power response, and the computing power response It also includes: the computing power service information that can be provided and/or the identification information of the second terminal.
  • the computing power information includes at least one of the following:
  • the number of CPU cores of the central processing unit the number of GPU cores of the graphics processor, algorithm information, calculation amount per unit time, calculation time, calculation type, and peak calculation amount.
  • the communication interface is used to send target data required to perform computing power requirements or computing power tasks to the at least one target second terminal; receive calculation results sent by the at least one target second terminal;
  • the processor is configured to determine the computing power requirement or the final result of the computing power task according to the calculation result.
  • FIG. 7 is a schematic diagram of the hardware structure of a terminal that implements an embodiment of the present application.
  • the terminal 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, etc. At least some parts.
  • the terminal 700 may also include a power supply (such as a battery) that supplies power to various components.
  • the power supply may be logically connected to the processor 710 through a power management system, thereby managing charging, discharging, and power consumption through the power management system. Management and other functions.
  • the terminal structure shown in FIG. 7 does not constitute a limitation on the terminal.
  • the terminal may include more or fewer components than shown in the figure, or some components may be combined or arranged differently, which will not be described again here.
  • the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042.
  • the graphics processor 7041 is responsible for the image capture device (GPU) in the video capture mode or the image capture mode. Process the image data of still pictures or videos obtained by cameras (such as cameras).
  • the display unit 706 may include a display panel 7061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 707 includes a touch panel 7071 and at least one of other input devices 7072 .
  • Touch panel 7071 also called touch screen.
  • the touch panel 7071 may include two parts: a touch detection device and a touch controller.
  • Other input devices 7072 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described again here.
  • the radio frequency unit 701 after receiving downlink data from the network side device, can transmit it to the processor 710 for processing; in addition, the radio frequency unit 701 can send uplink data to the network side device.
  • the radio frequency unit 701 includes, but is not limited to, an antenna, amplifier, transceiver, coupler, low noise amplifier, duplexer, etc.
  • Memory 709 may be used to store software programs or instructions as well as various data.
  • the memory 709 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, Image playback function, etc.) etc.
  • memory 709 may include volatile memory or non-volatile memory, or memory 709 may include both volatile and non-volatile memory.
  • the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically removable memory. Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory.
  • Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM) , SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM).
  • RAM Random Access Memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • SDRAM double data rate synchronous dynamic random access memory
  • Double Data Rate SDRAM Double Data Rate SDRAM
  • DDRSDRAM double data rate synchronous dynamic random access memory
  • Enhanced SDRAM, ESDRAM enhanced synchronous dynamic random access memory
  • Synch link DRAM synchronous link dynamic random access memory
  • SLDRAM direct memory bus
  • the processor 710 may include one or more processing units; optionally, the processor 710 integrates an application processor and a modem processor, where the application processor mainly handles operations related to the operating system, user interface, application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the above-mentioned modem processor may not be integrated into the processor 710.
  • the processor 710 when the terminal 700 is the first terminal, the processor 710 is used to:
  • radio frequency unit 701 is used for:
  • the computing power information is sent by the second terminal based on the computing power request information broadcast by the first terminal, or the computing power information is broadcast by the second terminal;
  • the computing power request information is based on computing power demand or computing power task broadcast.
  • the computing power information is carried in the computing power response, and the computing power response It also includes: the computing power service information that can be provided and/or the identification information of the second terminal.
  • the computing power information includes at least one of the following:
  • the number of CPU cores of the central processing unit the number of GPU cores of the graphics processor, algorithm information, calculation amount per unit time, calculation time, calculation type, and peak calculation amount.
  • the radio frequency unit 701 is configured to: send target data required to perform computing power requirements or computing power tasks to the at least one target second terminal; receive calculation results sent by the at least one target second terminal ;
  • the processor 710 is configured to determine the computing power requirement or the final result of the computing power task according to the calculation result.
  • the embodiment of the present application further provides a terminal, which is a first terminal and includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor.
  • the program or instruction is When the processor executes, each process of the above-mentioned computing power service method embodiment is implemented, and the same technical effect can be achieved. To avoid duplication, the details will not be described here.
  • Embodiments of the present application also provide a readable storage medium.
  • Programs or instructions are stored on the computer-readable storage medium.
  • the above-mentioned embodiment of the computing power service method applied to the first terminal is implemented.
  • Each process can achieve the same technical effect. To avoid duplication, it will not be described again here.
  • the computer-readable storage medium is such as read-only memory (ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • this embodiment of the present application also provides a computing power service device 800, which is applied to the second terminal and includes:
  • the sending module 801 is used to send computing power information to the first terminal.
  • the sending module 801 includes:
  • the second sending unit is configured to send computing power information to the first terminal according to the computing power request information broadcast by the first terminal.
  • the computing power request information is based on the computing power demand or computing power of the first terminal. Sent by task; or
  • the third sending unit is used to broadcast computing power information to the first terminal.
  • the second sending unit is used for:
  • the computing power response also includes: computing power service information that can be provided and/or identification information of the second terminal.
  • the computing power information includes at least one of the following:
  • the number of CPU cores of the central processing unit the number of GPU cores of the graphics processor, algorithm information, calculation amount per unit time, calculation time, calculation type, and peak calculation amount.
  • the device also includes:
  • a receiving module configured to receive target data sent by the first terminal to perform computing power requirements or computing power tasks
  • a determination module used to calculate the target data and determine the calculation results
  • a sending module configured to send the calculation result to the first terminal.
  • this device embodiment is a device corresponding to the above-mentioned method. All implementation methods in the above-mentioned method embodiment are applicable to this device embodiment and can achieve the same technical effect, which will not be described again here.
  • An embodiment of the present application also provides a terminal, which is a second terminal and includes a processor and a communication interface, wherein the communication interface is used to send computing power information to the first terminal.
  • the communication interface is configured to: send computing power information to the first terminal according to the computing power request information broadcast by the first terminal, where the computing power request information is based on the computing power of the first terminal. Sent by demand or computing power tasks; or
  • the communication interface is used for:
  • the computing power response also includes: computing power service information that can be provided and/or identification information of the second terminal.
  • the computing power information includes at least one of the following:
  • the number of CPU cores of the central processing unit the number of GPU cores of the graphics processor, algorithm information, calculation amount per unit time, calculation time, calculation type, and peak calculation amount.
  • the communication interface is configured to: receive target data sent by the first terminal required to perform computing power requirements or computing power tasks;
  • the processor is used to calculate the target data and determine the calculation results
  • the communication interface is used to send the calculation result to the first terminal.
  • the embodiment of the present application further provides a terminal, which is a second terminal and includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor.
  • the program or instruction is Processor execution time
  • this embodiment of the present application also provides a terminal.
  • the structure of the terminal can be seen in Figure 7 and will not be described again.
  • the radio frequency unit used for:
  • radio frequency unit is used for:
  • radio frequency unit is used for:
  • the computing power response also includes: computing power service information that can be provided and/or identification information of the second terminal.
  • the computing power information includes at least one of the following:
  • the number of CPU cores of the central processing unit the number of GPU cores of the graphics processor, algorithm information, calculation amount per unit time, calculation time, calculation type, and peak calculation amount.
  • radio frequency unit is used for:
  • the processor is used to: perform calculations on the target data and determine calculation results;
  • the radio frequency unit is configured to send the calculation result to the first terminal.
  • Embodiments of the present application also provide a readable storage medium on which a program or instructions are stored.
  • the program or instructions are executed by a processor, the above embodiments of the computing power service method applied to the second terminal are implemented.
  • Each process can achieve the same technical effect. To avoid duplication, it will not be described again here.
  • the processor is the processor in the terminal described in the above embodiment.
  • the readable storage medium includes computer readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disk or optical disk, etc.
  • this embodiment of the present application also provides a communication device 900, which includes a processor 901 and a memory 902.
  • the memory 902 stores programs or instructions that can be run on the processor 901, for example.
  • the communication device 900 is the first terminal, when the program or instruction is executed by the processor 901, each step of the above computing power service method embodiment is implemented, and the same technical effect can be achieved.
  • the communication device 900 is a second terminal, when the program or instruction is executed by the processor 901, each step of the above computing power service method embodiment is implemented, and the same technical effect can be achieved. To avoid duplication, the details are not repeated here.
  • An embodiment of the present application further provides a chip.
  • the chip includes a processor and a communication interface.
  • the communication interface is coupled to the processor.
  • the processor is used to run programs or instructions to implement the above computing power service method embodiment. Each process can achieve the same technical effect. To avoid repetition, we will not go into details here.
  • chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-chip or system-on-chip, etc.
  • Embodiments of the present application further provide a computer program/program product.
  • the computer program/program product is stored in a storage medium.
  • the computer program/program product is executed by at least one processor to implement the above computing power service method.
  • Each process in the example can achieve the same technical effect. To avoid repetition, we will not repeat it here.
  • Embodiments of the present application also provide a communication system, including: a first terminal and a second terminal.
  • the first terminal can be used to perform the steps of the computing power service method as described above.
  • the second terminal can be used to perform the above steps. The steps of the computing power service method.
  • the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation.
  • the technical solution of the present application can be embodied in the form of a computer software product that is essentially or contributes to the existing technology.
  • the computer software product is stored in a storage medium (such as ROM/RAM, disk , CD), including several instructions to cause a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of this application.

Abstract

The present application relates to the technical field of communications, and discloses a computing power service method and apparatus, and a terminal. The computing power service method of embodiments of the present application comprises: when a computing power requirement or a computing power task is generated, a first terminal obtains computing power information of at least one second terminal; the first terminal selects at least one target second terminal according to the computing power information of the at least one second terminal; the first terminal and the at least one target second terminal complete the computing power requirement or the computing power task.

Description

算力服务方法、装置及终端Computing power service method, device and terminal
相关申请的交叉引用Cross-references to related applications
本申请主张在2022年6月21日在中国提交的中国专利申请No.202210709361.8的优先权,其全部内容通过引用包含于此。This application claims priority from Chinese Patent Application No. 202210709361.8 filed in China on June 21, 2022, the entire content of which is incorporated herein by reference.
技术领域Technical field
本申请属于通信技术领域,具体涉及一种算力服务方法、装置及终端。This application belongs to the field of communication technology, and specifically relates to a computing power service method, device and terminal.
背景技术Background technique
当终端产生大计算量业务,而自身无法满足或者想要通过其他实体(例如,其他终端)进行算力卸载的情况下,如何正常进行该大计算量业务尚没有明确的解决方案。When a terminal generates a large amount of computing services that it cannot satisfy itself or wants to offload the computing power through other entities (for example, other terminals), there is no clear solution on how to normally perform the large amount of computing services.
发明内容Contents of the invention
本申请实施例提供一种算力服务方法、装置及终端,能够达到保证终端正常进行大计算量业务的目的。The embodiments of this application provide a computing power service method, device and terminal, which can achieve the purpose of ensuring that the terminal can normally perform large-scale computing services.
第一方面,提供了一种算力服务方法,包括:The first aspect provides a computing power service method, including:
第一终端在产生算力需求或算力任务的情况下,获取至少一个第二终端的算力信息;When a computing power demand or computing power task occurs, the first terminal acquires computing power information of at least one second terminal;
所述第一终端根据所述至少一个第二终端的算力信息,选择至少一个目标第二终端;The first terminal selects at least one target second terminal based on the computing power information of the at least one second terminal;
所述第一终端与所述至少一个目标第二终端完成所述算力需求或算力任务。The first terminal and the at least one target second terminal complete the computing power requirement or computing power task.
第二方面,提供了一种算力服务装置,应用于第一终端,包括:In the second aspect, a computing power service device is provided, applied to the first terminal, including:
获取模块,用于在产生算力需求或算力任务的情况下,获取至少一个第二终端的算力信息;The acquisition module is used to obtain the computing power information of at least one second terminal when a computing power demand or computing power task is generated;
选择模块,用于根据所述至少一个第二终端的算力信息,选择至少一个目标第二终端;A selection module, configured to select at least one target second terminal according to the computing power information of the at least one second terminal;
执行模块,用于与所述至少一个目标第二终端完成所述算力需求或算力任务。An execution module, configured to complete the computing power requirement or computing power task with the at least one target second terminal.
第三方面,提供了一种算力服务方法,包括:In the third aspect, a computing power service method is provided, including:
第二终端向第一终端发送算力信息。The second terminal sends computing power information to the first terminal.
第四方面,提供了一种算力服务装置,应用于第二终端,包括:In the fourth aspect, a computing power service device is provided, applied to the second terminal, including:
发送模块,用于向第一终端发送算力信息。 The sending module is used to send computing power information to the first terminal.
第五方面,提供了一种终端,所述终端为第一终端,该第一终端包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a fifth aspect, a terminal is provided. The terminal is a first terminal. The first terminal includes a processor and a memory. The memory stores a program or instructions that can be run on the processor. The program or instructions The steps of the method described in the first aspect are implemented when executed by the processor.
第六方面,提供了一种终端,所述终端为第一终端,包括处理器及通信接口,其中,所述处理器用于产生算力需求或算力任务的情况下,获取至少一个第二终端的算力信息;根据所述至少一个第二终端的算力信息,选择至少一个目标第二终端;与所述至少一个目标第二终端完成所述算力需求或算力任务。In a sixth aspect, a terminal is provided. The terminal is a first terminal and includes a processor and a communication interface. The processor is used to obtain at least one second terminal when generating a computing power demand or a computing power task. computing power information; select at least one target second terminal according to the computing power information of the at least one second terminal; and complete the computing power requirement or computing power task with the at least one target second terminal.
第七方面,提供了一种终端,所述终端为第二终端,该第二终端包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第三方面所述的方法的步骤。In a seventh aspect, a terminal is provided. The terminal is a second terminal. The second terminal includes a processor and a memory. The memory stores a program or instructions that can be run on the processor. The program or instructions The steps of the method as described in the third aspect are implemented when executed by the processor.
第八方面,提供了一种终端,所述终端为第二终端,包括处理器及通信接口,其中,所述通信接口用于向第一终端发送算力信息。In an eighth aspect, a terminal is provided. The terminal is a second terminal and includes a processor and a communication interface, wherein the communication interface is used to send computing power information to the first terminal.
第九方面,提供了一种算力服务***,包括:第一终端及第二终端,所述第一终端可用于执行如第一方面所述的算力服务方法的步骤,所述第二终端可用于执行如第三方面所述的算力服务方法的步骤。A ninth aspect provides a computing power service system, including: a first terminal and a second terminal. The first terminal can be used to perform the steps of the computing power service method as described in the first aspect. The second terminal It can be used to perform the steps of the computing power service method described in the third aspect.
第十方面,提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤,或者实现如第三方面所述的方法的步骤。In a tenth aspect, a readable storage medium is provided. Programs or instructions are stored on the readable storage medium. When the programs or instructions are executed by a processor, the steps of the method described in the first aspect are implemented, or the steps of the method are implemented as described in the first aspect. The steps of the method described in the third aspect.
第十一方面,提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法,或实现如第三方面所述的方法。In an eleventh aspect, a chip is provided. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the method described in the first aspect. method, or implement a method as described in the third aspect.
第十二方面,提供了一种计算机程序/程序产品,所述计算机程序/程序产品被存储在存储介质中,所述计算机程序/程序产品被至少一个处理器执行以实现如第一方面或第三方面所述的方法的步骤。In a twelfth aspect, a computer program/program product is provided, the computer program/program product is stored in a storage medium, and the computer program/program product is executed by at least one processor to implement the first aspect or the second aspect. The steps of the method described in three aspects.
在本申请实施例中,通过从至少一个第二终端获取算力信息,然后选择至少一个目标第二终端,与目标第二终端完成算力需求或算力任务,以此能够借助其他算力资源提供方提供的算力资源完成自身的算力需求或算力任务,能够达到保证终端正常进行大计算量业务的目的。 In the embodiment of the present application, by obtaining computing power information from at least one second terminal, and then selecting at least one target second terminal, and completing the computing power requirements or computing power tasks with the target second terminal, other computing power resources can be used The computing power resources provided by the provider complete its own computing power needs or computing power tasks, and can achieve the purpose of ensuring that the terminal can normally perform large-scale computing services.
附图说明Description of the drawings
图1是本申请实施例可应用的一种无线通信***的框图;Figure 1 is a block diagram of a wireless communication system applicable to the embodiment of the present application;
图2是本申请实施例的算力服务方法的流程示意图之一;Figure 2 is one of the flow diagrams of the computing power service method according to the embodiment of the present application;
图3是本申请实施例的算力服务方法的详细流程示意图之一;Figure 3 is one of the detailed flow diagrams of the computing power service method according to the embodiment of the present application;
图4是本申请实施例的算力服务方法的详细流程示意图之二;Figure 4 is the second detailed flow diagram of the computing power service method according to the embodiment of the present application;
图5是本申请实施例的算力服务方法的流程示意图之二;Figure 5 is the second schematic flow chart of the computing power service method according to the embodiment of the present application;
图6是本申请实施例的算力服务装置的模块示意图之一;Figure 6 is one of the module schematic diagrams of the computing power service device according to the embodiment of the present application;
图7是本申请实施例的终端的结构示意图;Figure 7 is a schematic structural diagram of a terminal according to an embodiment of the present application;
图8是本申请实施例的算力服务装置的模块示意图之二;Figure 8 is the second module schematic diagram of the computing power service device according to the embodiment of the present application;
图9是本申请实施例的通信设备的结构示意图。Figure 9 is a schematic structural diagram of a communication device according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art fall within the scope of protection of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”所区别的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and that "first" and "second" are distinguished objects It is usually one type, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the related objects are in an "or" relationship.
值得指出的是,本申请实施例所描述的技术不限于长期演进型(Long Term Evolution,LTE)/LTE的演进(LTE-Advanced,LTE-A)***,还可用于其他无线通信***,诸如码分多址(Code Division Multiple Access,CDMA)、时分多址(Time Division Multiple Access,TDMA)、频分多址(Frequency Division Multiple Access,FDMA)、正交频分多址(Orthogonal Frequency Division Multiple Access,OFDMA)、单载波频分多址(Single-carrier Frequency Division Multiple Access,SC-FDMA)和其他***。本申请实施例中的术语“***”和“网络”常被可互换地使用,所描述的技术既可用于以上提及的***和无线电技术,也可用于其他***和无线电技术。以下描述出于示例目的描述了新空口(New Radio,NR)***,并且在以下大部分描述中使用NR术语,但是这些技术也可应用于NR***应用以外的应用,如第6代(6th Generation,6G)通信***。It is worth pointing out that the technology described in the embodiments of this application is not limited to Long Term Evolution (Long Term Evolution, LTE)/LTE Evolution (LTE-Advanced, LTE-A) systems, and can also be used in other wireless communication systems, such as code Code Division Multiple Access (CDMA), Time Division Multiple Access (Time Division Multiple Access, TDMA), Frequency Division Multiple Access (Frequency Division Multiple Access, FDMA), Orthogonal Frequency Division Multiple Access (Orthogonal Frequency Division Multiple Access, OFDMA), Single-carrier Frequency Division Multiple Access (SC-FDMA) and other systems. The terms "system" and "network" in the embodiments of this application are often used interchangeably, and the described technology can be used not only for the above-mentioned systems and radio technologies, but also for other systems and radio technologies. The following description describes a New Radio (NR) system for example purposes, and uses NR terminology in much of the following description, but these techniques can also be applied to applications other than NR system applications, such as 6th Generation , 6G) communication system.
图1示出本申请实施例可应用的一种无线通信***的框图。无线通信***包括终端11和网络侧设备12。其中,终端11可以是手机、平板电脑(Tablet Personal Computer)、膝 上型电脑(Laptop Computer)或称为笔记本电脑、个人数字助理(Personal Digital Assistant,PDA)、掌上电脑、上网本、超级移动个人计算机(ultra-mobile personal computer,UMPC)、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴式设备(Wearable Device)、车载设备(Vehicle User Equipment,VUE)、行人终端(Pedestrian User Equipment,PUE)、智能家居(具有无线通信功能的家居设备,如冰箱、电视、洗衣机或者家具等)、游戏机、个人计算机(personal computer,PC)、柜员机或者自助机等终端侧设备,可穿戴式设备包括:智能手表、智能手环、智能耳机、智能眼镜、智能首饰(智能手镯、智能手链、智能戒指、智能项链、智能脚镯、智能脚链等)、智能腕带、智能服装等。需要说明的是,在本申请实施例并不限定终端11的具体类型。网络侧设备12可以包括接入网设备或核心网设备,其中,接入网设备也可以称为无线接入网设备、无线接入网(Radio Access Network,RAN)、无线接入网功能或无线接入网单元。接入网设备可以包括基站、无线局域网(Wireless Local Area Network,WLAN)接入点或WiFi节点等,基站可被称为节点B、演进节点B(eNB)、接入点、基收发机站(Base Transceiver Station,BTS)、无线电基站、无线电收发机、基本服务集(Basic Service Set,BSS)、扩展服务集(Extended Service Set,ESS)、家用B节点、家用演进型B节点、发送接收点(Transmitting Receiving Point,TRP)或所述领域中其他某个合适的术语,只要达到相同的技术效果,所述基站不限于特定技术词汇,需要说明的是,在本申请实施例中仅以NR***中的基站为例进行介绍,并不限定基站的具体类型。Figure 1 shows a block diagram of a wireless communication system to which embodiments of the present application are applicable. The wireless communication system includes a terminal 11 and a network side device 12. Among them, the terminal 11 can be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop Laptop Computer, also known as notebook computer, Personal Digital Assistant (PDA), handheld computer, netbook, ultra-mobile personal computer (UMPC), Mobile Internet Device , MID), augmented reality (AR)/virtual reality (VR) equipment, robots, wearable devices (Wearable Devices), vehicle user equipment (VUE), pedestrian terminals (Pedestrian User Equipment) , PUE), smart home (home equipment with wireless communication functions, such as refrigerators, TVs, washing machines or furniture, etc.), game consoles, personal computers (PC), teller machines or self-service machines and other terminal-side devices, wearable Equipment includes: smart watches, smart bracelets, smart headphones, smart glasses, smart jewelry (smart bracelets, smart bracelets, smart rings, smart necklaces, smart anklets, smart anklets, etc.), smart wristbands, smart clothing, etc. It should be noted that the embodiment of the present application does not limit the specific type of the terminal 11. The network side device 12 may include an access network device or a core network device, where the access network device may also be called a radio access network device, a radio access network (Radio Access Network, RAN), a radio access network function or a wireless device. access network unit. Access network equipment may include base stations, Wireless Local Area Network (WLAN) access points or WiFi nodes, etc. The base stations may be called Node B, Evolved Node B (eNB), access point, base transceiver station ( Base Transceiver Station (BTS), radio base station, radio transceiver, Basic Service Set (BSS), Extended Service Set (ESS), home B-node, home evolved B-node, transmitting and receiving point ( Transmitting Receiving Point (TRP) or some other appropriate term in the field, as long as the same technical effect is achieved, the base station is not limited to specific technical terms. It should be noted that in the embodiment of this application, only in the NR system The base station is introduced as an example, and the specific type of base station is not limited.
下面对本申请实施例涉及的相关名词进行说明如下。The relevant terms involved in the embodiments of this application are described below.
算力网络:又称算力感知网络,是应对算网融合发展趋势提出的新型网络架构,基于无处不在的网络连接,将动态分布的计算资源互联,通过网络、存储、算力等多维度资源的统一协同调度,使海量的应用能够按需、实时调用不同地方的计算资源,实现连接和算力在网络的全局优化,提供一致的用户体验。因此,算力网络架构是未来6G网络的重要演进趋势。Computing power network: Also known as computing power aware network, it is a new network architecture proposed in response to the development trend of computing network integration. Based on ubiquitous network connections, it interconnects dynamically distributed computing resources through multiple dimensions such as network, storage, and computing power. The unified collaborative scheduling of resources enables a large number of applications to call computing resources in different places on demand in real time, achieving global optimization of connections and computing power in the network, and providing a consistent user experience. Therefore, computing power network architecture is an important evolution trend of future 6G networks.
算力:计算速度或计算能力。比如,描述服务器、中央处理器(Central Processing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)、终端等的计算速度或计算能力,通常用每秒钟完成多少次计算来表示。Computing power: computing speed or computing power. For example, describing the computing speed or computing capabilities of servers, central processing units (Central Processing Unit, CPU), graphics processing units (Graphics Processing Unit, GPU), terminals, etc., it is usually expressed by how many calculations are completed per second.
算力需求:完成算力任务所需要消耗的算力资源。Computing power requirements: The computing power resources required to complete computing power tasks.
算力任务:需要消耗一定算力的待完成的工作。Computing tasks: tasks to be completed that require a certain amount of computing power.
算力状态:算力使用情况、算力剩余情况或算力可用情况。比如服务器、终端、中央处理器(CPU)、图形处理器(GPU)等设备的算力使用情况或算力可用情况或算力剩余情况;算力剩余情况或算力可用情况可以为可用算力;算力使用情况可以为算力使用率。Computing power status: computing power usage, computing power remaining, or computing power availability. For example, the computing power usage or computing power availability or computing power surplus of servers, terminals, central processing units (CPUs), graphics processing units (GPU) and other equipment; the computing power remaining or computing power availability can be the available computing power ; The computing power usage can be the computing power usage rate.
算力分配:根据算力任务对算力的需要,将一部分算力分配给该任务。Computing power allocation: Allocate a part of the computing power to the task based on the computing power needs of the computing task.
直连通信接口(PC5):终端与终端之间的通信接口,即车、人、道路基础设施之间的短距离直接通信接口;其特点是:通过直连、广播、网络调度的形式实现低时延、高容量、 高可靠的通信。Direct communication interface (PC5): The communication interface between terminals, that is, the short-distance direct communication interface between vehicles, people, and road infrastructure; its characteristics are: low-cost communication through direct connection, broadcast, and network scheduling. latency, high capacity, Highly reliable communication.
下面结合附图,通过一些实施例及其应用场景对本申请实施例提供的算力服务方法、装置及终端进行详细地说明。The computing power service method, device and terminal provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through some embodiments and their application scenarios.
如图2所示,本申请实施例提供一种算力服务方法,包括:As shown in Figure 2, this embodiment of the present application provides a computing power service method, including:
步骤201,第一终端在产生算力需求或算力任务的情况下,获取至少一个第二终端的算力信息;Step 201: The first terminal obtains the computing power information of at least one second terminal when a computing power demand or computing power task is generated;
需要说明的是,所述算力任务为需要消耗一定算力的待完成的工作,例如,图像识别任务等;所述算力需求为完成特定算力任务需要消耗的算力资源和/或计算要求,例如,CPU核数、GPU核数、算法信息、单位时间计算量、计算时间、计算类型、峰值计算量等;该算力信息可以理解为是第二终端能够对外提供的算力信息,也可以理解为是第二终端能够提供的供外部可用的算力资源。It should be noted that the computing power task is a work to be completed that requires a certain amount of computing power, such as an image recognition task, etc.; the computing power requirement is the computing power resources and/or calculations that need to be consumed to complete a specific computing power task. Requirements, for example, CPU core number, GPU core number, algorithm information, calculation amount per unit time, calculation time, calculation type, peak calculation amount, etc.; this computing power information can be understood as the computing power information that the second terminal can provide to the outside world. It can also be understood as externally available computing power resources that the second terminal can provide.
步骤202,所述第一终端根据所述至少一个第二终端的算力信息,选择至少一个目标第二终端;Step 202: The first terminal selects at least one target second terminal based on the computing power information of the at least one second terminal;
需要说明的是,若一个第二终端便能够完成第一终端的算力需求或算力任务,则第一终端只需选择一个第二终端即可;若第一终端的算力需求或算力任务所需算力比较大,第一终端可能需要选择两个或两个以上的第二终端,共同完成第一终端的算力需求或算力任务。It should be noted that if a second terminal can complete the computing power requirements or computing power tasks of the first terminal, the first terminal only needs to choose a second terminal; if the computing power requirements or computing power of the first terminal The computing power required for the task is relatively large, and the first terminal may need to select two or more second terminals to jointly complete the computing power requirements or computing power tasks of the first terminal.
步骤203,所述第一终端与所述至少一个目标第二终端完成所述算力需求或算力任务。Step 203: The first terminal and the at least one target second terminal complete the computing power requirement or computing power task.
需要说明的是,本申请实施例中的第一终端可以看作是算力消费方,所述第二终端看作是算力提供方。It should be noted that the first terminal in the embodiment of this application can be regarded as a computing power consumer, and the second terminal can be regarded as a computing power provider.
可选地,本申请的至少一个实施例中,步骤201的可选实现方式为:Optionally, in at least one embodiment of this application, the optional implementation of step 201 is:
所述第一终端接收至少一个第二终端发送的算力信息;The first terminal receives computing power information sent by at least one second terminal;
其中,所述算力信息为所述第二终端基于所述第一终端广播的算力请求信息发送的,或者所述算力信息为所述第二终端广播的;Wherein, the computing power information is sent by the second terminal based on the computing power request information broadcast by the first terminal, or the computing power information is broadcast by the second terminal;
所述算力请求信息基于算力需求或算力任务广播。The computing power request information is based on computing power demand or computing power task broadcast.
也就是说,该第二终端的算力信息可以是第一终端基于产生的算力需求或算力任务向多个第二终端请求的,也可以是第一终端获取第二终端主动广播的算力信息。That is to say, the computing power information of the second terminal may be requested by the first terminal from multiple second terminals based on the generated computing power requirements or computing power tasks, or the first terminal may obtain the computing power information actively broadcast by the second terminal. force information.
可选地,在第一终端基于产生的算力需求或算力任务向多个第二终端请求算力信息时,接收到第一终端广播发送的算力请求信息的第二终端,在自身的算力满足第一终端的算力需求或算力任务的情况下,需要向第一终端反馈能够提供的算力信息;可选地,第二终端可以在能够提供的算力信息满足第一终端的算力需求(例如,进行算力任务的核数要求)或者是算力任务对应的算力需求时反馈算力信息;也可以是在满足第一终端的算力任务的服务要求的情况下,向第一终端反馈能够提供的算力信息,例如,第一终端执行的是图像识别的算力任务,而第二终端能够提供图像识别的服务,则第二终端向第一终端反馈能够提供的算力信息。 Optionally, when the first terminal requests computing power information from multiple second terminals based on the generated computing power requirements or computing power tasks, the second terminal that receives the computing power request information broadcasted by the first terminal, in its own When the computing power meets the computing power requirements or computing power tasks of the first terminal, the computing power information that can be provided needs to be fed back to the first terminal; optionally, the second terminal can provide computing power information that satisfies the first terminal. The computing power information is fed back when the computing power requirements (for example, the core requirements for performing computing power tasks) or the computing power requirements corresponding to the computing power tasks are met; it can also be when the service requirements of the computing power tasks of the first terminal are met. , feedback the computing power information that can be provided to the first terminal. For example, the first terminal performs the computing power task of image recognition, and the second terminal can provide image recognition services, then the second terminal feeds back to the first terminal the computing power information that can be provided. computing power information.
可选地,所述第二终端的算力信息可以是在第二终端有多余算力时,第二终端主动广播的,也就是说第二终端在存在多余算力时,主动广播多余的算力信息。Optionally, the computing power information of the second terminal may be actively broadcast by the second terminal when the second terminal has excess computing power. That is to say, the second terminal actively broadcasts the excess computing power when there is excess computing power. force information.
可选的,在所述算力信息为所述第二终端基于所述第一终端广播的算力请求信息发送的情况下,所述算力信息携带于算力响应中,所述算力响应中还包括:能够提供的算力服务信息和/或所述第二终端的标识信息。Optionally, in the case where the computing power information is sent by the second terminal based on the computing power request information broadcast by the first terminal, the computing power information is carried in the computing power response, and the computing power response It also includes: the computing power service information that can be provided and/or the identification information of the second terminal.
可选地,本申请实施例中所说的算力服务信息可以包括:图像识别服务、图像的4k变8k服务类型等。Optionally, the computing power service information mentioned in the embodiment of this application may include: image recognition service, image 4k to 8k service type, etc.
可选地,所述算力信息包括以下至少一项:Optionally, the computing power information includes at least one of the following:
中央处理器(CPU)核数、图形处理器(GPU)核数、算法信息、单位时间计算量、计算时间、计算类型、峰值计算量。Number of central processing unit (CPU) cores, number of graphics processing unit (GPU) cores, algorithm information, calculation amount per unit time, calculation time, calculation type, and peak calculation amount.
所述算法信息为第二终端能够提供的所有算法种类;所述单位时间计算量指的是第二终端在单位时间内所能完成的计算量,该计算量例如为计算次数;所述计算时间为第二终端完成一次计算所需的时间;所述计算类型例如可以为浮点数运算等;所述峰值计算量指的是在达到最大计算峰值时的计算量。The algorithm information is all algorithm types that the second terminal can provide; the calculation amount per unit time refers to the calculation amount that the second terminal can complete in the unit time, and the calculation amount is, for example, the number of calculations; the calculation time The time required for the second terminal to complete a calculation; the calculation type may be, for example, floating-point number operation; the peak calculation amount refers to the calculation amount when the maximum calculation peak value is reached.
可选地,本申请的至少一个实施例中,所述第一终端与所述至少一个目标第二终端完成所述算力需求或算力任务的实现方式,包括:Optionally, in at least one embodiment of the present application, the implementation of the first terminal and the at least one target second terminal to complete the computing power requirement or computing power task includes:
步骤2031,所述第一终端向所述至少一个目标第二终端发送执行算力需求或算力任务所需的目标数据;Step 2031: The first terminal sends target data required to perform computing power requirements or computing power tasks to the at least one target second terminal;
需要说明的是,当第一终端选择使用多个第二终端时,第一终端需要进行数据的拆分,然后将拆分后的数据分别发送给各个第二终端。It should be noted that when the first terminal chooses to use multiple second terminals, the first terminal needs to split the data and then send the split data to each second terminal.
步骤2032,所述第一终端接收所述至少一个目标第二终端发送的计算结果;Step 2032: The first terminal receives the calculation result sent by the at least one target second terminal;
步骤2033,所述第一终端根据所述计算结果,确定所述算力需求或算力任务的最终结果;Step 2033: The first terminal determines the computing power requirement or the final result of the computing power task based on the calculation result;
需要说明的是,当第一终端仅使用一个第二终端完成算力任务时,第一终端接收到的第二终端反馈的计算结果便为算力需求或算力任务对应的最终结果,若第一终端使用多个第二终端完成算力任务时,第一终端接收到每个第二终端反馈的计算结果之后,需要将多个第二终端的计算结果进行整合得到算力需求或算力任务的最终结果。It should be noted that when the first terminal uses only one second terminal to complete the computing power task, the calculation result fed back by the second terminal received by the first terminal is the final result corresponding to the computing power requirement or the computing power task. If the second terminal When a terminal uses multiple second terminals to complete a computing power task, after the first terminal receives the calculation results fed back by each second terminal, it needs to integrate the calculation results of the multiple second terminals to obtain the computing power requirements or computing power tasks. the final result.
下面在具体应用中对本申请的具体应用进行说明如下。The specific applications of this application are described below in specific applications.
具体应用情况一、终端作为算力消费方广播算力任务或者算力需求Specific application situations 1. The terminal acts as a computing power consumer and broadcasts computing power tasks or computing power requirements.
如图3所示,此种情况的具体实现流程为:As shown in Figure 3, the specific implementation process of this situation is:
步骤S301,第一终端(算力消费方)产生算力需求或算力任务;Step S301, the first terminal (computing power consumer) generates computing power requirements or computing power tasks;
步骤S302,第一终端(算力消费方)广播算力请求信息;Step S302, the first terminal (computing power consumer) broadcasts computing power request information;
该算力请求消息中携带算力需求或算力任务。The computing power request message carries computing power requirements or computing power tasks.
步骤S303,满足上述算力需求或算力任务的第二终端(算力提供方)向第一终端(算力消费方)发送算力响应; Step S303: The second terminal (computing power provider) that meets the above-mentioned computing power requirements or computing power tasks sends a computing power response to the first terminal (computing power consumer);
其中,该算力响应中包含算力提供方能够提供的算力信息,还可以包括算力提供方能够提供的算力服务信息以及算力提供方的标识信息等;Among them, the computing power response includes the computing power information that the computing power provider can provide, and may also include the computing power service information that the computing power provider can provide and the identification information of the computing power provider, etc.;
步骤S304,算力消费方基于自身算力任务/算力需求和算力提供方提供的算力信息来选择一个或多个算力提供方;Step S304: The computing power consumer selects one or more computing power providers based on its own computing power tasks/computing power needs and the computing power information provided by the computing power providers;
一种实施方式中,如果算力需求比较大,可能需要多个算力提供方来完成算力任务,那么该过程可能涉及到算力任务的分割;In one implementation, if the demand for computing power is relatively large and multiple computing power providers may be needed to complete the computing power task, then the process may involve dividing the computing power task;
步骤S305,算力消费方与算力提供方之间建立安全数据连接;Step S305: Establish a secure data connection between the computing power consumer and the computing power provider;
需要说明的是,该安全数据连接通过PC5鉴权过程实现。It should be noted that this secure data connection is implemented through the PC5 authentication process.
步骤S306,算力消费方向算力提供方发送算力任务或算力需求所需数据,或者脱敏之后的数据;Step S306: The computing power consumer sends data required for computing power tasks or computing power requirements, or desensitized data, to the computing power provider;
所谓的脱敏之后的数据指的是通过对算力任务或算力需求所需数据进行脱敏处理之后得到的数据。The so-called desensitized data refers to the data obtained by desensitizing the data required for computing tasks or computing power requirements.
步骤S307,算力提供方向算力消费方发送计算结果;Step S307: The computing power provider sends the calculation results to the computing power consumer;
一种实施方式中,如果算力消费方选择了多个算力提供方来完成算力任务,那么,算力消费方需要对多个返回的算力计算结果进行整合。In one implementation, if the computing power consumer selects multiple computing power providers to complete the computing power task, then the computing power consumer needs to integrate multiple returned computing power calculation results.
具体应用情况二、终端作为算力提供方广播可以提供的算力信息Specific application situation 2. The terminal, as a computing power provider, broadcasts the computing power information it can provide.
如图4所示,此种情况的具体实现流程为:As shown in Figure 4, the specific implementation process of this situation is:
步骤S401,第一终端(算力消费方)产生算力需求或算力任务;Step S401, the first terminal (computing power consumer) generates computing power requirements or computing power tasks;
步骤S402,第一终端(算力消费方)监听第二终端广播的能够对外提供的算力信息;Step S402: The first terminal (computing power consumer) monitors the computing power information broadcast by the second terminal that can be provided to the outside world;
步骤S403,算力提供方具有多余算力时,广播信息中携带能够对外提供的算力信息;Step S403: When the computing power provider has excess computing power, the broadcast information carries the computing power information that can be provided to the outside world;
例如,CPU核数、GPU核数,算法信息,计算次数,单位时间计算量,计算时间,计算类型,峰值计算量等;For example, the number of CPU cores, GPU cores, algorithm information, number of calculations, calculation amount per unit time, calculation time, calculation type, peak calculation amount, etc.;
步骤S404,算力消费方基于自身算力任务/算力需求和算力提供方提供的算力信息来选择一个或多个算力提供方;Step S404: The computing power consumer selects one or more computing power providers based on its own computing power tasks/computing power needs and the computing power information provided by the computing power providers;
一种实施方式中,如果算力需求比较大,可能需要多个算力提供方来完成算力任务,那么该过程可能涉及到算力任务的分割;In one implementation, if the demand for computing power is relatively large and multiple computing power providers may be needed to complete the computing power task, then the process may involve dividing the computing power task;
步骤S405,算力消费方与算力提供方之间建立安全数据连接;Step S405, establish a secure data connection between the computing power consumer and the computing power provider;
需要说明的是,该安全数据连接通过PC5鉴权过程实现。It should be noted that this secure data connection is implemented through the PC5 authentication process.
步骤S406,算力消费方向算力提供方发送算力任务或算力需求所需数据,或者脱敏之后的数据;Step S406: The computing power consumer sends data required for computing power tasks or computing power requirements, or desensitized data, to the computing power provider;
步骤S407,算力提供方向算力消费方发送计算结果;Step S407: The computing power provider sends the calculation results to the computing power consumer;
一种实施方式中,如果算力消费方选择了多个算力提供方来完成算力任务,那么,算力消费方需要对多个返回的算力计算结果进行整合。In one implementation, if the computing power consumer selects multiple computing power providers to complete the computing power task, then the computing power consumer needs to integrate multiple returned computing power calculation results.
需要说明的是,本申请的至少一个实施例,终端在产生算力需求或算力任务时,可以找到其他具有多余算力的终端进行算力卸载,能够达到保证终端正常进行大计算量业务的 目的;同时终端在具有多余算力时,可以有效提供给其他有算力需求的终端使用。It should be noted that, in at least one embodiment of the present application, when a terminal generates a computing power demand or a computing power task, it can find other terminals with excess computing power to offload the computing power, which can ensure that the terminal can normally perform large-scale computing services. Purpose; at the same time, when the terminal has excess computing power, it can be effectively provided to other terminals with computing power needs.
如图5所示,本申请实施例提供一种算力服务方法,包括:As shown in Figure 5, this embodiment of the present application provides a computing power service method, including:
步骤501,第二终端向第一终端发送算力信息。Step 501: The second terminal sends computing power information to the first terminal.
可选地,所述第二终端向所述第一终端发送算力信息,包括:Optionally, the second terminal sends computing power information to the first terminal, including:
所述第二终端根据所述第一终端广播的算力请求信息,向所述第一终端发送算力信息,所述算力请求信息为所述第一终端基于算力需求或算力任务发送的;或者The second terminal sends computing power information to the first terminal according to the computing power request information broadcast by the first terminal. The computing power request information is sent by the first terminal based on computing power requirements or computing power tasks. of; or
所述第二终端向所述第一终端广播算力信息。The second terminal broadcasts computing power information to the first terminal.
可选地,所述向所述第一终端发送算力信息,包括:Optionally, sending the computing power information to the first terminal includes:
所述第二终端向所述第一终端发送算力响应,所述算力响应中携带所述算力信息;The second terminal sends a computing power response to the first terminal, where the computing power response carries the computing power information;
其中,所述算力响应中还包括:能够提供的算力服务信息和/或所述第二终端的标识信息。Wherein, the computing power response also includes: computing power service information that can be provided and/or identification information of the second terminal.
可选地,所述算力信息包括以下至少一项:Optionally, the computing power information includes at least one of the following:
中央处理器CPU核数、图形处理器GPU核数、算法信息、单位时间计算量、计算时间、计算类型、峰值计算量。Number of CPU cores of the central processing unit, number of GPU cores of the graphics processor, algorithm information, calculation amount per unit time, calculation time, calculation type, and peak calculation amount.
可选地,所述方法,还包括:Optionally, the method also includes:
所述第二终端接收所述第一终端发送的执行算力需求或算力任务所需的目标数据;The second terminal receives the target data required to perform the computing power requirement or the computing power task sent by the first terminal;
所述第二终端对所述目标数据进行计算,确定计算结果;The second terminal performs calculations on the target data and determines the calculation results;
所述第二终端将所述计算结果发送给所述第一终端。The second terminal sends the calculation result to the first terminal.
需要说明的是,上述实施例中所有关于第二终端的描述均适用于应用于第二终端的该算力服务方法的实施例中,也能达到与之相同的技术效果,在此不再赘述。It should be noted that all the descriptions about the second terminal in the above embodiments are applicable to the embodiments of the computing power service method applied to the second terminal, and the same technical effects can be achieved, and will not be described again here. .
本申请实施例提供的算力服务方法,执行主体可以为算力服务装置。本申请实施例中以算力服务装置执行算力服务方法为例,说明本申请实施例提供的算力服务装置。For the computing power service method provided by the embodiment of the present application, the execution subject may be a computing power service device. In the embodiment of this application, the computing power service device executing the computing power service method is taken as an example to illustrate the computing power service device provided by the embodiment of this application.
如图6所示,本申请实施例的算力服务装置600,应用于第一终端,包括:As shown in Figure 6, the computing power service device 600 in the embodiment of the present application is applied to the first terminal and includes:
获取模块601,用于在产生算力需求或算力任务的情况下,获取至少一个第二终端的算力信息;The acquisition module 601 is used to obtain the computing power information of at least one second terminal when a computing power demand or computing power task is generated;
选择模块602,用于根据所述至少一个第二终端的算力信息,选择至少一个目标第二终端;The selection module 602 is configured to select at least one target second terminal according to the computing power information of the at least one second terminal;
执行模块603,用于与所述至少一个目标第二终端完成所述算力需求或算力任务。Execution module 603 is configured to complete the computing power requirement or computing power task with the at least one target second terminal.
可选地,所述获取模块601,用于:Optionally, the acquisition module 601 is used for:
接收至少一个第二终端发送的算力信息;Receive computing power information sent by at least one second terminal;
其中,所述算力信息为所述第二终端基于所述第一终端广播的算力请求信息发送的,或者所述算力信息为所述第二终端广播的;Wherein, the computing power information is sent by the second terminal based on the computing power request information broadcast by the first terminal, or the computing power information is broadcast by the second terminal;
所述算力请求信息基于算力需求或算力任务广播。The computing power request information is based on computing power demand or computing power task broadcast.
可选地,在所述算力信息为所述第二终端基于所述第一终端广播的算力请求信息发送的情况下,所述算力信息携带于算力响应中,所述算力响应中还包括:能够提供的算力服 务信息和/或所述第二终端的标识信息。Optionally, in the case where the computing power information is sent by the second terminal based on the computing power request information broadcast by the first terminal, the computing power information is carried in the computing power response, and the computing power response Also included: computing power services that can be provided service information and/or identification information of the second terminal.
可选地,所述算力信息包括以下至少一项:Optionally, the computing power information includes at least one of the following:
中央处理器CPU核数、图形处理器GPU核数、算法信息、单位时间计算量、计算时间、计算类型、峰值计算量。The number of CPU cores of the central processing unit, the number of GPU cores of the graphics processor, algorithm information, calculation amount per unit time, calculation time, calculation type, and peak calculation amount.
可选地,所述执行模块602,包括:Optionally, the execution module 602 includes:
第一发送单元,用于向所述至少一个目标第二终端发送执行算力需求或算力任务所需的目标数据;A first sending unit configured to send target data required to perform computing power requirements or computing power tasks to the at least one target second terminal;
接收单元,用于接收所述至少一个目标第二终端发送的计算结果;A receiving unit configured to receive the calculation result sent by the at least one target second terminal;
确定单元,用于根据所述计算结果,确定所述算力需求或算力任务的最终结果。A determining unit, configured to determine the computing power requirement or the final result of the computing power task based on the calculation result.
需要说明的是,该装置实施例是与上述方法对应的,上述方法实施例中的所有实现方式均适用于该装置实施例中,也能达到相同的技术效果。It should be noted that this device embodiment corresponds to the above-mentioned method, and all implementation methods in the above-mentioned method embodiment are applicable to this device embodiment, and the same technical effect can be achieved.
本申请实施例中的算力服务装置可以是电子设备,例如具有操作***的电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,终端可以包括但不限于上述所列举的终端11的类型,其他设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)等,本申请实施例不作具体限定。The computing power service device in the embodiment of the present application may be an electronic device, such as an electronic device with an operating system, or may be a component in the electronic device, such as an integrated circuit or chip. The electronic device may be a terminal or other devices other than the terminal. For example, terminals may include but are not limited to the types of terminals 11 listed above, and other devices may be servers, network attached storage (Network Attached Storage, NAS), etc., which are not specifically limited in the embodiment of this application.
本申请实施例提供的算力服务装置能够实现图2的方法实施例实现的各个过程,并达到相同的技术效果,为避免重复,这里不再赘述。The computing power service device provided by the embodiment of this application can implement each process implemented by the method embodiment in Figure 2 and achieve the same technical effect. To avoid duplication, the details will not be described here.
本申请实施例还提供一种终端,所述终端为第一终端,包括处理器和通信接口,处理器用于在产生算力需求或算力任务的情况下,获取至少一个第二终端的算力信息;根据所述至少一个第二终端的算力信息,选择至少一个目标第二终端;与所述至少一个目标第二终端完成所述算力需求或算力任务。An embodiment of the present application also provides a terminal. The terminal is a first terminal and includes a processor and a communication interface. The processor is configured to obtain the computing power of at least one second terminal when a computing power demand or computing power task is generated. information; select at least one target second terminal according to the computing power information of the at least one second terminal; and complete the computing power requirement or computing power task with the at least one target second terminal.
可选地,所述通信接口,用于:接收至少一个第二终端发送的算力信息;Optionally, the communication interface is used to: receive computing power information sent by at least one second terminal;
其中,所述算力信息为所述第二终端基于所述第一终端广播的算力请求信息发送的,或者所述算力信息为所述第二终端广播的;Wherein, the computing power information is sent by the second terminal based on the computing power request information broadcast by the first terminal, or the computing power information is broadcast by the second terminal;
所述算力请求信息基于算力需求或算力任务广播。The computing power request information is based on computing power demand or computing power task broadcast.
可选地,在所述算力信息为所述第二终端基于所述第一终端广播的算力请求信息发送的情况下,所述算力信息携带于算力响应中,所述算力响应中还包括:能够提供的算力服务信息和/或所述第二终端的标识信息。Optionally, in the case where the computing power information is sent by the second terminal based on the computing power request information broadcast by the first terminal, the computing power information is carried in the computing power response, and the computing power response It also includes: the computing power service information that can be provided and/or the identification information of the second terminal.
可选地,所述算力信息包括以下至少一项:Optionally, the computing power information includes at least one of the following:
中央处理器CPU核数、图形处理器GPU核数、算法信息、单位时间计算量、计算时间、计算类型、峰值计算量。The number of CPU cores of the central processing unit, the number of GPU cores of the graphics processor, algorithm information, calculation amount per unit time, calculation time, calculation type, and peak calculation amount.
可选地,所述通信接口用于向所述至少一个目标第二终端发送执行算力需求或算力任务所需的目标数据;接收所述至少一个目标第二终端发送的计算结果;Optionally, the communication interface is used to send target data required to perform computing power requirements or computing power tasks to the at least one target second terminal; receive calculation results sent by the at least one target second terminal;
所述处理器用于根据所述计算结果,确定所述算力需求或算力任务的最终结果。 The processor is configured to determine the computing power requirement or the final result of the computing power task according to the calculation result.
该终端实施例与上述终端侧方法实施例对应,上述方法实施例的各个实施过程和实现方式均可适用于该终端实施例中,且能达到相同的技术效果。具体地,图7为实现本申请实施例的一种终端的硬件结构示意图。This terminal embodiment corresponds to the above-mentioned terminal-side method embodiment. Each implementation process and implementation manner of the above-mentioned method embodiment can be applied to this terminal embodiment, and can achieve the same technical effect. Specifically, FIG. 7 is a schematic diagram of the hardware structure of a terminal that implements an embodiment of the present application.
该终端700包括但不限于:射频单元701、网络模块702、音频输出单元703、输入单元704、传感器705、显示单元706、用户输入单元707、接口单元708、存储器709以及处理器710等中的至少部分部件。The terminal 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, etc. At least some parts.
本领域技术人员可以理解,终端700还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理***与处理器710逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。图7中示出的终端结构并不构成对终端的限定,终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the terminal 700 may also include a power supply (such as a battery) that supplies power to various components. The power supply may be logically connected to the processor 710 through a power management system, thereby managing charging, discharging, and power consumption through the power management system. Management and other functions. The terminal structure shown in FIG. 7 does not constitute a limitation on the terminal. The terminal may include more or fewer components than shown in the figure, or some components may be combined or arranged differently, which will not be described again here.
应理解的是,本申请实施例中,输入单元704可以包括图形处理器(Graphics Processing Unit,GPU)7041和麦克风7042,图形处理器7041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元706可包括显示面板7061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板7061。用户输入单元707包括触控面板7071以及其他输入设备7072中的至少一种。触控面板7071,也称为触摸屏。触控面板7071可包括触摸检测装置和触摸控制器两个部分。其他输入设备7072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。It should be understood that in the embodiment of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042. The graphics processor 7041 is responsible for the image capture device (GPU) in the video capture mode or the image capture mode. Process the image data of still pictures or videos obtained by cameras (such as cameras). The display unit 706 may include a display panel 7061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes a touch panel 7071 and at least one of other input devices 7072 . Touch panel 7071, also called touch screen. The touch panel 7071 may include two parts: a touch detection device and a touch controller. Other input devices 7072 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described again here.
本申请实施例中,射频单元701接收来自网络侧设备的下行数据后,可以传输给处理器710进行处理;另外,射频单元701可以向网络侧设备发送上行数据。通常,射频单元701包括但不限于天线、放大器、收发信机、耦合器、低噪声放大器、双工器等。In this embodiment of the present application, after receiving downlink data from the network side device, the radio frequency unit 701 can transmit it to the processor 710 for processing; in addition, the radio frequency unit 701 can send uplink data to the network side device. Generally, the radio frequency unit 701 includes, but is not limited to, an antenna, amplifier, transceiver, coupler, low noise amplifier, duplexer, etc.
存储器709可用于存储软件程序或指令以及各种数据。存储器709可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作***、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器709可以包括易失性存储器或非易失性存储器,或者,存储器709可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器709包括但不限于这些和任意其它适合类型的存储器。 Memory 709 may be used to store software programs or instructions as well as various data. The memory 709 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, Image playback function, etc.) etc. Additionally, memory 709 may include volatile memory or non-volatile memory, or memory 709 may include both volatile and non-volatile memory. Among them, the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically removable memory. Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM) , SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM). Memory 709 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
处理器710可包括一个或多个处理单元;可选的,处理器710集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作***、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器710中。The processor 710 may include one or more processing units; optionally, the processor 710 integrates an application processor and a modem processor, where the application processor mainly handles operations related to the operating system, user interface, application programs, etc., Modem processors mainly process wireless communication signals, such as baseband processors. It can be understood that the above-mentioned modem processor may not be integrated into the processor 710.
其中,在终端700为第一终端的情况下,所述处理器710,用于:Wherein, when the terminal 700 is the first terminal, the processor 710 is used to:
在产生算力需求或算力任务的情况下,获取至少一个第二终端的算力信息;When a computing power demand or computing power task occurs, obtain the computing power information of at least one second terminal;
根据所述至少一个第二终端的算力信息,选择至少一个目标第二终端;Select at least one target second terminal according to the computing power information of the at least one second terminal;
与所述至少一个目标第二终端完成所述算力需求或算力任务。Complete the computing power requirement or computing power task with the at least one target second terminal.
进一步地,所述射频单元701,用于:Further, the radio frequency unit 701 is used for:
接收至少一个第二终端发送的算力信息;Receive computing power information sent by at least one second terminal;
其中,所述算力信息为所述第二终端基于所述第一终端广播的算力请求信息发送的,或者所述算力信息为所述第二终端广播的;Wherein, the computing power information is sent by the second terminal based on the computing power request information broadcast by the first terminal, or the computing power information is broadcast by the second terminal;
所述算力请求信息基于算力需求或算力任务广播。The computing power request information is based on computing power demand or computing power task broadcast.
可选地,在所述算力信息为所述第二终端基于所述第一终端广播的算力请求信息发送的情况下,所述算力信息携带于算力响应中,所述算力响应中还包括:能够提供的算力服务信息和/或所述第二终端的标识信息。Optionally, in the case where the computing power information is sent by the second terminal based on the computing power request information broadcast by the first terminal, the computing power information is carried in the computing power response, and the computing power response It also includes: the computing power service information that can be provided and/or the identification information of the second terminal.
可选地,所述算力信息包括以下至少一项:Optionally, the computing power information includes at least one of the following:
中央处理器CPU核数、图形处理器GPU核数、算法信息、单位时间计算量、计算时间、计算类型、峰值计算量。The number of CPU cores of the central processing unit, the number of GPU cores of the graphics processor, algorithm information, calculation amount per unit time, calculation time, calculation type, and peak calculation amount.
可选地,所述射频单元701,用于:向所述至少一个目标第二终端发送执行算力需求或算力任务所需的目标数据;接收所述至少一个目标第二终端发送的计算结果;Optionally, the radio frequency unit 701 is configured to: send target data required to perform computing power requirements or computing power tasks to the at least one target second terminal; receive calculation results sent by the at least one target second terminal ;
所述处理器710,用于:根据所述计算结果,确定所述算力需求或算力任务的最终结果。The processor 710 is configured to determine the computing power requirement or the final result of the computing power task according to the calculation result.
优选的,本申请实施例还提供一种终端,所述终端为第一终端,包括处理器,存储器,存储在存储器上并可在所述处理器上运行的程序或指令,该程序或指令被处理器执行时实现上述的算力服务方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present application further provides a terminal, which is a first terminal and includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor. The program or instruction is When the processor executes, each process of the above-mentioned computing power service method embodiment is implemented, and the same technical effect can be achieved. To avoid duplication, the details will not be described here.
本申请实施例还提供一种可读存储介质,计算机可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述的应用于第一终端的算力服务方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application also provide a readable storage medium. Programs or instructions are stored on the computer-readable storage medium. When the program or instructions are executed by the processor, the above-mentioned embodiment of the computing power service method applied to the first terminal is implemented. Each process can achieve the same technical effect. To avoid duplication, it will not be described again here.
其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Among them, the computer-readable storage medium is such as read-only memory (ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
如图8所示,本申请实施例还提供一种算力服务装置800,应用于第二终端,包括:As shown in Figure 8, this embodiment of the present application also provides a computing power service device 800, which is applied to the second terminal and includes:
发送模块801,用于向第一终端发送算力信息。The sending module 801 is used to send computing power information to the first terminal.
可选地,所述发送模块801,包括: Optionally, the sending module 801 includes:
第二发送单元,用于根据所述第一终端广播的算力请求信息,向所述第一终端发送算力信息,所述算力请求信息为所述第一终端基于算力需求或算力任务发送的;或者The second sending unit is configured to send computing power information to the first terminal according to the computing power request information broadcast by the first terminal. The computing power request information is based on the computing power demand or computing power of the first terminal. Sent by task; or
第三发送单元,用于向所述第一终端广播算力信息。The third sending unit is used to broadcast computing power information to the first terminal.
可选地,所述第二发送单元,用于:Optionally, the second sending unit is used for:
向所述第一终端发送算力响应,所述算力响应中携带所述算力信息;Send a computing power response to the first terminal, where the computing power response carries the computing power information;
其中,所述算力响应中还包括:能够提供的算力服务信息和/或所述第二终端的标识信息。Wherein, the computing power response also includes: computing power service information that can be provided and/or identification information of the second terminal.
可选地,所述算力信息包括以下至少一项:Optionally, the computing power information includes at least one of the following:
中央处理器CPU核数、图形处理器GPU核数、算法信息、单位时间计算量、计算时间、计算类型、峰值计算量。The number of CPU cores of the central processing unit, the number of GPU cores of the graphics processor, algorithm information, calculation amount per unit time, calculation time, calculation type, and peak calculation amount.
可选地,所述装置,还包括:Optionally, the device also includes:
接收模块,用于接收所述第一终端发送的执行算力需求或算力任务所需的目标数据;A receiving module, configured to receive target data sent by the first terminal to perform computing power requirements or computing power tasks;
确定模块,用于对所述目标数据进行计算,确定计算结果;A determination module, used to calculate the target data and determine the calculation results;
发送模块,用于将所述计算结果发送给所述第一终端。A sending module, configured to send the calculation result to the first terminal.
需要说明的是,该装置实施例是与上述方法对应的装置,上述方法实施例中的所有实现方式均适用于该装置实施例中,也能达到相同的技术效果,在此不再赘述。It should be noted that this device embodiment is a device corresponding to the above-mentioned method. All implementation methods in the above-mentioned method embodiment are applicable to this device embodiment and can achieve the same technical effect, which will not be described again here.
本申请实施例还提供了一种终端,所述终端为第二终端,包括处理器及通信接口,其中,所述通信接口用于向第一终端发送算力信息。An embodiment of the present application also provides a terminal, which is a second terminal and includes a processor and a communication interface, wherein the communication interface is used to send computing power information to the first terminal.
可选地,所述通信接口用于:根据所述第一终端广播的算力请求信息,向所述第一终端发送算力信息,所述算力请求信息为所述第一终端基于算力需求或算力任务发送的;或者Optionally, the communication interface is configured to: send computing power information to the first terminal according to the computing power request information broadcast by the first terminal, where the computing power request information is based on the computing power of the first terminal. Sent by demand or computing power tasks; or
向所述第一终端广播算力信息。Broadcast computing power information to the first terminal.
可选地,所述通信接口用于:Optionally, the communication interface is used for:
向所述第一终端发送算力响应,所述算力响应中携带所述算力信息;Send a computing power response to the first terminal, where the computing power response carries the computing power information;
其中,所述算力响应中还包括:能够提供的算力服务信息和/或所述第二终端的标识信息。Wherein, the computing power response also includes: computing power service information that can be provided and/or identification information of the second terminal.
可选地,所述算力信息包括以下至少一项:Optionally, the computing power information includes at least one of the following:
中央处理器CPU核数、图形处理器GPU核数、算法信息、单位时间计算量、计算时间、计算类型、峰值计算量。The number of CPU cores of the central processing unit, the number of GPU cores of the graphics processor, algorithm information, calculation amount per unit time, calculation time, calculation type, and peak calculation amount.
可选地,所述通信接口用于:接收所述第一终端发送的执行算力需求或算力任务所需的目标数据;Optionally, the communication interface is configured to: receive target data sent by the first terminal required to perform computing power requirements or computing power tasks;
所述处理器用于对所述目标数据进行计算,确定计算结果;The processor is used to calculate the target data and determine the calculation results;
所述通信接口用于将所述计算结果发送给所述第一终端。The communication interface is used to send the calculation result to the first terminal.
优选的,本申请实施例还提供一种终端,所述终端为第二终端,包括处理器,存储器,存储在存储器上并可在所述处理器上运行的程序或指令,该程序或指令被处理器执行时实 现上述的算力服务方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present application further provides a terminal, which is a second terminal and includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor. The program or instruction is Processor execution time Each process of the above-mentioned computing power service method embodiment can achieve the same technical effect. To avoid duplication, it will not be described again here.
具体地,本申请实施例还提供了一种终端,所述终端的结构可参见图7所示,在此不再赘述,其中,在所述终端为第二终端的情况下,所述射频单元,用于:Specifically, this embodiment of the present application also provides a terminal. The structure of the terminal can be seen in Figure 7 and will not be described again. In the case where the terminal is a second terminal, the radio frequency unit , used for:
向第一终端发送算力信息。Send computing power information to the first terminal.
进一步地,所述射频单元,用于:Further, the radio frequency unit is used for:
根据所述第一终端广播的算力请求信息,向所述第一终端发送算力信息,所述算力请求信息为所述第一终端基于算力需求或算力任务发送的;或者Send computing power information to the first terminal according to the computing power request information broadcast by the first terminal, where the computing power request information is sent by the first terminal based on computing power requirements or computing power tasks; or
向所述第一终端广播算力信息。Broadcast computing power information to the first terminal.
进一步地,所述射频单元,用于:Further, the radio frequency unit is used for:
向所述第一终端发送算力响应,所述算力响应中携带所述算力信息;Send a computing power response to the first terminal, where the computing power response carries the computing power information;
其中,所述算力响应中还包括:能够提供的算力服务信息和/或所述第二终端的标识信息。Wherein, the computing power response also includes: computing power service information that can be provided and/or identification information of the second terminal.
可选地,所述算力信息包括以下至少一项:Optionally, the computing power information includes at least one of the following:
中央处理器CPU核数、图形处理器GPU核数、算法信息、单位时间计算量、计算时间、计算类型、峰值计算量。The number of CPU cores of the central processing unit, the number of GPU cores of the graphics processor, algorithm information, calculation amount per unit time, calculation time, calculation type, and peak calculation amount.
进一步地,所述射频单元,用于:Further, the radio frequency unit is used for:
接收所述第一终端发送的执行算力需求或算力任务所需的目标数据;Receive target data sent by the first terminal required to perform computing power requirements or computing power tasks;
所述处理器,用于:对所述目标数据进行计算,确定计算结果;The processor is used to: perform calculations on the target data and determine calculation results;
所述射频单元,用于:将所述计算结果发送给所述第一终端。The radio frequency unit is configured to send the calculation result to the first terminal.
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述应用于第二终端的算力服务方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application also provide a readable storage medium on which a program or instructions are stored. When the program or instructions are executed by a processor, the above embodiments of the computing power service method applied to the second terminal are implemented. Each process can achieve the same technical effect. To avoid duplication, it will not be described again here.
其中,所述处理器为上述实施例中所述的终端中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。Wherein, the processor is the processor in the terminal described in the above embodiment. The readable storage medium includes computer readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disk or optical disk, etc.
可选的,如图9所示,本申请实施例还提供一种通信设备900,包括处理器901和存储器902,存储器902上存储有可在所述处理器901上运行的程序或指令,例如,该通信设备900为第一终端时,该程序或指令被处理器901执行时实现上述算力服务方法实施例的各个步骤,且能达到相同的技术效果。该通信设备900为第二终端时,该程序或指令被处理器901执行时实现上述算力服务方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in Figure 9, this embodiment of the present application also provides a communication device 900, which includes a processor 901 and a memory 902. The memory 902 stores programs or instructions that can be run on the processor 901, for example. , when the communication device 900 is the first terminal, when the program or instruction is executed by the processor 901, each step of the above computing power service method embodiment is implemented, and the same technical effect can be achieved. When the communication device 900 is a second terminal, when the program or instruction is executed by the processor 901, each step of the above computing power service method embodiment is implemented, and the same technical effect can be achieved. To avoid duplication, the details are not repeated here.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述算力服务方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。 An embodiment of the present application further provides a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the above computing power service method embodiment. Each process can achieve the same technical effect. To avoid repetition, we will not go into details here.
应理解,本申请实施例提到的芯片还可以称为***级芯片,***芯片,芯片***或片上***芯片等。It should be understood that the chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-chip or system-on-chip, etc.
本申请实施例另提供了一种计算机程序/程序产品,所述计算机程序/程序产品被存储在存储介质中,所述计算机程序/程序产品被至少一个处理器执行以实现上述算力服务方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application further provide a computer program/program product. The computer program/program product is stored in a storage medium. The computer program/program product is executed by at least one processor to implement the above computing power service method. Each process in the example can achieve the same technical effect. To avoid repetition, we will not repeat it here.
本申请实施例还提供了一种通信***,包括:第一终端及第二终端,所述第一终端可用于执行如上所述的算力服务方法的步骤,所述第二终端可用于执行如上所述的算力服务方法的步骤。Embodiments of the present application also provide a communication system, including: a first terminal and a second terminal. The first terminal can be used to perform the steps of the computing power service method as described above. The second terminal can be used to perform the above steps. The steps of the computing power service method.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or apparatus that includes that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions may be performed, for example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a computer software product that is essentially or contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk , CD), including several instructions to cause a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of this application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。 The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Inspired by this application, many forms can be made without departing from the purpose of this application and the scope protected by the claims, all of which fall within the protection of this application.

Claims (22)

  1. 一种算力服务方法,包括:A computing power service method, including:
    第一终端在产生算力需求或算力任务的情况下,获取至少一个第二终端的算力信息;When a computing power demand or computing power task occurs, the first terminal acquires computing power information of at least one second terminal;
    所述第一终端根据所述至少一个第二终端的算力信息,选择至少一个目标第二终端;The first terminal selects at least one target second terminal based on the computing power information of the at least one second terminal;
    所述第一终端与所述至少一个目标第二终端完成所述算力需求或算力任务。The first terminal and the at least one target second terminal complete the computing power requirement or computing power task.
  2. 根据权利要求1所述的方法,其中,所述获取至少一个第二终端的算力信息,包括:The method according to claim 1, wherein said obtaining the computing power information of at least one second terminal includes:
    所述第一终端接收至少一个第二终端发送的算力信息;The first terminal receives computing power information sent by at least one second terminal;
    其中,所述算力信息为所述第二终端基于所述第一终端广播的算力请求信息发送的,或者所述算力信息为所述第二终端广播的;Wherein, the computing power information is sent by the second terminal based on the computing power request information broadcast by the first terminal, or the computing power information is broadcast by the second terminal;
    所述算力请求信息基于算力需求或算力任务广播。The computing power request information is based on computing power demand or computing power task broadcast.
  3. 根据权利要求2所述的方法,其中,在所述算力信息为所述第二终端基于所述第一终端广播的算力请求信息发送的情况下,所述算力信息携带于算力响应中,所述算力响应中还包括:能够提供的算力服务信息和/或所述第二终端的标识信息。The method according to claim 2, wherein when the computing power information is sent by the second terminal based on the computing power request information broadcast by the first terminal, the computing power information is carried in the computing power response , the computing power response also includes: computing power service information that can be provided and/or the identification information of the second terminal.
  4. 根据权利要求1-3任一项所述的方法,其中,所述算力信息包括以下至少一项:The method according to any one of claims 1-3, wherein the computing power information includes at least one of the following:
    中央处理器CPU核数、图形处理器GPU核数、算法信息、单位时间计算量、计算时间、计算类型、峰值计算量。The number of CPU cores of the central processing unit, the number of GPU cores of the graphics processor, algorithm information, calculation amount per unit time, calculation time, calculation type, and peak calculation amount.
  5. 根据权利要求1所述的方法,其中,所述第一终端与所述至少一个目标第二终端完成所述算力需求或算力任务,包括:The method according to claim 1, wherein the first terminal and the at least one target second terminal complete the computing power requirement or computing power task, including:
    所述第一终端向所述至少一个目标第二终端发送执行算力需求或算力任务所需的目标数据;The first terminal sends target data required to perform computing power requirements or computing power tasks to the at least one target second terminal;
    所述第一终端接收所述至少一个目标第二终端发送的计算结果;The first terminal receives the calculation result sent by the at least one target second terminal;
    所述第一终端根据所述计算结果,确定所述算力需求或算力任务的最终结果。The first terminal determines the computing power requirement or the final result of the computing power task based on the calculation result.
  6. 一种算力服务方法,包括:A computing power service method, including:
    第二终端向第一终端发送算力信息。The second terminal sends computing power information to the first terminal.
  7. 根据权利要求6所述的方法,其中,所述第二终端向所述第一终端发送算力信息,包括:The method according to claim 6, wherein the second terminal sends computing power information to the first terminal, including:
    所述第二终端根据所述第一终端广播的算力请求信息,向所述第一终端发送算力信息,所述算力请求信息为所述第一终端基于算力需求或算力任务发送的;或者The second terminal sends computing power information to the first terminal according to the computing power request information broadcast by the first terminal. The computing power request information is sent by the first terminal based on computing power requirements or computing power tasks. of; or
    所述第二终端向所述第一终端广播算力信息。The second terminal broadcasts computing power information to the first terminal.
  8. 根据权利要求7所述的方法,其中,所述向所述第一终端发送算力信息,包括:The method according to claim 7, wherein sending the computing power information to the first terminal includes:
    所述第二终端向所述第一终端发送算力响应,所述算力响应中携带所述算力信息;The second terminal sends a computing power response to the first terminal, where the computing power response carries the computing power information;
    其中,所述算力响应中还包括:能够提供的算力服务信息和/或所述第二终端的标识信息。 Wherein, the computing power response also includes: computing power service information that can be provided and/or identification information of the second terminal.
  9. 根据权利要求6-8任一项所述的方法,其中,所述算力信息包括以下至少一项:The method according to any one of claims 6-8, wherein the computing power information includes at least one of the following:
    中央处理器CPU核数、图形处理器GPU核数、算法信息、单位时间计算量、计算时间、计算类型、峰值计算量。The number of CPU cores of the central processing unit, the number of GPU cores of the graphics processor, algorithm information, calculation amount per unit time, calculation time, calculation type, and peak calculation amount.
  10. 根据权利要求6所述的方法,其中,还包括:The method of claim 6, further comprising:
    所述第二终端接收所述第一终端发送的执行算力需求或算力任务所需的目标数据;The second terminal receives the target data required to perform the computing power requirement or the computing power task sent by the first terminal;
    所述第二终端对所述目标数据进行计算,确定计算结果;The second terminal performs calculations on the target data and determines the calculation results;
    所述第二终端将所述计算结果发送给所述第一终端。The second terminal sends the calculation result to the first terminal.
  11. 一种算力服务装置,应用于第一终端,包括:A computing power service device, applied to the first terminal, including:
    获取模块,用于在产生算力需求或算力任务的情况下,获取至少一个第二终端的算力信息;The acquisition module is used to obtain the computing power information of at least one second terminal when a computing power demand or computing power task is generated;
    选择模块,用于根据所述至少一个第二终端的算力信息,选择至少一个目标第二终端;A selection module, configured to select at least one target second terminal according to the computing power information of the at least one second terminal;
    执行模块,用于与所述至少一个目标第二终端完成所述算力需求或算力任务。An execution module, configured to complete the computing power requirement or computing power task with the at least one target second terminal.
  12. 根据权利要求11所述的装置,其中,所述获取模块,用于:The device according to claim 11, wherein the acquisition module is used for:
    接收至少一个第二终端发送的算力信息;Receive computing power information sent by at least one second terminal;
    其中,所述算力信息为所述第二终端基于所述第一终端广播的算力请求信息发送的,或者所述算力信息为所述第二终端广播的;Wherein, the computing power information is sent by the second terminal based on the computing power request information broadcast by the first terminal, or the computing power information is broadcast by the second terminal;
    所述算力请求信息基于算力需求或算力任务广播。The computing power request information is based on computing power demand or computing power task broadcast.
  13. 根据权利要求12所述的装置,其中,在所述算力信息为所述第二终端基于所述第一终端广播的算力请求信息发送的情况下,所述算力信息携带于算力响应中,所述算力响应中还包括:能够提供的算力服务信息和/或所述第二终端的标识信息。The device according to claim 12, wherein when the computing power information is sent by the second terminal based on the computing power request information broadcast by the first terminal, the computing power information is carried in the computing power response , the computing power response also includes: computing power service information that can be provided and/or the identification information of the second terminal.
  14. 根据权利要求11-13任一项所述的装置,其中,所述算力信息包括以下至少一项:The device according to any one of claims 11-13, wherein the computing power information includes at least one of the following:
    中央处理器CPU核数、图形处理器GPU核数、算法信息、单位时间计算量、计算时间、计算类型、峰值计算量。The number of CPU cores of the central processing unit, the number of GPU cores of the graphics processor, algorithm information, calculation amount per unit time, calculation time, calculation type, and peak calculation amount.
  15. 根据权利要求11所述的装置,其中,所述执行模块,包括:The device according to claim 11, wherein the execution module includes:
    第一发送单元,用于向所述至少一个目标第二终端发送执行算力需求或算力任务所需的目标数据;A first sending unit configured to send target data required to perform computing power requirements or computing power tasks to the at least one target second terminal;
    接收单元,用于接收所述至少一个目标第二终端发送的计算结果;A receiving unit configured to receive the calculation result sent by the at least one target second terminal;
    确定单元,用于根据所述计算结果,确定所述算力需求或算力任务的最终结果。A determining unit, configured to determine the computing power requirement or the final result of the computing power task based on the calculation result.
  16. 一种算力服务装置,应用于第二终端,包括:A computing power service device, applied to the second terminal, including:
    发送模块,用于向第一终端发送算力信息。The sending module is used to send computing power information to the first terminal.
  17. 根据权利要求16所述的装置,其中,所述发送模块,包括:The device according to claim 16, wherein the sending module includes:
    第二发送单元,用于根据所述第一终端广播的算力请求信息,向所述第一终端发送算力信息,所述算力请求信息为所述第一终端基于算力需求或算力任务发送的;或者The second sending unit is configured to send computing power information to the first terminal according to the computing power request information broadcast by the first terminal. The computing power request information is based on the computing power demand or computing power of the first terminal. Sent by task; or
    第三发送单元,用于向所述第一终端广播算力信息。The third sending unit is used to broadcast computing power information to the first terminal.
  18. 根据权利要求17所述的装置,其中,所述第二发送单元,用于: The device according to claim 17, wherein the second sending unit is used for:
    向所述第一终端发送算力响应,所述算力响应中携带所述算力信息;Send a computing power response to the first terminal, where the computing power response carries the computing power information;
    其中,所述算力响应中还包括:能够提供的算力服务信息和/或所述第二终端的标识信息。Wherein, the computing power response also includes: computing power service information that can be provided and/or identification information of the second terminal.
  19. 根据权利要求16-18任一项所述的装置,其中,所述算力信息包括以下至少一项:The device according to any one of claims 16-18, wherein the computing power information includes at least one of the following:
    中央处理器CPU核数、图形处理器GPU核数、算法信息、单位时间计算量、计算时间、计算类型、峰值计算量。The number of CPU cores of the central processing unit, the number of GPU cores of the graphics processor, algorithm information, calculation amount per unit time, calculation time, calculation type, and peak calculation amount.
  20. 根据权利要求16所述的装置,其中,还包括:The device of claim 16, further comprising:
    接收模块,用于接收所述第一终端发送的执行算力需求或算力任务所需的目标数据;A receiving module, configured to receive target data sent by the first terminal to perform computing power requirements or computing power tasks;
    确定模块,用于对所述目标数据进行计算,确定计算结果;A determination module, used to calculate the target data and determine the calculation results;
    发送模块,用于将所述计算结果发送给所述第一终端。A sending module, configured to send the calculation result to the first terminal.
  21. 一种终端,所述终端为第一终端或第二终端,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至10任一项所述的算力服务方法的步骤。A terminal, which is a first terminal or a second terminal, includes a processor and a memory. The memory stores programs or instructions that can be run on the processor. The program or instructions are executed by the processor. When implementing the steps of the computing power service method described in any one of claims 1 to 10.
  22. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至10任一项所述的算力服务方法的步骤。 A readable storage medium on which programs or instructions are stored. When the programs or instructions are executed by a processor, the steps of the computing power service method according to any one of claims 1 to 10 are implemented.
PCT/CN2023/101313 2022-06-21 2023-06-20 Computing power service method and apparatus, and terminal WO2023246757A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210709361.8A CN117319388A (en) 2022-06-21 2022-06-21 Force calculation service method, device and terminal
CN202210709361.8 2022-06-21

Publications (1)

Publication Number Publication Date
WO2023246757A1 true WO2023246757A1 (en) 2023-12-28

Family

ID=89279945

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/101313 WO2023246757A1 (en) 2022-06-21 2023-06-20 Computing power service method and apparatus, and terminal

Country Status (2)

Country Link
CN (1) CN117319388A (en)
WO (1) WO2023246757A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117611425A (en) * 2024-01-17 2024-02-27 之江实验室 Method, apparatus, computer device and storage medium for configuring computing power of graphic processor

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021093501A1 (en) * 2019-11-13 2021-05-20 ***通信有限公司研究院 Task processing method and network device
CN113391824A (en) * 2021-06-29 2021-09-14 中国农业银行股份有限公司 Computing offload method, electronic device, storage medium, and computer program product
CN113938442A (en) * 2020-07-10 2022-01-14 ***通信有限公司研究院 Configuration method, device and equipment of reserved resources and storage medium
CN114021162A (en) * 2021-10-26 2022-02-08 中国联合网络通信集团有限公司 Computing power sharing method, device, system, electronic equipment and storage medium
CN114296924A (en) * 2021-12-29 2022-04-08 中国联合网络通信集团有限公司 Edge calculation force sharing method, server and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021093501A1 (en) * 2019-11-13 2021-05-20 ***通信有限公司研究院 Task processing method and network device
CN113938442A (en) * 2020-07-10 2022-01-14 ***通信有限公司研究院 Configuration method, device and equipment of reserved resources and storage medium
CN113391824A (en) * 2021-06-29 2021-09-14 中国农业银行股份有限公司 Computing offload method, electronic device, storage medium, and computer program product
CN114021162A (en) * 2021-10-26 2022-02-08 中国联合网络通信集团有限公司 Computing power sharing method, device, system, electronic equipment and storage medium
CN114296924A (en) * 2021-12-29 2022-04-08 中国联合网络通信集团有限公司 Edge calculation force sharing method, server and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117611425A (en) * 2024-01-17 2024-02-27 之江实验室 Method, apparatus, computer device and storage medium for configuring computing power of graphic processor

Also Published As

Publication number Publication date
CN117319388A (en) 2023-12-29

Similar Documents

Publication Publication Date Title
US11611863B2 (en) Method and apparatus for low energy discovery
US11404023B2 (en) Frame rate adjustment method and terminal
US20230071561A1 (en) Wireless communication method and apparatus, device, storage medium, and computer program product
WO2023246757A1 (en) Computing power service method and apparatus, and terminal
EP4195870B1 (en) Data transmission method and terminal
WO2023020432A1 (en) Computing power request method, computing power allocation method, computing power execution method, and terminal and network-side device
US20220382599A1 (en) Method and apparatus for processing resource, electronic device and storage medium
WO2023246756A1 (en) Computing power service method and apparatus, terminal, and core network device
CN113891441A (en) Network connection method and device and electronic equipment
WO2023143442A1 (en) Path preference determination method, terminal and network side device
WO2024007953A1 (en) Processing method and device, and readable storage medium
WO2024007950A1 (en) Sl positioning method, device and readable storage medium
WO2023179596A1 (en) Method and apparatus for discovering and selecting auxiliary terminal, communication device, and readable storage medium
WO2023143421A1 (en) Relay switching processing method and apparatus, remote terminal, relay terminal, and network side device
WO2023179649A1 (en) Input processing method for artificial intelligence model, apparatus and device
WO2023179651A1 (en) Beam processing method and apparatus and device
WO2023198125A1 (en) Sidelink discovery transmission processing method and apparatus, and terminal
WO2024061111A1 (en) Resource processing method and apparatus, and communication device
WO2024007907A1 (en) Message transceiving method and device
WO2024022439A1 (en) Processing method, and device and readable storage medium
WO2023143383A1 (en) Discovery method and apparatus for near-field communication, ue, and medium
WO2023185820A1 (en) Event-based device operation method and apparatus, communication device, network side device, storage medium, and system
WO2024022397A1 (en) Network selection method and terminal
WO2023179653A1 (en) Beam processing method and apparatus, and device
US20240031906A1 (en) Method and apparatus for determining communication mode, and related device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23826404

Country of ref document: EP

Kind code of ref document: A1