System and method for distributing work between host and accelerator using shared memory

By introducing shared memory and high-bandwidth memory into the host accelerator system, the host and accelerator are tightly coupled, solving the problem of high latency in the host accelerator system and improving data processing efficiency.

CN118733245APending Publication Date: 2024-10-01SAMSUNG ELECTRONICS CO LTD

Patent Information

Application Number
CN202410354472.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-10-20
Filing Date
2024-03-27
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing host accelerator systems have latency issues in data processing, especially the high latency associated with work distribution and data processing between the host and accelerator.

Method used

Tight coupling is achieved between the host and the accelerator by using shared memory. The host generates work requests in the shared memory and the accelerator reads and executes operations from the shared memory. It utilizes high-bandwidth memory (HBM) to reduce latency and supports forward and Reverse uninstall request.

Benefits of technology

It effectively reduces work distribution and data processing delays within the host accelerator system and improves data processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733245A_ABST
    Figure CN118733245A_ABST
Patent Text Reader

Abstract

A method for data processing is provided that includes generating, by a host, a work request in a queue in a shared memory, reading, by an accelerator circuit, the work request from the queue in the shared memory, the shared memory being a physical memory common to the host and the accelerator circuit, and performing, by the accelerator circuit, an operation on the data in the shared memory based on the work request.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to and the benefit of U.S. Provisional Application Serial No. 63 / 455,542, filed on March 29, 2023, entitled “LOW-LATENCY COMPUTE KERNEL OFFLOAD AND DATA MOVEMENT IMPLEMENTATION FOR TIGHTLY COUPLED CPUS AND ACCELERATORS,” the entire contents of which are incorporated herein by reference. Technical Field

[0003] Aspects of some embodiments of the present disclosure relate to systems and methods for data processing (eg, data acceleration). Background Art

[0004] In the field of data processing, a system may include a host and one or more accelerators (e.g., accelerator circuits). The accelerator may include a graphics processing unit (GPU). The accelerator may be connected to (e.g., communicatively coupled to) the host. The accelerator may be configured to process data for an application running on the host. Such computer data processing systems have become increasingly popular, in part to allow the computing resources of the system to be distributed between the host and the accelerator. As the amount of data processed by users of such systems and the number and complexity of applications running on such systems increase, the data processing workload increases over time.

[0005] The above information disclosed in this Background section is for enhancement of understanding of the background of the present disclosure and therefore it may contain information that does not constitute the prior art. Summary of the invention

[0006] One or more embodiments of the present disclosure relate to computing systems and may provide improvements to data processing (eg, data acceleration).

[0007] According to some embodiments of the present disclosure, a method for data processing is provided, the method comprising generating, by a host, a work request in a queue in a shared memory, reading, by an accelerator circuit, the work request from the queue in the shared memory, wherein the shared memory is a physical memory common to the host and the accelerator circuit, and performing, by the accelerator circuit, an operation on data in the shared memory based on the work request.

[0008] The delay associated with processing data in the shared memory by the host and by the accelerator circuit can be less than the total delay associated with processing the data by the host in a first location associated with the host and by the accelerator circuit in a second location associated with the accelerator circuit.

[0009] The work request may include a pointer indicating a location in the shared memory of a function associated with the operation, and the accelerator circuit may execute the function to process the work request.

[0010] The work request may include a pointer indicating the location of the data in the shared memory, and the accelerator circuit may execute the function on the data to process the work request.

[0011] A work request may include a compute kernel.

[0012] The shared memory may include cacheable memory including high bandwidth memory (HBM).

[0013] The accelerator circuit may be a first accelerator circuit among two or more accelerator circuits that process work requests generated by a host, and the method may also include processing, by the host, work request result data from the first accelerator circuit, and processing, by the host, work request result data from a second accelerator circuit among the two or more accelerator circuits.

[0014] The method may also include generating, by the accelerator circuitry, a completion notification in the shared memory.

[0015] The method may also include processing, by the host, a reverse offload request from the accelerator circuit based on the work request being associated with at least one of a branch code, a system call, an exception, or a network message.

[0016] According to some other embodiments of the present disclosure, a system for data processing is provided, including a host, an accelerator circuit, and a shared memory communicatively coupled to the host and the accelerator circuit, wherein the host is configured to generate a work request in a queue in the shared memory, the accelerator circuit is configured to read the work request from the queue in the shared memory, the shared memory is a physical memory common to the host and the accelerator circuit, and the accelerator circuit is configured to perform operations on data in the shared memory based on the work request.

