A data transmission method, device, equipment, medium and computer program product

CN118467453BActive Publication Date: 2024-09-27LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410924982.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-09-27
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

The data transmission efficiency between computing units in the existing technology is low, resulting in communication delays and waste of computing resources. Especially in multi-computing unit systems, the direct memory access engine relies on central processor control, which increases communication delays and low computing unit utilization. .

Method used

By applying memory mapping input and output requests in the field programmable logic gate array, analyzing and querying the address table, calling the direct memory access module or remote direct memory access module for data transmission, it reduces the occupation of the internal cache of the computing unit and avoids the need for central processing units. Polling waits and directly responds to data transmission tasks.

Benefits of technology

It improves the efficiency of data transmission between computing units, reduces processing time, reduces the consumption of internal resources of the computing unit, and improves the overall computing speed and utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118467453B
    Figure CN118467453B
Patent Text Reader

Abstract

The present invention relates to the field of computer data transmission, and specifically discloses a data transmission method, device, equipment, medium and computer program product. A field programmable logic gate array is used to replace the computing thread of a computing unit to execute the data transmission task between computing units. A source address identifier, a destination address identifier and the length of data to be transmitted are obtained according to the memory mapping input and output request of the first computing unit, and the source address and the destination address are obtained according to the corresponding query of the locally stored address table. According to the source address, the destination address and the length of data to be transmitted, a memory access module is called to transmit the data to be transmitted from the source address to the destination address, thereby reducing the amount of data required to be sent by the computing thread of the computing unit, thereby reducing the occupancy of the internal cache of the computing unit, and the field programmable logic gate array can directly respond to the task instead of waiting for polling like a central processing unit, thereby reducing the processing time, thereby improving the data transmission efficiency between computing units.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer data transmission, and in particular to a data transmission method, device, equipment, medium and computer program product. Background Art

[0002] As the scale of application computing tasks continues to increase, multi-computing unit devices or multiple computing devices are often used to complete computing tasks. In this system, many types of computing units are involved, such as graphics processing units (GPUs) and field programmable gate arrays (FPGAs).

[0003] At present, the data transmission method between different computing units mainly adopts the memory mapping input and output (Memorymapping I / O, also known as memory mapping I / O) method, that is, directly accessing the device by reading and writing addresses. In order to reduce the communication delay caused by this data transmission method, the direct memory access (Direct Memory Access, DMA) engine in the computing unit can be used to perform data transmission tasks, but the direct memory access engine of the computing unit needs to be called by the central processing unit (CPU) of the device, which increases the communication between the computing unit and the CPU.

[0004] How to improve the data transmission efficiency between computing units is a technical problem that needs to be solved by those skilled in the art. Summary of the invention

[0005] The object of the present invention is to provide a data transmission method, apparatus, device, medium and computer program product for improving the data transmission efficiency between computing units.

[0006] In order to solve the above technical problems, the present invention provides a data transmission method, which is applied to a field programmable logic gate array, comprising:

[0007] In response to a memory mapping input / output request from the first computing unit, analyzing the memory mapping input / output request to obtain a source address identifier, a destination address identifier, and a length of data to be transmitted;

[0008] Accessing a locally stored address table, and querying the address table according to the source address identifier and the destination address identifier to obtain a source address and a destination address corresponding to the memory mapping input / output request;

[0009] According to the source address, the destination address and the length of the data to be transmitted, calling a memory access module to transmit the data to be transmitted from the source address to the destination address;

[0010] Among them, if the source address and the destination address are both located in the device where the field programmable logic gate array is located, the memory access module is the direct memory access module of the device; if the source address and the destination address are located in different devices, the memory access module is the remote direct memory access module of the device and the remote direct memory access module of another device.

[0011] In one aspect, the size of the memory mapped input / output request is determined based on the size of an atomic request to the field programmable gate array.

[0012] On the other hand, analyzing the memory mapping input and output request to obtain a source address identifier, a destination address identifier, and a length of data to be transmitted includes:

[0013] Determine the number of the first computing unit according to the location of the local register of the field programmable logic gate array written by the memory mapped input and output request;

[0014] Identify the content of the memory mapping input / output request to obtain the source data address number of the data to be transmitted in the memory of the computing unit where the source address is located, the destination data address number in the memory of the computing unit where the destination address to be transmitted is located, the number of the second computing unit requested by the memory mapping input / output request to establish transmission, and the length of the data to be transmitted;

[0015] The source address identifier and the destination address identifier are obtained according to the number of the first calculation unit, the number of the second calculation unit, the source data address number and the destination data address number.

[0016] On the other hand, when each computing unit performs data transmission, it controls the data address number of the to-be-transmitted data in the memory of the computing unit where the source address is located to be equal to the data address number of the to-be-transmitted data in the memory of the computing unit where the destination address is located;

[0017] The source data address number and the destination data address number are the same number.

[0018] On the other hand, the accessing of the locally stored address table, and obtaining the source address and the destination address corresponding to the memory-mapped input / output request in the address table according to the source address identifier and the destination address identifier, includes:

[0019] According to the numbers of the first computing unit and the second computing unit, the corresponding table entry is searched from the address table, and according to the source data address number, the source address is obtained from the address table;

[0020] The corresponding table entry is queried from the address table according to the number of the first calculation unit and the number of the calculation unit where the destination address is located in the number of the second calculation unit, and the destination address is obtained from the table according to the destination data address number.

[0021] On the other hand, the local registers of the field programmable logic gate array correspond one-to-one to all computing threads of all computing units in the system;

[0022] The system is the device or a cluster including the device and the other device.

[0023] On the other hand, it also includes:

[0024] When the number of bits of the number of the computing unit where the destination address is located is increased accordingly as the number of computing units required for processing increases, the number of bits of the length of the data to be transmitted is reduced so that the total number of bits of the memory mapped input and output requests does not exceed the number of bits of an atomic request to the field programmable logic gate array.

[0025] On the other hand, analyzing the memory mapping input and output request to obtain a source address identifier, a destination address identifier and a length of data to be transmitted also includes:

