Heterogeneous computing system and data transmission method

By dynamically selecting heterogeneous acceleration devices that support target processing types in heterogeneous computing systems, and calculating matching evaluation parameters based on the device's reconfigurable files and resource requirements, the long data transmission time and resource occupation in traditional heterogeneous computing systems are solved. problem, improving data processing performance.

CN118503196BActive Publication Date: 2024-10-01INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410961546.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-10-01
Estimated Expiration
2044-07-17

AI Technical Summary

Technical Problem

In traditional heterogeneous computing systems, it takes a long time to transmit data from solid-state drives to heterogeneous acceleration devices, and fixed FPGA devices and fixed logic result in data processing performance that cannot be guaranteed to be optimal, and the use of system memory as a transfer leads to resource occupation and transmission. Time increases.

Method used

Design a heterogeneous computing system that uses the processor to search for devices that support the target processing type among multiple heterogeneous acceleration devices, calculate matching evaluation parameters based on the device's reconfigurable file requirements and available resources, and select the most appropriate heterogeneous one. Accelerates data transmission and processing on devices and supports point-to-point transmission or memory transfer transmission.

Benefits of technology

It enables the flexible selection of appropriate heterogeneous acceleration devices based on data processing needs, improves data processing performance, and avoids unreasonable resource occupation and extended transmission time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118503196B_ABST
    Figure CN118503196B_ABST
Patent Text Reader

Abstract

The present application provides a heterogeneous computing system and a data transmission method. The heterogeneous computing system includes a processor and a bus device. The bus device includes a storage device and multiple heterogeneous acceleration devices. The processor responds to a data processing request corresponding to a target processing type, searches for a first heterogeneous acceleration device among multiple heterogeneous acceleration devices based on the data transmission path and the processing type supported by the device, calculates matching evaluation parameters based on the types and quantities of configuration resources required for a target reconfigurable configuration file corresponding to the first heterogeneous acceleration device and the types and quantities of dynamic configuration resources available to the first heterogeneous acceleration device, and determines a target heterogeneous acceleration device based on the matching evaluation parameters; the storage device transmits the to-be-processed data adapted to the data processing request to the target heterogeneous acceleration device, and the target heterogeneous acceleration device processes the to-be-processed data. The present application can flexibly select appropriate heterogeneous acceleration devices based on data processing requirements to improve data processing performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of heterogeneous computing technology, and in particular to a heterogeneous computing system and a data transmission method. Background Art

[0002] A system based on a heterogeneous computing architecture generally refers to a combination of any one or more of the CPU (Central Processing Unit) and GPU (Graphic Processing Unit), FPGA (Field Programmable Gate Array), and DSA (Domain-Specific Architecture) to solve the problem of insufficient computing power in traditional CPU computing architectures. As the scale of data in new application scenarios continues to increase, the transmission time of data from solid-state drives to heterogeneous acceleration devices is getting longer and longer, which has become a performance bottleneck for heterogeneous computing systems and affects the performance of applications.

[0003] Taking the CPU+FPGA computing architecture as an example, the traditional heterogeneous computing system solution generally pre-designates a certain FPGA board as a heterogeneous acceleration device and burns a fixed logic file to the FPGA device. Data transmission between devices generally uses system memory as a transit, that is, the data is first read from the solid-state drive to the system memory, and then copied from the system memory to the memory space of the FPGA device.

[0004] Since this solution uses system memory as data transfer, data needs to be copied twice, which not only takes a long time to transmit but also occupies the system's CPU and memory resources. In addition, fixed FPGA devices and fixed FPGA logic are used for data processing. The most suitable heterogeneous acceleration device is not selected from the system, and the data processing performance cannot be guaranteed to be optimal. Summary of the invention

[0005] In view of the above problems, embodiments of the present application provide a heterogeneous computing system and a data transmission method that overcome the above problems or at least partially solve the above problems.

[0006] In a first aspect, an embodiment of the present application provides a heterogeneous computing system, including a processor and a bus device connected to the processor, the bus device including a storage device and a plurality of heterogeneous acceleration devices, the heterogeneous acceleration device including static logic and reconfigurable logic;

[0007] The processor searches, in response to a received data processing request corresponding to a target processing type, for a first heterogeneous acceleration device supporting the target processing type among the plurality of heterogeneous acceleration devices based on a data transmission path and a processing type supported by the device, calculates a matching evaluation parameter of the first heterogeneous acceleration device according to the type and quantity of configuration resources required by a target reconfigurable configuration file corresponding to the first heterogeneous acceleration device and the type and quantity of dynamic configuration resources available to the first heterogeneous acceleration device, and selects a target heterogeneous acceleration device among the first heterogeneous acceleration devices based on the matching evaluation parameter, wherein the target reconfigurable configuration file corresponds to the target processing type;

[0008] The storage device transmits the to-be-processed data adapted by the data processing request to the target heterogeneous acceleration device;

[0009] The target heterogeneous acceleration device processes the data to be processed;

[0010] The data to be processed is transmitted to the target heterogeneous acceleration device based on a point-to-point transmission mode or a memory transfer transmission mode.

[0011] Optionally, the heterogeneous computing system further comprises a memory connected to the processor, the bus device further comprises a bus switch device, and the processor has a built-in bus root complex;

[0012] The storage device transmits the data to be processed to the target heterogeneous acceleration device through the bus switch device and / or the bus root complex in a point-to-point transmission manner, or the storage device transmits the data to be processed to the target heterogeneous acceleration device through the memory in a memory transit transmission manner.

[0013] Optionally, after selecting the target heterogeneous acceleration device, the processor downloads a target reconfiguration file corresponding to the target heterogeneous acceleration device and loads it to the target heterogeneous acceleration device to update the reconfigurable logic of the target heterogeneous acceleration device;

[0014] Wherein, after the target reconfigurable configuration file corresponding to the target heterogeneous acceleration device is loaded into the reconfigurable logic of the target heterogeneous acceleration device, the storage device transmits the data to be processed to the target heterogeneous acceleration device.

[0015] Optionally, the processor establishes a device linked list and a device adjacency list according to the bus device tree topology diagram corresponding to the heterogeneous computing system, and establishes an undirected graph according to the device adjacency list; wherein the device linked list records the bus devices corresponding to the heterogeneous computing system, and the device adjacency list is used to record the connection relationship between the bus devices corresponding to the heterogeneous computing system;

[0016] The processor traverses the heterogeneous acceleration devices in the device linked list, searches the undirected graph for the shortest path between each heterogeneous acceleration device and the storage device and the number of hops information corresponding to the shortest path, and establishes a heterogeneous acceleration device path table that characterizes the correspondence between the heterogeneous acceleration devices, the shortest path, and the number of hops information according to the shortest path and the number of hops information corresponding to each heterogeneous acceleration device.

[0017] Optionally, the processor selects a heterogeneous acceleration device that supports a point-to-point transmission mode between the storage device and the heterogeneous acceleration device path table, determines a first device set, selects a first heterogeneous acceleration device that supports the target processing type in the first device set, determines a second device set, and selects the target heterogeneous acceleration device according to a matching evaluation parameter corresponding to the first heterogeneous acceleration device in the second device set;

[0018] Among them, heterogeneous acceleration devices that support point-to-point transmission mode on the intermediate nodes on the shortest path between the storage device belong to the first device set, the bus switch device and the bus root complex both belong to the intermediate nodes; the reconfigurable configuration file corresponding to the first heterogeneous acceleration device located in the second device set supports the target processing type.

[0019] Optionally, if the first device set or the second device set is an empty set, the processor traverses the heterogeneous acceleration devices in the device linked list, screens the first heterogeneous acceleration device whose reconfigurable file supports the target processing type, and determines a third device set.

[0020] Optionally, the heterogeneous acceleration device is a field programmable gate array device;

[0021] If the first heterogeneous acceleration device belongs to the second device set, the processor calculates a matching evaluation parameter of the first heterogeneous acceleration device based on a first formula;

[0022] If the first heterogeneous acceleration device belongs to the third device set, the processor calculates a matching evaluation parameter of the first heterogeneous acceleration device based on a second formula;

[0023] The first formula is shown in the following formula (1):

[0024] (1)

[0025] The second formula is shown in the following formula (2):

[0026] (2)

[0027] in, is the hop count information of the first heterogeneous acceleration device, and All are matching evaluation parameters;

[0028] the number of programmable logic blocks available for the first heterogeneous acceleration device, the number of programmable logic blocks required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the programmable logic block;

[0029] The number of programmable input / output units available for the first heterogeneous acceleration device, the number of programmable input / output units required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the programmable input / output unit;

[0030] is the number of wiring resources available to the first heterogeneous acceleration device, the number of routing resources required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the wiring resource;

[0031] is the number of underlying embedded units available for use by the first heterogeneous acceleration device, the number of underlying embedded units required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the underlying embedding unit;

[0032] is the amount of embedded random access memory available in the first heterogeneous acceleration device, the number of embedded random access memories required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the embedded random access memory.

[0033] Optionally, the processor determines the first heterogeneous acceleration device with the smallest matching evaluation parameter as the target heterogeneous acceleration device;

[0034] Among them, if the target heterogeneous acceleration device is a device in the second device set, the data to be processed is transmitted to the target heterogeneous acceleration device based on a point-to-point transmission method; if the target heterogeneous acceleration device is a device in the third device set, the data to be processed is transmitted to the target heterogeneous acceleration device based on a memory transit transmission method.

[0035] In a second aspect, an embodiment of the present application provides a data transmission method, which is applied to a processor, wherein the processor is connected to a bus device, wherein the bus device includes a storage device and a plurality of heterogeneous acceleration devices, and wherein both the processor and the bus device are devices in a heterogeneous computing system, and the method includes:

[0036] In response to a received data processing request corresponding to a target processing type, searching for a first heterogeneous acceleration device supporting the target processing type among the plurality of heterogeneous acceleration devices based on a data transmission path and a processing type supported by the device, the heterogeneous acceleration device including static logic and reconfigurable logic;