[0017] The work request may include a pointer indicating a location in the shared memory of a function associated with the operation, and the accelerator circuit may execute the function to process the work request.

[0018] The work request may include a pointer indicating the location of the data in the shared memory, and the accelerator circuit may execute the function on the data to process the work request.

[0019] A work request may include a compute kernel.

[0020] The shared memory may include cacheable memory including high bandwidth memory (HBM).

[0021] The accelerator circuit may be a first accelerator circuit among two or more accelerator circuits that process work requests generated by the host, and the host may be configured to process work request result data from the first accelerator circuit and process work request result data from a second accelerator circuit among the two or more accelerator circuits.

[0022] The accelerator circuit may be configured to generate a completion notification in the shared memory.

[0023] The host may be configured to process the reverse offload request from the accelerator circuit based on the work request being associated with at least one of a branch code, a system call, an exception, or a network message.

[0024] According to some other embodiments of the present disclosure, a device for data processing is provided, which includes a processing circuit and a memory storing instructions, which instructions, when executed by the processing circuit, cause the processing circuit to execute: reading a work request generated by a host from a queue in a shared memory, which is a physical memory common to the host and the processing circuit, and performing operations on data in the shared memory based on the work request.

[0025] The work request may include a pointer indicating a location in the shared memory of a function associated with the operation, and the processing circuitry may execute the function to process the work request.

[0026] The work request may include a pointer indicating the location of the data in the shared memory, and the processing circuitry may execute the function on the data to process the work request. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The above and other aspects and features of the present disclosure will be more clearly understood from the following detailed description of illustrative, non-limiting embodiments with reference to the accompanying drawings.

[0028] Figure 1 is a system diagram depicting a system for data processing according to some embodiments of the present disclosure.

[0029] Figure 2 is a flow chart depicting example operations of a method for data processing according to some embodiments of the present disclosure. DETAILED DESCRIPTION

[0030] By referring to the detailed description of one or more embodiments and the accompanying drawings, it is easier to understand the various aspects of the present disclosure and its implementation method. Hereinafter, the embodiments will be described in more detail with reference to the accompanying drawings. However, the described embodiments can be embodied in various different forms and should not be interpreted as being limited to the embodiments shown herein. On the contrary, these embodiments are provided as examples so that the present disclosure will be thorough and complete, and will fully convey the various aspects of the present disclosure to those skilled in the art. Therefore, the description of the processes, elements and technologies that are not necessary for a person of ordinary skill in the art to fully understand the various aspects and features of the present disclosure can be omitted.

[0031] Unless otherwise indicated, throughout the drawings and written description, the same reference numerals, symbols, or combinations thereof represent the same elements, and therefore, descriptions thereof will not be repeated. It will be understood by those skilled in the art that the elements in the drawings are shown for simplicity and clarity and are not necessarily drawn to scale. For example, the sizes of some elements, layers, and regions in the drawings may be enlarged relative to other elements, layers, and regions to help improve the clarity of the various embodiments and the understanding of the various embodiments. In addition, common but well-understood elements and components that are not related to the description of the embodiments may not be shown, so as to less obstruct the views of these various embodiments and make the description clear.

[0032] In the detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the various embodiments. However, it is apparent that the various embodiments can be practiced without these specific details or with one or more equivalent arrangements.

[0033] It should be understood that although the terms "zeroth", "first", "second", "third", etc. may be used herein to describe various elements, components, regions, layers and / or parts, these elements, components, regions, layers and / or parts should not be limited by these terms. These terms are used to distinguish one element, component, region, layer or part from another element, component, region, layer or part. Therefore, without departing from the spirit and scope of the present disclosure, the first element, component, region, layer or part described below may be referred to as a second element, component, region, layer or part.

[0034] It should be understood that when an element or component is referred to as being "on another element or component," "connected to another element or component," or "coupled to another element or component," it may be directly on another element or component, directly connected to or directly coupled to another element or component, or one or more intermediate elements or components may be present. However, "direct connection / direct coupling" refers to a component being directly connected or coupled to another component without intermediate components. At the same time, other expressions describing the relationship between components, such as "between," "immediately between," or "adjacent to," and "directly adjacent to," may be similarly interpreted. In addition, it should also be understood that when an element or component is referred to as being "between" two elements or components, it may be the only element or component between the two elements or components, or one or more intermediate elements or components may also be present.

