A small heterogeneous distributed computing system based on FPGA
By using CPU+FPGA+DDR hardware modules and a deep pipeline structure in the distributed computing system, the problem that the Feng architecture is not suitable for intensive computing is solved, efficient data processing and throughput improvement are achieved, and FPGA faults are avoided. system is paralyzed.
Patent Information
- Application Number
- CN201811247613.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-10-24
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2038-10-24
AI Technical Summary
In the existing distributed computing system, the CPU and GPU are based on the Feng architecture, which is not suitable for intensive data calculations. There are cost and quantity limitations in the cascading of FPGA computing modules through the PCIE protocol, and the system is susceptible to the failure of a single FPGA. The problem of using CPU+NIC to receive node data.
Design a small heterogeneous distributed computing system based on FPGA, including data input module, data calculation module and data return module. Data is scattered and reorganized through CPU+FPGA+DDR hardware module, using QPI protocol and Ethernet interface. To achieve high-speed data transmission and deep pipeline computing, the FPGA's built-in TCP/IP protocol stack directly processes network data packets.
Maximizing the use of the computing advantages of FPGA, it is suitable for high-density computing needs, improves data throughput, reduces the decoding execution time involved in the CPU, and enhances the reliability and throughput of the system.
Smart Images

Figure CN111090611B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computationally intensive hardware design, and in particular to a small heterogeneous distributed computing system based on FPGA. Background Art
[0002] Most of the existing software open source frameworks are based on operating systems, which are based on hardware units. The core unit involved in computing in hardware units is the CPU. At present, CPUs can be divided into different architectures such as x86, MIPS, POWERPC, ARM, etc. according to different manufacturers or different instruction sets, but they are essentially Feng architectures. Each operation will be simplified into the execution of a single instruction, and a single instruction will go through the most basic steps of memory access, instruction fetching, decoding, execution, and writing back to complete its actual life cycle. Therefore, from a microscopic perspective, each calculation of the CPU will perform a relatively complex and time-consuming instruction translation and execution process. Not only that, for the CPU, the execution of multiple instructions must be executed in sequence, that is, the next instruction must wait for the previous instruction to be executed before it can continue to execute, so the accumulated time-consuming calculations at the microscopic level will lead to the inability to meet the macroscopic real-time high-density computing. Although various optimization methods such as branch prediction, superscalar, hyperthreading, overclocking, etc. have been proposed to address the insufficient computing performance of the CPU, they are only optimizations, and the most fundamental architectural problems have not been eliminated.
[0003] In response to the market demand for the dramatic increase in computing volume and complexity, GPUs have been increasingly widely used. Compared with CPUs, GPUs have data parallel capabilities that CPUs do not have, and can perform block-by-block parallel operations on data. Therefore, they have a higher data throughput and can better support streaming computing of large amounts of data such as multimedia, images, audio and video. However, most GPU applications currently run on the operating system and need to interact with the CPU. Its computing process has gone around in a circle based on the CPU framework, and its disadvantages are obvious. In addition, more importantly, GPUs can only do data parallelism. It cannot implement a deep pipeline computing module, and the data entering the GPU must have no cross-relationship before and after a calculation process. Once the data is related to each other, it must wait for the previous data to be prepared before entering the next data calculation. Therefore, although data parallelism is realized, it is not actually used. Parallel data must wait for the data of the previous calculation to be completed before it can be truly calculated.
[0004] The computing units of existing distributed computing systems use CPUs or GPUs of the Feng architecture. Among them, the CPU is not suitable for intensive data computing, and the CPU is more suitable for task scheduling. Although the GPU is more efficient, it is still only data parallel, and its instruction pipeline depth is still limited. Therefore, the two are not suitable for intensive computing; the existing FPGA computing modules for acceleration all use high-performance FPGA chips to form FPGA computing blocks through the PCIE protocol cascade method, which will bring great requirements for PCB design, cost, etc. In addition, this method will limit the number of FPGA integrations, and once a single FPGA in the integrated module fails, it will cause the entire system to be paralyzed; in the computing nodes of the distributed computing system, the CPU+NIC method is not used to receive node data.
[0005] Based on this, the present invention designs a small heterogeneous distributed computing system based on FPGA to solve the above problems. Summary of the invention
[0006] The purpose of the present invention is to provide a small heterogeneous distributed computing system based on FPGA to solve the problem that the computing unit of the existing distributed computing system proposed in the above background technology adopts the CPU or GPU of the Feng architecture, wherein the CPU is not suitable for intensive data computing, and the CPU is more suitable for task scheduling. Although the GPU has high efficiency, it is still only data parallel, and its instruction pipeline depth is still limited, so the two are not suitable for intensive computing; the existing FPGA computing modules for acceleration all use high-performance FPGA chips to form FPGA computing blocks through the PCIE protocol cascade method, which will bring great requirements for PCB design, cost and other aspects. In addition, this method will limit the number of FPGA integrations, and once a single FPGA in the integrated module fails, it will cause the entire system to be paralyzed; in the computing nodes of the distributed computing system, there is no problem of receiving node data in the CPU+NIC method.
[0007] To achieve the above object, the present invention provides the following technical solution: a small heterogeneous distributed computing system based on FPGA, comprising a data input module, a data computing module and a data return module;
[0008] The data input module is used to break up and reorganize the data and send them in series to the data calculation module in the form of a pipeline;
[0009] The data calculation module is used to receive the data input module and to transmit the data to the data return module;
[0010] The data return module is used to group the order of arrival of the calculation output results of the previous stage data input module by returning data in disorder.
[0011] Preferably, the data input module includes but is not limited to CPU, FPGA and DDR hardware modules;
[0012] The FPGA module is used for receiving data and breaking up and reorganizing the data;
[0013] The CPU module is directly connected to the FPGA module at high speed via the QPI protocol, so that the CPU module can quickly and dynamically configure the FPGA module to send and receive data.
[0014] Preferably, the data input module further comprises at least two groups of Ethernet physical interfaces, one group of the Ethernet physical interfaces is used to receive data;
[0015] Another group of the Ethernet physical interfaces is used for data forwarding.
[0016] Preferably, the data input module further comprises a reassembly pipeline module, and the Ethernet physical interface for receiving data can expand the serial input data and transmit the parallel data to the reassembly pipeline module.
[0017] Preferably, the data calculation module includes at least one group of data calculation units, and the data calculation unit includes a single group of FPGA, DDR and at least two groups of Ethernet physical interfaces.
[0018] Preferably, the data return module includes a post-processing module, and the post-processing module is used to improve data throughput by deep pipelining the reorganized data.
[0019] Compared with the prior art, the beneficial effects of the present invention are as follows: the present invention can maximize the advantages of FPGA pipeline computing and high throughput, and is very suitable for the computing needs of informants; the distributed core computing unit adopts the FPGA cascade configurable strategy to configure according to specific computing needs; in the data distribution module and the data return module, the FPGA communicates with the CPU through the QPI bus, and the CPU can directly access the FPGA's memory controller and can directly notify the FPGA to read and write data, which saves a lot of time compared to the traditional CPU and FPGA shared memory method; the network protocol stack is implemented through FPGA to directly send and receive network data packets, which can save a lot of CPU decoding execution time in the sending and receiving verification process, and the overall sending and receiving time can be improved by an order of magnitude. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0021] Figure 1 It is the overall framework diagram of the distributed heterogeneous computing system of the present invention;
[0022] Figure 2 The hardware framework diagram of the distributed heterogeneous computing system of the present invention;
[0023] Figure 3 For the present invention Figure 2 Specific implementation framework diagram;
[0024] Figure 4 For the present invention Figure 3 The left end of the enlarged view;
[0025] Figure 5 For the present invention Figure 4 The right end of the connection is enlarged;
[0026] Figure 6 For the present invention Figure 5 The right end of the connection is enlarged;
[0027] Figure 7 For the present invention Figure 6 The right end of the connection is enlarged;
[0028] Figure 8 This is a framework diagram of the data calculation unit of the present invention. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0030] See also Figure 1-8 ,The present invention provides a technical solution: a small heterogeneous distributed computing system based on FPGA, including a data input module, a data computing module and a data return module;
[0031] The data input module is used to break up and reorganize the data and send them in series to the data calculation module in the form of a pipeline;
[0032] The data calculation module is used to receive the data input module and to transmit the data to the data return module;
[0033] The data return module is used to group the order of arrival of the calculation output results of the previous stage data input module by returning data in disorder.
[0034] It should be noted that the system consists of three parts, namely, the data input module, the data calculation module and the data return module. The input module is composed of hardware modules such as CPU, FPGA and DDR. After the input data is transmitted to the input module through the network, it is directly received by the FPGA, and then the data is scattered and reorganized, and forwarded in a pipeline manner. The CPU in the input module is directly connected to the FPGA through the QPI protocol. The CPU here plays the role of quickly and dynamically configuring the FPGA data transmission and reception related strategies, and does not directly participate in the data transmission, verification, and reorganization. The FPGA in the input module implements a complete TCP / IP protocol stack internally, and configures a set of (two in total) Ethernet physical interfaces externally, one for receiving data and the other for forwarding data. At the data receiving end, the serial input data is expanded into parallel data and passed to the reorganization pipeline module; at the data output end, before the data is forwarded, the parallel output data of the reorganization pipeline module is converted into serial data by local frequency multiplication. The reorganized data will be distributed serially to the subsequent computing module at a rate several times higher than the input rate. The computing module consists of a group of computing units, each of which is a single FPGA, DDR, and two Ethernet physical interfaces. The data distributed from the input module passes through the switch and reaches each computing unit. The computing unit receives data through the IP that implements the TCP / IP protocol stack internally, and passes the data to the IP dedicated to calculation. After the calculation is completed, the data is forwarded to the subsequent return module through the Ethernet interface. The hardware composition of the data return module is the same as that of the data input module, but the FPGA of the data return module returns data in a disordered order, specifically grouping the data according to the order in which the output results of the calculations of the previous computing module arrive.
[0035] In a further embodiment, the data input module includes but is not limited to a CPU, an FPGA, and a DDR hardware module;
[0036] The FPGA module is used for receiving data and breaking up and reorganizing the data;
[0037] The CPU module is directly connected to the FPGA module at high speed via the QPI protocol, so that the CPU module can quickly and dynamically configure the FPGA module to send and receive data.
[0038] In a further embodiment, the data input module further comprises at least two groups of Ethernet physical interfaces, one group of the Ethernet physical interfaces being used to receive data;
[0039] Another group of the Ethernet physical interfaces is used for data forwarding.
[0040] In a further embodiment, the data input module further includes a reassembly pipeline module, and the Ethernet physical interface for receiving data can expand the serial input data and transmit the parallel data to the reassembly pipeline module.
[0041] In a further embodiment, the data computing module includes at least one group of data computing units, and the data computing unit includes a single group of FPGA, DDR and at least two groups of Ethernet physical interfaces.
[0042] A further implementation method is that the data return module includes a post-processing module, and the post-processing module is used to improve data throughput by reorganizing the data in a deep pipelining manner;
[0043] like Figure 2 As shown, the hardware framework of the distributed heterogeneous computing system designed by the present invention includes a front-end data distribution module, a data computing unit, and a data return unit. Figure 3 is Figure 2 The data distribution module adopts the CPU+FPGA architecture, and the CPU and FPGA are connected through the PCIE or QPI bus. The front-end network data is input into the data distribution module through the router or switch, and is cached by the FPGA in the data distribution module and its cascaded DDR. If the post-stage computing module does not need to reorganize the data at this time, the FPGA directly distributes the cached data in parallel through the internal integrated data distribution IP unit. If the post-stage FPGA computing unit needs to reorganize the data before calculation, the data reorganization module is directly connected to the FPGA buffer module in series, and then forwarded to the post-stage computing unit. If the data reorganization is more complicated and the reorganization strategy needs to be changed dynamically, the operation required for reorganization can be converted into the corresponding instructions of the MIG module inside the FPGA, and then sent directly to the FPGA through the PCIE or QPI bus directly connected to the CPU and FPGA, so that the FPGA can quickly change the data reorganization strategy while efficiently buffering the data. The data computing unit is completely composed of multiple groups of single FPGAs, and the total number is dynamically allocated according to the actual computing amount or communication task. The data computing unit in a single FPGA is completed by an internal unique IPCore. The hardware composition of the data return unit is consistent with that of the data distribution module. The difference lies in the MIG instructions sent by the CPU to the FPGA and the specific design and implementation of the data result reorganization module and the result return module inside the FPGA.
[0044] like Figure 3As shown, the data distribution module is cascaded with the data computing module through a switch or other network equipment, and the data computing unit is cascaded with the subsequent data return module through another switch or network equipment. The reason for using two sets of network equipment is to fully adapt to the deep pipeline structure in the computing unit module to ensure the high data throughput of the system.
[0045] like Figure 4-7 As shown, the hardware architecture of the data distribution and data return modules is the same, and the FPGA peripheral part is equipped with two network physical interfaces, which can be RJ45, ST, or SC. For the data distribution module, it receives network computing data through one port, reorganizes the data in a deep pipeline manner through the internal dedicated IPCore, and then forwards it to the post-processing module through another port. The data throughput is greatly improved by dual ports and deep pipelines. For the data return module, the design of its internal dedicated IPCore is different from that of the data receiving module. The function of the IPCore of the data return module is to repackage the calculation results that arrive out of order according to a regular pattern, attach labels, and then return them to the post-stage module. Both the data distribution and data return modules implement the network protocol stack inside the FPGA. As shown Figure 8 The data computing unit consists of a single FPGA plus dual network interfaces. According to actual needs, this single computing unit can be deployed as a single node, or it can be locally interconnected into a star network or a ring network according to the complexity of the computing task. The local network and other nodes together constitute the computing unit part of the computing system. Therefore, the computing unit part is dynamically configured in structure according to the needs of the computing task. In each node of the computing unit, a proprietary IPCore is used for parallel pipeline computing.
[0046] In the description of this specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0047] The preferred embodiments of the present invention disclosed above are only used to help illustrate the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A small heterogeneous distributed computing system based on FPGA, Features: It includes a data input module, a data calculation module and a data return module; The data input module is used to break up and reorganize the data and send them in series to the data calculation module in the form of a pipeline; The data calculation module is connected to the data input module and is used to transmit data to the data return module; The data return module groups the order in which the output results calculated by the data calculation module arrive by returning data in disorder; The system consists of three parts, namely, data input module, data calculation module and data return module. The input module is composed of CPU, FPGA and DDR hardware module. After the input data is transmitted to the input module through the network, it is directly received by FPGA, and then the data is scattered and reorganized, and forwarded out in a pipeline manner. The CPU in the input module is directly connected to FPGA through QPI protocol at high speed. The CPU here plays the role of quickly and dynamically configuring the FPGA data transmission and reception related strategies, and does not directly participate in the data transmission, reception, verification and reorganization. The FPGA in the input module implements a complete TCP / IP protocol stack internally and configures a set of Ethernet physical interfaces externally, one for receiving data and the other for forwarding data. At the data receiving end, the serial input data is expanded into parallel data and passed to the reorganization pipeline module; at the data output end, before the data is forwarded, the parallel output data of the reorganization pipeline module is converted into serial data through local frequency multiplication. The reorganized data will be distributed serially to the subsequent computing module in a manner several times higher than the input rate. The hardware framework of this system includes a front-end data distribution module, a data computing unit, and a data return unit. The data distribution module adopts a CPU+FPGA architecture, and the CPU and FPGA are connected through a PCIE or QPI bus. The front-end network data is input into the data distribution module through a router or a switch, and is cached by the FPGA in the data distribution module and its cascaded DDR. If the subsequent computing module does not need to reorganize the data at this time, the FPGA directly distributes the cached data in parallel through the internally integrated data distribution IP unit. If the subsequent FPGA computing unit needs to reorganize the data before calculation, the data reorganization module is directly connected in series after the FPGA buffer module, and then forwarded to the subsequent computing unit. If the data reorganization is complex and the reorganization strategy needs to be changed dynamically, the operations required for the reorganization are converted into instructions corresponding to the MIG module inside the FPGA, and then sent directly to the FPGA through the PCIE or QPI bus directly connected to the CPU and FPGA, so that the FPGA can quickly change the data reorganization strategy while efficiently buffering the data.
2. A small heterogeneous distributed computing system based on FPGA according to claim 1, Features: The data input module includes CPU, FPGA and DDR hardware modules; The FPGA module is used for receiving data and breaking up and reorganizing the data; The CPU module is directly connected to the FPGA module at high speed via the QPI protocol, so that the CPU module can quickly and dynamically configure the FPGA module to send and receive data.
3. A small heterogeneous distributed computing system based on FPGA according to claim 2, Features: The data input module further comprises at least two groups of Ethernet physical interfaces, one group of the Ethernet physical interfaces is used for receiving data; the other group of the Ethernet physical interfaces is used for forwarding data.
4. A small heterogeneous distributed computing system based on FPGA according to claim 3, Features: The data input module further includes a reassembly pipeline module, and the Ethernet physical interface for receiving data expands the serial input data into parallel data and transmits it to the reassembly pipeline module.
5. The small heterogeneous distributed computing system based on FPGA according to claim 1, Features: The data calculation module includes at least one group of data calculation units, and the data calculation unit includes a single group of FPGA, DDR and at least two groups of Ethernet physical interfaces.
6. The small heterogeneous distributed computing system based on FPGA according to claim 1, Features: The data return module includes a post-processing module, and the post-processing module is used to improve data throughput by deep pipelining the reorganized data.