[0037] Calculating a matching evaluation parameter of the first heterogeneous acceleration device according to the type and quantity of configuration resources required by a target reconfigurable configuration file corresponding to the first heterogeneous acceleration device and the type and quantity of dynamic configuration resources available to the first heterogeneous acceleration device, wherein the target reconfigurable configuration file corresponds to the target processing type;

[0038] Based on the matching evaluation parameter, selecting a target heterogeneous acceleration device from the first heterogeneous acceleration devices;

[0039] Control the storage device to transmit the to-be-processed data adapted by the data processing request to the target heterogeneous acceleration device, so that the target heterogeneous acceleration device processes the to-be-processed data;

[0040] The data to be processed is transmitted from the storage device to the target heterogeneous acceleration device based on a point-to-point transmission method or a memory transfer transmission method.

[0041] Optionally, after selecting the target heterogeneous acceleration device, the method further includes:

[0042] Downloading a target reconfigurable configuration file corresponding to the target heterogeneous acceleration device to the target heterogeneous acceleration device to update the reconfigurable logic of the target heterogeneous acceleration device;

[0043] Among them, after the target reconfiguration file corresponding to the target heterogeneous acceleration device is loaded into the reconfigurable logic of the target heterogeneous acceleration device, the processor controls the storage device to transmit the data to be processed.

[0044] Optionally, the method further comprises:

[0045] According to the bus device tree topology diagram corresponding to the heterogeneous computing system, a device link list and a device adjacency list are established; wherein the device link list records the bus devices corresponding to the heterogeneous computing system, and the device adjacency list is used to record the connection relationship between the bus devices corresponding to the heterogeneous computing system;

[0046] Establishing the undirected graph according to the device adjacency list;

[0047] Traversing the heterogeneous acceleration devices in the device linked list, searching the undirected graph for the shortest path between each heterogeneous acceleration device and the storage device and the number of hops corresponding to the shortest path;

[0048] According to the shortest path and hop count information corresponding to each heterogeneous acceleration device, a heterogeneous acceleration device path table is established to characterize the corresponding relationship between the heterogeneous acceleration device, the shortest path and the hop count information.

[0049] Optionally, in response to the received data processing request corresponding to the target processing type, searching for a first heterogeneous acceleration device supporting the target processing type among multiple heterogeneous acceleration devices based on the data transmission path and the processing type supported by the device includes:

[0050] In response to the data processing request, screening, in the heterogeneous acceleration device path table, heterogeneous acceleration devices that support a point-to-point transmission mode between the storage device and the heterogeneous acceleration device to determine a first device set;

[0051] A first heterogeneous acceleration device that supports the target processing type is screened in the first device set to determine a second device set.

[0052] Optionally, the selecting, in the heterogeneous acceleration device path table, heterogeneous acceleration devices that support a point-to-point transmission mode between the storage device and the heterogeneous acceleration device to determine the first device set includes:

[0053] Based on the heterogeneous acceleration device path table, checking whether the intermediate nodes on the shortest path corresponding to each heterogeneous acceleration device all support the point-to-point transmission mode;

[0054] Screening out heterogeneous acceleration devices whose intermediate nodes on the shortest path all support a point-to-point transmission mode, and determining the first device set based on the screened heterogeneous acceleration devices;

[0055] The bus device further comprises a bus switch device, the processor has a built-in bus root complex, and both the bus switch device and the bus root complex belong to the intermediate node.

[0056] Optionally, screening the first heterogeneous acceleration device supporting the target processing type in the first device set to determine the second device set includes:

[0057] Detecting whether the reconfigurable configuration file corresponding to the heterogeneous acceleration device in the first device set supports the target processing type;

[0058] A first heterogeneous acceleration device whose reconfigurable configuration file supports the target processing type is screened out from the first device set, and the second device set is determined.

[0059] Optionally, if the first device set or the second device set is an empty set, the method further includes:

[0060] The heterogeneous acceleration devices in the device linked list are traversed, and the first heterogeneous acceleration device whose reconfigurable file supports the target processing type is screened to determine a third device set.

[0061] Optionally, the calculating the matching evaluation parameter of the first heterogeneous acceleration device according to the type and quantity of configuration resources required by the target reconfigurable configuration file corresponding to the first heterogeneous acceleration device and the type and quantity of dynamic configuration resources available to the first heterogeneous acceleration device includes:

[0062] If the first heterogeneous acceleration device belongs to the second device set, calculating a matching evaluation parameter of the first heterogeneous acceleration device based on a first formula;

[0063] If the first heterogeneous acceleration device belongs to the third device set, a matching evaluation parameter of the first heterogeneous acceleration device is calculated based on a second formula.

[0064] Optionally, the heterogeneous acceleration device is a field programmable gate array device, and the first formula is as shown in the following formula (1):

[0065] (1)

[0066] The second formula is shown in the following formula (2):

[0067] (2)

[0068] in, is the hop count information of the first heterogeneous acceleration device, and All are matching evaluation parameters;

[0069] the number of programmable logic blocks available for the first heterogeneous acceleration device, the number of programmable logic blocks required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the programmable logic block;

[0070] The number of programmable input / output units available for the first heterogeneous acceleration device, the number of programmable input / output units required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the programmable input / output unit;

[0071] is the number of wiring resources available to the first heterogeneous acceleration device, the number of routing resources required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the wiring resource;

[0072] is the number of underlying embedded units available for use by the first heterogeneous acceleration device, the number of underlying embedded units required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the underlying embedding unit;

[0073] is the amount of embedded random access memory available in the first heterogeneous acceleration device, the number of embedded random access memories required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the embedded random access memory.

[0074] Optionally, the selecting a target heterogeneous acceleration device from the first heterogeneous acceleration devices based on the matching evaluation parameter includes:

[0075] The first heterogeneous acceleration device with the smallest matching evaluation parameter is determined as the target heterogeneous acceleration device.

[0076] Optionally, the controlling storage device to transmit the to-be-processed data adapted by the data processing request to the target heterogeneous acceleration device includes:

[0077] If the target heterogeneous acceleration device is a device in the second device set, controlling the storage device to transmit the to-be-processed data to the target heterogeneous acceleration device based on a point-to-point transmission mode;

[0078] If the target heterogeneous acceleration device is a device in the third device set, the storage device is controlled to transmit the to-be-processed data to the target heterogeneous acceleration device based on a memory-transfer transmission mode.

[0079] In a third aspect, an embodiment of the present application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the data transmission method described in the second aspect.

[0080] In a fourth aspect, an embodiment of the present application provides an electronic device, including:

[0081] a memory for storing processor-executable instructions;

[0082] Wherein, the processor is configured to execute the instructions to implement the data transmission method described in the second aspect.

[0083] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the data transmission method described in the second aspect is implemented.

[0084] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:

[0085] In response to a received data processing request corresponding to a target processing type, the processor searches for a first heterogeneous acceleration device that supports the target processing type among a plurality of heterogeneous acceleration devices including static logic and reconfigurable logic based on a data transmission path and a processing type supported by the device, determines a target reconfigurable configuration file corresponding to the first heterogeneous acceleration device and adapted to the target processing type, calculates a matching evaluation parameter of the first heterogeneous acceleration device according to the type and quantity of configuration resources required by the target reconfigurable configuration file corresponding to the first heterogeneous acceleration device and the type and quantity of dynamic configuration resources available to the first heterogeneous acceleration device, determines a target heterogeneous acceleration device in the first heterogeneous acceleration device based on the matching evaluation parameter, and after determining the target heterogeneous acceleration device, the storage device transmits the to-be-processed data adapted to the data processing request to the target heterogeneous acceleration device, and the target heterogeneous acceleration device processes the data, and a suitable heterogeneous acceleration device can be flexibly selected based on data processing requirements, and the selected heterogeneous acceleration device processes the to-be-processed data provided by the storage device, so as to improve data processing performance by using a suitable heterogeneous acceleration device. BRIEF DESCRIPTION OF THE DRAWINGS

[0086] Figure 1 An example diagram of a heterogeneous computing system provided in an embodiment of the present application;

[0087] Figure 2 Schematic diagram for updating FPGA design to download reconfigurable files;

[0088] Figure 3A A schematic diagram of a device link list provided in an embodiment of the present application;

[0089] Figure 3B A schematic diagram of a device adjacency table provided in an embodiment of the present application;

[0090] Figure 4 A schematic diagram of a data transmission method provided in an embodiment of the present application;

[0091] Figure 5 An overall implementation flow chart of data transmission provided in an embodiment of the present application. DETAILED DESCRIPTION

[0092] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, each embodiment of the present application will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in each embodiment of the present application, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can also be implemented. The division of the following embodiments is for the convenience of description, and the specific implementation of the present application should not constitute any limitation, and the various embodiments can be combined with each other and referenced to each other without contradiction.

[0093] First, the system architecture provided by the embodiment of the present application is introduced. The heterogeneous computing system provided by the embodiment of the present application includes a processor, a bus device connected to the processor, and a memory connected to the processor. The bus device includes a storage device, multiple heterogeneous acceleration devices, a bus switch device, and a processor has a built-in bus root complex. Among them, the heterogeneous acceleration device includes static logic and reconfigurable logic, and the heterogeneous computing system can also include other devices, such as a network card device.

[0094] The processor is, for example, a CPU (Central Processing Unit); the storage device is, for example, a solid-state drive including source data; heterogeneous acceleration devices are not limited to FPGA devices, but also include GPUs and various field-specific architecture devices; the bus switch device is a PCIe (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard) Switch; the bus root complex is a PCIe RC (Root Complex), and the PCIe RC may not be set in the CPU, for example, as an independent device; the memory is, for example, a DDR (Double Data Rate) memory.

[0095] For SSDs, the SSD controller is responsible for high-speed data transmission after receiving data requests and other related commands. Its interface protocol can be NVMe (NVM Express, high-speed non-volatile storage) protocol but is not limited to NVMe protocol. SSDs have the characteristics of high transmission rate, high reliability, small size, low power consumption, etc. SSDs based on NVMe protocol make full use of the high bandwidth and scalability of PCIe.