[0035] The terms used herein are only used for the purpose of describing specific embodiments and are not intended to limit the present disclosure. As used herein, the singular forms "one" and "an" are intended to also include plural forms, unless the context clearly states otherwise. It will be further understood that when used in this specification, the terms "include", "have" and "include" specify the presence of the features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or their groups. As used herein, each of the terms "or" and "and / or" includes any and all combinations of one or more associated listed items. For example, the statement "A and / or B" means A, B or A and B.

[0036] For the purposes of this disclosure, expressions such as “at least one of…” when following a list of elements modify the entire list of elements and do not modify the individual elements of the list. For example, “at least one of X, Y, or Z,” “at least one of X, Y, and Z,” and “at least one selected from the group consisting of X, Y, and Z” may be interpreted as any combination of only X, only Y, only Z, or two or more of X, Y, and Z, such as XYZ, XYY, YZ, and ZZ.

[0037] As used herein, the terms "substantially," "about," "approximately," and similar terms are used as approximate terms rather than terms of degree, and are intended to take into account the inherent deviations of measured or calculated values ​​that one of ordinary skill in the art will recognize. As used herein, "about" or "approximately" includes the value and refers to an acceptable range of deviations of a particular value determined by one of ordinary skill in the art taking into account the measurement in question and the errors associated with the measurement of a particular quantity (i.e., the limitations of the measurement system). For example, "approximately" may mean within one or more standard deviations, or within ±30%, 20%, 10%, 5% of the value. In addition, when describing embodiments of the present disclosure, the use of "may" refers to "one or more embodiments of the present disclosure."

[0038] When one or more embodiments can be implemented differently, a specific processing order different from the described order can be performed. For example, two processes described in succession can be performed substantially simultaneously or in an order opposite to the described order.

[0039] Any component or any combination of components described (e.g., in any system diagram included herein) may be used to perform one or more operations of any flowchart included herein. In addition, (i) the operations are examples only and may involve various additional operations not explicitly covered, and (ii) the temporal order of the operations may be changed.

[0040] Any suitable hardware, firmware (e.g., an application specific integrated circuit), software, or a combination of software, firmware, and hardware may be used to implement the electronic or electrical devices and / or any other related devices or components according to the embodiments of the present disclosure described herein. For example, the various components of these devices may be formed on an integrated circuit (IC) chip or on separate IC chips. In addition, the various components of these devices may be implemented on a flexible printed circuit film, a tape carrier package (TCP), a printed circuit board (PCB), or formed on a substrate.

[0041] In addition, the various components of these devices can be processes or threads that run on one or more processors in one or more computing devices, execute computer program instructions, and interact with other system components for performing the various functions described herein. The computer program instructions are stored in a memory, which can be implemented in a computing device using a standard memory device (such as a random access memory (RAM)). The computer program instructions can also be stored in other non-temporary computer-readable media, such as, for example, a CD-ROM, a flash drive, etc. In addition, those skilled in the art should recognize that without departing from the spirit and scope of the embodiments of the present disclosure, the functions of various computing devices can be combined or integrated into a single computing device, or the functions of a particular computing device can be distributed on one or more other computing devices.

[0042] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those skilled in the art to which the inventive concept belongs. It will be further understood that, unless explicitly defined as such herein, terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and / or this specification, and should not be interpreted in an idealized or overly formal sense.

[0043] As described above, in the field of computing (e.g., high performance computing (HPC)), a system may include a host and one or more accelerators (e.g., one or more accelerator circuits) communicatively coupled to the host. Such a system may be referred to as a "host-accelerator complex" or a "host-accelerator system". The accelerator may be configured to process data of an application running on the host. For example, a central processing unit (CPU) of a host on which an application runs may distribute (e.g., unload) work to an accelerator. An accelerator may be able to perform some data processing operations more efficiently than a CPU. A CPU may be able to perform some data processing operations more efficiently than an accelerator. Some host-accelerator systems may have delays associated with work distribution and data processing between a host and an accelerator. Aspects of some embodiments of the present disclosure provide a host-accelerator system with reduced delay based on the use of a shared memory (e.g., a shared physical memory) common to a host and an accelerator.

