A GPU device task execution method, device, device and storage medium
The GPU device task execution method of the CXL protocol solves the storage access delay problem between cloud servers and GPU devices, achieves low-latency memory access and improved flexibility, reduces GPU board costs, and is suitable for high-performance AI computing needs.
Patent Information
- Application Number
- CN202411154881.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-08-22
AI Technical Summary
Current cloud servers and GPU devices have relatively large storage access delays, and GPU boards need to be customized with different memory capacities based on task requirements, resulting in poor flexibility and difficulty meeting the needs of high-performance AI computing.
The GPU device task execution method based on the CXL protocol is used to obtain the host-side tasks through the CXL switch and send resource control instructions to the RISC-V controller, allocate computing cores and access the host-side memory, realize parallel task computing, reduce storage access latency and improve flexibility.
Through the runtime scheduling of the CXL protocol, low-latency access to memory resources on the host side and the device side is achieved, which improves the flexibility and performance of the GPU device and reduces the cost of the GPU board.
Smart Images

Figure CN118672789B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of GPU system architecture, and in particular to a GPU device task execution method, apparatus, device and storage medium. Background Art
[0002] With the rapid development of artificial intelligence (AI) in recent years, graphics processing units (GPUs) have become as important as central processing units (CPUs). The demand for high-performance GPUs is growing rapidly, driven by the training of large language models for generative AI and autonomous driving, as well as real-time reasoning applications such as intelligent search and human recognition.
[0003] Cloud device applications are a mainstream approach to AI computing. By deploying a large number of boards and cards on cloud servers, over-issuance and multi-user time-sharing multiplexing are employed to meet user training and real-time inference needs. The cloud server host and GPU device are interconnected via a bus. Parameters are pre-sent to the GPU device based on the AI computing model, and computing tasks are sent to the GPU device in real time. When the total number of parameters is too large, multiple iterations are used to transfer parameters and computing tasks. Current storage access protocols, such as PCIe (peripheral component interconnect express, a high-speed serial computer expansion bus standard) or DMA (Direct Memory Access), have high latency, and the device side requires customizing boards and cards with different memory capacities based on task requirements, resulting in limited flexibility. Therefore, reducing storage access latency between cloud server hosts and GPU devices is a challenge facing those skilled in the art. Summary of the Invention
[0004] In view of this, the purpose of the present invention is to provide a GPU device task execution method, apparatus, device and storage medium that can achieve low-latency access to host and device memory resources. The specific solution is as follows:
[0005] In a first aspect, the present application discloses a method for executing GPU device tasks based on the CXL protocol, which is applied to a GPU device, including:
[0006] Obtain the target execution task issued by the host through the CXL switch, and send the resource control instruction corresponding to the target execution task to the RISC-V controller based on the CXL controller;
[0007] Parsing the resource control instruction through the RISC-V controller to assign a corresponding target computing core to the target execution task according to the parsing result, and starting the target computing core to execute the task;
[0008] Controlling the CXL controller to access the memory address of the host side through the target computing core to obtain data information corresponding to the target execution task;
[0009] A parallel task computing operation is performed on the target execution task through the target computing core and the data information to obtain a task execution result, and the task execution result is sent to the host end.
[0010] Optionally, the target execution task is an execution task determined by allocating the total execution tasks issued by the upper-layer AI application based on the memory resources, the available computing resources, and the task flow after the host side obtains the memory resources and available computing resources of the GPU device side through the CXL switch.
[0011] Optionally, the host side obtains the memory resources and available computing resources of the GPU device side through the CXL switch, including:
[0012] The host side obtains the memory resources of the GPU device side through a storage status query function;
[0013] The host side uses a task query function to obtain the status register of the RISC-V controller inside the GPU to determine the available computing resources of the GPU device side.
[0014] Optionally, parsing the resource control instruction by the RISC-V controller to assign a corresponding target computing core to the target execution task according to the parsing result includes:
[0015] Parsing the resource control instruction by the RISC-V controller to determine the number of computing cores;
[0016] The RISC-V controller reads the task instruction segment of the target execution task from the local storage or L2 cache, and allocates the target execution task and the corresponding data scheduling address to the corresponding target computing core based on the task instruction segment.
[0017] Optionally, before controlling the CXL controller to access the memory address of the host side by the target computing core to obtain data information corresponding to the target execution task, the method further includes:
[0018] The RISC-V controller issues data access permissions to the target computing core, so that the target computing core controls the CXL controller to access the host-side memory based on the data access permissions.
[0019] Optionally, after parsing the resource control instruction by the RISC-V controller to assign a corresponding target computing core to the target execution task according to the parsing result, and starting the target computing core to execute the task, the method further includes:
[0020] The target computing core is used to directly obtain data information corresponding to the target execution task from local storage or L2 cache through the CrossBar bus.
[0021] Optionally, after performing a parallel task computing operation on the target execution task using the target computing core and the data information to obtain a task execution result, the method further includes:
[0022] Based on the resource control instruction, the task execution result is sent to the target GPU device in other GPU devices, so that the target GPU device performs parallel task computing operations based on the data in the task execution result, and then jumps to the step of controlling the CXL controller through the target computing core to access the memory address of the host side to obtain data information corresponding to the target execution task.
[0023] In a second aspect, the present application discloses a GPU device task execution device based on the CXL protocol, which is applied to a GPU device side, including:
[0024] An instruction sending module is used to obtain the target execution task issued by the host through the CXL switch, and send the resource control instruction corresponding to the target execution task to the RISC-V controller based on the CXL controller;
[0025] A task allocation module is used to parse the resource control instruction through the RISC-V controller to allocate a corresponding target computing core to the target execution task according to the parsing result, and start the target computing core to execute the task;
[0026] a data information reading module, configured to control the CXL controller to access the memory address of the host side through the target computing core to obtain data information corresponding to the target execution task;
[0027] The task execution module is used to perform parallel task computing operations on the target execution task through the target computing core and the data information to obtain a task execution result, and send the task execution result to the host end.
[0028] In a third aspect, the present application discloses an electronic device, comprising:
[0029] Memory, used to store computer programs;
[0030] The processor is configured to execute the computer program to implement the aforementioned CXL protocol-based GPU device task execution method.
[0031] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the aforementioned CXL protocol-based GPU device task execution method.
[0032] As can be seen, in this embodiment, the target execution task issued by the host side is obtained through the CXL switch, and the resource control instruction corresponding to the target execution task is sent to the RISC-V controller based on the CXL controller; the resource control instruction is parsed by the RISC-V controller to assign the corresponding target computing core to the target execution task based on the parsing result, and the target computing core is started to execute the task; the target computing core controls the CXL controller to access the memory address of the host side to obtain the data information corresponding to the target execution task; the target computing core and the data information are used to perform parallel task calculation operations on the target execution task to obtain the task execution result, and the task execution result is sent to the host side. In this way, by integrating the runtime scheduling of the CXL controller of the CXL protocol, low-latency access to memory resources on the host side and the device side is achieved, effectively solving the problem of insufficient memory resources on the GPU device side, improving the flexibility of the GPU device, and reducing the cost of the GPU board. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0034] Figure 1 This is a flowchart of a GPU device task execution method based on the CXL protocol disclosed in this application;
[0035] Figure 2 A schematic diagram of a GPU device microarchitecture disclosed in this application;
[0036] Figure 3 This is a schematic diagram of a GPU interconnection method in a cloud server based on a CXL switch disclosed in this application;
[0037] Figure 4 This is a schematic diagram of the structure of a GPU device task execution device based on the CXL protocol disclosed in this application;
[0038] Figure 5 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0040] The cloud server host and the GPU device are interconnected via a bus, and parameters are pre-sent to the GPU device based on the AI computing model, and computing tasks are sent to the GPU device in real time. When the total number of parameters is too large, multiple iterations are used to transmit parameters and computing tasks. The current storage access latency using PCIe or DMA protocols is large, and the device side needs to customize boards with different memory capacities according to task requirements, which has poor flexibility. This application will specifically introduce a GPU device task execution method based on the CXL protocol.
[0041] See also Figure 1 As shown, the embodiment of the present application discloses a GPU device task execution method based on the CXL protocol, which is applied to the GPU device side, including:
[0042] Step S11: Obtain the target execution task issued by the host side through the CXL switch, and send the resource control instruction corresponding to the target execution task to the RISC-V controller based on the CXL controller.
[0043] In this embodiment, it should be noted that the CXL (Compute Express Link) controller supports both Type-1 and Type-2 communication modes in the CXL protocol. Internally, through base address mapping, it allocates independent address segments for device-side DDR (Double Data Rate) memory chips, on-chip L2 cache (temporary storage between the CPU and memory), and on-chip RISC-V (Reduced Instruction Set Computer V) controllers, an open-source instruction set architecture based on reduced instruction set (RISC) principles. These segments are then mapped to a unified host address space, enabling flexible host-side parameter and task delivery to the GPU device. The target execution task is determined by allocating the total execution tasks issued by the upper-layer AI application based on the memory resources and available computing resources obtained by the host through the CXL switch, the available computing resources, and the task flow. Specifically, the host side obtains the memory resources and available computing resources of the GPU device side through the CXL switch, including: the host side obtains the memory resources of the GPU device side through the storage status query function; the host side uses the task query function to obtain the status register of the RISC-V controller inside the GPU to determine the available computing resources of the GPU device side. Figure 2 As shown, the runtime includes numerous communication control functions and task execution functions within the CXL controller. The device acquisition function drives the CXL switch to detect currently mounted valid GPU devices. The task query function retrieves the status registers of the GPU's internal RISC-V controller to determine the device's currently available computing resources. The storage status query function checks the host's cached storage status information for each device node and identifies the free address capacity of each device and host. The host breaks down the AI model's specific execution tasks, creating GPU-executable kernel functions. The runtime generates sequential and parallel task flows. Based on the generated and parallel execution order of the task flows, the host and device memory and device computing resources required for task execution are allocated. The CXL controller is configured in host-first mode, directly sending task parameters and data to the GPU device's memory using a unified address space. The CXL controller then directly sends control instruction segments to the RISC-V controller, which contains a small amount of internal cache resources to store GPU execution resource control instructions issued by the host.
[0044] Step S12: Parse the resource control instruction through the RISC-V controller to assign a corresponding target computing core to the target execution task according to the parsing result, and start the target computing core to execute the task.
[0045] In this embodiment, the RISC-V controller is used to parse the resource control instruction to allocate the corresponding target computing core to the target execution task according to the parsing result, including: parsing the resource control instruction to determine the number of computing cores by the RISC-V controller; reading the task instruction segment of the target execution task from local storage or L2 cache by the RISC-V controller, and allocating the target execution task and the corresponding data scheduling address to the corresponding target computing core based on the task instruction segment. The RISC-V controller parses the resource control instruction, allocates a specified number of computing cores to each kernel computing task according to the parsing result, and allocates the corresponding computing task to the specified computing core by reading and distributing the kernel task instruction segment from device-side storage or L2 cache.
[0046] Step S13: controlling the CXL controller to access the memory address of the host side through the target computing core to obtain data information corresponding to the target execution task.
[0047] In this embodiment, before the target compute core controls the CXL controller to access the host-side memory address to obtain data information corresponding to the target execution task, the process further includes: issuing data access permissions to the target compute core via the RISC-V controller, so that the target compute core controls the CXL controller's access to the host-side memory based on the data access permissions. Specifically, the RISC-V controller configures the CXL control to a device-first mode, supporting consistent access by the GPU device to both host-side and device-side memory, thereby initiating task execution by the compute core. Specifically, the compute core, based on the received task instruction segment, reads data and subsequent instruction segments from the L2 cache or device-side memory granules via the CrossBar bus (bus-based switches are generally classified into two categories: shared buses and shared memory buses), performs parallel task computation, and completes the kernel computation task issued by the host. When the compute core accesses data located in host-side memory, the device-side memory controller directly controls the CXL controller to access the host-side memory address to retrieve or write back the data to be executed. In addition, the host side can directly send the control instruction segment to the L2 cache. The RISC-V controller uses the L2 cache as an extension of the instruction segment cache to support the management of more GPU on-chip storage and computing resources and task scheduling flows.
[0048] Step S14: performing a parallel task computing operation on the target execution task through the target computing core and the data information to obtain a task execution result, and sending the task execution result to the host end.
[0049] In this embodiment, a parallel task computation operation is performed on the target execution task using the target computing core and the data information to obtain a task execution result, which is then sent to the host. That is, after the task computation is completed, the RISC-V controller reclaims the execution authority of the computing core, switches the CXL controller back to host-side priority mode, and feeds the execution result back to the host. Specifically, when the CXL control configuration switches between device-side priority and host-side priority control modes, it simultaneously reports to the host to ensure that the host does not access host-side memory pre-allocated for the device during task execution.
[0050] In this embodiment, after performing parallel task computing operations on the target execution task through the target computing core and the data information to obtain a task execution result, the method further includes: sending the task execution result to a target GPU device in other GPU devices based on a resource control instruction, so that the target GPU device performs parallel task computing operations based on the data in the task execution result, and then jumps to the step of controlling the CXL controller to access the memory address of the host side through the target computing core to obtain the data information corresponding to the target execution task. Figure 3 As shown, the GPU devices transmit data point-to-point through the CXL switch. The host side breaks down the large execution task into different pipeline execution tasks, deploys them in different GPU devices, and sends the data sequentially to GPU device-1. After the task execution is completed, the result data is sent to GPU device-2 for subsequent task execution. At the same time, GPU device-1 does not update the computing task, receives new data, and continues to execute. In this way, parallel and pipeline hybrid computing of data is achieved. It should be noted that in this embodiment, the GPU device uses memory resources for ping-pong caching. When the execution result is transmitted to the next-level GPU device, the data is read from another cache block and executed.
[0051] As can be seen, in this embodiment, the target execution task issued by the host side is obtained through the CXL switch, and the resource control instruction corresponding to the target execution task is sent to the RISC-V controller based on the CXL controller; the resource control instruction is parsed by the RISC-V controller to allocate the corresponding target computing core to the target execution task according to the parsing result, and the target computing core is started to execute the task; the target computing core controls the CXL controller to access the memory address of the host side to obtain the data information corresponding to the target execution task; the target computing core and the data information are used to perform parallel task computing operations on the target execution task to obtain the task execution result, and the task execution result is sent to the host side. In this way, through the CXL controller, the host side memory and the GPU device side memory are mapped to the same memory, which improves the host's ability to manage device side storage and provides a flexible storage method for upper-level AI applications; through CXL control, the host side memory is mapped as an extension of the device side memory, solving the problem of insufficient device side memory capacity; the CXL switch provides GPU interconnection without a master-slave relationship, reducing the communication delay between different GPUs and improving data interaction efficiency. By integrating the runtime scheduling of the CXL controller with the CXL protocol, low-latency access to memory resources on both the host and device sides is achieved, effectively solving the problem of insufficient memory resources on the GPU device side, improving the flexibility of the GPU device, and reducing the cost of the GPU board.
[0052] refer to Figure 4 The embodiment of the present application further discloses a GPU device task execution device based on the CXL protocol, which is applied to the GPU device side and includes:
[0053] The instruction sending module 11 is used to obtain the target execution task issued by the host through the CXL switch, and send the resource control instruction corresponding to the target execution task to the RISC-V controller based on the CXL controller;
[0054] A task allocation module 12 is configured to parse the resource control instruction through the RISC-V controller to allocate a corresponding target computing core to the target execution task according to the parsing result, and start the target computing core to execute the task;
[0055] A data information reading module 13 is configured to control the CXL controller to access the memory address of the host side through the target computing core to obtain data information corresponding to the target execution task;
[0056] The task execution module 14 is configured to perform a parallel task computing operation on the target execution task through the target computing core and the data information to obtain a task execution result, and send the task execution result to the host end.
[0057] It can be seen that in this embodiment, by integrating the runtime scheduling of the CXL controller of the CXL protocol, low-latency access to memory resources on the host and device sides is achieved, which effectively solves the problem of insufficient memory resources on the GPU device side, improves the flexibility of the GPU device, and reduces the cost of the GPU board.
[0058] In some specific embodiments, the task allocation module 12 may specifically include:
[0059] a computing core quantity determination unit, configured to parse the resource control instruction through the RISC-V controller to determine the number of computing cores;
[0060] A computing core allocation unit is used to read the task instruction segment of the target execution task from the local storage or L2 cache through the RISC-V controller, and allocate the target execution task and the corresponding data scheduling address to the corresponding target computing core based on the task instruction segment.
[0061] In some specific embodiments, the GPU device task execution apparatus may further include:
[0062] The permission issuing module is used to issue data access permissions to the target computing core through the RISC-V controller, so that the target computing core controls the CXL controller to access the host-side memory based on the data access permissions.
[0063] In some specific embodiments, the GPU device task execution apparatus may further include:
[0064] The data reading module is used to use the target computing core to directly obtain the data information corresponding to the target execution task from the local storage or L2 cache through the CrossBar bus.
[0065] In some specific embodiments, the GPU device task execution apparatus may further include:
[0066] The task parallel execution module is used to send the task execution result to a target GPU device among other GPU devices based on the resource control instruction, so that the target GPU device performs parallel task computing operations based on the data in the task execution result, and then jumps to the step of controlling the CXL controller to access the memory address of the host side through the target computing core to obtain data information corresponding to the target execution task.
[0067] Furthermore, the embodiment of the present application also discloses an electronic device, Figure 5 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram should not be considered as any limitation to the scope of application of the present application.
[0068] Figure 5 This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps of the CXL protocol-based GPU device task execution method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0069] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device. The communication protocol it follows is any communication protocol that can be applied to the technical solution of this application and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world. Its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0070] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or CD, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0071] The operating system 221 is used to manage and control the hardware devices on the electronic device 20 and the computer program 222. The operating system 221 can be Windows Server, NetWare, Unix, Linux, etc. In addition to including computer programs capable of implementing the CXL protocol-based GPU device task execution method disclosed in any of the aforementioned embodiments and executed by the electronic device 20, the computer program 222 can further include computer programs capable of performing other specific tasks.
[0072] Furthermore, this application discloses a computer-readable storage medium for storing a computer program. When executed by a processor, the computer program implements the aforementioned method for executing GPU device tasks based on the CXL protocol. The specific steps of this method can be found in the corresponding content disclosed in the aforementioned embodiments and will not be further elaborated here.
[0073] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from the other embodiments. Reference can be made to the descriptions of the identical or similar parts between the various embodiments. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and the relevant parts can be referred to the descriptions of the methods.
[0074] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0075] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0076] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.
[0077] The above is a detailed introduction to the technical solution provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the ideas of the present application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A GPU device task execution method based on the CXL protocol, It is characterized in that Applied to GPU devices, including: The target execution task issued by the host end is obtained through the CXL switch, and the resource control instruction corresponding to the target execution task is sent to the RISC-V controller based on the CXL controller; wherein the target execution task is an execution task determined by allocating the total execution task issued by the upper-layer AI application based on the memory resources, the available computing resources and the task flow after the host end obtains the memory resources and the available computing resources of the GPU device end through the CXL switch; the host end obtains the memory resources and the available computing resources of the GPU device end through the CXL switch, including: the host end obtains the memory resources of the GPU device end through the storage status query function; the host end uses the task query function to obtain the status register of the RISC-V controller inside the GPU to determine the available computing resources of the GPU device end; Parsing the resource control instruction through the RISC-V controller to assign a corresponding target computing core to the target execution task according to the parsing result, and starting the target computing core to execute the task; Controlling the CXL controller to access the memory address of the host through the target computing core to obtain data information corresponding to the target execution task; A parallel task computing operation is performed on the target execution task through the target computing core and the data information to obtain a task execution result, and the task execution result is sent to the host end.
2. The GPU device task execution method according to claim 1, It is characterized in that The step of parsing the resource control instruction by the RISC-V controller to assign a corresponding target computing core to the target execution task according to the parsing result includes: Parsing the resource control instruction by the RISC-V controller to determine the number of computing cores; The RISC-V controller reads the task instruction segment of the target execution task from the local storage or L2 cache, and allocates the target execution task and the corresponding data scheduling address to the corresponding target computing core based on the task instruction segment.
3. The GPU device task execution method according to claim 1, It is characterized in that Before controlling the CXL controller to access the memory address of the host end to obtain the data information corresponding to the target execution task through the target computing core, the method further includes: The RISC-V controller issues data access permissions to the target computing core, so that the target computing core controls the CXL controller to access the host-side memory based on the data access permissions.
4. The GPU device task execution method according to claim 1, It is characterized in that After the resource control instruction is parsed by the RISC-V controller to allocate a corresponding target computing core to the target execution task according to the parsing result, and the target computing core is started to execute the task, the method further includes: The target computing core is used to directly obtain data information corresponding to the target execution task from local storage or L2 cache through the CrossBar bus.
5. The GPU device task execution method according to any one of claims 1 to 4, It is characterized in that After performing a parallel task computing operation on the target execution task through the target computing core and the data information to obtain a task execution result, the method further includes: Based on the resource control instruction, the task execution result is sent to the target GPU device in other GPU devices, so that the target GPU device performs parallel task computing operations based on the data in the task execution result, and then jumps to the step of controlling the CXL controller to access the memory address of the host side through the target computing core to obtain the data information corresponding to the target execution task.
6. A GPU device task execution device based on CXL protocol, It is characterized in that Applied to GPU devices, including: An instruction sending module is used to obtain the target execution task issued by the host end through the CXL switch, and send the resource control instruction corresponding to the target execution task to the RISC-V controller based on the CXL controller; wherein the target execution task is an execution task determined by allocating the total execution task issued by the upper-layer AI application based on the memory resources, the available computing resources and the task flow after the host end obtains the memory resources and available computing resources of the GPU device end through the CXL switch; the host end obtains the memory resources and available computing resources of the GPU device end through the CXL switch, including: the host end obtains the memory resources of the GPU device end through the storage status query function; the host end uses the task query function to obtain the status register of the RISC-V controller inside the GPU to determine the available computing resources of the GPU device end; A task allocation module, used to parse the resource control instruction through the RISC-V controller to allocate a corresponding target computing core to the target execution task according to the parsing result, and start the target computing core to execute the task; A data information reading module, used to control the CXL controller to access the memory address of the host end through the target computing core to obtain data information corresponding to the target execution task; The task execution module is used to perform parallel task computing operations on the target execution task through the target computing core and the data information to obtain a task execution result, and send the task execution result to the host end.
7. An electronic device, It is characterized in that include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the GPU device task execution method based on the CXL protocol as described in any one of claims 1 to 5.
8. A computer-readable storage medium, It is characterized in that Used to store a computer program, which, when executed by a processor, implements the GPU device task execution method based on the CXL protocol as described in any one of claims 1 to 5.