[0096] Figure 1An example diagram of a heterogeneous computing system provided in an embodiment of the present application is shown. It should be noted that the heterogeneous computing system in the embodiment of the present application is not limited to Figure 1 The architecture shown in the figure can also be other architectures. Figure 1 In the heterogeneous computing system shown, the PCIe bus is connected to storage devices, multiple heterogeneous acceleration devices (including heterogeneous acceleration device 1, heterogeneous acceleration device 2 and heterogeneous acceleration device 3), multiple bus switch devices (including bus switch device 1 and bus switch device 2, bus switch devices such as PCIe Switch), bus root complex (built-in processor, such as PCIe RC) and other devices. These devices can all be regarded as PCIe devices, and PCIe devices are bus devices in the heterogeneous computing system.

[0097] The heterogeneous acceleration device in this embodiment includes static logic and reconfigurable logic, and the static logic mainly implements PCIe related functions. In the embodiment of the present application, the heterogeneous acceleration device is taken as an FPGA device as an example for explanation. For FPGA devices, FPGA technology supports flexible on-site programming and reprogramming, without the need to rebuild the interconnect structure through design modifications. DFX (Dynamic Function eXchange) promotes this flexibility further and allows the working FPGA design to be modified by loading a reconfigurable configuration file. That is, after configuring the FPGA, you can download a reconfigurable configuration file to modify the reconfigurable area in the FPGA, and other areas will not be affected. Figure 2 As shown, by downloading reconfigurable configuration files (such as reconfigurable configuration files A1, reconfigurable configuration files A2, reconfigurable configuration files A3, and reconfigurable configuration files A4), the functions implemented in the reconfiguration block A can be modified to achieve different functions.

[0098] In an embodiment of the present application, the heterogeneous computing system obtains at least one reconfigurable configuration file corresponding to each FPGA board in advance, each reconfigurable configuration file corresponds to a data processing type, and saves the reconfigurable configuration files corresponding to various FPGA boards in a folder, which is located in the hard disk. For example, as an implementation method, based on the 10 types of FPGA boards that have been successfully developed, one or more reconfigurable configuration files corresponding to each FPGA board are determined, and each reconfigurable configuration file matches a data processing type, such as a traversal processing type, a sorting processing type, a hash connection processing type, etc. The reconfigurable configuration files corresponding to the 10 FPGA boards are saved in appropriate locations. For reconfigurable configuration files, the file naming format is: data processing type_manufacturer_board type, such as: the name of the reconfigurable configuration file of the Scan (traversal) data processing type running on AMD's U250 FPGA board is expressed as: SCAN_AMD_U250.bit. For FPGA devices, reconfigurable configuration files are bitstream files.

[0099] In this embodiment, it is necessary to count the number of various resources such as programmable logic blocks, programmable input / output units, wiring resources, bottom embedded units, embedded RAM (Random Access Memory) required by each reconfigurable configuration file in advance, and record the counted situation in the resource requirement file. It is also necessary to count the number of various resources such as available programmable logic blocks, programmable input / output units, wiring resources, bottom embedded units, embedded RAM, etc. for various FPGA boards in advance, and record the counted situation in the device resource file.

[0100] In an embodiment of the present application, after receiving a data processing request corresponding to a target processing type, the processor searches for a first heterogeneous acceleration device that supports the target processing type among multiple heterogeneous acceleration devices in response to the data processing request based on the data transmission path and the processing type supported by the device, calculates a matching evaluation parameter of the first heterogeneous acceleration device according to the type and quantity of configuration resources required by the target reconfigurable configuration file corresponding to the first heterogeneous acceleration device and the type and quantity of dynamic configuration resources available to the first heterogeneous acceleration device, and selects a target heterogeneous acceleration device in the first heterogeneous acceleration device based on the matching evaluation parameter, wherein the target reconfigurable configuration file corresponds to the target processing type. The storage device transmits the to-be-processed data adapted to the data processing request to the target heterogeneous acceleration device, and the target heterogeneous acceleration device processes the to-be-processed data, and the to-be-processed data is transmitted to the target heterogeneous acceleration device based on a point-to-point transmission method or a memory transfer transmission method.

[0101] Specifically, after receiving the data processing request from the user, the processor determines the target processing type corresponding to the data processing request, such as the traversal processing type, the sorting processing type, the hash connection processing type, etc., and searches for the first heterogeneous acceleration device that supports the target processing type among multiple heterogeneous acceleration devices based on the data transmission path and the processing types supported by the device. At this time, it is necessary to obtain the data processing type supported by the reconfigurable configuration file corresponding to the heterogeneous acceleration device, and select the first heterogeneous acceleration device based on whether the reconfigurable configuration file supports the target processing type.

[0102] After finding the first heterogeneous acceleration device, determine the target reconfigurable configuration file corresponding to the target processing type in at least one reconfigurable configuration file corresponding to the first heterogeneous acceleration device. Then, extract the types and quantities of configuration resources required by the target reconfigurable configuration file corresponding to the first heterogeneous acceleration device from the resource requirement file used to record the quantities of various resources required by the reconfigurable configuration file; extract the types and quantities of dynamic configuration resources available to the first heterogeneous acceleration device from the device resource file used to record the quantities of various resources available to the heterogeneous acceleration device. After completing the information extraction, calculate the matching evaluation parameters of the first heterogeneous acceleration device based on the acquired information. The matching evaluation parameters are used to evaluate the matching between the configuration resources required by the target reconfigurable configuration file corresponding to the first heterogeneous acceleration device and the dynamic configuration resources available to the first heterogeneous acceleration device.

[0103] After obtaining the matching evaluation parameter of the first heterogeneous acceleration device, a target heterogeneous acceleration device is selected from the first heterogeneous acceleration devices based on the matching evaluation parameter. It should be noted that if the number of the first heterogeneous acceleration devices found is one, there is no need to calculate the matching evaluation parameter, and the first heterogeneous acceleration device is directly determined as the target heterogeneous acceleration device; if the number of the first heterogeneous acceleration devices found is at least two, the matching evaluation parameter is calculated, and the target heterogeneous acceleration device is selected from the at least two first heterogeneous acceleration devices based on the matching evaluation parameter.

[0104] When the processor determines the target heterogeneous acceleration device, the storage device transmits the stored data to be processed that is adapted to the data processing request to the target heterogeneous acceleration device, and the target heterogeneous acceleration device processes the data to be processed, thereby achieving a flexible selection method to determine the heterogeneous acceleration device that is adapted to the data to be processed, and the device processes the data to improve the data processing performance.

[0105] After selecting the target heterogeneous acceleration device, the processor also needs to download the target reconfigurable configuration file corresponding to the target heterogeneous acceleration device and load it into the target heterogeneous acceleration device to update the reconfigurable logic of the target heterogeneous acceleration device. After the target reconfigurable configuration file corresponding to the target heterogeneous acceleration device is loaded into the reconfigurable logic of the target heterogeneous acceleration device, the storage device transmits the data to be processed to the target heterogeneous acceleration device.

[0106] That is, after determining the target heterogeneous acceleration device, the processor downloads the target reconfigurable configuration file corresponding to the target heterogeneous acceleration device in the folder for storing reconfigurable configuration files, and loads the downloaded file into the reconfigurable logic of the target heterogeneous acceleration device to update the reconfigurable logic of the target heterogeneous acceleration device, thereby realizing the design update of the target heterogeneous acceleration device. Since the target heterogeneous acceleration device is a device in the heterogeneous computing system, the update of the heterogeneous computing system is realized by updating the target heterogeneous acceleration device.

[0107] For the target heterogeneous acceleration device, it is loaded with a target reconfigurable configuration file that supports the target processing type, so it can process the pending data corresponding to the data processing request (corresponding to the target processing type). After the target heterogeneous acceleration device loads the target reconfigurable configuration file, the pending data corresponding to the data processing request is transmitted from the storage device to the target heterogeneous acceleration device, and the target heterogeneous acceleration device processes the pending data to select the appropriate heterogeneous acceleration device for data processing, improve data processing performance, and then build the optimal data processing heterogeneous computing system.

[0108] The data to be processed may be transmitted from the storage device to the target heterogeneous acceleration device in a point-to-point transmission or a memory transfer transmission, and the transmission mode used is determined based on the transmission mode supported by the transmission path.

[0109] In the case where the data to be processed is transmitted to the target heterogeneous acceleration device based on a point-to-point transmission method, the storage device transmits the data to be processed to the target heterogeneous acceleration device through a bus switch device and / or a bus root complex; in the case where the data to be processed is transmitted to the target heterogeneous acceleration device based on a memory transit transmission method, the storage device transmits the data to be processed to the target heterogeneous acceleration device through the memory.

[0110] During data transmission, for point-to-point transmission, the DMA (Data Memory Access) controller in the storage device or the DMA controller on the target heterogeneous acceleration device transfers the data to be processed from the storage device to the target heterogeneous acceleration device; for memory transfer transmission, the DMA controller in the storage device moves the data to be processed to the memory, and the DMA controller on the target heterogeneous acceleration device moves the data to be processed from the memory to the target heterogeneous acceleration device.

[0111] In the above implementation process, after obtaining a data processing request corresponding to a target processing type, the processor searches for a first heterogeneous acceleration device that supports the target processing type among multiple heterogeneous acceleration devices including static logic and reconfigurable logic based on the data transmission path and the processing type supported by the device, determines a target reconfigurable configuration file corresponding to the first heterogeneous acceleration device, calculates a matching evaluation parameter based on the type and quantity of configuration resources required by the target reconfigurable configuration file corresponding to the first heterogeneous acceleration device and the type and quantity of dynamic configuration resources available to the first heterogeneous acceleration device, and determines a target heterogeneous acceleration device based on the matching evaluation parameter. After determining the target heterogeneous acceleration device, the processor downloads the matching reconfigurable configuration file and loads it to the target heterogeneous acceleration device for dynamic logic update to implement an update of the heterogeneous computing system. The storage device transmits the to-be-processed data adapted to the data processing request to the target heterogeneous acceleration device based on a point-to-point transmission method or a memory transfer transmission method, and the target heterogeneous acceleration device performs data processing. The appropriate heterogeneous acceleration device can be flexibly selected based on data processing requirements, and the selected heterogeneous acceleration device processes the to-be-processed data provided by the storage device, so as to improve data processing performance by using an appropriate heterogeneous acceleration device.