[0044] Figure 1 is a system diagram depicting a system for data processing according to some embodiments of the present disclosure.

[0045] refer to Figure 1, the system 1 for data processing may include a host 100, a shared memory 300, and one or more accelerators 200 (e.g., one or more accelerator circuits). In some embodiments, the accelerator may include a GPU. The host 100 may include one or more CPUs and one or more applications 111 running on the computing resources of the host 100. The application 111 may include a first application 111a and an nth application 111n (where n is a positive integer). The application 111 may process a workload WL. For example, one or more workloads WL may include a matrix multiplication workload. The system 1 may offload work associated with the workload WL from the CPU of the host 100 to the accelerator 200. The accelerator 200 may include a first accelerator 200a and an nth accelerator 200n. The accelerator 200 may be dedicated to accelerating specific calculations for processing the workload WL. For example, the accelerator 200 may be dedicated to performing matrix multiplication operations on tiles (e.g., sub-matrices) of a larger matrix multiplication workload. For example, the first accelerator 200a may process the first block of the host 100, and the nth accelerator 200n may process the nth block of the host 100. The accelerator 200 may process the work of the host 100, and the host 100 may combine the results generated by the accelerator 200. In some embodiments, the accelerator 200 may be subordinate to the host 100 within the system 1. For example, the host 100 may generate a work request WR based on a large workload so that the accelerator 200 assists by processing smaller tasks associated with processing the large workload. In other words, the host 100 may have more control over the accelerator 200 than the accelerator has over the host 100.

[0046] The host 100 can execute relatively complex instructions more efficiently than the accelerator 200. On the other hand, the accelerator 200 can execute simple instructions more efficiently than the host 100. Therefore, the system 1 can allow forward offloading 10 and reverse offloading 20 to process a given workload WL more efficiently. As used herein, "forward offloading" refers to distributing work from the host 100 to one or more of the accelerators 200. As used herein, "reverse offloading" refers to distributing work from one or more of the accelerators 200 to the host 100. In some embodiments, some instructions or code segments associated with the work request WR can be reversely unloaded based on instructions or code segments including branch codes (e.g., code containing branches), system calls, exceptions, and / or network messages. As used herein, "branch code" refers to a code including two or more different instruction sequences (e.g., branches). As used herein, "system call" refers to a request from the accelerator 200 to the operating system of the system 1 to call a service provided by the operating system. As used herein, "abnormal" refers to an event that destroys the normal processing flow of an instruction. As used herein, a “network message” refers to data transmitted over a network associated with system 1 to convey information between a source component and a destination component.

[0047] The shared memory 300 may be a physical memory common to the host 100 and the accelerator 200. For example, both the CPU of the host 100 and the accelerator 200 may have load access and storage access to the shared memory 300. The CPU of the host 100 and the accelerator 200 may share the same virtual memory. Therefore, the virtual memory conversion between the CPU of the host 100 and the accelerator 200 of the system 1 may result in the same physical memory location in the shared memory 300. Therefore, in contrast to a system in which the host 100 is loosely coupled to the accelerator via a network connection (e.g., a peripheral component interconnect express (PCIe) bus), the CPU of the host 100 and the accelerator 200 of the present disclosure may be coupled (e.g., tightly coupled) via the shared memory 300. The shared memory 300 may include a cacheable memory. As used herein, a "cacheable memory" is a memory (e.g., a volatile memory) that can be used to store data to access faster than a non-volatile memory. In some embodiments, the shared memory 300 may include a high bandwidth memory (HBM). For example, shared memory 300 may include stacked memory dies for relatively high bandwidth in a relatively small form factor that consumes less power.

[0048] The host 100 may provide instructions to the accelerator 200 via the shared memory 300. The host 100 may provide instructions to the accelerator via the work request queue 310 in the shared memory 300. The work request queue 310 may include work requests WR (e.g., first work request WR1 and second work request WR2). Each work request WR may include one or more pointers P. The pointer P may indicate the location in the shared memory 300 where the related data D, the related function Fn and / or the related result 320 (e.g., work request result data) associated with the work request WR are stored. The related data D may include input parameters and / or other data for performing the work associated with the work request WR. The related function Fn may be associated with one or more operations associated with the work request WR. The work request WR may include inline data ILD for performing the work associated with the work request WR. The inline data ILD may include inline operands (e.g., media operands) for performing the work associated with the work request WR.

