GPU equipment task execution method and device, equipment and storage medium
Through the combination of CXL protocol and RISC-V controller, low-latency memory resource access between cloud servers and GPU devices is achieved, solving storage access latency and flexibility issues, improving AI computing performance and reducing costs.
Patent Information
- Application Number
- CN202411154881.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-08-22
AI Technical Summary
Current cloud servers and GPU devices have large storage access delays, and GPU boards need to be customized with different memory capacities according to task requirements, resulting in poor flexibility and difficulty in meeting the needs of high-performance AI computing.
Using the GPU device task execution method based on the CXL protocol, the host-side tasks are obtained through the CXL switch, and the resource control instructions are parsed through the RISC-V controller to allocate computing cores. The CXL controller is used to access the host-side memory for parallel task calculations, and the host-side implementation is implemented. Low-latency access to device-side memory resources.
It reduces the storage access delay of the GPU device, improves the flexibility of the GPU device and the performance of AI computing, and reduces the cost of the GPU board.
Smart Images

Figure CN118672789A
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, device, equipment and storage medium. Background Art
[0002] In recent years, with the rapid development of artificial intelligence (AI), GPU (graphics processing unit) has become as important as CPU (Central Processing Unit). The training of large language models such as generative artificial intelligence and autonomous driving, as well as real-time reasoning applications such as intelligent retrieval and human recognition detection, have increased the demand for high-performance GPU devices.
[0003] Cloud device application is a mainstream application mode of AI computing application. By deploying a large number of boards on cloud servers, the training and real-time reasoning needs of users are met by using the methods of over-issuance and multi-user time-sharing multiplexing. The cloud server host and the GPU device are interconnected through a bus, and the parameters are pre-sent to the GPU device according to the AI computing model, and the 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 delay using PCIe (peripheral component interconnect express, a high-speed serial computer expansion bus standard) or DMA protocol (Direct Memory Access, i.e. direct memory access) is large, and the device side needs to customize boards with different memory capacities according to the requirements of the task, which has poor flexibility. Therefore, how to reduce the storage access delay between the cloud server host and the GPU device is a problem that technicians in this field need to solve. 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, which can achieve low-latency access to host and device memory resources. The specific scheme is as follows:
[0005] In a first aspect, the present application discloses a GPU device task execution method based on the CXL protocol, which is applied to a GPU device side, 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 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 the 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 end 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 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:
[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 by 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 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.
[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 end, 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, 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, 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;
[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 used to execute the computer program to implement the aforementioned GPU device task execution method based on the CXL protocol.
[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] It can be seen that 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 CXL controller is controlled by the target computing core 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 the memory resources of the host side and the device side 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. 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 drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0034] Figure 1 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 micro-architecture disclosed in this application;
[0036] Figure 3 A schematic diagram of a GPU interconnection method in a cloud server based on a CXL switch disclosed in the present 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 the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0040] The cloud server host and the GPU device are interconnected via a bus, and the parameters are pre-sent to the GPU device according to the AI computing model, and the 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 the parameters and computing tasks. The current storage access latency using the PCIe or DMA protocol 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 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 the TYPE-1 and TYPE-2 communication modes in the CXL protocol, and divides independent address segments for the device-side DDR (Double Data Rate, double-rate synchronous dynamic random access memory) storage particles, on-chip L2 cache (temporary storage between CPU and memory), and on-chip RISC-V (Ruduced Instruction Set Computer V, an open source instruction set architecture based on the principle of reduced instruction set RISC) controller through base address mapping, and maps them to the unified address space of the host side, so as to realize the flexible issuance of parameters and tasks of the GPU device by the host side. The target execution task is the execution task determined by the host side after obtaining the memory resources and available computing resources of the GPU device side through the CXL switch, and 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. 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 a storage status query function; 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. Figure 2 As shown, the runtime includes a large number of communication control functions and task execution functions of the CXL controller. Through the device acquisition function, the CXL switch is driven to detect the currently mounted valid GPU device; through the task query function, the status register of the RISC-V controller inside the GPU is obtained to detect the currently available computing resources of the device; the storage status query function is used to detect the storage status information of each device node cached on the host side, and to view the free address capacity of each device and host side. The host side disassembles the specific execution tasks of the AI model, creates a kernel function executable by the GPU, generates sequential and parallel execution task flows at runtime, and allocates the host and device memory resources and device computing resources required for task execution based on the generation order and parallel execution of the task flow. The CXL controller is configured to host priority mode, and the parameters and data information of the task are directly sent to the memory space of the GPU device in a unified address space; the control instruction segment is directly sent to the RISC-V controller through the CXL controller. The RISC-V controller contains a small amount of cache resources inside, which caches the GPU execution resource control instructions sent 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 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, including: parsing the resource control instruction by the RISC-V controller to determine the number of computing cores; reading the task instruction segment of the target execution task from the 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 the device-side storage or L2 cache, and the data scheduling address space of the specified computing task.
[0046] Step S13: 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.
[0047] In this embodiment, before 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, it also includes: issuing data access rights to the target computing core through the RISC-V controller, so that the target computing core controls the CXL controller to access the memory of the host side based on the data access rights. That is, the RISC-V controller configures the CXL control to a device-side priority mode, supports the GPU device to access the host-side and device-side memory consistently, and starts the task execution of the computing core. Specifically, the computing core reads data and subsequent instruction segments from the L2 cache or the device-side memory particles through the CrossBar bus (the bus-structure-based switch is generally divided into two categories: shared bus and shared memory bus) through the received task instruction segment, performs parallel task calculation, and completes the kernel computing task issued by the host side; when the computing core accesses data located in the host-side memory, the device-side memory controller directly controls the CXL controller to access the host-side memory address to obtain 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 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 sending the task execution result to the host end.
[0049] In this embodiment, 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. That is, after the task calculation is completed, the RISC-V controller reclaims the execution authority of the computing core, switches the CXL controller back to the host side priority mode, and feeds back the execution result to the host side. Specifically, when the CXL control configuration switches the control mode between the device side priority and the host side priority, it reports to the host side at the same time to ensure that the host side does not access the host side memory pre-allocated to the device during the 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 the task execution result, it also includes: sending the task execution result to the target GPU device in 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 end through the target computing core to obtain the data information corresponding to the target execution task. Figure 3 As shown, the GPU device performs point-to-point transmission of data 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 is executed, 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, and when the execution result is transmitted to the next-level GPU device, the data is read from another cache block and executed.
[0051] It can be seen that 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 CXL controller is controlled by the target computing core 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, 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, which solves the problem of insufficient device-side memory capacity; the CXL switch provides GPU interconnection without a master-slave relationship, reduces the communication delay between different GPUs, and improves data interaction efficiency. 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.
[0052] refer to Figure 4 The embodiment of the present application also discloses a GPU device task execution device based on the CXL protocol, which is applied to the GPU device side, including:
[0053] The instruction sending module 11 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;
[0054] A task allocation module 12 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;
[0055] A data information reading module 13, configured to control 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;
[0056] The task execution module 14 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.
[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 device 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 device 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 device may further include:
[0066] The task parallel execution module is used to send the task execution result to the target GPU device in 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 the data information corresponding to the target execution task.
[0067] Furthermore, 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 cannot be regarded as any limitation on the scope of use of the present application.
[0068] Figure 5 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 in the GPU device task execution method based on the CXL protocol 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 working 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, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present 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, and 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 storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, 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, which can be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program that can be used to complete the GPU device task execution method based on the CXL protocol executed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include computer programs that can be used to complete other specific tasks.
[0072] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned disclosed method for executing a task of a GPU device based on the CXL protocol is implemented. The specific steps of the method can be referred to the corresponding contents disclosed in the aforementioned embodiments, and will not be repeated here.
[0073] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[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 composition and steps of each example have been generally described in the above description according to function. 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 to be beyond the scope of this application.
[0075] The steps of the method or algorithm 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 a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, 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 article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0077] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article 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 general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method 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, characterized in that: Applied to GPU devices, including: 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; 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, characterized in that: 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 the available computing resources of the GPU device side through the CXL switch.
3. The GPU device task execution method according to claim 2, characterized in that: 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 a storage status query function; 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.
4. The GPU device task execution method according to claim 1, 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.
5. The GPU device task execution method according to claim 1, 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.
6. The GPU device task execution method according to claim 1, 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.
7. The GPU device task execution method according to any one of claims 1 to 6, 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.
8. A GPU device task execution device based on the CXL protocol, characterized in that: Applied to GPU devices, including: 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; 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.
9. An electronic device, 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 7.
10. A computer-readable storage medium, 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 7.
Citation Information
Patent Citations
Test system
CN118012007A
Integrated multi-mode CXL equipment link adaptation method and system based on FPGA
CN118093473A
Memory system and computing system including the same
US20230376427A1
Memory disaggregation method, computing system implementing the method
US20240012684A1
Cited By
Register resource management method and device for GPU and medium
CN119477664A
GPGPU (General Purpose Graphics Processing Unit) scheduling method, device, equipment and medium
CN119759593A
GPGPU computing task processing method and device, equipment and medium
CN119829300A
GPGPU Computing Task Processing Method, Apparatus, Device, and Medium
CN119829300B
Data processing method, data processing device, processing cluster and related products
CN121728059A