[0112] The following is an introduction to the process of establishing a heterogeneous acceleration device path table by the processor. The processor establishes a device link list and a device adjacency list based on the bus device tree topology corresponding to the heterogeneous computing system, and establishes an undirected graph based on the device adjacency list; the device link list records the bus devices corresponding to the heterogeneous computing system, and the device adjacency list is used to record the connection relationship between the bus devices corresponding to the heterogeneous computing system;

[0113] The processor traverses the heterogeneous acceleration devices in the device linked list, searches for the shortest path between each heterogeneous acceleration device and the storage device and the number of hops corresponding to the shortest path in the undirected graph, and establishes a heterogeneous acceleration device path table that characterizes the correspondence between the heterogeneous acceleration devices, the shortest path, and the number of hops information according to the shortest path and the number of hops corresponding to each heterogeneous acceleration device.

[0114] After obtaining the bus device tree topology corresponding to the heterogeneous computing system, the processor establishes a device list and a device adjacency list. The device list records all bus devices on the PCIe bus and the device information corresponding to the bus devices. The device information includes but is not limited to the device ID (such as the BDF (Bus, Device, Function) Number of the PCIe bus), manufacturer ID, model, product SN (Serial Number), device type and other information. For PCIe Switch and PCIe RC, their device information also includes whether point-to-point transmission is supported. The device adjacency table is used to record the connection relationship between bus devices on the PCIe bus.

[0115] like Figure 3A As shown, for Figure 1 The schematic diagram of the device list constructed by the heterogeneous computing system shown in Figure 3A In the example, the device list corresponds to Figure 1 The bus root complex (PCIe RC), bus switch device 1 (such as PCIe Switch), storage device, bus switch device 2, heterogeneous acceleration device 1, heterogeneous acceleration device 2, other devices and heterogeneous acceleration device 3 in the system; among them, the device ID (identifier) ​​corresponding to the bus root complex is 1, the device ID corresponding to the bus switch device 1 is 2, the device ID corresponding to the storage device is 3, the device ID corresponding to the bus switch device 2 is 4, the device ID corresponding to the heterogeneous acceleration device 1 is 5, the device ID corresponding to the heterogeneous acceleration device 2 is 6, the device ID corresponding to the other devices is 7, and the device ID corresponding to the heterogeneous acceleration device 3 is 8. By traversing the device list, the heterogeneous acceleration devices corresponding to the heterogeneous computing system can be found.

[0116] like Figure 3B As shown, for Figure 1 The schematic diagram of the device adjacency table constructed by the heterogeneous computing system shown in the figure shows that for the bus root complex with device ID 1, it is connected to the bus switch device 1 with device ID 2 and the heterogeneous acceleration device 2 with device ID 6; for the bus switch device 1 with device ID 2, it is connected to the storage device with device ID 3, the bus switch device 2 with device ID 4, and the heterogeneous acceleration device 1 with device ID 5; for the bus switch device 2 with device ID 4, it is connected to other devices with device ID 7 and the heterogeneous acceleration device 3 with device ID 8. Figure 3B In the device adjacency table shown, for example, for the bus root complex, the corresponding adjacent device linked list pointer (the space below the device identifier 1 in the figure) points to the linked list of devices directly connected to it (such as the bus switch device 1 and the heterogeneous acceleration device 2 are both adjacent devices of the bus root complex).

[0117] After establishing the device list and the device adjacency list, the processor establishes an undirected graph according to the device adjacency list, traverses the heterogeneous acceleration devices in the device list, and uses the minimum path method to find the shortest path between each heterogeneous acceleration device and the storage device and the hop count information corresponding to the shortest path in the undirected graph. For each heterogeneous acceleration device, the corresponding relationship between the heterogeneous acceleration device, the shortest path and the hop count information is recorded, and a heterogeneous acceleration device path table that characterizes the corresponding relationship between the heterogeneous acceleration device, the shortest path and the hop count information is established.

[0118] After establishing the device list and the device adjacency list, an undirected graph is constructed based on the device adjacency list, the heterogeneous acceleration devices in the device list are traversed, the shortest path and hop count information corresponding to the heterogeneous acceleration devices are searched in the undirected graph, and a heterogeneous acceleration device path table is established that characterizes the correspondence between the heterogeneous acceleration devices, the shortest path and the hop count information, so as to provide a data path between the heterogeneous acceleration devices and the storage devices.

[0119] The following is an introduction to the process of the processor selecting a target heterogeneous acceleration device. The processor selects heterogeneous acceleration devices that support a point-to-point transmission mode between the processor and the storage device in the heterogeneous acceleration device path table, determines a first device set, selects first heterogeneous acceleration devices that support a target processing type in the first device set, determines a second device set, and selects a target heterogeneous acceleration device according to a matching evaluation parameter corresponding to the first heterogeneous acceleration device in the second device set; wherein, heterogeneous acceleration devices that support a point-to-point transmission mode on intermediate nodes on the shortest path between the processor and the storage device belong to the first device set, and bus switch devices and bus root complexes belong to the intermediate nodes; and a reconfigurable configuration file corresponding to the first heterogeneous acceleration device in the second device set supports the target processing type.

[0120] Since the heterogeneous acceleration device path table records the correspondence between the heterogeneous acceleration device and the shortest path and the number of hops, the processor can screen the heterogeneous acceleration devices that support point-to-point transmission between the storage device and the heterogeneous acceleration device path table, and determine the first device set based on the screened heterogeneous acceleration devices. Among them, the first device set includes at least one heterogeneous acceleration device or the first device set is an empty set. In the case where the first device set includes at least one heterogeneous acceleration device, the first heterogeneous acceleration device that supports the target processing type is continuously screened in the first device set, and the second device set is determined based on the screened first heterogeneous acceleration device. At this time, the heterogeneous acceleration devices that can perform point-to-point transmission with the storage device and support the target processing type can be determined through screening in two dimensions. In the case where the first device set is an empty set, it indicates that there is no heterogeneous acceleration device that performs point-to-point transmission with the storage device, and other methods are continued to be used to screen the adapted heterogeneous acceleration devices.

[0121] Since the memory transfer transmission method requires copying data twice, the transmission time is long and occupies resources. Therefore, a heterogeneous acceleration device that supports point-to-point transmission between the storage device is selected. This can improve the efficiency of data transmission based on the point-to-point transmission method and avoid unreasonable occupation of resources.

[0122] For the processor, when determining the first device set, it obtains the shortest path between the heterogeneous acceleration device and the storage device based on the heterogeneous acceleration device path table, and then checks whether the intermediate nodes on the shortest path all support the point-to-point transmission mode. The intermediate nodes on the shortest path include bus switch devices and / or bus root complexes, for example, Figure 1 The intermediate nodes on the shortest path between the heterogeneous acceleration device 2 and the storage device include the bus root complex and the bus switch device 1. Figure 1 The intermediate node on the shortest path between the heterogeneous acceleration device 1 and the storage device includes the bus switch device 1.

[0123] The device information corresponding to the bus switch device and the bus root complex includes the supported data transmission mode. Based on the content in the device information, it can be checked whether the bus switch device and the bus root complex support the point-to-point transmission mode. For heterogeneous acceleration devices whose intermediate nodes on the shortest path all support the point-to-point transmission mode, they are placed in the first device set. By traversing the heterogeneous acceleration devices in the heterogeneous acceleration device path table, the heterogeneous acceleration devices whose intermediate nodes on the shortest path all support the point-to-point transmission mode are screened out, and then the first device set is determined.

[0124] By screening out heterogeneous acceleration devices that correspond to the point-to-point transmission mode between the storage device and the selected heterogeneous acceleration devices, data can be exchanged with the storage device through the point-to-point transmission mode, so as to improve the efficiency of data transmission and avoid unreasonable occupation of resources.

[0125] After determining the first device set including at least one heterogeneous acceleration device, the processor continues to screen heterogeneous acceleration devices in the first device set. Since the heterogeneous acceleration devices that use point-to-point transmission to transmit data with the storage device have been screened out, on this basis, the heterogeneous acceleration devices that support the target processing type continue to be screened. In this stage, the processor screens the heterogeneous acceleration devices in the first device set based on whether the reconfigurable configuration file corresponding to the heterogeneous acceleration device supports the target processing type, that is, detects whether the reconfigurable configuration file corresponding to the heterogeneous acceleration device supports the target processing type. If the target processing type is supported, the heterogeneous acceleration device is placed in the second device set. If the target processing type is not supported, the heterogeneous acceleration device is filtered. The second device set is determined by screening out the first heterogeneous acceleration device that supports the target processing type in the first device set.

[0126] The second device set includes at least one selected first heterogeneous acceleration device or the second device set is an empty set. In the case where the second device set includes at least one first heterogeneous acceleration device, a target heterogeneous acceleration device is selected from at least one first heterogeneous acceleration device. In the case where the second device set is an empty set, other means are used to determine the target heterogeneous acceleration device. If the second device set includes a first heterogeneous acceleration device, the device is directly determined as the target heterogeneous acceleration device.