[0049] The accelerator 200 can read the work request from the work request queue 310 to perform the work distributed to the accelerator 200. The accelerator 200 can provide a completion notification CN based on completing a given work request WR and / or based on completing an operation associated with a given work request WR. The accelerator can store the result 320 of a given work request WR in the shared memory 300. In some embodiments, each accelerator 200 can have its own queue (e.g., its own memory mapping queue). For example, the shared memory 300 can include more than one work request queue 310, and each work request queue 310 can correspond to a corresponding accelerator 200. In some embodiments, each accelerator 200 can have its own shared queue partition. For example, the shared memory 300 can include one or more work request queues 310 that serve more than one accelerator 200 respectively.

[0050] In some embodiments, work request queue 310 can be a circular queue with fixed length slots. Each of work request WR can include a kernel (e.g., a computing kernel) for performing the work associated with work request WR. As used herein, "computing kernel" is an accelerator routine that includes input data used by the accelerator when generating output data. In some embodiments, host 100 can be a fifth generation reduced instruction set computer (RISC-V) host, and accelerator 200 can be a RISC-V device. RISC-V can allow instructions to be used more easily to distribute work between host 100 and accelerator 200.

[0051] In some embodiments, the system 1 can operate based on a work submission control protocol implemented in hardware, firmware, and host software. The host 100 and the accelerator 200 can use the work submission control protocol to submit computing kernels and receive completion notifications CN. In some embodiments, the host 100 can register the work request queue 310 with the accelerator 200 using a "register_queue" instruction. For example, the register_queue instruction may include a register_queue. <address>,in <address>is the virtual memory address of the work request queue 310. In some embodiments, the work submission instruction associated with each work request WR may include a descriptor that allows the CPU of the host 100 to specify to a given accelerator 200 which computing kernels are to be executed on the given accelerator 200. For example, a "submit" instruction associated with a given work request WR may have the format: submit <index> <size>,in <index>is the index of the new work associated with the given work request WR in the work request queue 310, and <size>Indicates how many slots in the work request queue 310 are associated with a given work request WR.

[0052] In some embodiments, the accelerator 200 may include device firmware that interprets the work request WR and implements the device portion of the associated protocol. In some embodiments, the host software may include a user mode driver and a kernel device driver running on the host 100. The user mode driver and the kernel device driver may implement the work submission protocol and provide instructions to submit work to the tightly coupled accelerator 200.

[0053] In some embodiments, the shared memory 300 can be used as a shared cache. For example, the system 1 can realize fast data processing by the large core (e.g., high-performance core) of the CPU of the host 100 and the small core (e.g., low-power core and / or low-complexity core) of the accelerator 200. For example, a synchronization structure (e.g., a synchronization register) or an active message can be used to directly write data for processing by the large core of the host 100 and the small core of the accelerator 200. In some embodiments, the small core of the accelerator 200 can act like a last-level cache for the large core of the host 100. Therefore, the system 1 can provide low-latency interaction between the host and the device. For example, compared with a loosely coupled host-accelerator system, the system 1 can perform computing kernel unloading and shared cache data processing between the host 100 and the accelerator 200 with reduced latency.

[0054] As an example, the system 1 may process a workload instruction as follows. The host 100 may register a work request queue 310 with the first accelerator 200a in the shared memory 300. The host 100 may initiate a forward unload by generating a first work request WR1 in the work request queue 310 based on the processing of the workload WL by the first application 111a. The first work request WR1 may include a pointer P identifying the location of the related data D and the related function Fn for executing the first work request WR1. The first accelerator 200a may read the first work request WR1 from the work request queue 310 in the shared memory 300. The first accelerator 200a may generate a first result (e.g., first work request result data) in the result 320 of the shared memory 300 using the related data D and the related function Fn. For example, the first accelerator 200a may perform an operation on the data D in the shared memory 300 based on the first work request WR1. The first accelerator 200a may generate a completion notification CN in the shared memory 300 to notify the host 100 that the first work request WR1 or the first operation associated with the first work request WR1 is completed. For example, if the first work request WR1 includes a branch code, the first accelerator 200a may generate a completion notification CN indicating that the first branch of the branch code is completed. The completion notification CN may be associated with a reverse offload instruction (e.g., a reverse offload request). The reverse offload instruction may cause the host 100 to execute a second branch of the branch code.