[0026] Identify and obtain the type of the memory-mapped input / output request from the memory-mapped input / output request;

[0027] If the type of the memory-mapped input / output request is send, determining that the first computing unit is a source computing unit, and the second computing unit that the first computing unit needs to perform data transmission on is a destination computing unit;

[0028] If the type of the data transmission request is receiving, it is determined that the first computing unit is the destination computing unit and the second computing unit is the source computing unit.

[0029] On the other hand, it also includes:

[0030] Apply for sending and receiving completion mark buffer in the memory of the computing unit in advance;

[0031] If the type of the memory-mapped input / output request is send, after completing the memory-mapped input / output request, writing the send completion mark of the memory-mapped input / output request into the send completion part of the send / receive completion mark buffer;

[0032] If the type of the memory-mapped input / output request is reception, after the memory-mapped input / output request is completed, the reception completion flag of the memory-mapped input / output request is written into the reception completion portion of the send / receive completion flag buffer.

[0033] On the other hand, the variables included in the sending completion part and the variables included in the receiving completion part correspond one-to-one to the computing threads of the computing unit.

[0034] On the other hand, the calling memory access module to transfer the data to be transmitted from the source address to the destination address includes:

[0035] If multiple memory mapping input and output requests are received within a preset time, the continuous address request information in the memory mapping input and output requests is merged into one operation on the memory access module, and the memory access module is called to transfer the merged data to be transmitted from the source address to the destination address.

[0036] On the other hand, a high-speed serial computer expansion bus interface of the device is used to communicate with the computing unit of the device.

[0037] In order to solve the above technical problems, the present invention further provides a data transmission device, comprising:

[0038] Memory for storing computer programs;

[0039] A processor is used to execute the computer program, and when the computer program is executed by the processor, the steps of any one of the data transmission methods described above are implemented.

[0040] In order to solve the above technical problems, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the data transmission method as described in any one of the above items are implemented.

[0041] In order to solve the above technical problems, the present invention also provides a computer program product, including a computer program / instruction, which implements the steps of any one of the above data transmission methods when executed by a processor.

[0042] The data transmission method provided by the present invention has the beneficial effect of using a field programmable logic gate array to replace the computing thread of a computing unit to execute the data transmission task between computing units, responding to the memory mapping input and output request of the first computing unit, analyzing the memory mapping input and output request to obtain the source address identifier, the destination address identifier and the length of the data to be transmitted, and obtaining the source address and the destination address according to the corresponding query of the locally stored address table, so as to call the memory access module to transfer the data to be transmitted from the source address to the destination address according to the source address, the destination address and the length of the data to be transmitted, wherein the direct memory access module or the remote direct memory access module is selected to be called according to whether the source address and the destination address are across devices, that is, the computing unit can trigger the execution of the data transmission task by sending a memory mapping input and output request carrying a small amount of data to the field programmable logic gate array, which can reduce the occupancy of the internal cache of the computing unit, and the field programmable logic gate array can directly respond to the task instead of waiting for polling like a central processing unit, thereby reducing the processing time and improving the data transmission efficiency between computing units.

[0043] The present invention also provides a data transmission device, equipment, medium and computer program product, which have the above-mentioned beneficial effects and are not described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions of 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 some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 An architecture diagram of a data transmission system provided by an embodiment of the present invention;

[0046] Figure 2 A flowchart of a data transmission method provided by an embodiment of the present invention;

[0047] Figure 3 A schematic diagram of a writing process of a memory-mapped input / output request provided by an embodiment of the present invention;

[0048] Figure 4 A flowchart of another data transmission method provided by an embodiment of the present invention;

[0049] Figure 5 A schematic diagram of the structure of a data transmission device provided by an embodiment of the present invention;

[0050] Figure 6 A schematic diagram of the structure of a data transmission device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0051] The core of the present invention is to provide a data transmission method, device, equipment, medium and computer program product for improving the data transmission efficiency between computing units.

[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0053] In modern computer computing, there are many computing tasks that require multiple computing units to complete. For example, the amount of computing in machine learning applications is very large. If these calculations are all run on ordinary computer processors, it will take a lot of time. The computing tasks are placed on dedicated computing units for execution. The processor is only responsible for initiating calculations, collecting and presenting calculation results, and device management. The computing unit can be implemented by (Graphics Processing Unit, GPU), Field Programmable Gate Array (Field Programmable Gate Array, FPGA), Tensor Processing Unit (TPU), etc.

[0054] When processing the same task or related tasks, there are data dependencies between different computing units. For example, the calculation result of one computing unit may be the basis for another computing unit to perform the next step of calculation. At this time, frequent and large-scale data transmission is required between the computing units. This organizational method brings huge communication overhead (between computing units, and between computing units and processors) to the entire system. The delays introduced by these communication overheads seriously damage the utilization rate of the computing units (because the computing units have no data to calculate while waiting for communication to complete) and the overall computing speed.