[0127] It should be noted that in the above screening scheme, the heterogeneous acceleration devices whose shortest paths with the storage devices support point-to-point transmission are first screened out, and then the heterogeneous acceleration devices that support the target processing type are further screened out from the screened heterogeneous acceleration devices. In an optional implementation scheme, the heterogeneous acceleration devices that support the target processing type may also be screened out first, and then the screened heterogeneous acceleration devices that support the target processing type are further screened to screen out the heterogeneous acceleration devices whose shortest paths with the storage devices support point-to-point transmission. Regardless of the screening method used, the purpose is to obtain heterogeneous acceleration devices that support both the target processing type and point-to-point transmission with the storage device, so as to improve the efficiency of data transmission and rationally utilize resources based on the point-to-point transmission method.

[0128] In another optional embodiment of the present application, if the first device set or the second device set is an empty set, the processor is further used to: traverse the heterogeneous acceleration devices in the device list, screen the first heterogeneous acceleration device whose reconfigurable file supports the target processing type, and determine the third device set.

[0129] In the case where the first device set is an empty set, it indicates that there is no heterogeneous acceleration device that performs point-to-point data transmission with the storage device. In the case where the second device set is an empty set, it indicates that there is no heterogeneous acceleration device that performs point-to-point data transmission with the storage device and supports the target processing type. When the first device set or the second device set is an empty set, the heterogeneous acceleration devices in the device linked list are traversed, and the heterogeneous acceleration devices are screened based on whether the reconfigurable configuration files corresponding to the heterogeneous acceleration devices support the target processing type. The screened heterogeneous acceleration devices that support the target processing type with the reconfigurable configuration files are determined as the first heterogeneous acceleration devices, and the third device set is determined based on the screened first heterogeneous acceleration devices. That is, the heterogeneous acceleration devices in the third device set only support the target processing type, but do not support point-to-point data transmission with the storage device.

[0130] After determining the third device set by traversing the device linked list, determine the target heterogeneous acceleration device based on the first heterogeneous acceleration device in the third device set; if the third device set includes only one first heterogeneous acceleration device, determine the device as the target heterogeneous acceleration device; if the third device set includes at least two first heterogeneous acceleration devices, calculate the matching evaluation parameters corresponding to the first heterogeneous acceleration device, and select the target heterogeneous acceleration device based on the matching evaluation parameters.

[0131] In the case where there is no heterogeneous acceleration device that performs point-to-point data transmission with the storage device, and in the case where there is no heterogeneous acceleration device that performs point-to-point data transmission with the storage device and supports the target processing type, a heterogeneous acceleration device that supports the target processing type is searched, and then the target heterogeneous acceleration device is determined. When a heterogeneous acceleration device that supports point-to-point transmission cannot be obtained, a heterogeneous acceleration device that uses memory transit transmission for data transmission and supports the target processing type can be suboptimally selected.

[0132] When calculating a matching evaluation parameter for a first heterogeneous acceleration device in the second device set or the third device set, if the first heterogeneous acceleration device belongs to the second device set, the processor calculates the matching evaluation parameter of the first heterogeneous acceleration device based on the first formula; if the first heterogeneous acceleration device belongs to the third device set, the processor calculates the matching evaluation parameter of the first heterogeneous acceleration device based on the second formula.

[0133] Taking the heterogeneous acceleration device as an FPGA device as an example, the process of calculating the matching evaluation parameter is introduced. In the case where the first heterogeneous acceleration device is a heterogeneous acceleration device belonging to the second device set, performing point-to-point data transmission with the storage device and supporting the target processing type, the matching evaluation parameter is calculated based on the first formula, and the first formula is shown in the following formula (1):

[0134] (1)

[0135] in, is the hop count information of the first heterogeneous acceleration device, To match the evaluation parameters;

[0136] The number of programmable logic blocks available for the first heterogeneous acceleration device, the number of programmable logic blocks required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the programmable logic block;

[0137] is the number of programmable input / output units available for the first heterogeneous acceleration device, the number of programmable input / output units required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the programmable input / output unit;

[0138] is the number of routing resources available to the first heterogeneous acceleration device, the number of routing resources required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the wiring resource;

[0139] is the number of underlying embedded units available to the first heterogeneous acceleration device, the number of underlying embedded units required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the underlying embedding unit;

[0140] is the amount of embedded random access memory available to the first heterogeneous acceleration device, the amount of embedded random access memory required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the embedded random access memory.

[0141] When calculating the matching evaluation parameters of the first heterogeneous acceleration device based on the first formula, it is necessary to extract the types and quantities of configuration resources required for the target reconfigurable configuration file corresponding to the first heterogeneous acceleration device from the resource requirement file used to record the number of various resources required for the reconfigurable configuration file, and extract the types and quantities of dynamic configuration resources available to the first heterogeneous acceleration device from the device resource file used to record the number of various resources available to the heterogeneous acceleration device. That is, the number of programmable logic blocks, the number of programmable input / output units, the number of wiring resources, the number of underlying embedded units, and the number of embedded RAMs required for the target reconfigurable configuration file corresponding to the first heterogeneous acceleration device are extracted from the resource requirement file; the number of programmable logic blocks, the number of programmable input / output units, the number of wiring resources, the number of underlying embedded units, and the number of embedded RAMs available to the first heterogeneous acceleration device are extracted from the device resource file.

[0142] Based on the extracted information, when the matching evaluation parameter is calculated by the calculation method of formula (1), the calculation process is as follows: Calculate the square of the difference between the number of available programmable logic blocks and the number of required programmable logic blocks, divide the obtained value by the number of available programmable logic blocks, and multiply it by the weight parameter α of the programmable logic blocks to obtain a first parameter. Calculate the square of the difference between the number of available programmable input / output units and the number of required programmable input / output units, divide the obtained value by the number of available programmable input / output units, and multiply it by the weight parameter β of the programmable input / output units to obtain a second parameter. Calculate the square of the difference between the number of available wiring resources and the number of required wiring resources, divide the obtained value by the number of available wiring resources, and multiply it by the weight parameter γ of the wiring resources to obtain a third parameter. Calculate the square of the difference between the number of available bottom-level embedded units and the number of required bottom-level embedded units, divide the obtained value by the number of available bottom-level embedded units, and multiply it by the weight parameter δ of the bottom-level embedded units to obtain a fourth parameter. The square of the difference between the number of available embedded RAMs and the number of required embedded RAMs is calculated, and the obtained value is divided by the number of available embedded RAMs, and multiplied by the weight parameter ε of the embedded RAM to obtain a fifth parameter. An accumulated value is determined based on the accumulation of the first parameter, the second parameter, the third parameter, the fourth parameter, and the fifth parameter, and another parameter is determined based on the hop count information of the first heterogeneous acceleration device, and a matching evaluation parameter of the first heterogeneous acceleration device is determined based on the product of the parameter and the accumulated value.

[0143] It should be noted that the sizes of weight parameter α, weight parameter β, weight parameter γ, weight parameter δ and weight parameter ε are determined based on the importance of programmable logic blocks, programmable input / output units, wiring resources, underlying embedded units and embedded RAM.

[0144] In the case where the first heterogeneous acceleration device is a heterogeneous acceleration device that belongs to the third device set, cannot perform point-to-point data transmission with the storage device, and supports the target processing type, the matching evaluation parameter is calculated based on the second formula, and the second formula is shown in the following formula (2):

[0145] (2)

[0146] in, The other parameters are the same as those corresponding to formula (1), and will not be elaborated here. When the matching evaluation parameters are calculated using the calculation method of formula (2), the first parameter, the second parameter, the third parameter, the fourth parameter, and the fifth parameter are calculated based on the information extracted from the resource requirement file and the device resource file. Since the heterogeneous acceleration device in the third device set does not support point-to-point data transmission with the storage device, the hop count information is not considered, and the matching evaluation parameters are determined directly based on the accumulation of the first parameter, the second parameter, the third parameter, the fourth parameter, and the fifth parameter.

[0147] After determining the matching evaluation parameter of the first heterogeneous acceleration device, selecting a target heterogeneous acceleration device from the first heterogeneous acceleration device based on the matching evaluation parameter includes: determining the first heterogeneous acceleration device with the smallest matching evaluation parameter as the target heterogeneous acceleration device.

[0148] Based on the above formula (1) and formula (2), it can be known that the smaller the difference between the number of various dynamic configuration resources available for the heterogeneous acceleration device and the number of various configuration resources required by the target reconfigurable configuration file corresponding to the heterogeneous acceleration device, the smaller the matching evaluation parameter. Correspondingly, the smaller the hop count information τ of the heterogeneous acceleration device, the smaller the parameter determined based on τ, and the smaller the corresponding matching evaluation parameter. Therefore, the first heterogeneous acceleration device with the smallest matching evaluation parameter is determined as the target heterogeneous acceleration device.

[0149] If the determined target heterogeneous acceleration device belongs to the second device set, the data to be processed is transmitted to the target heterogeneous acceleration device based on a point-to-point transmission method; if the determined target heterogeneous acceleration device belongs to the third device set, the data to be processed is transmitted to the target heterogeneous acceleration device based on a memory transit transmission method.

[0150] The above implementation scheme introduces the process of calculating the matching evaluation parameters and selecting the target heterogeneous acceleration device based on the matching evaluation parameters. For heterogeneous acceleration devices belonging to different device sets, an adaptive scheme is used to calculate the matching evaluation parameters, which can realize the selection of a suitable calculation strategy to calculate the matching evaluation parameters based on whether point-to-point transmission is supported; after determining the matching evaluation parameters, the heterogeneous acceleration device with the smallest matching evaluation parameters is selected as the target heterogeneous acceleration device, which can realize the selection of the most suitable heterogeneous acceleration device based on the smallest matching evaluation parameters.

[0151] The above content introduces the heterogeneous computing system provided by the embodiment of the present application. The following introduces the data transmission method applied to the processor provided by the embodiment of the present application. Figure 4 Said method comprises:

[0152] Step 401: In response to a received data processing request corresponding to a target processing type, based on a data transmission path and processing types supported by the device, searching for a first heterogeneous acceleration device that supports the target processing type among multiple heterogeneous acceleration devices.