[0055] The host 100 may continue to process the workload WL using the correlation result 320 provided by the first accelerator 200a. For example, the host 100 may combine the correlation results (e.g., including the correlation results of the first work request result data) of the first accelerator 200a and the nth accelerator 200n to process the workload WL. For example, the host 100 may process the first work request result data from the first accelerator 200a, and may process the nth work request result data from the nth accelerator 200n to process the workload WL.

[0056] Figure 2 is a flow chart depicting example operations of a method for data processing according to some embodiments of the present disclosure.

[0057] refer to Figure 2 , the method 2000 may include the following example operations. The host 100 (see Figure 1 ) can generate a work request WR in a work request queue 310 in a shared memory 300 (operation 2001). The accelerator 200 can read the work request WR from the work request queue 310 in the shared memory 300 (operation 2002). The shared memory 300 can be a physical memory common to both the host 100 and the accelerator 200 (operation 2002). The accelerator 200 can perform an operation on the data in the shared memory 300 based on the work request WR (operation 2003). For example, the accelerator 200 can perform a matrix multiplication operation on a block (e.g., a sub-matrix) of a larger matrix multiplication workload (operation 2003). Because the data is processed in the shared memory 300, the system 1 can process the data with a lower latency than processing the data in a location that is not common to the host 100 and the accelerator 200 (e.g., the data is processed by the host 100 in a first location associated with the host 100, and the data is processed by the accelerator 200 in a second location associated with the accelerator 200).

[0058] Thus, aspects of some embodiments of the present disclosure may provide improvements to computing by reducing latency in distributing work and / or processing data within a host-accelerator system using shared common physical memory.

[0059] Example embodiments of the present disclosure may be extended to the following claims, but are not limited thereto:

[0060] Statement 1. An example method includes: generating, by a host, a work request in a queue in a shared memory, reading, by an accelerator circuit, the work request from the queue in the shared memory, the shared memory being physical memory common to the host and the accelerator circuit, and performing, by the accelerator circuit, an operation on data in the shared memory based on the work request.

[0061] Statement 2. An example method includes the method of statement 1, wherein a delay associated with processing the data in a shared memory by a host and by an accelerator circuit is less than a total delay associated with processing the data by the host in a first location associated with the host and by the accelerator circuit in a second location associated with the accelerator circuit.

[0062] Statement 3. An example method comprises a method as described in any of statements 1 and 2, wherein the work request includes a pointer indicating a location of a function in shared memory, the function is associated with the operation, and the accelerator circuit executes the function to process the work request.

[0063] Statement 4. Example method comprises the method of any of statements 1-3, wherein the work request includes a pointer indicating a location of the data in the shared memory, and the accelerator circuit executes the function on the data to process the work request.

[0064] Statement 5. Example method comprises the method of any of statements 1-4, wherein the work request comprises a compute kernel.

[0065] Statement 6. Example method comprises the method of any of statements 1-5, wherein the shared memory comprises cacheable memory, the cacheable memory comprising high bandwidth memory (HBM).

[0066] Statement 7. An example method includes a method as described in any of Statements 1-6, wherein the accelerator circuit is a first accelerator circuit of two or more accelerator circuits that process work requests generated by a host, and the method also includes processing work request result data from the first accelerator circuit by the host, and processing work request result data from a second accelerator circuit of the two or more accelerator circuits by the host.

[0067] Statement 8. Example method comprises the method of any of statements 1-7, further comprising: generating, by the accelerator circuitry, a completion notification in the shared memory.

[0068] Statement 9. An example method includes the method of any of statements 1-8, further comprising: processing, by the host, a reverse offload request from the accelerator circuit based on the work request being associated with at least one of a branch code, a system call, an exception, or a network message.

[0069] Statement 10. An example system for performing the method of any of statements 1-9 includes a host, an accelerator circuit, and a shared memory communicatively coupled to the host and the accelerator circuit.

[0070] Statement 11. An example apparatus comprises a processing circuit and a memory storing instructions that, when executed by the processing circuit, cause the processing circuit to perform a method as set forth in any one of statements 1-9.