[0055] Communication overhead is mainly reflected in two aspects. In addition to the need to divide the transmitted data into multiple small blocks in deep learning, which is not conducive to the effective occupation of network bandwidth, the currently popular computing unit communication library (a communication code library developed by the manufacturer of computing equipment for users to directly call to perform communication between devices) usually uses memory mapping input and output (also known as memory mapping I / O) to copy and transmit data between computing devices, which consumes a large amount of internal resources of the computing device (such as the operating cycle of the computing unit, the bandwidth of the computing unit's cache, etc.), thereby reducing the processing speed of the computing task itself.

[0056] The above two problems (i.e., the transmission delay of a large number of small blocks of data and the data input / output (I / O) overhead on the computing device) are difficult to be solved at the same time. For example, although the data transmission task can be assigned to the direct memory access (DMA) engine of the computing unit instead of the computing thread that performs the computing task to avoid the impact of data transmission on computing efficiency, on many devices, the direct memory access engine of the computing unit can only be started by the central processing unit (CPU) on the device. The processor program usually registers the control code on the critical path of communication. The computing thread of the computing unit needs to notify the processor program first when communicating, and then the central processor controls the direct memory access engine on the computing unit to perform data transmission, which in turn causes the synchronization overhead between the central processor and the computing unit, thereby increasing the communication delay, which is particularly detrimental to the overall transmission throughput of small data blocks.

[0057] That is to say, in the current data transmission scheme, if the direct memory access engine is used, it will introduce communication overhead between the CPU and the computing unit. If the direct memory access engine is not used, the computing thread on the computing unit will directly initiate the transmission of data blocks, which will encounter high I / O overhead.

[0058] Specifically, the data between computing units is transmitted by starting the direct memory access engine by the central processing unit. The computing unit initiates a computing completion event to the central processing unit, and the event is intercepted by the message polling thread running in the central processing unit (this thread also needs to poll other messages, such as various error messages, so it cannot process the message directly). The message polling thread then wakes up the message processing thread, and the message processing thread operates the direct memory access engine to transfer the data to another computing unit. This results in a lot of time being consumed in operations such as message passing and thread wakeup.

[0059] When the computing thread on the computing unit directly initiates the transmission of the data block, the internal mechanism of the computing unit is used to convert the memory mapping input and output requests into the operation of the direct memory access engine, so that the data can be transmitted to another computing unit by the direct memory access engine. However, the problem with this method is that the memory mapping input and output requests initiated by the computing thread will pollute the cache of the computing thread (such as L2 cache), affecting the execution speed of other computing threads being executed in parallel.

[0060] In order to solve the problem of low data transmission efficiency between computing units, an embodiment of the present invention provides a data transmission scheme, which uses a field programmable logic gate array to replace the computing thread of the computing unit to execute the data transmission task between the computing units, responds to the memory mapping input and output request of the first computing unit, analyzes the memory mapping input and output request to obtain the source address identifier, the destination address identifier and the length of the data to be transmitted, and obtains the source address and the destination address according to the corresponding query of the locally stored address table, so as to call the memory access module to transfer the data to be transmitted from the source address to the destination address according to the source address, the destination address and the length of the data to be transmitted, wherein the direct memory access module or the remote direct memory access module is selected to be called according to whether the source address and the destination address are across devices, that is, the computing unit can trigger the field programmable logic gate array to execute the data transmission task by sending a memory mapping input and output request carrying a small amount of data to the field programmable logic gate array, which can reduce the occupancy of the internal cache of the computing unit, and the field programmable logic gate array can directly respond to the task instead of waiting for polling like a central processing unit, thereby reducing the processing time and improving the data transmission efficiency between the computing units.

[0061] Figure 1 An architectural diagram of a data transmission system provided in an embodiment of the present invention.

[0062] For ease of understanding, the data transmission system provided by the present invention is first introduced.

[0063] like Figure 1 As shown, the data transmission system provided by the present invention includes a field programmable logic gate array and multiple computing units. The field programmable logic gate array and other computing units can communicate through a high-speed serial computer expansion bus (peripheral component interconnect express, PCIe). Specifically, a high-speed serial computer expansion bus controller (peripheral component interconnect express root complex, PCIe RC) can be used. The field programmable logic gate array and the computing unit are connected to different ports of the PCIe RC to achieve communication. The high-speed serial computer expansion bus controller can use a high-speed serial computer expansion bus controller integrated on a central processing unit. At the same time, the central processing unit can communicate with the field programmable logic gate array and the computing unit based on the high-speed serial computer expansion bus controller. In the central processing unit, the processor is connected to the high-speed serial computer expansion bus controller through the internal bus of the central processing unit, and the system memory controller in the central processing unit is connected to the system memory.

[0064] The computing unit includes a kernel, a memory, a high-speed serial computer expansion bus module, and a direct memory access engine. The kernel in the computing unit is responsible for executing specific computing thread codes. In a distributed computing, the kernel of the computing unit reads the data to be calculated in the computing unit memory, and after computing, writes the calculation result into the computing unit memory. According to the specific implementation, after the computing thread of the computing unit completes the calculation, it can notify the central processor to perform the next step of processing through the completion event, or it can initiate a memory mapping input and output access to write data to the memory of other computing units or the host memory. In the embodiment of the present invention, the computing thread of the computing unit initiates a memory mapping input and output request, and the field programmable logic gate array assists in data transmission. When the computing thread of the computing unit completes a certain calculation, it no longer directly initiates a memory mapping input and output access for data transmission, but refers to sending a memory mapping input and output request to the field programmable logic gate array to trigger the field programmable logic gate array to perform the next step.

[0065] Compared with the traditional data transmission scheme between multiple computing units, when a computing unit needs to perform data transmission, it no longer directly initiates memory-mapped input and output access for data transmission, but sends a memory-mapped input and output request to the field programmable logic gate array. This memory-mapped input and output request will be written into the register of the field programmable logic gate array through the memory-mapped input and output method (indirectly through the direct memory access engine), triggering the field programmable logic gate array to perform data transmission.

[0066] The field programmable logic gate array used in the embodiment of the present invention can be connected to a high-speed serial computer expansion bus controller of a central processing unit to realize communication with the central processing unit and the computing unit. Figure 1 As shown, computing unit 1 is connected to port 1 of the high-speed serial computer expansion bus controller, computing unit 2 is connected to port 2 of the high-speed serial computer expansion bus controller, and the field programmable logic gate array is connected to port 3 of the high-speed serial computer expansion bus controller.

[0067] There are multiple logic modules in the field programmable gate array. In order to realize the task of data transmission between computing units assisted by the field programmable gate array, in addition to configuring the field programmable gate array's high-speed serial computer expansion bus module (responsible for directly communicating with the central processing unit and computing devices) and the direct memory access engine, data transmission message registers and their caches, data transmission message detection modules, data transmission (complete) information caches and data transmission modules can also be deployed on the field programmable gate array to execute corresponding steps.

[0068] It should be noted that there is only one of the above-mentioned logic modules in the embodiment of the present invention, but in actual applications, some modules may have multiple modules, thereby increasing the ability of the field programmable logic gate array to process messages and transmit data in parallel and supporting more computing units and computing threads.

[0069] In the embodiments of the present invention, if only data transmission between computing units in a single computing device is involved, then the “system” refers to the single computing device. If cross-device data transmission between computing units in multiple computing devices is also involved, then the “system” refers to a system including multiple computing devices.

[0070] Based on the above architecture, the data transmission method provided by the embodiment of the present invention is described below with reference to the accompanying drawings.

[0071] Figure 2 A flowchart of a data transmission method provided by an embodiment of the present invention.

[0072] like Figure 2 As shown, applied to a field programmable gate array, the data transmission method provided by an embodiment of the present invention includes: S201: responding to a memory mapping input / output request of a first computing unit, analyzing the memory mapping input / output request to obtain a source address identifier, a destination address identifier and a length of data to be transmitted.

[0073] S202: Access a locally stored address table, and query the address table according to the source address identifier and the destination address identifier to obtain a source address and a destination address corresponding to the memory-mapped input / output request.

[0074] S203: According to the source address, the destination address and the length of the data to be transmitted, the memory access module is called to transmit the data to be transmitted from the source address to the destination address.

[0075] Among them, if the source address and the destination address are both located in the device where the field programmable logic gate array is located, the memory access module is the direct memory access module of the device; if the source address and the destination address are located in different devices, the memory access module is the remote direct memory access module of the device and the remote direct memory access module of another device.

[0076] In the embodiment of the present invention, when the computing unit needs to perform data transmission, it no longer directly initiates a memory-mapped input / output access for data transmission, but sends a memory-mapped input / output request to the field programmable logic gate array. This memory-mapped input / output request will be written into the register of the field programmable logic gate array through the memory-mapped input / output method (indirectly through the direct memory access engine), triggering the data transmission message detection module in the field programmable logic gate array to perform the next step of data transmission.

[0077] If the computing unit directly transmits all the address information and other information required for a memory-mapped input / output operation to the field programmable gate array, the amount of data involved is still large, and it may still be necessary to occupy the cache of the computing thread of the computing unit. Therefore, in an embodiment of the present invention, the field programmable gate array is configured in advance by the central processing unit through a high-speed serial computer expansion bus controller, and an address table is established in the memory of the field programmable gate array. The address table stores the actual device address, computing unit address and data address, etc., so that the computing unit only needs to provide a small amount of data such as the source address identifier, the destination address identifier and the length of the data to be transmitted to convey the relevant information of executing the memory-mapped input / output operation to the field programmable gate array.

[0078] Compared with traditional solutions, in the embodiments of the present invention, the amount of data that the computing unit needs to interact with the external processor is significantly reduced (from the actual amount of data required for memory-mapped input and output to the data size of the memory-mapped input and output request), which also greatly reduces the impact on the use of cache by the computing thread of the computing unit.

[0079] The field programmable logic gate array can communicate with the computing unit of the device using the high-speed serial computer expansion bus interface of the device.

[0080] The size of the memory-mapped input / output request is determined according to the size of the atomic request to the field programmable gate array. That is, the size of a memory-mapped input / output request can be set equal to the size of an atomic request of the field programmable gate array. For example, the memory-mapped input / output request can be represented by an 8-byte (that is, 64-bit) data. 64 bits is the bit width of most processor buses at present. Data can be transmitted after one processing cycle, and there is no need to introduce buffer management, message segmentation and reorganization operations, which also reduces the transmission complexity and transmission time at the hardware level. In addition, 64 bits of data can be written into the register of the field programmable gate array at one time. For the field programmable gate array, this is an atomic operation, which means that there is no need to worry about the situation where only part of the valid data can be obtained, and there is no need to introduce additional synchronous / asynchronous control mechanisms. In an embodiment of the present invention, the parsing of the memory-mapped input / output request and the execution of the data transmission task are all performed in the field programmable gate array. The field programmable gate array is message-driven. Once the message is written into the register, it will be responded to immediately, and the processing speed is faster. In addition, two cores on the central processing unit responsible for running the message processing thread and the message polling thread are saved, which saves the cost of using the central processing unit, avoids the step of waking up the message processing thread in the traditional solution, and reduces the processing time.

[0081] In an embodiment of the present invention, a section of registers called a data transmission message register queue can be allocated in the field programmable logic gate array. Each computing thread of each computing unit can write a memory-mapped input and output request to its corresponding register. All actions of writing data to this register area will trigger the action of the data transmission message detection module, so that the field programmable logic gate array can read and parse these messages.

[0082] Since the 8-byte memory-mapped input / output request cannot directly include the number of the computing unit where the data source address to be transmitted is located, the source data address number of the data to be transmitted in the computing unit memory, the number of the computing unit where the destination address to be transmitted is located, the destination data address number to be transmitted, and the length of the data to be transmitted. In an embodiment of the present invention, the central processing unit can configure the field programmable logic gate array in advance through the high-speed serial computer expansion bus controller, and establish an address table of the mapping relationship between the address number and the actual address in the memory of the field programmable logic gate array. After the data transmission message detection module obtains the number of the first computing unit, the source data address number, the number of the second computing unit requested to establish transmission by the memory-mapped input / output request, and the destination data address number from the data transmission message register, it can query the address table to obtain the source address of the data to be transmitted in the memory of the computing unit where the source address is located and the destination address in the computing unit where the destination address to be transmitted is located.

[0083] In order to further reduce the parameter types required to be transmitted by the memory-mapped input / output request, S201 analyzes the memory-mapped input / output request to obtain the source address identifier, the destination address identifier and the length of the data to be transmitted, which may include: determining the number of the first computing unit according to the location of the local register of the field programmable logic gate array written by the memory-mapped input / output request; identifying the content of the memory-mapped input / output request to obtain the source data address number of the data to be transmitted in the memory of the computing unit where the source address is located, the destination data address number of the computing unit where the data to be transmitted is to be transmitted, the number of the second computing unit requested by the memory-mapped input / output request to establish the transmission, and the length of the data to be transmitted; and obtaining the source address identifier and the destination address identifier according to the number of the first computing unit, the number of the second computing unit, the source data address number and the destination data address number.

[0084] In an embodiment of the present invention, a local register of a field programmable logic gate array may be set to correspond one-to-one with all computing threads of all computing units in the system, wherein the system is a device or a cluster including a device and another device. Then the number of (8-byte) registers contained in the data transmission message register queue of the field programmable logic gate array may be the number of computing threads on all computing units in the system.

[0085] Since the format of the memory-mapped input / output request of limited size is set, in order to adapt to a larger-scale cluster (there will be more computing devices and computing threads, and more numbers need to be written), in some optional implementations of the embodiments of the present invention, each computing unit can control the data address number of the data to be transmitted in the memory of the computing unit where the source address is located to be equal to the data address number in the memory of the computing unit where the destination address to be transmitted is located when performing data transmission; the source data address number and the destination data address number are the same number. This configuration can be implemented when writing the computing thread of the computing unit. Therefore, when the field programmable logic gate array identifies the memory-mapped input / output request, the corresponding position of the data to be transmitted in the memory corresponding to the computing thread of the computing unit where the source address is located, and the corresponding position of the data to be transmitted in the memory corresponding to the computing thread of the computing unit where the destination address to be transmitted is located can be determined according to a data address number. These two positions may actually be different addresses, but correspond to the same data address number.

[0086] According to the above design of the embodiment of the present invention, the number of the computing unit where the source address of the data to be transmitted is located and the number of the corresponding computing thread are already hidden in the address offset of the current data transmission message register, and the number of the computing unit where the destination address of the data to be transmitted is located and the length of the data to be transmitted can be directly obtained from the memory mapping input and output request. At this point, the data transmission message detection module has obtained all the information required to initiate data transmission, and can store this information in the data transmission (complete) information cache for use by the data transmission module. The content format in the data transmission (complete) information cache is relatively common, as long as it contains the above information (the number of the computing unit where the source address is located, the source address of the data to be transmitted in the computing unit memory, the number of the computing unit where the destination address to be transmitted is located, the destination address to be transmitted, and the length of the data to be transmitted), which will not be described in detail in the embodiment of the present invention.

[0087] Figure 3 A schematic diagram of a writing process of a memory-mapped input / output request provided by an embodiment of the present invention.

[0088] like Figure 3 As shown, when the computing thread of the first computing unit initiates a memory mapping input / output request, it writes to the corresponding (8-byte) register according to the serial number of the computing thread in the system, and different computing threads of different computing units write to different address offsets. In the message queue of the field programmable logic gate array, the messages written by computing thread 1 of computing unit 1, written by computing thread 2 of transmission 1 in computing device... written by computing thread 1 of transmission 2 in computing device, written by computing thread 2 of transmission 2 in computing device, etc. are arranged in sequence.

[0089] like Figure 3 As shown in the figure, the format of the memory-mapped input / output request can include parameter types such as the data address number (add_id), the number of the computing unit where the destination address is located (device_id), and the length of the data to be transmitted (len). The number before the colon is the name of the bit field (i.e., the parameter type), and the number after the colon indicates the number of bits occupied by this bit field.

[0090] Then for S202, accessing the locally stored address table, querying the address table according to the source address identifier and the destination address identifier to obtain the source address and the destination address corresponding to the memory mapped input / output request, can include: querying the corresponding table entry from the address table according to the number of the computing unit where the source address is located in the number of the first computing unit and the number of the second computing unit, and querying therefrom according to the source data address number to obtain the source address; querying the corresponding table entry from the address table according to the number of the computing unit where the destination address is located in the number of the first computing unit and the number of the second computing unit, and querying therefrom according to the destination data address number to obtain the destination address.

[0091] In some other optional implementations of the embodiments of the present invention, the type of the memory-mapped input / output request may be set to include sending and receiving, and then the request type may be added to the memory-mapped input / output request. Figure 3 As shown, the parameters of the memory mapping input and output request can be: request type (status), data address number (add_id), the number of the computing unit where the destination address is located (device_id) and the length of the data to be transmitted (len). The number before the colon is the name of the bit field (i.e. parameter type), and the number after the colon indicates the number of bits occupied by this bit field. The request type can be set to 0 for invalid, 1 for sending, and 2 for receiving.

[0092] Figure 3The format of the memory mapping input and output request shown can be modified according to actual conditions. According to the above embodiment of the present invention, the number of the computing thread that initiates the memory mapping input and output request in the first computing unit is represented by the position of the register of the field programmable logic gate array written by the memory mapping input and output request (that is, only the number of the second computing unit and the data address number in the memory of the second computing unit need to be written in the memory mapping input and output request), thereby reducing the information required to be carried by the memory mapping input and output request to a minimum, and at this time, the format of the memory mapping input and output request can be further determined according to the source address identifier, destination address identifier and data length to be transmitted corresponding to the memory mapping input and output request. Specifically, the number of required unique identifiers can be determined according to the number of all computing threads of all computing units in the system, and the number of bits of the unique identifier can be determined according to the number of unique identifiers. The number of bits occupied by the request type, computing unit number, and data address number are subtracted from the number of bits of an atomic request to the field programmable logic gate array to obtain the number of bits that can be occupied by the length of the data to be transmitted, and then the maximum length of the data to be transmitted in the system is determined, which is used to configure the maximum length of data transmitted by the computing threads of each computing unit in a memory mapping input and output request.

[0093] For example, when there are many computing units, the number of bits in the computing unit number (device_id) bit field can be increased, and the number of bits in the data length (len) bit field to be transmitted can be appropriately reduced. Of course, this will reduce the maximum length of data that can be processed each time. In actual applications, a trade-off can be made based on actual conditions.

[0094] The data transmission method provided by the embodiment of the present invention may also include: when the number of bits of the number of the computing unit where the destination address is located is increased accordingly as the number of computing units required for processing increases, the number of bits of the length of the data to be transmitted is reduced so that the total number of bits of the memory mapped input and output requests does not exceed the number of bits of an atomic request of the field programmable logic gate array.

[0095] In an embodiment of the present invention, S201 analyzes the memory mapping input / output request to obtain the source address identifier, the destination address identifier and the length of the data to be transmitted, and may also include: identifying the type of the memory mapping input / output request from the memory mapping input / output request; if the type of the memory mapping input / output request is sending, determining the first computing unit as the source computing unit, and the second computing unit required by the first computing unit to perform data transmission as the destination computing unit; if the type of the data transmission request is receiving, determining the first computing unit as the destination computing unit, and the second computing unit as the source computing unit.

[0096] That is, the field programmable gate array can determine whether the memory-mapped input / output request is a sending request or a receiving request by identifying the request type in the memory-mapped input / output request.

[0097] After obtaining the actual source address of the data to be transmitted and the actual destination address to be transmitted, the field programmable logic gate array calls the memory access module to transmit the data to be transmitted from the source address to the destination address.

[0098] The "data transmission message detection module" in the field programmable logic gate array is specifically responsible for receiving and processing the 8-byte "data transmission message" sent by the computing thread (running in the computing unit of the computing device). Once a new message is detected, the message will be parsed immediately to obtain the number of the computing unit where the source address of the data to be transmitted is located, the source data address number of the data to be transmitted in the device memory, the number of the computing unit where the destination address of the data to be transmitted is to be written, the destination data address number of the device where the data to be transmitted is to be written, and the length of the data to be transmitted.

[0099] The above information is either stored in the message itself or needs to be retrieved from a table based on the message content. The above information is then written into the data transfer (complete) information cache and passed to the "data transfer module", which uses the direct memory access engine in the field programmable logic gate array to initiate the data transfer.

[0100] Since both receiving messages and initiating data transmission are executed passively and immediately in the field programmable logic gate array, the step of waking up the message processing thread in the existing solution is avoided, and the processing time is reduced.

[0101] Since direct data transmission is handled by the direct memory access engine in the field programmable logic gate array, the direct memory access engine in the computing device is not used, thereby avoiding the impact on other ongoing work in the system, such as other computing threads in the device (which may be using the direct memory access engine of the computing device to send messages) and other computing tasks (which may be using the direct memory access engine of the computing device to transfer other data).

[0102] In the embodiment of the present invention, there are two cases: transmission within a device and transmission across devices. For communication between different computing units within the same device, it can be executed by calling the direct memory access module of the device. For communication between computing units across devices, it can be executed by calling the remote direct memory access module. For communication between computing units across devices, it can be implemented based on the remote direct memory access module deployed on the device or the remote direct memory access module deployed on the remote direct memory access network card. The two devices can implement memory mapping input and output operations between computing units across devices through their respective remote direct memory access modules and the field programmable logic gate array provided in the embodiment of the present invention.

[0103] On the basis of the above embodiment, a new send / receive completion mark cache can be newly applied in the memory of the computing unit to receive the processing result of the field programmable logic gate array on the memory mapped input / output request. The send / receive completion mark cache can be divided into a send complete part (send complete, referred to as SC) and a receive complete part (receive complete, referred to as RC), that is, this is a cache for storing send completion marks and receive completion marks. All marks are written by the message transmission module in the field programmable logic gate array and read by the computing thread running in the computing unit.

[0104] The data transmission method provided by the embodiment of the present invention may also include: applying for a send / receive completion mark cache in the memory of the computing unit in advance; if the type of the memory mapped input / output request is send, then after completing the memory mapped input / output request, writing the send completion mark of the memory mapped input / output request in the send completion part of the send / receive completion mark cache; if the type of the memory mapped input / output request is receive, then after completing the memory mapped input / output request, writing the receive completion mark of the memory mapped input / output request in the receive completion part of the send / receive completion mark cache.

[0105] Both the sending completion mark and the receiving completion mark can be represented by integer variables, and the variables contained in the sending completion part and the variables contained in the receiving completion part can be set to correspond to the computing threads of the computing unit one by one. That is, the number of variables contained in the sending completion part and the receiving completion part is the same as the number of computing threads, that is, each computing thread has its own corresponding sending completion mark and receiving completion mark. For example, after initiating data transmission, computing thread No. 1 can read the first mark in the sending completion part to determine whether the sending operation is completed. When computing thread No. 2 needs to receive data, it determines whether the data has been received according to the second mark in the receiving completion part. The address of each mark cache will be written into the dedicated address register in the field programmable logic gate array by the host program for use by the data transmission module in the field programmable logic gate array when writing the mark into the cache.

[0106] On the basis of the above embodiments, in the data transmission method provided in the embodiments of the present invention, calling the memory access module in S203 to transfer the data to be transferred from the source address to the destination address may include: if multiple memory mapping input and output requests are received within a preset time, then merging the continuous address request information in the memory mapping input and output requests into one operation on the memory access module, and then calling the memory access module to transfer the merged data to be transferred from the source address to the destination address.

[0107] That is to say, if multiple computing threads write many 8-byte memory-mapped input and output requests to the data transmission message detection module in a burst (which is actually very common), this module will also burst a lot of information to the data transmission module. After obtaining all the information, the data transmission module will integrate all the information with continuous addresses into one operation on the direct memory access engine (because each direct memory access transfer can only process data with continuous memory addresses), reducing the number of times the control direct memory access engine initiates data transmission and improving overall performance.

[0108] Figure 4 A flowchart of another data transmission method provided by an embodiment of the present invention.

[0109] In some optional implementations of the embodiments of the present invention, for the intra-device transmission scenario, the first computing unit is referred to as computing unit 1, the second computing unit is referred to as computing unit 2, computing unit 1 is the sender, and computing unit 2 is the receiver.

[0110] For the in-device transmission scenario, the steps of the data transmission method provided by the embodiment of the present invention can be as follows: Figure 4 As shown, including:

[0111] S401: After completing a certain calculation, the computing thread 1 of computing unit 1 writes the tag (an integer variable) corresponding to the sending completion part in the sending and receiving completion tag cache to 0 (initial state). Then, a write operation is performed to the register corresponding to the computing thread 1 of computing unit 1 in the data transmission message register queue in the field programmable logic gate array. The written content includes the request type (the value is 1, indicating sending), the data address number, the number of the computing unit where the destination address is located (the value is 2, which is the number of the target device, i.e., computing unit 2), the length of the data to be transmitted, etc. Since the entire write operation is within the range of 64 bytes, for the field programmable logic gate array, this is an atomic write operation, and there is no need to worry about receiving only part of the information at a certain moment.

[0112] S402: The writing operation to the data transmission message register of the field programmable logic gate array in the previous step triggers the data transmission message detection module of the field programmable logic gate array to immediately parse the latest message. Once the message is found to be valid and the transmission operation is sending, the next step of processing begins.

[0113] S403: The data transmission message detection module determines which computing unit and which computing thread sent the message based on the address offset of the data transmission message register currently being written, and then searches the address table based on the data address number in the message (in the embodiment of the present invention, it is necessary to read the "data address number" entry in the part of the address table corresponding to computing unit 1) to obtain the source address of the data to be transmitted.

[0114] S404: The data transmission message detection module searches the address table again (in this embodiment of the present invention, it is necessary to read the "data address number" entry in the part of the address table corresponding to the computing unit 2) according to the number of the computing unit where the destination address is located (in this embodiment of the present invention, it is the number of the computing unit 2) and the data address number, and finds the memory address of the computing unit 2 where the data to be transmitted is to be written.

[0115] S405: After obtaining the above information and the length of the data to be transmitted, the data transmission message detection module writes all information (including the number of the computing unit where the source address corresponding to the data to be transmitted is located and the number of the computing thread of the computing unit where the source address is located) into the data transmission (complete) information cache.

[0116] S406: The previous action triggers the data transmission module to start action.

[0117] S407: The data transmission module starts to control the direct memory access engine to perform data transmission. If there is additional data transmission information at this time, the data transmission module will integrate multiple transmission operations with consecutive addresses into one control operation on the direct memory access engine, reducing the number of times the direct memory access engine is controlled and speeding up the processing speed.

[0118] S408: After the transmission is completed, the data transmission module writes 1 (indicating that the transmission is completed) to the tag (an integer variable) corresponding to the computing thread 1 of computing unit 1 in the sending completion part of the sending and receiving completion tag cache of computing unit 1 according to the number of the computing unit where the source address is located, the address of the sending and receiving completion tag cache (located in the address register), the computing thread number and other information. At this time, computing unit 1 will know that the data transmission is completed when polling the computing thread waiting for this tag.

[0119] It should be noted that in the embodiments of the data transmission method of the present invention, some of the steps or features may be ignored or not executed. The hardware or software functional modules divided for the convenience of description are not the only implementation form of the data transmission method provided in the embodiments of the present invention.

[0120] The above describes in detail various embodiments corresponding to the data transmission method. On this basis, the present invention also discloses a data transmission device, equipment, computer-readable storage medium and computer program product corresponding to the above method.

[0121] Figure 5 A schematic diagram of the structure of a data transmission device provided by an embodiment of the present invention.

[0122] like Figure 5 As shown, the data transmission device provided by the embodiment of the present invention may include:

[0123] The data transmission message detection module 501 is used to respond to the memory mapping input and output request of the first computing unit, analyze the memory mapping input and output request to obtain the source address identifier, the destination address identifier and the length of the data to be transmitted; access the locally stored address table, and query the address table according to the source address identifier and the destination address identifier to obtain the source address and destination address corresponding to the memory mapping input and output request.

[0124] The data transmission module 502 is used to call the memory access module to transmit the data to be transmitted from the source address to the destination address according to the source address, the destination address and the length of the data to be transmitted.

[0125] Among them, if the source address and the destination address are both located in the device where the field programmable logic gate array is located, the memory access module is the direct memory access module of the device; if the source address and the destination address are located in different devices, the memory access module is the remote direct memory access module of the device and the remote direct memory access module of another device.

[0126] It should be noted that in each implementation of the data transmission device provided in the embodiment of the present invention, the division of the units is only a logical functional division, and other division methods can be used. The connection method between different units can be electrical, mechanical or other connection methods. The separated units can be located in the same physical location or distributed on multiple network nodes. Each unit can be implemented in the form of hardware or in the form of a software functional unit. That is, part or all of the units provided in the embodiment of the present invention can be selected according to actual needs and the corresponding connection method or integration method can be adopted to achieve the purpose of the embodiment of the present invention.

[0127] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.

[0128] Figure 6 A schematic diagram of the structure of a data transmission device provided by an embodiment of the present invention.

[0129] like Figure 6 As shown, the data transmission device provided by the embodiment of the present invention includes:

[0130] A memory 610 for storing a computer program 611;

[0131] The processor 620 is used to execute the computer program 611. When the computer program 611 is executed by the processor 620, the steps of the data transmission method provided in any one of the above embodiments are implemented.

[0132] Among them, the processor 620 may include one or more processing cores, such as a 3-core processor, an 8-core processor, etc. The processor 620 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 620 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 620 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 620 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0133] The memory 610 may include one or more computer-readable storage media, which may be non-transitory. The memory 610 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 610 is at least used to store the following computer program 611, wherein the computer program 611, after being loaded and executed by the processor 620, can implement the relevant steps in the data transmission method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 610 may also include an operating system 612 and data 613, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 612 may be Windows or other types of operating systems. Data 613 may include, but is not limited to, the data involved in the above method.