[0153] After receiving the user's data processing request, the processor determines the target processing type corresponding to the data processing request, obtains the data processing type supported by the reconfigurable configuration file corresponding to the heterogeneous acceleration device, and selects the first heterogeneous acceleration device based on the data transmission path and whether the device supports the target processing type.

[0154] Step 402: Calculate a matching evaluation parameter of the first heterogeneous acceleration device according to the type and quantity of configuration resources required by the target reconfigurable configuration file corresponding to the first heterogeneous acceleration device and the type and quantity of dynamic configuration resources available to the first heterogeneous acceleration device.

[0155] After finding the first heterogeneous acceleration device, the processor determines a target reconfigurable configuration file corresponding to the first heterogeneous acceleration device and adapted to the target processing type. In the resource requirement file, the type and quantity of configuration resources required by the target reconfigurable configuration file corresponding to the first heterogeneous acceleration device are extracted, and in the device resource file, the type and quantity of dynamic configuration resources available to the first heterogeneous acceleration device are extracted. Then, based on the acquired information, a matching evaluation parameter of the first heterogeneous acceleration device is calculated. The matching evaluation parameter is used to evaluate the matching of the configuration resources required by the target reconfigurable configuration file corresponding to the heterogeneous acceleration device and the dynamic configuration resources available to the heterogeneous acceleration device.

[0156] Step 403: Select a target heterogeneous acceleration device from the first heterogeneous acceleration device based on the matching evaluation parameter.

[0157] After obtaining the matching evaluation parameters of the first heterogeneous acceleration device, a target heterogeneous acceleration device is selected from the first heterogeneous acceleration device based on the matching evaluation parameters. The selected target heterogeneous acceleration device is a device for processing the data to be processed corresponding to the data processing request, thereby realizing a flexible selection method to determine a heterogeneous acceleration device that is compatible with the data to be processed.

[0158] Step 404: Control the storage device to transmit the pending data adapted by the data processing request to the target heterogeneous acceleration device, and the target heterogeneous acceleration device processes the pending data; wherein the pending data is transmitted from the storage device to the target heterogeneous acceleration device based on a point-to-point transmission method or a memory transfer transmission method.

[0159] After determining the target heterogeneous acceleration device, the processor controls the storage device to transmit the to-be-processed data adapted by the data processing request to the target heterogeneous acceleration device, and the target heterogeneous acceleration device processes the to-be-processed data. The to-be-processed data can be transmitted from the storage device to the target heterogeneous acceleration device in a point-to-point transmission or memory transfer transmission.

[0160] In the above implementation process, after determining the target heterogeneous acceleration device, the processor controls the storage device to transmit the data to be processed to the target heterogeneous acceleration device based on point-to-point transmission or memory transfer transmission, and the target heterogeneous acceleration device processes the data, thereby improving data processing performance by using a suitable heterogeneous acceleration device.

[0161] Optionally, after the processor selects the target heterogeneous acceleration device, the method further includes:

[0162] Downloading a target reconfiguration file corresponding to the target heterogeneous acceleration device to the target heterogeneous acceleration device to update the reconfigurable logic of the target heterogeneous acceleration device;

[0163] Among them, after the target reconfiguration file corresponding to the target heterogeneous acceleration device is loaded into the reconfigurable logic of the target heterogeneous acceleration device, the processor controls the storage device to transmit the data to be processed.

[0164] After determining the target heterogeneous acceleration device, the processor downloads the target reconfiguration file corresponding to the target heterogeneous acceleration device and loads the file into the reconfigurable logic of the target heterogeneous acceleration device to update the reconfigurable logic of the target heterogeneous acceleration device, thereby updating the target heterogeneous acceleration device. Since the target heterogeneous acceleration device belongs to a device in the heterogeneous computing system, the heterogeneous computing system is updated by updating the target heterogeneous acceleration device.

[0165] After the reconfigurable logic of the target heterogeneous acceleration device is updated, the processor controls the storage device to transfer the pending data adapted to the data processing request to the target heterogeneous acceleration device. After the data transmission is completed, the target heterogeneous acceleration device processes the pending data to realize data processing based on the selected adapted heterogeneous acceleration device, thereby improving data processing performance.

[0166] It should be noted that after the reconfiguration logic of the heterogeneous acceleration device is updated based on the loaded reconfiguration file, and the heterogeneous acceleration device and the heterogeneous computing system are updated, when the current heterogeneous acceleration device is idle again, if it is selected as the target heterogeneous acceleration device adapted to another data processing request, the reconfiguration file adapted to the processing type corresponding to the current data processing request can be determined in the reconfiguration file corresponding to the target heterogeneous acceleration device, and the reconfiguration file can be downloaded and loaded into the reconfiguration logic of the target heterogeneous acceleration device to update the reconfiguration logic of the heterogeneous acceleration device again, thereby realizing the re-update of the heterogeneous acceleration device and the re-update of the heterogeneous computing system. That is, the heterogeneous acceleration device can be updated once or multiple times based on the adapted data processing request, thereby building an optimal data processing heterogeneous computing system.

[0167] In another optional embodiment of the present application, before searching for the target heterogeneous acceleration device, the method also includes: establishing a device list and a device adjacency list according to the bus device tree topology corresponding to the heterogeneous computing system; the device list records the bus devices corresponding to the heterogeneous computing system, and the device adjacency table is used to record the connection relationship between the bus devices corresponding to the heterogeneous computing system; establishing an undirected graph according to the device adjacency table; traversing the heterogeneous acceleration devices in the device list, searching for the shortest path between each heterogeneous acceleration device and the storage device and the hop count information corresponding to the shortest path in the undirected graph; and establishing a heterogeneous acceleration device path table that characterizes the correspondence between the heterogeneous acceleration devices, the shortest path, and the hop count information according to the shortest path and hop count information corresponding to each heterogeneous acceleration device.

[0168] The process of establishing the device list and the device adjacency list is described in the relevant description of the above system embodiment, which will not be elaborated here. After establishing the device list and the device adjacency list, an undirected graph is established according to the device adjacency list, and the heterogeneous acceleration devices in the device list are traversed. The shortest path between each heterogeneous acceleration device and the storage device and the hop count information corresponding to the shortest path are found in the undirected graph using the minimum path method. For each heterogeneous acceleration device, the correspondence between the heterogeneous acceleration device, the shortest path and the hop count information is recorded, and a heterogeneous acceleration device path table is established to characterize the correspondence between the heterogeneous acceleration device, the shortest path and the hop count information.

[0169] After establishing the heterogeneous acceleration device path table, searching for the first heterogeneous acceleration device based on the heterogeneous acceleration device path table, that is, when the processor searches for the first heterogeneous acceleration device supporting the target processing type among the multiple heterogeneous acceleration devices, the method includes: in response to the data processing request, screening the heterogeneous acceleration devices supporting the point-to-point transmission mode between the storage device and the heterogeneous acceleration device path table to determine the first device set; screening the first heterogeneous acceleration devices supporting the target processing type in the first device set to determine the second device set.

[0170] Since the heterogeneous acceleration device path table records the correspondence between the heterogeneous acceleration device and the shortest path and the number of hops, after receiving the data processing request, the processor screens the heterogeneous acceleration devices that support point-to-point transmission between the storage device and the heterogeneous acceleration device path table, and determines the first device set based on the screened heterogeneous acceleration devices. Then, the processor continues to screen the first heterogeneous acceleration device that supports the target processing type in the first device set, and determines the second device set based on the screened first heterogeneous acceleration device.

[0171] The step of selecting a heterogeneous acceleration device that supports a point-to-point transmission mode between the storage device and the heterogeneous acceleration device path table to determine the first device set includes:

[0172] Based on the heterogeneous acceleration device path table, check whether the intermediate nodes on the shortest path corresponding to each heterogeneous acceleration device all support the point-to-point transmission mode; filter out the heterogeneous acceleration devices whose intermediate nodes on the shortest path all support the point-to-point transmission mode, and determine the first device set based on the filtered heterogeneous acceleration devices.

[0173] Based on the heterogeneous acceleration device path table, the shortest path between the heterogeneous acceleration device and the storage device can be obtained, and then it is checked whether the intermediate nodes on the shortest path all support the point-to-point transmission mode. The intermediate nodes on the shortest path include bus switch devices and / or bus root complexes. For heterogeneous acceleration devices whose intermediate nodes on the shortest path all support the point-to-point transmission mode, they are placed in the first device set. By traversing the heterogeneous acceleration devices in the heterogeneous acceleration device path table, the heterogeneous acceleration devices whose intermediate nodes on the shortest path all support the point-to-point transmission mode are screened out, and then the first device set is determined.

[0174] When the first device set is determined, a first heterogeneous acceleration device that supports the target processing type is screened in the first device set, and when the second device set is determined, the method includes: detecting whether the reconfigurable configuration file corresponding to the heterogeneous acceleration device in the first device set supports the target processing type; screening out the first heterogeneous acceleration device whose reconfigurable configuration file supports the target processing type in the first device set, and determining the second device set.

[0175] After determining the first device set including at least one heterogeneous acceleration device, continue to screen heterogeneous acceleration devices that support the target processing type. In this stage, for the heterogeneous acceleration devices in the first device set, the heterogeneous acceleration devices are screened based on whether the reconfigurable configuration files corresponding to the heterogeneous acceleration devices support the target processing type. By screening out the first heterogeneous acceleration devices that support the target processing type in the first device set, the second device set can be determined.

[0176] The second device set includes at least one screened first heterogeneous acceleration device or the second device set is an empty set. If the second device set includes at least one first heterogeneous acceleration device, a target heterogeneous acceleration device is selected from the at least one first heterogeneous acceleration device. If the second device set is an empty set, other means are used to determine the target heterogeneous acceleration device.

[0177] Optionally, for the case where the first device set or the second device set is an empty set, the method further includes:

[0178] The heterogeneous acceleration devices in the device linked list are traversed, the first heterogeneous acceleration device whose reconfigurable file supports the target processing type is screened, and a third device set is determined.