[0071] While embodiments of the present disclosure have been particularly shown and described with reference to the embodiments described herein, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present disclosure as set forth in the appended claims and their equivalents.< / size> < / index> < / size> < / index> < / address> < / address>

Claims

1. A method for data processing, the method include: A work request is generated by the host in a queue in the shared memory; reading, by the accelerator circuit, a work request from a queue in a shared memory, the shared memory being a physical memory common to a host and the accelerator circuit; as well as Operations are performed on data in the shared memory by the accelerator circuit based on the work request.

2. The method according to claim 1, in, The delay associated with processing the data in the shared memory by the host and by the accelerator circuit is less than the total delay associated with processing the data by the host in a first location associated with the host and by the accelerator circuit in a second location associated with the accelerator circuit.

3. The method according to claim 1, in: The work request includes a pointer indicating a location in shared memory of a function associated with the operation, and The accelerator circuit executes the function to process the work request.

4. The method according to claim 3, in: The work request includes a pointer indicating the location of the data in the shared memory, and The accelerator circuit performs the function on the data to process a work request.

5. The method according to claim 1, in, The work request includes a compute kernel.

6. The method according to claim 1, in, The shared memory includes a cacheable memory including a high bandwidth memory (HBM).

7. The method according to claim 1, in, The accelerator circuit is a first accelerator circuit of two or more accelerator circuits that processes a work request generated by a host, and The method further comprises: processing, by the host, work request result data from the first accelerator circuit, and Work request result data from a second accelerator circuit of the two or more accelerator circuits is processed by the host.

8. The method according to claim 1, further comprising: include: A completion notification is generated by the accelerator circuit in the shared memory.

9. The method according to claim 1, further comprising: include: The reverse offload request from the accelerator circuit is processed by the host based on the work request being associated with at least one of a branch code, a system call, an exception, or a network message.

10. A system for data processing, include: Host; accelerator circuit; as well as A shared memory is communicatively coupled to a host and to the accelerator circuit, wherein: The host is configured to generate work requests in a queue in the shared memory; The accelerator circuit is configured to read work requests from a queue in a shared memory, the shared memory being physical memory common to the host and the accelerator circuit; and The accelerator circuit is configured to perform operations on data in the shared memory based on the work request.

11. The system according to claim 10, in: The work request includes a pointer indicating a location in shared memory of a function associated with the operation; and The accelerator circuit executes the function to process the work request.

12. The system according to claim 11, in: The work request includes a pointer indicating a location of the data in the shared memory; and The accelerator circuit performs the function on the data to process a work request.

13. The system according to claim 10, in, The work request includes a compute kernel.

14. The system according to claim 10, in, The shared memory includes a cacheable memory including a high bandwidth memory (HBM).

15. The system according to claim 10, in: The accelerator circuit is a first accelerator circuit of two or more accelerator circuits that processes a work request generated by a host; and The host is configured as: processing work request result data from the first accelerator circuit; as well as Work request result data from a second accelerator circuit of the two or more accelerator circuits is processed.

16. The system according to claim 10, in, The accelerator circuit is configured to generate a completion notification in the shared memory.

17. The system according to claim 10, in, The host is configured to process a reverse offload request from the accelerator circuit based on the work request being associated with at least one of a branch code, a system call, an exception, or a network message.

18. A device for data processing, include: Processing circuit; as well as A memory storing instructions that, when executed by the processing circuit, cause the processing circuit to perform: reading work requests generated by the host from a queue in a shared memory, the shared memory being physical memory common to the host and the processing circuitry; and Operations are performed on data in the shared memory based on the work requests.

19. The device according to claim 18, in: The work request includes a pointer indicating a location in shared memory of a function associated with the operation; and The processing circuit executes the function to process a work request.

20. The device according to claim 19, in: The work request includes a pointer indicating a location of the data in the shared memory; and The processing circuitry performs the function on the data to process a work request.

Citation Information

Patent Citations

  • Execution unit-shared hybrid technique for accelerated computing on graphics processors

    CN110326021A

  • Neural network processing system having multiple processors and a neural network accelerator

    CN111226230A

  • Architecture for offload of linked work assignments

    US20190317802A1

  • Gathering payload from arbitrary registers for send messages in a graphics environment

    US20230088743A1

Cited By

  • Data processing method and communication apparatus

    WO2026179083A1