[0134] In some embodiments, the data transmission device may further include a display screen 630 , a power supply 640 , a communication interface 650 , an input / output interface 660 , a sensor 670 , and a communication bus 680 .

[0135] Those skilled in the art will understand that Figure 6The structure shown in the figure does not constitute a limitation on the data transmission device, and may include more or fewer components than shown in the figure.

[0136] The data transmission device provided in the embodiment of the present invention includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the steps of the data transmission method provided in the above embodiment, and the effect is the same as above.

[0137] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the data transmission method provided in any one of the above embodiments can be implemented.

[0138] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0139] For an introduction to the computer-readable storage medium provided in an embodiment of the present invention, please refer to the above method embodiment, and the effect thereof is the same as the data transmission method provided in an embodiment of the present invention, and the present invention will not elaborate on it here.

[0140] An embodiment of the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the data transmission method provided in any one of the above embodiments.

[0141] For an introduction to the computer program product provided by the embodiment of the present invention, please refer to the above method embodiment, and the effect thereof is the same as the data transmission method provided by the embodiment of the present invention, and the present invention will not elaborate on it here.

[0142] The above is a detailed introduction to a data transmission method, device, equipment, medium and computer program product provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referred to each other. For the devices, equipment, computer-readable storage media and computer program products disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, the present invention can also be improved and modified in a number of ways, and these improvements and modifications also fall within the scope of protection of the present invention.