[0179] When the first device set or the second device set is an empty set, the heterogeneous acceleration devices in the device linked list are traversed, and the heterogeneous acceleration devices are screened based on whether the reconfigurable configuration files corresponding to the heterogeneous acceleration devices support the target processing type, and the screened heterogeneous acceleration devices whose reconfigurable configuration files support the target processing type are determined as the first heterogeneous acceleration devices, and the third device set is determined based on the screened first heterogeneous acceleration devices. That is, the heterogeneous acceleration devices in the third device set only support the target processing type, but do not support point-to-point data transmission with the storage device.

[0180] When calculating the matching evaluation parameter for the first heterogeneous acceleration device in the second device set or the third device set, if the first heterogeneous acceleration device belongs to the second device set, the matching evaluation parameter of the first heterogeneous acceleration device is calculated based on the first formula; if the first heterogeneous acceleration device belongs to the third device set, the matching evaluation parameter of the first heterogeneous acceleration device is calculated based on the second formula.

[0181] Taking the heterogeneous acceleration device as an FPGA device as an example, the process of calculating the matching evaluation parameter is introduced. In the case where the first heterogeneous acceleration device is a heterogeneous acceleration device belonging to the second device set, performing point-to-point data transmission with the storage device and supporting the target processing type, the matching evaluation parameter is calculated based on the first formula, and the first formula is shown in the following formula (1):

[0182] (1)

[0183] in, is the hop count information of the first heterogeneous acceleration device, To match the evaluation parameters;

[0184] The number of programmable logic blocks available for the first heterogeneous acceleration device, the number of programmable logic blocks required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the programmable logic block;

[0185] is the number of programmable input / output units available for the first heterogeneous acceleration device, the number of programmable input / output units required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the programmable input / output unit;

[0186] is the number of routing resources available to the first heterogeneous acceleration device, the number of routing resources required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the wiring resource;

[0187] is the number of underlying embedded units available to the first heterogeneous acceleration device, the number of underlying embedded units required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the underlying embedding unit;

[0188] is the amount of embedded random access memory available to the first heterogeneous acceleration device, the amount of embedded random access memory required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the embedded random access memory.

[0189] In the case where the first heterogeneous acceleration device is a heterogeneous acceleration device that belongs to the third device set, cannot perform point-to-point data transmission with the storage device, and supports the target processing type, the matching evaluation parameter is calculated based on the second formula, and the second formula is shown in the following formula (2):

[0190] (2)

[0191] in, To match the evaluation parameters, the other parameters are the same as those corresponding to formula (1), and will not be elaborated here.

[0192] The detailed process of calculating the matching evaluation parameter based on formula (1) and formula (2) is described in the relevant introduction of the system side embodiment, which will not be repeated here. After determining the matching evaluation parameter of the first heterogeneous acceleration device, the first heterogeneous acceleration device with the smallest matching evaluation parameter is determined as the target heterogeneous acceleration device.

[0193] In the case where the target heterogeneous acceleration device is a device in the second device set, since the target heterogeneous acceleration device can perform point-to-point data transmission with the storage device, at this time, the processor controls the storage device to transmit the data to be processed to the target heterogeneous acceleration device based on the point-to-point transmission method; in the case where the target heterogeneous acceleration device is a device in the third device set, since the target heterogeneous acceleration device and the storage device do not support point-to-point data transmission, at this time, the processor controls the storage device to transmit the data to be processed to the target heterogeneous acceleration device based on the memory transit transmission method.

[0194] The following is an introduction to the data transmission process through an overall implementation process. Figure 5 As shown, the following steps are included:

[0195] Step 501: The processor determines a target processing type in response to a data processing request.

[0196] Step 502: The processor selects a target heterogeneous acceleration device from among multiple heterogeneous acceleration devices that supports the target processing type and performs point-to-point data transmission or memory-transfer data transmission with a storage device.

[0197] Step 503: The processor downloads a target reconfigurable configuration file corresponding to the target heterogeneous acceleration device and adapted to the target processing type, and loads the downloaded target reconfigurable configuration file into the reconfigurable logic of the target heterogeneous acceleration device.

[0198] Step 504: The processor controls the storage device to transmit the to-be-processed data to the target heterogeneous acceleration device through a point-to-point data transmission or a memory-transfer data transmission.

[0199] Step 505: After the data transmission is completed, the target heterogeneous acceleration device loaded with the target reconfigurable configuration file processes the data to be processed.

[0200] The above implementation process can improve data processing performance and build an optimal data processing heterogeneous computing system by flexibly selecting a heterogeneous acceleration device that adapts to the data processing request and having the selected heterogeneous acceleration device process the data to be processed.

[0201] The embodiment of the present application also provides a computer program product, including a computer program / instruction. When the computer program / instruction is executed by a processor, the various processes of the above-mentioned data transmission method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0202] An embodiment of the present application also provides an electronic device, comprising a memory for storing processor executable instructions; wherein the processor is configured to execute instructions to implement the various processes of the above-mentioned data transmission method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0203] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned data transmission method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0204] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0205] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, computer program products, electronic devices, and storage media. Therefore, the embodiments of the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present application may take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0206] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, systems, computer program products, electronic devices, and storage media according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing terminal device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1These computer program instructions can also be loaded into a computer or other programmable data processing terminal device, so that a series of operation steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable terminal device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0207] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.

[0208] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or terminal 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 terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0209] The above introduces the heterogeneous computing system, data transmission method, computer program product, electronic device and medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A heterogeneous computing system, comprising a processor and a bus device connected to the processor, wherein the bus device comprises a storage device and a plurality of heterogeneous acceleration devices, characterized in that: The heterogeneous acceleration device includes static logic and reconfigurable logic; The processor searches, in response to a received data processing request corresponding to a target processing type, for a first heterogeneous acceleration device supporting the target processing type among the plurality of heterogeneous acceleration devices based on a data transmission path and a processing type supported by the device, calculates a matching evaluation parameter of the first heterogeneous acceleration device according to the type and quantity of configuration resources required by a target reconfigurable configuration file corresponding to the first heterogeneous acceleration device and the type and quantity of dynamic configuration resources available to the first heterogeneous acceleration device, and selects a target heterogeneous acceleration device among the first heterogeneous acceleration devices based on the matching evaluation parameter, wherein the target reconfigurable configuration file corresponds to the target processing type; The storage device transmits the to-be-processed data adapted by the data processing request to the target heterogeneous acceleration device; The target heterogeneous acceleration device processes the data to be processed; The first heterogeneous acceleration device supports the point-to-point transmission mode and the target processing type, or the first heterogeneous acceleration device does not support the point-to-point transmission mode but supports the target processing type, and the heterogeneous acceleration device supporting the point-to-point transmission mode is screened out from the heterogeneous acceleration device path table that characterizes the correspondence between the heterogeneous acceleration device, the shortest path and the number of hops information, and the matching evaluation parameter corresponding to the first heterogeneous acceleration device supporting the point-to-point transmission mode and the first heterogeneous acceleration device not supporting the point-to-point transmission mode are determined in different ways, and the data to be processed is transmitted to the target heterogeneous acceleration device based on the point-to-point transmission mode or the memory transfer transmission mode.

2. The heterogeneous computing system according to claim 1, characterized in that: The heterogeneous computing system further includes a memory connected to the processor, the bus device further includes a bus switch device, and the processor has a built-in bus root complex; The storage device transmits the data to be processed to the target heterogeneous acceleration device through the bus switch device and / or the bus root complex in a point-to-point transmission manner, or the storage device transmits the data to be processed to the target heterogeneous acceleration device through the memory in a memory transit transmission manner.

3. The heterogeneous computing system according to claim 1, characterized in that: After selecting the target heterogeneous acceleration device, the processor downloads a target reconfigurable configuration file corresponding to the target heterogeneous acceleration device and loads the target reconfigurable configuration file to the target heterogeneous acceleration device to update the reconfigurable logic of the target heterogeneous acceleration device; Wherein, after the target reconfigurable configuration file corresponding to the target heterogeneous acceleration device is loaded into the reconfigurable logic of the target heterogeneous acceleration device, the storage device transmits the data to be processed to the target heterogeneous acceleration device.

4. The heterogeneous computing system according to claim 2, characterized in that: The processor establishes a device linked list and a device adjacency list according to a bus device tree topology diagram corresponding to the heterogeneous computing system, and establishes an undirected graph according to the device adjacency list; wherein the device linked list records the bus devices corresponding to the heterogeneous computing system, and the device adjacency list is used to record the connection relationship between the bus devices corresponding to the heterogeneous computing system; The processor traverses the heterogeneous acceleration devices in the device linked list, searches the undirected graph for the shortest path between each heterogeneous acceleration device and the storage device and the number of hops information corresponding to the shortest path, and establishes a heterogeneous acceleration device path table that characterizes the correspondence between the heterogeneous acceleration devices, the shortest path, and the number of hops information according to the shortest path and the number of hops information corresponding to each heterogeneous acceleration device.

5. The heterogeneous computing system according to claim 4, characterized in that: The processor selects, in the heterogeneous acceleration device path table, a heterogeneous acceleration device that supports a point-to-point transmission mode between the storage device and the heterogeneous acceleration device, determines a first device set, selects a first heterogeneous acceleration device that supports the target processing type in the first device set, determines a second device set, and selects the target heterogeneous acceleration device according to a matching evaluation parameter corresponding to the first heterogeneous acceleration device in the second device set; Among them, heterogeneous acceleration devices that support point-to-point transmission mode on the intermediate nodes on the shortest path between the storage device belong to the first device set, the bus switch device and the bus root complex both belong to the intermediate nodes; the reconfigurable configuration file corresponding to the first heterogeneous acceleration device located in the second device set supports the target processing type.

6. The heterogeneous computing system according to claim 5, characterized in that: If the first device set or the second device set is an empty set, the processor traverses the heterogeneous acceleration devices in the device linked list, screens the first heterogeneous acceleration device whose reconfigurable file supports the target processing type, and determines a third device set.

