Memory expansion system, access method and device, medium and computer program product
By establishing a ring network topology between the GPU and the field programmable gate array module, and using the memory expansion module and double-rate static random access memory, the GPU memory sharing problem is solved and the GPU performance is improved.
Patent Information
- Application Number
- CN202410889277.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-04
AI Technical Summary
The memory of the GPU cannot be effectively shared, resulting in a performance bottleneck and limiting the processing performance of the GPU in the field of AI computing.
Design a memory expansion system, through the ring connection of N graphics processors and N field programmable gate array modules, using the memory expansion module and double-rate static random access memory to realize the analysis and response of memory access requests, and expand It reduces the memory space of the GPU and reduces the communication bottleneck.
It effectively expands the memory of the GPU, improves the processing performance of the GPU, increases the utilization of computing resources, and improves the processing capabilities of multiple GPUs.
Smart Images

Figure CN118426976B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and more specifically, to a memory expansion system, an access method and device, a medium and a computer program product. Background Art
[0002] With the development of AI (Artificial Intelligence) and its large model-related technologies, more and more GPU (Graphics Processing Unit) servers and data are needed to train and iterate large models. Early GPUs had very simple functions and resources and were only used for graphics and image processing. They are currently widely used in the field of AI computing and are an important data center computing chip.
[0003] GPUs are usually plugged into server slots as a PCIe (Peripheral Component Interconnect Express) device. GPU chip computing usually relies on on-chip HBM (High Bandwidth Memory). GPU cards cannot effectively share memory, resulting in performance bottlenecks.
[0004] Therefore, how to implement GPU memory expansion and improve the processing performance of the GPU is a technical problem that technical personnel in this field need to solve. Summary of the invention
[0005] The purpose of the present invention is to provide a memory access method, device and equipment, storage medium and computer program product, which realize the memory expansion of GPU and improve the processing performance of GPU.
[0006] To achieve the above object, the present invention provides a memory expansion system, comprising N graphics processors and N field programmable gate array modules, the field programmable gate array module is mounted with a memory expansion module, the N graphics processors are connected in a ring, the N field programmable gate array modules are connected in a ring, each of the graphics processors is connected to k field programmable gate array modules, the nth graphics processor is connected to the mth field programmable gate array module, 2≤k≤N, 1≤n≤N, when n≥k, the value range of m is [n-k+1,n], when n<k, the value range of m is [1,n]∪[N+n-k+1,N];
[0007] The field programmable gate array module is used to receive a memory access request, parse the memory access request to obtain a parsing result, and send the memory access request to a memory expansion module mounted on the field programmable gate array module according to the parsing result; wherein the memory access request includes a memory access request sent by a processor and / or a graphics processor and / or other field programmable gate array modules connected to the field programmable gate array module;
[0008] The memory expansion module is used to respond to the memory access request;
[0009] The memory expansion module includes a first memory area and a second memory area. The nth graphics processor reads data from the first memory area in the memory expansion module mounted on the nth field programmable gate array module and the second memory area in the memory expansion module mounted on other field programmable gate array modules connected to the nth graphics processor, and stores the processed data in the second memory area in the memory expansion module mounted on the nth field programmable gate array module.
[0010] The field programmable gate array module mounts the memory extension module through an open memory interface, and the field programmable gate array module sends the memory access request to the mounted memory extension module through the open memory interface according to the analysis result;
[0011] And / or, the field programmable gate array module mounts a double rate static random access memory, and the double rate static random access memory is mounted on the field programmable gate array module in the form of a dual in-line module. The field programmable gate array module sends the memory access request to the double rate static random access memory according to the analysis result, so that the double rate static random access memory responds to the memory access request.
[0012] Among them, the memory expansion system is deployed in the target node, and the field programmable gate array module is specifically used to: receive a first memory access request sent by a processor in the target node, parse the first memory access request to determine the destination memory page table of the request, and judge whether the attributes of the destination memory page table meet preset conditions. If so, lock the destination memory page table and send the first memory access request to the memory expansion module mounted on the field programmable gate array module; unlock the destination memory page table after the memory expansion module responds to the first memory access request.
[0013] Wherein, the field programmable gate array module includes a computing fast link interface or a peripheral component interconnect fast bus interface, a computing fast link and direct memory access controller, and a page table enabling module;
[0014] A computing fast link interface or a peripheral component interconnect fast bus interface, used to receive a first memory access request sent by a processor in the target node;
[0015] A computing fast link and direct memory access controller, configured to parse the first memory access request to determine a destination memory page table of the request;
[0016] A page table enabling module, used to determine whether the attribute of the target memory page table meets a preset condition, and if so, lock the target memory page table;
[0017] A computing fast link and direct memory access controller is further used to send the first memory access request to a memory expansion module mounted on the field programmable gate array module;
[0018] The page table enabling module is further used to unlock the destination memory page table after the memory expansion module responds to the first memory access request.
[0019] Among them, the memory expansion system is deployed in the target node, and the field programmable gate array module is specifically used to: receive a second memory access request sent by a graphics processor and / or other field programmable gate array modules in the target node, parse the second memory access request, convert the address of the destination memory page table requested in the second memory access request into a memory physical address to obtain a converted second memory access request, parse the converted second memory access request to determine the requested destination memory page table, and judge whether the attributes of the destination memory page table meet preset conditions. If so, lock the destination memory page table, and send the converted second memory access request to the memory expansion module mounted on the field programmable gate array module; receive response data of the memory expansion module in response to the converted second memory access request, construct a response data packet in a format corresponding to the destination memory page table based on the response data, return the response data packet to the sender of the second memory access request, and unlock the destination memory page table.
[0020] The graphics processor includes a high-speed channelized chip-to-chip interface, and the field programmable gate array module includes a high-speed channelized chip-to-chip interface, an inter-card memory access request parsing module, a page table conversion module, a computing fast link and direct memory access controller, a page table enabling module, and an inter-card memory access response packaging module; different graphics processors, different field programmable gate array modules, and the field programmable gate array module and the graphics processor are all connected through the high-speed channelized chip-to-chip interface;
[0021] The high-speed channelized chip-to-chip interface in the field programmable gate array module is used to receive a second memory access request sent by a graphics processor and / or other field programmable gate array modules in the target node;
[0022] An inter-card memory access request parsing module, configured to parse the second memory access request;
[0023] A page table conversion module, used for converting the address of the destination memory page table requested in the second memory access request into a memory physical address to obtain a converted second memory access request;
[0024] A computing fast link and direct memory access controller is used to parse the converted second memory access request to determine a destination memory page table of the request;
[0025] A page table enabling module, used to determine whether the attribute of the target memory page table meets a preset condition, and if so, lock the target memory page table;
[0026] The computing fast link and direct memory access controller is also used to send the converted second memory access request to the memory expansion module mounted on the field programmable gate array module;
[0027] an inter-card memory access response packetization module, configured to receive response data of the memory expansion module in response to the converted second memory access request, and construct a response data packet in a format corresponding to the destination memory page table based on the response data;
[0028] The high-speed channelized chip-to-chip interface in the field programmable gate array module is also used to return the response data packet to the sender of the second memory access request;
[0029] The page table enabling module is also used to unlock the destination memory page table.
[0030] Among them, the memory expansion system is deployed in the target node, and the field programmable gate array module is specifically used to: receive a third memory access request sent by a device in other nodes, parse the third memory access request to determine the destination memory page table of the request, and judge whether the attributes of the destination memory page table meet the preset conditions. If so, lock the destination memory page table and send the memory access request to the memory expansion module mounted on the field programmable gate array module; unlock the destination memory page table after the memory expansion module responds to the third memory access request; wherein, the devices in other nodes include processors and / or field programmable gate array modules and / or graphics processors in other nodes.
[0031] Wherein, the field programmable gate array module includes a network optical module, an Ethernet-based remote direct memory access protocol stack, a computing fast link and direct memory access controller, and a page table enabling module;
[0032] A network optical module, used for receiving a third memory access request sent by a device in another node;
[0033] A remote direct memory access protocol stack, a computing fast link, and a direct memory access controller based on Ethernet, for parsing the third memory access request to determine a destination memory page table of the request;
[0034] A page table enabling module, used to determine whether the attribute of the target memory page table meets a preset condition, and if so, lock the target memory page table;
[0035] The computing fast link and direct memory access controller is further used to send the third memory access request to the memory expansion module mounted on the field programmable gate array module;
[0036] The page table enabling module is further used to unlock the destination memory page table after the memory expansion module responds to the third memory access request.
[0037] Wherein, the graphics processor includes high bandwidth memory.
[0038] The memory expansion system is applied to model training, and the training data is divided into N training sub-data and stored in the first memory area of the memory expansion module mounted on N field programmable gate array modules;
[0039] The nth graphics processor reads target training data from a first memory area in a memory expansion module mounted on the nth field programmable gate array module and a second memory area in a memory expansion module mounted on other field programmable gate array modules connected to the nth graphics processor, performs model training based on the target training data, and then stores the processed data in the second memory area in the memory expansion module mounted on the nth field programmable gate array module.
[0040] Among them, N sets of training sub-data are respectively stored in the first memory area of the memory extension module mounted on N field programmable gate array modules through the peripheral component interconnect fast bus interface or the network optical module.
[0041] The FPGA module and the graphics processor are connected via a DMA controller for data transmission.
[0042] Among them, N graphics processors share the high-bandwidth memory in the graphics processor through a ring connection.
[0043] To achieve the above object, the present invention provides a memory access method, which is applied to a field programmable gate array module in the above memory expansion system, and the method comprises:
[0044] Receiving a memory access request; wherein the memory access request includes a memory access request sent by a processor and / or a graphics processor and / or other field programmable gate array module connected to the field programmable gate array module;
[0045] The memory access request is parsed to obtain a parsing result, and the memory access request is sent to a memory expansion module mounted on the field programmable gate array module according to the parsing result, so that the memory expansion module responds to the memory access request.
[0046] The memory expansion system is deployed in the target node, and the receiving of the memory access request includes:
[0047] Receiving a first memory access request sent by a processor in the target node;
[0048] Correspondingly, parsing the memory access request to obtain a parsing result, and sending the memory access request to a memory expansion module mounted on the field programmable gate array module according to the parsing result, including:
[0049] Parsing the first memory access request to determine a destination memory page table of the request, judging whether an attribute of the destination memory page table satisfies a preset condition, and if so, locking the destination memory page table, and sending the first memory access request to a memory expansion module mounted on the field programmable gate array module;
[0050] Correspondingly, after the memory expansion module responds to the first memory access request, the method further includes:
[0051] Unlock the destination memory page table.
[0052] The memory expansion system is deployed in the target node, and the receiving of the memory access request includes:
[0053] Receiving a second memory access request sent by a graphics processor and / or other field programmable gate array module in the target node;
[0054] Correspondingly, parsing the memory access request to obtain a parsing result, and sending the memory access request to a memory expansion module mounted on the field programmable gate array module according to the parsing result, including:
[0055] Parsing the second memory access request, converting the address of the destination memory page table requested in the second memory access request into a memory physical address to obtain a converted second memory access request;
[0056] Parsing the converted second memory access request to determine the requested destination memory page table, judging whether the attribute of the destination memory page table meets a preset condition, and if so, locking the destination memory page table, and sending the converted second memory access request to the memory expansion module mounted on the field programmable gate array module;
[0057] Correspondingly, after the memory expansion module responds to the second memory access request, the method further includes:
[0058] Receive response data of the memory expansion module in response to the converted second memory access request, construct a response data packet in a format corresponding to the destination memory page table based on the response data, return the response data packet to the sender of the second memory access request, and unlock the destination memory page table.
[0059] The memory expansion system is deployed in the target node, and the receiving of the memory access request includes:
[0060] Receiving a third memory access request sent by a device in another node; wherein the device in another node includes a processor and / or a field programmable gate array module and / or a graphics processor in another node;
[0061] Correspondingly, parsing the memory access request to obtain a parsing result, and sending the memory access request to a memory expansion module mounted on the field programmable gate array module according to the parsing result, including:
[0062] Parsing the third memory access request to determine the destination memory page table of the request, judging whether the attribute of the destination memory page table meets a preset condition, and if so, locking the destination memory page table, and sending the third memory access request to the memory expansion module mounted on the field programmable gate array module;
[0063] Correspondingly, after the memory expansion module responds to the third memory access request, the method further includes:
[0064] Unlock the destination memory page table.
[0065] To achieve the above object, the present invention provides an electronic device, comprising:
[0066] Memory for storing computer programs;
[0067] A processor is used to implement the steps of the above-mentioned memory access method when executing the computer program.
[0068] To achieve the above-mentioned object, the present invention provides a non-volatile storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned memory access method are implemented.
[0069] To achieve the above object, the present invention provides a computer program product, including a computer program, which implements the steps of the above memory access method when executed by a processor.
[0070] It can be seen from the above scheme that a memory expansion system provided by the present invention includes N graphics processors and N field programmable gate array modules, a memory expansion module is mounted on the field programmable gate array module, the N graphics processors are connected in a ring, the N field programmable gate array modules are connected in a ring, each of the graphics processors is connected to k field programmable gate array modules, the nth graphics processor is connected to the mth field programmable gate array module, 2≤k≤N, 1≤n≤N, when n≥k, the value range of m is [n-k+1,n], when n<k, the value range of m is [1,n]∪[N+n-k+1,N]; the field programmable gate array module is used to receive a memory access request, parse the memory access request to obtain a parsing result, and convert the memory access request into a memory access request according to the parsing result. A request is sent to a memory extension module mounted on the field programmable gate array module; wherein the memory access request includes a memory access request sent by a processor and / or a graphics processor and / or other field programmable gate array modules connected to the field programmable gate array module; the memory extension module is used to respond to the memory access request; the memory extension module includes a first memory area and a second memory area, the nth graphics processor reads data from the first memory area in the memory extension module mounted on the nth field programmable gate array module and the second memory area in the memory extension module mounted on other field programmable gate array modules connected to the nth graphics processor, and stores the processed data in the second memory area in the memory extension module mounted on the nth field programmable gate array module.
[0071] The beneficial effects of the present invention are as follows: the memory expansion system provided by the present invention forms a multi-way ring network communication topology between the GPU and the FPGA (Field Programmable Gate Array) modules, the GPU can directly access the memory expansion module mounted on the FPGA module connected to it, and the processor and other FPGA modules can also access the memory expansion module mounted on the current FPGA module, which effectively expands the GPU computing memory, reduces the communication bottleneck, increases the GPU computing resource utilization, and improves the GPU processing performance. Further, each GPU realizes the data stored in the memory expansion module in the link ring composed of the FPGA modules for cyclic processing, can make full use of the interconnected pipeline processing data between the GPU and the FPGA, expands the local memory of a single GPU, increases the amount of data processed by a single GPU, and thus improves the processing performance of multiple GPUs. The present invention also discloses a memory access device and an electronic device, a non-volatile storage medium and a computer program product, which can also achieve the above technical effects.
[0072] It is to be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. The drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific implementation methods, they are used to explain the present disclosure, but do not constitute a limitation to the present disclosure. In the drawings:
[0074] Figure 1 is a structural diagram of a memory access system according to an exemplary embodiment;
[0075] Figure 2 is a structural schematic diagram of an FPGA module according to an exemplary embodiment;
[0076] Figure 3 A data flow diagram of each functional module in an FPGA module according to an exemplary embodiment;
[0077] Figure 4 is a flowchart of a first memory access method according to an exemplary embodiment;
[0078] Figure 5is a flow chart of a second memory access method according to an exemplary embodiment;
[0079] Figure 6 is a flowchart of a third memory access method according to an exemplary embodiment;
[0080] Figure 7 is a flowchart of a fourth memory access method according to an exemplary embodiment;
[0081] Figure 8 The figure is a structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0082] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments in 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. In addition, in the embodiments of the present invention, "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0083] The embodiment of the present invention discloses a memory expansion system, comprising N graphics processors and N field programmable gate array modules, wherein a memory expansion module is mounted on the field programmable gate array module, the N graphics processors are connected in a ring, the N field programmable gate array modules are connected in a ring, each of the graphics processors is connected to k field programmable gate array modules, the nth graphics processor is connected to the mth field programmable gate array module, 2≤k≤N, 1≤n≤N, when n≥k, the value range of m is [n-k+1,n], when n<k, the value range of m is [1,n]∪[N+n-k+1,N];
[0084] The field programmable gate array module is used to receive a memory access request, parse the memory access request to obtain a parsing result, and send the memory access request to a memory expansion module mounted on the field programmable gate array module according to the parsing result; wherein the memory access request includes a memory access request sent by a processor and / or a graphics processor and / or other field programmable gate array modules connected to the field programmable gate array module;
[0085] The memory expansion module is used to respond to the memory access request.
[0086] The memory expansion system in this embodiment can be applied to a server, which includes multiple nodes, and each node is deployed with a memory expansion system. The memory expansion system includes N GPUs and N FPGA modules, the GPU includes HBM (High Bandwidth Memory), and each FPGA module is mounted with a memory expansion module.
[0087] As an optional implementation, the field programmable gate array module mounts a memory extension module through an open memory interface, and the field programmable gate array module sends the memory access request to the mounted memory extension module through the open memory interface according to the analysis result; and / or, the field programmable gate array module mounts a double rate static random access memory, and the double rate static random access memory is mounted on the field programmable gate array module in the form of a dual in-line module, and the field programmable gate array module sends the memory access request to the double rate static random access memory according to the analysis result, so that the double rate static random access memory responds to the memory access request.
[0088] The memory expansion module in this embodiment may include a memory expansion module connected to the FPGA module through an open memory interface (Open Memory Interface, OMI), a double data rate static random access memory (Double Data Rate SDRAM, DDR), etc. DDR is a memory particle that can transmit data twice per clock cycle, that is, sampling at the rising edge and the falling edge respectively. It is usually in the form of DIMM (Dual Inline Memory Module, dual inline module), and multiple memory particles are concentrated on a circuit board. It uses address, data and control buses for application in server hosts or various acceleration cards. OMI is an open source memory bus interface that uses a high-speed serial transmission link. The interface only defines the physical layer specification, and the link protocol layer is not within the scope. Usually, the circuit board where the memory particles are located will integrate a high-speed serial-to-parallel conversion controller and a buffer. The OMI memory expansion module uses the OMI interface to connect to the field programmable gate array module, adopts a high-speed differential link, has strong anti-interference ability, and stable signal transmission. The transmission signal frequency of a single channel of the extended memory module can reach over GHz, and the data rate can reach 25.6GB / s or even higher. The total transmission bandwidth is high, and multiple memory controller channels are supported. It has a higher total bandwidth for extended memory and a larger total memory. A single OMI memory expansion module can reach 256GB. Using multiple OMI memory expansion modules to form a multi-channel extended memory, the total expansion capacity can easily reach TB level.
[0089] In this embodiment, the GPU is interconnected with the GPUs adjacent to the left and right, that is, N GPUs are connected in a ring, and the FPGA module is interconnected with the FPGA modules adjacent to the left and right, that is, N FPGA modules are connected in a ring, each of the graphics processors is connected to k field programmable gate array modules, and the nth graphics processor is connected to the mth field programmable gate array module, 2≤k≤N, 1≤n≤N, when n≥k, the value range of m is [n-k+1,n], and when n<k, the value range of m is [1,n]∪[N+n-k+1,N]. Taking k=2 as an example, the GPU is interconnected with the two FPGA modules adjacent to each other, that is, the first GPU is connected to the first FPGA module and the last FPGA module, and the nth GPU is connected to the nth FPGA module and the n-1th FPGA module. The connection topology diagram is as shown in FIG. Figure 1 shown.
[0090] Both the GPU and FPGA modules support multiple high-speed channelized chip-to-chip (interlaken) interfaces, Compute Express Link (CXL) interfaces, or Peripheral Component Interconnect Express (PCIE) interfaces. Different GPUs, different FPGA modules, and FPGA modules and GPUs are all connected through interlaken. The GPU in a certain node can not only access the memory of the GPU connected to it, but also access the memory expansion module mounted on the FPGA module connected to it, and also access the memory expansion module mounted on the FPGA modules in other nodes. That is, the memory accessible by a single GPU is increased, which improves the computing efficiency of a single GPU. The FPGA module can offload part of the GPU's DMA (Direct Memory Access) data movement workload and reduce the occupation of GPU computing scheduling resources.
[0091] The structural diagram of the FPGA module is as follows: Figure 2 As shown, it includes field programmable gate array chips, network optical modules, computing fast link interfaces or peripheral component interconnection fast bus interfaces, multi-channel high-speed channelized chip-to-chip interfaces, MCU (Microcontroller Unit), memory expansion modules connected through open memory interfaces, double-rate static random access memory, and power modules. MCU is used to detect the voltage, temperature and other status of the entire field programmable gate array module, and issue an alarm message when any status indicator exceeds the standard.
[0092] The memory expansion module includes a first memory area and a second memory area. The nth graphics processor reads data from the first memory area in the memory expansion module mounted on the nth field programmable gate array module and the second memory area in the memory expansion module mounted on other field programmable gate array modules connected to the nth graphics processor, and stores the processed data in the second memory area in the memory expansion module mounted on the nth field programmable gate array module.
[0093] Taking k=2 and the second GPU as an example, the data flow is as follows Figure 1 As shown by the dotted line in the figure, the second GPU simultaneously reads the data in the second memory area of the memory extension module mounted on the first FPGA module and the data in the first memory area of the memory extension module mounted on the second FPGA module after the first GPU has processed the data in the two memory areas at the same time, and writes the data in the second memory area of the memory extension module mounted on the second FPGA module, and so on, cyclically processing the data stored in the link ring.
[0094] The data flow diagram of each functional module in the FPGA module is as follows Figure 3 As shown, the computing fast link interface or the peripheral component interconnection fast bus interface is used to send and receive TLP (Transaction Layer Packet) messages interacting with the CPU (Central Processing Unit) in the node, the computing fast link and direct memory access controller can mount the extended multi-channel memory controller, the DMA controller can realize the data movement between the CPU and the FPGA module, and between the FPGA modules, the Ethernet-based RDMA (Remote Direct Memory Access) protocol stack is responsible for processing the DMA request from the network to access the extended memory, the multi-channel Interlaken IP connects each Interlaken interface, and is used to receive and send protocol packets based on Interlaken, the inter-card memory access request parsing module is responsible for parsing the command request for reading and writing the extended memory, the inter-card memory access response packet assembly module is responsible for assembling and sending the response data returned by the read request, and the page table conversion module is responsible for the conversion between the page table ID and the corresponding 64-bit address bus of the extended memory in the system. The page table enabling module is responsible for monitoring the read and write status permissions of the enabled page table block, etc. The network optical module can be a 400G network optical module, which is responsible for sending and receiving data packets for remote access to the local extended memory.
[0095] After the system is powered on, the FPGA module automatically runs the extended memory self-test program and uploads the self-test results through the MCU. The host CPU allocates address space for the extended memory, registers the extended memory as an independent NUMA (Non-Uniform Memory Access) node, initializes the page table ID attribute table, etc.
[0096] When the system is powered on and initialized, the page table conversion module and the page table enable module divide the page table into preset units (for example, 4KB) according to the physical address of the corresponding extended memory. Each page table has states and operations such as reading, writing, enabling, and locking. This information can be stored in an 8-bit dual-port RAM with the page table ID as the address, that is, the page table ID attribute table. The detailed definition is shown in Table 1.
[0097] Table 1
[0098]
[0099] The communication frame type between FPGAs and between GPU and FPGA through the Interlaken interface may include the source ID and destination ID of the board, the request / response frame type, the request page table ID, the packet sequence number and the effective load data, etc. Taking the request frame as an example, the specific format is shown in Table 2.
[0100] Table 2
[0101]
[0102] As a feasible implementation mode, the memory expansion system is deployed in the target node, and the field programmable gate array module is specifically used to: receive a first memory access request sent by the processor in the target node, parse the first memory access request to determine the destination memory page table of the request, and judge whether the attributes of the destination memory page table meet the preset conditions; if so, lock the destination memory page table, and send the first memory access request to the memory expansion module mounted on the field programmable gate array module; unlock the destination memory page table after the memory expansion module responds to the first memory access request.
[0103] In a specific implementation, the processor in the target node sends a first memory access request to the FPGA module through the CXL interface or the PCIE interface. After being calculated through the fast link and parsed by the direct memory access controller, the properties of the destination memory page table of the request are determined. When the destination memory page table is enabled and the properties satisfy the unlocked state, the page table update state is locked, and a read and write memory operation command is sent to the memory expansion module. The read response data is returned to the processor by the original path, and the page table update state is unlocked.
[0104] See also Figure 3The field programmable gate array module includes a computing fast link interface or a peripheral component interconnect fast bus interface, a computing fast link and direct memory access controller, and a page table enabling module; the computing fast link interface or the peripheral component interconnect fast bus interface is used to receive a first memory access request sent by a processor in a target node; the computing fast link and direct memory access controller is used to parse the first memory access request to determine the destination memory page table of the request; the page table enabling module is used to determine whether the attributes of the destination memory page table meet preset conditions, and if so, lock the destination memory page table; the computing fast link and direct memory access controller is also used to send the first memory access request to the memory expansion module mounted on the field programmable gate array module; the page table enabling module is also used to unlock the destination memory page table after the memory expansion module responds to the first memory access request. The data flow of the processor in the node accessing the FPGA module is as follows: Figure 3 1, 10, 11, 10, 2, 1, 10, 11.
[0105] As a feasible implementation mode, the memory expansion system is deployed in the target node, and the field programmable gate array module is specifically used to: receive a second memory access request sent by a graphics processor and / or other field programmable gate array modules in the target node, parse the second memory access request, convert the address of the destination memory page table requested in the second memory access request into a memory physical address to obtain a converted second memory access request, parse the converted second memory access request to determine the requested destination memory page table, and judge whether the attributes of the destination memory page table meet preset conditions. If so, lock the destination memory page table, and send the converted second memory access request to the memory expansion module mounted on the field programmable gate array module; receive response data of the memory expansion module in response to the converted second memory access request, construct a response data packet in a format corresponding to the destination memory page table based on the response data, return the response data packet to the sender of the second memory access request, and unlock the destination memory page table.
[0106] In a specific implementation, when a GPU or other FPGA module connected through an Interlaken interface accesses a memory expansion module mounted on a current FPGA module, the multi-channel Interlaken interface first receives a second memory access request, parses a specific command through an inter-card memory access request parsing module, converts it into a physical address corresponding to a target memory page table according to a page table conversion module, sends the converted second memory access request to a computing fast link and a direct memory access controller for parsing to determine the enablement and status of the target memory page table, and when the target memory page table is enabled and the attributes satisfy the unlocked state, the page table state is locked and updated, and access to the memory expansion module is initiated. After the DMA controller reads, the read response data is returned to the inter-card memory access response packetization module, converted into a response data packet in a format corresponding to the target memory page table, sent to the Interlaken interface to return to the sender, and the page table update state is unlocked.
[0107] See also Figure 3 , a high-speed channelized chip-to-chip interface in a field programmable gate array module, used to receive a second memory access request sent by a graphics processor and / or other field programmable gate array modules in a target node; an inter-card memory access request parsing module, used to parse the second memory access request; a page table conversion module, used to convert the address of the target memory page table requested in the second memory access request into a memory physical address to obtain a converted second memory access request; a computing fast link and direct memory access controller, used to parse the converted second memory access request to determine the requested target memory page table; a page table enabling module, used to determine whether the attribute of the target memory page table is Whether the preset conditions are met, if so, the destination memory page table is locked; the fast link and direct memory access controller are calculated, and are also used to send the converted second memory access request to the memory expansion module mounted on the field programmable gate array module; the inter-card memory access response packetization module is used to receive the response data of the memory expansion module in response to the converted second memory access request, and construct a response data packet in the format corresponding to the destination memory page table based on the response data; the high-speed channelized chip-to-chip interface in the field programmable gate array module is also used to return the response data packet to the sender of the second memory access request; the page table enable module is also used to unlock the destination memory page table. The data flow of the GPU or other FPGA modules in the node accessing the current FPGA module is as follows: Figure 3 3, 4, 5, 10, 11, 10, 2, 6, 7, 8, 10, 11.
[0108] As a feasible implementation mode, the memory expansion system is deployed in the target node, and the field programmable gate array module is specifically used to: receive a third memory access request sent by a device in other nodes, parse the third memory access request to determine the destination memory page table of the request, and judge whether the attributes of the destination memory page table meet the preset conditions. If so, lock the destination memory page table and send the memory access request to the memory expansion module mounted on the field programmable gate array module; unlock the destination memory page table after the memory expansion module responds to the third memory access request; wherein, the devices in other nodes include processors and / or field programmable gate array modules and / or graphics processors in other nodes.
[0109] In a specific implementation, a device outside the node sends a third memory access request to the FPGA module in the target node through a network optical module. After being parsed by the Ethernet-based remote direct memory access protocol stack, computing fast link and direct memory access controller, the attributes of the destination memory page table of the request are determined. When the destination memory page table is enabled and the attributes satisfy the unlocked state, the page table update state is locked, and read and write memory operation commands are sent to the memory expansion module. The read response data is returned to the requesting device outside the node, and the page table update state is unlocked.
[0110] See also Figure 3 The field programmable gate array module includes a network optical module, an Ethernet-based remote direct memory access protocol stack, a computing fast link and a direct memory access controller, and a page table enabling module; the network optical module is used to receive a third memory access request sent by a device in another node; the Ethernet-based remote direct memory access protocol stack, the computing fast link and the direct memory access controller are used to parse the third memory access request to determine the destination memory page table of the request; the page table enabling module is used to determine whether the attributes of the destination memory page table meet the preset conditions, and if so, lock the destination memory page table; the computing fast link and the direct memory access controller are also used to send the third memory access request to the memory extension module mounted on the field programmable gate array module; the page table enabling module is also used to unlock the destination memory page table after the memory extension module responds to the third memory access request. The data flows of devices outside the node (including processors outside the node, GPUs outside the node, and FPGA modules outside the node) accessing the current FPGA module are as follows: Figure 3 9, 4, 10, 11, 10, 2, 4, 9, 10, 11.
[0111] The FPGA module in this embodiment can access the RoCEv2 (RDMA over ConvergedEthernet version 2, remote direct memory access protocol based on converged Ethernet version 2) network or standard Ethernet through a network optical module to communicate with other computing nodes or storage nodes. The GPU can communicate with external resources of the node through a directly connected FPGA, without the need for the traditional solution of connecting to the RDMA network card through a PCIe Switch, thereby improving the data transmission efficiency between nodes.
[0112] The memory expansion system provided by the embodiment of the present invention forms a multi-way ring network communication topology between the GPU and the FPGA module. The GPU can directly access the memory expansion module mounted on the FPGA module connected to it. In addition, the processor and other FPGA modules can also access the memory expansion module mounted on the current FPGA module, which effectively expands the GPU computing memory, reduces the communication bottleneck, increases the GPU computing resource utilization, and improves the GPU processing performance. Furthermore, each GPU implements the cyclic processing of the data stored in the memory expansion module in the link ring composed of the FPGA modules, and can make full use of the interconnected pipeline processing data between the GPU and the FPGA, expand the local memory of a single GPU, increase the amount of data processed by a single GPU, and thus improve the processing performance of multiple GPUs.
[0113] The memory expansion system provided in the above embodiment can be applied to model training, and the training data is divided into N training sub-data and stored in the first memory area of the memory expansion module mounted on N field programmable gate array modules.
[0114] As a feasible implementation, N sets of training sub-data are respectively stored in the first memory area of the memory extension module mounted on N field programmable gate array modules through the peripheral component interconnect fast bus interface or the network optical module.
[0115] As a feasible implementation method, N graphics processors share the high-bandwidth memory in the graphics processor through a ring connection. In the specific implementation, when the local memory of the GPU is sufficient, multiple GPUs access the local memory, and the GPUs can still use the ring path interconnected between GPUs for data transmission. The internal control logic and DMA controller of the GPU are responsible for the memory reading and writing and data movement of each node. In other words, multiple GPUs can use the Ring Allreduce algorithm to communicate, and only directly share the limited HBM memory between adjacent GPU cards through the GPU.
[0116] As a feasible implementation method, data is transferred between the field programmable gate array module and the graphics processor through a DMA controller. In the specific implementation, when the GPU local memory is insufficient, the GPU accesses the memory expansion module mounted on the FPGA module connected to it. The FPGA module can receive data movement descriptor information (including source address, destination address, length, etc.) from the GPU, and use the DMA controller to actively transfer memory data between the FPGA module and the GPU, so as to release GPU computing and control resources and allow the GPU to focus more on data computing and processing.
[0117] The FPGA modules can also receive commands sent by the host CPU in the node or the host CPU outside the node through PCIe, and respond according to the source address, destination address and length in the descriptor command. Figure 3 Control logic, initiate the transmission of extended memory data between FPGAs. For the transmission path, see Figure 3 (9, 4), 10, 7, 8 in the above.
[0118] The nth graphics processor reads target training data from a first memory area in a memory expansion module mounted on the nth field programmable gate array module and a second memory area in a memory expansion module mounted on other field programmable gate array modules connected to the nth graphics processor, performs model training based on the target training data, and then stores the processed data in the second memory area in the memory expansion module mounted on the nth field programmable gate array module.
[0119] In a specific implementation, taking k=2 and GPU2 as an example, the data in the second memory area in the memory extension module mounted on the FPGA1 module and the data in the first memory area in the memory extension module mounted on the FPGA2 module that have been processed by GPU1 are read at the same time, and after the data in the two memory areas are processed simultaneously, they are written into the second memory area in the memory extension module mounted on the FPGA2 module, and so on. The data stored in the link ring is processed cyclically, and the data pipeline processing of the Interlaken channel interconnected between cards can be fully utilized.
[0120] It can be seen that by expanding the local memory of the GPU through the memory expansion system, the amount of data processed by a single GPU can be increased, thereby reducing the number of GPUs required for the entire model training, thereby reducing the total communication time and total communication volume, and improving model training efficiency.
[0121] This embodiment discloses a memory access method. Figure 4 , a flowchart of a first memory access method according to an exemplary embodiment is shown, as Figure 4 As shown, including:
[0122] S101: receiving a memory access request; wherein the memory access request includes a memory access request sent by a processor and / or a graphics processor and / or other field programmable gate array modules connected to the field programmable gate array module;
[0123] S102: Parse the memory access request to obtain a parsing result, and send the memory access request to a memory expansion module mounted on the field programmable gate array module according to the parsing result, so that the memory expansion module responds to the memory access request.
[0124] The execution subject of this embodiment is the field programmable gate array module in the above-mentioned memory expansion system. In a specific implementation, the field programmable gate array module is located in the target node, and the processor, graphics processor, and other field programmable gate array modules connected to the field programmable gate array module in the target node can access the memory expansion module mounted on the field programmable gate array module, and the processor, graphics processor, and field programmable gate array module in other nodes can also access the memory expansion module mounted on the field programmable gate array module.
[0125] It can be seen that in this embodiment, the GPU can directly access the memory expansion module mounted on the FPGA module connected to it. In addition, the processor and other FPGA modules can also access the memory expansion module mounted on the current FPGA module, which effectively expands the GPU computing memory, reduces communication bottlenecks, increases GPU computing resource utilization, and improves the GPU processing performance.
[0126] This embodiment discloses a memory access method. Figure 5 , a flowchart of a second memory access method according to an exemplary embodiment is shown, as Figure 5 As shown, including:
[0127] S201: Receive a first memory access request sent by a processor in a target node;
[0128] S202: parsing the first memory access request to determine a destination memory page table of the request, judging whether an attribute of the destination memory page table satisfies a preset condition, and if so, locking the destination memory page table, and sending the first memory access request to a memory expansion module mounted on the field programmable gate array module, so that the memory expansion module responds to the first memory access request;
[0129] S203: After the memory expansion module responds to the first memory access request, unlock the destination memory page table.
[0130] In a specific implementation, the processor in the target node sends a first memory access request to the FPGA module through the CXL interface or the PCIE interface. After being calculated through the fast link and parsed by the direct memory access controller, the properties of the destination memory page table of the request are determined. When the destination memory page table is enabled and the properties satisfy the unlocked state, the page table update state is locked, and a read and write memory operation command is sent to the memory expansion module. The read response data is returned to the processor by the original path, and the page table update state is unlocked.
[0131] This embodiment discloses a memory access method. Figure 6 , a flowchart of a third memory access method according to an exemplary embodiment is shown, as shown in Figure 6 As shown, including:
[0132] S301: Receive a second memory access request sent by a graphics processor and / or other field programmable gate array module in a target node;
[0133] S302: parsing the second memory access request, converting the address of the destination memory page table requested in the second memory access request into a memory physical address to obtain a converted second memory access request;
[0134] S303: parsing the converted second memory access request to determine the destination memory page table of the request, judging whether the attribute of the destination memory page table meets the preset condition, if so, locking the destination memory page table, and sending the converted second memory access request to the memory expansion module mounted on the field programmable gate array module, so that the memory expansion module responds to the second memory access request;
[0135] S304: After the memory expansion module responds to the second memory access request, receive response data of the memory expansion module in response to the converted second memory access request, construct a response data packet in a format corresponding to the destination memory page table based on the response data, return the response data packet to the sender of the second memory access request, and unlock the destination memory page table.
[0136] In a specific implementation, when a GPU or other FPGA module connected through an Interlaken interface accesses a memory expansion module mounted on a current FPGA module, the multi-channel Interlaken interface first receives a second memory access request, parses a specific command through an inter-card memory access request parsing module, converts it into a physical address corresponding to a target memory page table according to a page table conversion module, sends the converted second memory access request to a computing fast link and a direct memory access controller for parsing to determine whether the target memory page table is enabled and the state, and when the target memory page table is enabled and the attributes satisfy the unlocked state, the page table state is locked and updated, and access to the memory expansion module is initiated, and after the DMA controller reads it, the read response data is returned to the inter-card memory access response packetization module, converted into a response data packet in a format corresponding to the target memory page table, sent to the Interlaken interface to return to the sender, and the page table update state is unlocked.
[0137] This embodiment discloses a memory access method. Figure 7 , a flowchart of a fourth memory access method according to an exemplary embodiment is shown, as shown in Figure 7 As shown, including:
[0138] S401: receiving a third memory access request sent by a device in another node; wherein the device in another node includes a processor and / or a field programmable gate array module and / or a graphics processor in another node;
[0139] S402: parsing the third memory access request to determine the destination memory page table of the request, judging whether the attribute of the destination memory page table meets a preset condition, and if so, locking the destination memory page table, and sending the third memory access request to the memory expansion module mounted on the field programmable gate array module, so that the memory expansion module responds to the third memory access request;
[0140] S403: After the memory expansion module responds to the third memory access request, unlock the destination memory page table.
[0141] In a specific implementation, a device outside the node sends a third memory access request to the FPGA module in the target node through a network optical module. After being parsed by the Ethernet-based remote direct memory access protocol stack, computing fast link and direct memory access controller, the attributes of the destination memory page table of the request are determined. When the destination memory page table is enabled and the attributes satisfy the unlocked state, the page table update state is locked, and read and write memory operation commands are sent to the memory expansion module. The read response data is returned to the requesting device outside the node, and the page table update state is unlocked.
[0142] Based on the hardware implementation of the above program modules and in order to implement the method of the embodiment of the present invention, the embodiment of the present invention further provides an electronic device, Figure 8 FIG. 1 is a structural diagram of an electronic device according to an exemplary embodiment. Figure 8 As shown, the electronic equipment includes:
[0143] Communication interface 1, capable of exchanging information with other devices such as network devices;
[0144] The processor 2 is connected to the communication interface 1 to implement information exchange with other devices and is used to execute the memory access method provided by one or more of the above technical solutions when running a computer program. The computer program is stored in the memory 3.
[0145] Of course, in actual application, the various components in the electronic device are coupled together through the bus system 4. It can be understood that the bus system 4 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 4 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 8 Various buses are labeled as bus system 4.
[0146] The memory 3 in the embodiment of the present invention is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program used to operate on the electronic device.
[0147] It can be understood that the memory 3 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAMbus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 3 described in the embodiments of the present invention is intended to include but is not limited to these and any other suitable types of memories.
[0148] The method disclosed in the above embodiment of the present invention can be applied to the processor 2, or implemented by the processor 2. The processor 2 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 2 or the instruction in the form of software. The above processor 2 can be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 2 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiment of the present invention. The general-purpose processor can be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present invention, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 3. The processor 2 reads the program in the memory 3 and completes the steps of the above method in combination with its hardware.
[0149] When the processor 2 executes the program, the corresponding processes in the various methods of the embodiments of the present invention are implemented, which will not be described here for the sake of brevity.
[0150] In an exemplary embodiment, the embodiment of the present invention further provides a non-volatile storage medium storing a computer program, which can be executed by the processor 2 to complete the steps of the aforementioned method.
[0151] In an exemplary embodiment, the present invention further provides a computer program product, including a computer program, which is executed by the processor 2 to complete the steps of the aforementioned method.
[0152] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to computer program instructions, and the aforementioned computer program can be stored in a non-volatile storage medium. When the computer program is executed, it executes the steps of the above method embodiments. Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a non-volatile storage medium. Based on this understanding, the technical solution of the embodiment of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a non-volatile storage medium and includes a number of instructions for an electronic device (which can be a personal computer, a server, a network device, etc.) to execute all or part of the methods described in each embodiment of the present invention.
[0153] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A memory expansion system, It is characterized in that The invention comprises N graphics processors and N field programmable gate array modules, wherein a memory expansion module is mounted on the field programmable gate array module, the N graphics processors are connected in a ring, the N field programmable gate array modules are connected in a ring, each of the graphics processors is connected to k field programmable gate array modules, the nth graphics processor is connected to the mth field programmable gate array module, 2≤k≤N, 1≤n≤N, when n≥k, the value range of m is [n-k+1,n], when n<k, the value range of m is [1,n]∪[N+n-k+1,N]; The field programmable gate array module is used to receive a memory access request, parse the memory access request to obtain a parsing result, and send the memory access request to a memory expansion module mounted on the field programmable gate array module according to the parsing result; wherein the memory access request includes a memory access request sent by a processor and / or a graphics processor and / or other field programmable gate array modules connected to the field programmable gate array module; The memory expansion module is used to respond to the memory access request; The memory expansion module includes a first memory area and a second memory area, the nth graphics processor reads data from the first memory area in the memory expansion module mounted on the nth field programmable gate array module and the second memory area in the memory expansion module mounted on other field programmable gate array modules connected to the nth graphics processor, and stores the processed data in the second memory area in the memory expansion module mounted on the nth field programmable gate array module; The field programmable gate array module mounts the memory extension module through an open memory interface, and the field programmable gate array module sends the memory access request to the mounted memory extension module through the open memory interface according to the analysis result; And / or, the field programmable gate array module is mounted with a double rate static random access memory, the double rate static random access memory is mounted on the field programmable gate array module in the form of a dual in-line module, and the field programmable gate array module sends the memory access request to the double rate static random access memory according to the analysis result, so that the double rate static random access memory responds to the memory access request; The memory expansion system is applied to model training, and the training data is divided into N training sub-data and stored in the first memory area of the memory expansion module mounted on N field programmable gate array modules; The nth graphics processor reads target training data from a first memory area in a memory expansion module mounted on the nth field programmable gate array module and a second memory area in a memory expansion module mounted on other field programmable gate array modules connected to the nth graphics processor, performs model training based on the target training data, and then stores the processed data in the second memory area in the memory expansion module mounted on the nth field programmable gate array module.
2. The memory expansion system according to claim 1, It is characterized in that The memory expansion system is deployed in the target node, and the field programmable gate array module is specifically used to: receive a first memory access request sent by a processor in the target node, parse the first memory access request to determine a destination memory page table of the request, determine whether an attribute of the destination memory page table meets a preset condition, and if so, lock the destination memory page table, and send the first memory access request to a memory expansion module mounted on the field programmable gate array module; The destination memory page table is unlocked after the memory expansion module responds to the first memory access request.
3. The memory expansion system according to claim 2, It is characterized in that The field programmable gate array module includes a computing fast link interface or a peripheral component interconnect fast bus interface, a computing fast link and direct memory access controller, and a page table enabling module; A computing fast link interface or a peripheral component interconnect fast bus interface, used to receive a first memory access request sent by a processor in the target node; A computing fast link and direct memory access controller, configured to parse the first memory access request to determine a destination memory page table of the request; A page table enabling module, used to determine whether the attribute of the target memory page table meets a preset condition, and if so, lock the target memory page table; A computing fast link and direct memory access controller is further used to send the first memory access request to a memory expansion module mounted on the field programmable gate array module; The page table enabling module is further used to unlock the destination memory page table after the memory expansion module responds to the first memory access request.
4. The memory expansion system according to claim 1, It is characterized in that The memory expansion system is deployed in the target node, and the field programmable gate array module is specifically used to: receive a second memory access request sent by a graphics processor and / or other field programmable gate array modules in the target node, parse the second memory access request, convert the address of the destination memory page table requested in the second memory access request into a memory physical address to obtain a converted second memory access request, parse the converted second memory access request to determine the requested destination memory page table, determine whether the attribute of the destination memory page table meets a preset condition, and if so, lock the destination memory page table, and send the converted second memory access request to the memory expansion module mounted on the field programmable gate array module; Receive response data of the memory expansion module in response to the converted second memory access request, construct a response data packet in a format corresponding to the destination memory page table based on the response data, return the response data packet to the sender of the second memory access request, and unlock the destination memory page table.
5. The memory expansion system according to claim 4, It is characterized in that The graphics processor includes a high-speed channelized chip-to-chip interface, and the field programmable gate array module includes a high-speed channelized chip-to-chip interface, an inter-card memory access request parsing module, a page table conversion module, a computing fast link and direct memory access controller, a page table enabling module, and an inter-card memory access response packaging module; different graphics processors, different field programmable gate array modules, and the field programmable gate array module and the graphics processor are all connected through the high-speed channelized chip-to-chip interface; The high-speed channelized chip-to-chip interface in the field programmable gate array module is used to receive a second memory access request sent by a graphics processor and / or other field programmable gate array modules in the target node; An inter-card memory access request parsing module, configured to parse the second memory access request; A page table conversion module, used for converting the address of the destination memory page table requested in the second memory access request into a memory physical address to obtain a converted second memory access request; A computing fast link and direct memory access controller is used to parse the converted second memory access request to determine a destination memory page table of the request; A page table enabling module, used to determine whether the attribute of the target memory page table meets a preset condition, and if so, lock the target memory page table; The computing fast link and direct memory access controller is also used to send the converted second memory access request to the memory expansion module mounted on the field programmable gate array module; an inter-card memory access response packetization module, configured to receive response data of the memory expansion module in response to the converted second memory access request, and construct a response data packet in a format corresponding to the destination memory page table based on the response data; The high-speed channelized chip-to-chip interface in the field programmable gate array module is also used to return the response data packet to the sender of the second memory access request; The page table enabling module is also used to unlock the destination memory page table.
6. The memory expansion system according to claim 1, It is characterized in that The memory expansion system is deployed in the target node, and the field programmable gate array module is specifically used to: receive a third memory access request sent by a device in another node, parse the third memory access request to determine a destination memory page table of the request, determine whether an attribute of the destination memory page table meets a preset condition, and if so, lock the destination memory page table, and send the memory access request to a memory expansion module mounted on the field programmable gate array module; The destination memory page table is unlocked after the memory expansion module responds to the third memory access request; wherein the devices in other nodes include processors and / or field programmable gate array modules and / or graphics processors in other nodes.
7. The memory expansion system according to claim 6, It is characterized in that The field programmable gate array module includes a network optical module, an Ethernet-based remote direct memory access protocol stack, a computing fast link and direct memory access controller, and a page table enabling module; A network optical module, used for receiving a third memory access request sent by a device in another node; A remote direct memory access protocol stack, a computing fast link, and a direct memory access controller based on Ethernet, for parsing the third memory access request to determine a destination memory page table of the request; A page table enabling module, used to determine whether the attribute of the target memory page table meets a preset condition, and if so, lock the target memory page table; The computing fast link and direct memory access controller is further used to send the third memory access request to the memory expansion module mounted on the field programmable gate array module; The page table enabling module is further used to unlock the destination memory page table after the memory expansion module responds to the third memory access request.
8. The memory expansion system according to claim 1, It is characterized in that The graphics processor includes high bandwidth memory.
9. The memory expansion system according to claim 1, It is characterized in that The N sets of training sub-data are respectively stored in the first memory area of the memory extension module mounted on the N field programmable gate array modules through the peripheral component interconnection fast bus interface or the network optical module.
10. The memory expansion system according to claim 1, It is characterized in that Data is transmitted between the field programmable gate array module and the graphics processor via a DMA controller.
11. The memory expansion system according to claim 1, It is characterized in that N GPUs share the high-bandwidth memory in the GPU through a ring connection.
12. A memory access method, It is characterized in that The method applied to the field programmable gate array module in the memory expansion system according to any one of claims 1 to 11 comprises: Receiving a memory access request; wherein the memory access request includes a memory access request sent by a processor and / or a graphics processor and / or other field programmable gate array module connected to the field programmable gate array module; The memory access request is parsed to obtain a parsing result, and the memory access request is sent to a memory expansion module mounted on the field programmable gate array module according to the parsing result, so that the memory expansion module responds to the memory access request.
13. The memory access method according to claim 12, It is characterized in that The memory expansion system is deployed in the target node, and the receiving of the memory access request includes: Receiving a first memory access request sent by a processor in the target node; Correspondingly, parsing the memory access request to obtain a parsing result, and sending the memory access request to a memory expansion module mounted on the field programmable gate array module according to the parsing result, including: Parsing the first memory access request to determine a destination memory page table of the request, judging whether an attribute of the destination memory page table satisfies a preset condition, and if so, locking the destination memory page table, and sending the first memory access request to a memory expansion module mounted on the field programmable gate array module; Correspondingly, after the memory expansion module responds to the first memory access request, the method further includes: Unlock the destination memory page table.
14. The memory access method according to claim 12, It is characterized in that The memory expansion system is deployed in the target node, and the receiving of the memory access request includes: Receiving a second memory access request sent by a graphics processor and / or other field programmable gate array module in the target node; Correspondingly, parsing the memory access request to obtain a parsing result, and sending the memory access request to a memory expansion module mounted on the field programmable gate array module according to the parsing result, including: Parsing the second memory access request, converting the address of the destination memory page table requested in the second memory access request into a memory physical address to obtain a converted second memory access request; Parsing the converted second memory access request to determine the requested destination memory page table, judging whether the attribute of the destination memory page table meets a preset condition, and if so, locking the destination memory page table, and sending the converted second memory access request to the memory expansion module mounted on the field programmable gate array module; Correspondingly, after the memory expansion module responds to the second memory access request, the method further includes: Receive response data of the memory expansion module in response to the converted second memory access request, construct a response data packet in a format corresponding to the destination memory page table based on the response data, return the response data packet to the sender of the second memory access request, and unlock the destination memory page table.
15. The memory access method according to claim 12, It is characterized in that The memory expansion system is deployed in the target node, and the receiving of the memory access request includes: Receiving a third memory access request sent by a device in another node; wherein the device in another node includes a processor and / or a field programmable gate array module and / or a graphics processor in another node; Correspondingly, parsing the memory access request to obtain a parsing result, and sending the memory access request to a memory expansion module mounted on the field programmable gate array module according to the parsing result, including: Parsing the third memory access request to determine the destination memory page table of the request, judging whether the attribute of the destination memory page table meets a preset condition, and if so, locking the destination memory page table, and sending the third memory access request to the memory expansion module mounted on the field programmable gate array module; Correspondingly, after the memory expansion module responds to the third memory access request, the method further includes: Unlock the destination memory page table.
16. An electronic device, It is characterized in that include: Memory for storing computer programs; A processor, configured to implement the steps of the memory access method as claimed in any one of claims 12 to 15 when executing the computer program.
17. A non-volatile storage medium, It is characterized in that The non-volatile storage medium stores a computer program, and when the computer program is executed, the steps of the memory access method according to any one of claims 12 to 15 are implemented.
18. A computer program product, It is characterized in that It comprises a computer program, which, when executed by a processor, implements the steps of the memory access method according to any one of claims 12 to 15.