[0143] It should also be noted that, in this specification, 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 "comprise", "include" 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, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A data transmission method, characterized in that: Applications in field programmable gate arrays include: In response to a memory mapping input / output request from the first computing unit, analyzing the memory mapping input / output request to obtain a source address identifier, a destination address identifier, and a length of data to be transmitted; Accessing a locally stored address table, and querying the address table according to the source address identifier and the destination address identifier to obtain a source address and a destination address corresponding to the memory mapping input / output request; According to the source address, the destination address and the length of the data to be transmitted, calling a memory access module to transmit the data to be transmitted from the source address to the destination address; Wherein, if the source address and the destination address are both located in the device where the field programmable logic gate array is located, the memory access module is a direct memory access module of the device; if the source address and the destination address are located in different devices, the memory access module is a remote direct memory access module of the device and a remote direct memory access module of another device; Analyzing the memory mapping input and output request to obtain a source address identifier, a destination address identifier, and a length of data to be transmitted, including: Determine the number of the first computing unit according to the location of the local register of the field programmable logic gate array written by the memory mapped input and output request; Identify the content of the memory mapping input / output request to obtain the source data address number of the data to be transmitted in the memory of the computing unit where the source address is located, the destination data address number in the memory of the computing unit where the destination address to be transmitted is located, the number of the second computing unit requested by the memory mapping input / output request to establish transmission, and the length of the data to be transmitted; The source address identifier and the destination address identifier are obtained according to the number of the first calculation unit, the number of the second calculation unit, the source data address number and the destination data address number.