7. The heterogeneous computing system according to claim 6, characterized in that: The heterogeneous acceleration device is a field programmable logic gate array device; If the first heterogeneous acceleration device belongs to the second device set, the processor calculates a matching evaluation parameter of the first heterogeneous acceleration device based on a first formula; If the first heterogeneous acceleration device belongs to the third device set, the processor calculates a matching evaluation parameter of the first heterogeneous acceleration device based on a second formula; The first formula is shown in the following formula (1): (1) The second formula is shown in the following formula (2): (2) in, is the hop count information of the first heterogeneous acceleration device, and All are matching evaluation parameters; the number of programmable logic blocks available for the first heterogeneous acceleration device, the number of programmable logic blocks required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the programmable logic block; The number of programmable input / output units available for the first heterogeneous acceleration device, the number of programmable input / output units required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the programmable input / output unit; is the number of wiring resources available to the first heterogeneous acceleration device, the number of routing resources required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the wiring resource; is the number of underlying embedded units available for use by the first heterogeneous acceleration device, the number of underlying embedded units required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the underlying embedding unit; is the amount of embedded random access memory available in the first heterogeneous acceleration device, the number of embedded random access memories required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the embedded random access memory.

8. The heterogeneous computing system according to claim 7, characterized in that: The processor determines the first heterogeneous acceleration device having the smallest matching evaluation parameter as the target heterogeneous acceleration device; Among them, if the target heterogeneous acceleration device is a device in the second device set, the data to be processed is transmitted to the target heterogeneous acceleration device based on a point-to-point transmission method; if the target heterogeneous acceleration device is a device in the third device set, the data to be processed is transmitted to the target heterogeneous acceleration device based on a memory transit transmission method.

9. A data transmission method, applied to a processor, wherein the processor is connected to a bus device, wherein the bus device includes a storage device and a plurality of heterogeneous acceleration devices, wherein the processor and the bus device are both devices in a heterogeneous computing system, characterized in that: include: In response to a received data processing request corresponding to a target processing type, searching for a first heterogeneous acceleration device supporting the target processing type among the plurality of heterogeneous acceleration devices based on a data transmission path and a processing type supported by the device, the heterogeneous acceleration device including static logic and reconfigurable logic; Calculating a matching evaluation parameter of the first heterogeneous acceleration device according to the type and quantity of configuration resources required by a target reconfigurable configuration file corresponding to the first heterogeneous acceleration device and the type and quantity of dynamic configuration resources available to the first heterogeneous acceleration device, wherein the target reconfigurable configuration file corresponds to the target processing type; Based on the matching evaluation parameter, selecting a target heterogeneous acceleration device from the first heterogeneous acceleration devices; Control the storage device to transmit the to-be-processed data adapted by the data processing request to the target heterogeneous acceleration device, so that the target heterogeneous acceleration device processes the to-be-processed data; The first heterogeneous acceleration device supports the point-to-point transmission mode and the target processing type, or the first heterogeneous acceleration device does not support the point-to-point transmission mode but supports the target processing type, and the heterogeneous acceleration device supporting the point-to-point transmission mode is screened out from the heterogeneous acceleration device path table that characterizes the correspondence between the heterogeneous acceleration device, the shortest path and the number of hops information, and the matching evaluation parameter corresponding to the first heterogeneous acceleration device supporting the point-to-point transmission mode and the first heterogeneous acceleration device not supporting the point-to-point transmission mode are determined in different ways, and the data to be processed is transmitted from the storage device to the target heterogeneous acceleration device based on the point-to-point transmission mode or the memory transfer transmission mode.

10. The data transmission method according to claim 9, characterized in that: After selecting the target heterogeneous acceleration device, the method further includes: Downloading a target reconfigurable configuration file corresponding to the target heterogeneous acceleration device to the target heterogeneous acceleration device to update the reconfigurable logic of the target heterogeneous acceleration device; Among them, after the target reconfiguration file corresponding to the target heterogeneous acceleration device is loaded into the reconfigurable logic of the target heterogeneous acceleration device, the processor controls the storage device to transmit the data to be processed.

11. The data transmission method according to claim 9, characterized in that: The method further comprises: According to the bus device tree topology diagram corresponding to the heterogeneous computing system, a device link list and a device adjacency list are established; wherein the device link list records the bus devices corresponding to the heterogeneous computing system, and the device adjacency list is used to record the connection relationship between the bus devices corresponding to the heterogeneous computing system; Establishing an undirected graph according to the device adjacency list; Traversing the heterogeneous acceleration devices in the device linked list, searching the undirected graph for the shortest path between each heterogeneous acceleration device and the storage device and the number of hops corresponding to the shortest path; According to the shortest path and hop count information corresponding to each heterogeneous acceleration device, a heterogeneous acceleration device path table is established to characterize the corresponding relationship between the heterogeneous acceleration device, the shortest path and the hop count information.

12. The data transmission method according to claim 11, characterized in that: The method of searching, in response to a received data processing request corresponding to a target processing type, for a first heterogeneous acceleration device supporting the target processing type among a plurality of heterogeneous acceleration devices based on a data transmission path and a processing type supported by the device, comprises: In response to the data processing request, screening, in the heterogeneous acceleration device path table, heterogeneous acceleration devices that support a point-to-point transmission mode between the storage device and the heterogeneous acceleration device to determine a first device set; A first heterogeneous acceleration device that supports the target processing type is screened in the first device set to determine a second device set.

13. The data transmission method according to claim 12, characterized in that: The step of screening, in the heterogeneous acceleration device path table, heterogeneous acceleration devices that support a point-to-point transmission mode between the storage device and the storage device to determine a first device set includes: Based on the heterogeneous acceleration device path table, checking whether the intermediate nodes on the shortest path corresponding to each heterogeneous acceleration device all support the point-to-point transmission mode; Screening out heterogeneous acceleration devices whose intermediate nodes on the shortest path all support a point-to-point transmission mode, and determining the first device set based on the screened heterogeneous acceleration devices; The bus device further comprises a bus switch device, the processor has a built-in bus root complex, and both the bus switch device and the bus root complex belong to the intermediate node.

14. The data transmission method according to claim 12, characterized in that: The step of screening the first heterogeneous acceleration device supporting the target processing type from the first device set to determine the second device set includes: Detecting whether the reconfigurable configuration file corresponding to the heterogeneous acceleration device in the first device set supports the target processing type; A first heterogeneous acceleration device whose reconfigurable file supports the target processing type is screened out from the first device set, and the second device set is determined.

15. The data transmission method according to claim 12, characterized in that: If the first device set or the second device set is an empty set, the method further includes: The heterogeneous acceleration devices in the device linked list are traversed, and the first heterogeneous acceleration device whose reconfigurable file supports the target processing type is screened to determine a third device set.

16. The data transmission method according to claim 15, characterized in that: The calculating, according to the type and quantity of configuration resources required by the target reconfigurable configuration file corresponding to the first heterogeneous acceleration device and the type and quantity of dynamic configuration resources available to the first heterogeneous acceleration device, a matching evaluation parameter of the first heterogeneous acceleration device includes: If the first heterogeneous acceleration device belongs to the second device set, calculating a matching evaluation parameter of the first heterogeneous acceleration device based on a first formula; If the first heterogeneous acceleration device belongs to the third device set, a matching evaluation parameter of the first heterogeneous acceleration device is calculated based on a second formula.

17. The data transmission method according to claim 16, characterized in that: The heterogeneous acceleration device is a field programmable gate array device, and the first formula is shown in the following formula (1): (1) The second formula is shown in the following formula (2): (2) in, is the hop count information of the first heterogeneous acceleration device, and All are matching evaluation parameters; the number of programmable logic blocks available for the first heterogeneous acceleration device, the number of programmable logic blocks required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the programmable logic block; The number of programmable input / output units available for the first heterogeneous acceleration device, the number of programmable input / output units required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the programmable input / output unit; is the number of wiring resources available to the first heterogeneous acceleration device, the number of routing resources required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the wiring resource; is the number of underlying embedded units available for use by the first heterogeneous acceleration device, the number of underlying embedded units required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the underlying embedding unit; is the amount of embedded random access memory available in the first heterogeneous acceleration device, the number of embedded random access memories required for the target reconfigurable file corresponding to the first heterogeneous acceleration device, is the weight parameter of the embedded random access memory.

18. The data transmission method according to claim 17, characterized in that: The selecting a target heterogeneous acceleration device from the first heterogeneous acceleration devices based on the matching evaluation parameter includes: The first heterogeneous acceleration device with the smallest matching evaluation parameter is determined as the target heterogeneous acceleration device.

19. The data transmission method according to claim 16, characterized in that: The controlling the storage device to transmit the to-be-processed data adapted by the data processing request to the target heterogeneous acceleration device includes: If the target heterogeneous acceleration device is a device in the second device set, controlling the storage device to transmit the to-be-processed data to the target heterogeneous acceleration device based on a point-to-point transmission mode; If the target heterogeneous acceleration device is a device in the third device set, the storage device is controlled to transmit the to-be-processed data to the target heterogeneous acceleration device based on a memory-transfer transmission mode.

20. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the data transmission method according to any one of claims 9 to 19 is implemented.

21. An electronic device, characterized in that: include: a memory for storing processor-executable instructions; The processor is configured to execute the instructions to implement the data transmission method according to any one of claims 9 to 19.

22. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the data transmission method according to any one of claims 9 to 19 is implemented.

Citation Information

Patent Citations

  • Heterogeneous acceleration task processing system, method and equipment and storage medium

    CN116225702A

  • Heterogeneous computing-oriented high-bandwidth data transmission method, CPU (Central Processing Unit) and system

    CN117914775A

  • Heterogeneous computing-oriented intelligent resource selection method, device and system

    CN117951166A

  • Heterogeneous computing-oriented data transmission method, device, system and product

    CN118093231A

  • Heterogeneous acceleration method, device and system, and storage medium

    WO2024114320A1