2. The data transmission method according to claim 1, characterized in that: The size of the memory mapped input / output request is determined according to the size of an atomic request to the field programmable logic gate array.

3. The data transmission method according to claim 1, characterized in that: When performing data transmission, each computing unit controls the data address number in the memory of the computing unit where the source address of the data to be transmitted is located to be equal to the data address number in the memory of the computing unit where the destination address of the data to be transmitted is located; The source data address number and the destination data address number are the same number.

4. The data transmission method according to claim 1, characterized in that: The accessing of the locally stored address table, and obtaining the source address and the destination address corresponding to the memory-mapped input / output request by searching the address table according to the source address identifier and the destination address identifier, comprises: According to the numbers of the first computing unit and the second computing unit, the corresponding table entry is searched from the address table, and according to the source data address number, the source address is obtained from the address table; The corresponding table entry is queried from the address table according to the number of the first calculation unit and the number of the calculation unit where the destination address is located in the number of the second calculation unit, and the destination address is obtained from the table according to the destination data address number.

5. The data transmission method according to claim 1, characterized in that: The local registers of the field programmable logic gate array correspond one-to-one to all computing threads of all computing units in the system; The system is the device or a cluster including the device and the other device.

6. The data transmission method according to claim 1, characterized in that: Also includes: When the number of bits of the number of the computing unit where the destination address is located is increased accordingly as the number of computing units required for processing increases, the number of bits of the length of the data to be transmitted is reduced so that the total number of bits of the memory mapped input and output requests does not exceed the number of bits of an atomic request to the field programmable logic gate array.

7. The data transmission method according to claim 1, characterized in that: Analyzing the memory mapping input and output request to obtain a source address identifier, a destination address identifier and a length of data to be transmitted, further comprising: Identify and obtain the type of the memory-mapped input / output request from the memory-mapped input / output request; If the type of the memory-mapped input / output request is send, determining that the first computing unit is a source computing unit, and the second computing unit that the first computing unit needs to perform data transmission on is a destination computing unit; If the type of the data transmission request is receiving, it is determined that the first computing unit is the destination computing unit and the second computing unit is the source computing unit.

8. The data transmission method according to claim 1, characterized in that: Also includes: Apply for sending and receiving completion mark buffer in the memory of the computing unit in advance; If the type of the memory-mapped input / output request is send, after completing the memory-mapped input / output request, writing the send completion mark of the memory-mapped input / output request into the send completion part of the send / receive completion mark buffer; If the type of the memory-mapped input / output request is reception, after the memory-mapped input / output request is completed, the reception completion flag of the memory-mapped input / output request is written into the reception completion portion of the send / receive completion flag buffer.

9. The data transmission method according to claim 8, characterized in that: The variables included in the sending completion part and the variables included in the receiving completion part correspond one-to-one to the computing threads of the computing unit.

10. The data transmission method according to claim 1, characterized in that: The calling memory access module to transmit the data to be transmitted from the source address to the destination address includes: If multiple memory mapping input and output requests are received within a preset time, the continuous address request information in the memory mapping input and output requests is merged into one operation on the memory access module, and the memory access module is called to transfer the merged data to be transmitted from the source address to the destination address.

11. The data transmission method according to claim 1, characterized in that: The high-speed serial computer expansion bus interface of the device is used to communicate with the computing unit of the device.

12. A data transmission device, characterized in that: include: Memory for storing computer programs; A processor is used to execute the computer program, and when the computer program is executed by the processor, the steps of the data transmission method according to any one of claims 1 to 11 are implemented.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the data transmission method according to any one of claims 1 to 11 are implemented.

14. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the data transmission method according to any one of claims 1 to 11 are implemented.