A large-bandwidth communication system based on non-full interconnection multi-machine multi-card set
By employing a multi-layered interconnect topology and parallel communication method in a non-fully interconnected multi-machine, multi-card set, the problem of low communication efficiency of GPU chips is solved, achieving efficient data transmission and bandwidth utilization.
Patent Information
- Application Number
- CN202510673682.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-23
- Publication Date
- 2026-11-24
AI Technical Summary
In scenarios involving multiple machines and multiple GPUs that are not fully interconnected, the large amount of data generated when the GPU chip communicates with the CPU via the PCIe switch results in low communication efficiency, making the bandwidth of the PCIe switch and CPU pathway a bottleneck.
A multi-layered connection topology is used for data communication between GPU chips. The connection relationship is built through preset connections to avoid CPU involvement. Large data volumes are divided into multiple first-to-communicate data to be executed in parallel, and the multi-layered connection relationship is used to improve bandwidth utilization.
It improves data communication efficiency, avoids CPU bandwidth bottlenecks, enhances bandwidth utilization of different layer connections, and achieves efficient data transmission.
Smart Images

Figure CN123163786A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data communication technology, and in particular to a high-bandwidth communication system based on a non-fully interconnected multi-machine, multi-card set. Background Technology
[0002] Currently, the demand for computing power is exploding in many fields such as scientific research, artificial intelligence, and big data analysis. However, a single GPU chip is increasingly unable to meet the growing demand for computing power. Therefore, existing technologies propose to form GPU clusters composed of multiple GPU chips to provide more powerful computing power to cope with increasingly complex and large-scale computing tasks.
[0003] In a GPU cluster, there is a communication requirement between GPU chips. In existing technologies, multiple GPU chips can usually be divided into multiple GPU chip sets. Each GPU chip set contains several GPU chips, and the GPU chips in each GPU chip set are interconnected. GPU chips in different GPU chip sets communicate directly with each other through the path between the PCIe switch and the CPU.
[0004] However, in scenarios with multiple machines and multiple cards that are not fully interconnected, the amount of data that the GPU chip communicates with the CPU through the PCIe switch is often large. The bandwidth of the PCIe switch and the CPU path becomes a bottleneck for communication efficiency, resulting in low data communication efficiency in scenarios with multiple machines and multiple cards that are not fully interconnected.
[0005] Therefore, how to improve the data communication efficiency in scenarios involving multiple machines and multiple cards that are not fully interconnected has become an urgent problem to be solved. Summary of the Invention
[0006] To address the aforementioned technical problems, the technical solution adopted by this invention is as follows:
[0007] A high-bandwidth communication system based on a non-fully interconnected multi-machine, multi-card aggregation, the system comprising: M GPU chips {a0, a1, ..., a...} m , ..., a M-1}, processor and memory storing computer programs, wherein, a m Let m be the (m+1)th GPU chip, where m is an integer in the range [0, M-1]. The M GPU chips form M / k interconnected GPU sets, where k is the number of GPU chips in a single interconnected GPU set. m It belongs to the N-level connection relationship, N = (log2(M / k)) + 1, a m It has a first-level connection with other GPU chips in its interconnected GPU set, a mThere is a layer q connection with the (m+p×k)mod(2p×k)+(2p×k)×f(m / (2p×k))+1th GPU chip, where p=2 q-2 q is an integer in the range [2, N], f() is the floor function, mod is the modulo function, and a m Corresponding to R first data to be communicated, each first data to be communicated includes M sub-data. When the computer program is executed by the processor, the following steps are implemented:
[0008] S101, for the m-th GPU chip a m , through a m The connection relationship of the i-th level will be a m The corresponding sub-data of the j-th first data to be communicated and a m The sub-data of the j-th first data to be communicated in the i-th layer connection relationship of other GPU chips communicate with each other. The initial value of i is N, the initial value of j is 1, i is an integer in the range [1, N], and j is an integer in the range [1, R].
[0009] S102, when a m When the j-th first data to be communicated is completed through the i-th layer connection relationship, the current i value is obtained, and steps S103 and S104 are executed simultaneously.
[0010] S103, if the current value of i is N, then update j = j + 1, return to step S101, and continue until j = R + 1.
[0011] S104, update i = i-1, return to step S101, until i = 0, and complete the mutual communication between the j-th first data to be communicated corresponding to the M GPU chips.
[0012] Compared with the prior art, the present invention has significant advantages. Through the above technical solution, the high-bandwidth communication system based on a non-fully interconnected multi-machine multi-card set provided by the present invention achieves considerable technological progress and practicality, and has broad industrial application value. It has at least the following advantages:
[0013] This invention enables data communication between multiple GPU chips through a topology structure with multiple interconnections. The interconnections can be constructed through preset connections, eliminating the need for data communication via the CPU. This avoids the bandwidth bottleneck of the CPU-provided path and improves the efficiency of data communication. Furthermore, by dividing large amounts of data into multiple first-to-communicate data and executing these multiple first-to-communicate data in parallel, the bandwidth utilization of different interconnection layers is effectively improved, thereby further enhancing the efficiency of data communication. Attached Figure Description
[0014] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0015] Figure 1 This is a flowchart illustrating the execution of a computer program by a processor in a high-bandwidth communication system based on a non-fully interconnected multi-machine, multi-card set, according to Embodiment 1 of the present invention.
[0016] Figure 2 This is a flowchart illustrating the execution of a computer program by a processor in a low-latency communication system based on a non-fully interconnected multi-machine, multi-card set, as provided in Embodiment 2 of the present invention. Detailed Implementation
[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0018] This embodiment provides a high-bandwidth communication system based on a non-fully interconnected multi-machine, multi-card aggregation system. (See also...) Figure 1 This is a flowchart illustrating the execution of a computer program by a processor in a high-bandwidth communication system based on a non-fully interconnected multi-machine, multi-card set, according to Embodiment 1 of the present invention. The system includes: M GPU chips {a0, a1, ..., a...} m , ..., a M-1}, processor and memory storing computer programs, wherein, a m Let m be the (m+1)th GPU chip, where m is an integer in the range [0, M-1]. The M GPU chips form M / k interconnected GPU sets, where k is the number of GPU chips in a single interconnected GPU set. m It belongs to the N-level connection relationship, N = (log2(M / k)) + 1, a m It has a first-level connection with other GPU chips in its interconnected GPU set, a m There is a layer q connection with the (m+p×k)mod(2p×k)+(2p×k)×f(m / (2p×k))+1th GPU chip, where p=2 q-2 q is an integer in the range [2, N], f() is the floor function, mod is the modulo function, and a mCorresponding to R first data to be communicated, each first data to be communicated includes M sub-data. When the computer program is executed by the processor, the following steps are implemented:
[0019] S101, for the m-th GPU chip a m , through a m The connection relationship of the i-th level will be a m The corresponding sub-data of the j-th first data to be communicated and a m The sub-data of the j-th first data to be communicated in the i-th layer connection relationship of other GPU chips communicate with each other. The initial value of i is N, the initial value of j is 1, i is an integer in the range [1, N], and j is an integer in the range [1, R].
[0020] S102, when a m When the j-th first data to be communicated is completed through the i-th layer connection relationship, the current i value is obtained, and steps S103 and S104 are executed simultaneously.
[0021] S103, if the current value of i is N, then update j = j + 1, return to step S101, and continue until j = R + 1;
[0022] S104, update i = i-1, return to step S101, until i = 0, and complete the mutual communication between the j-th first data to be communicated corresponding to the M GPU chips.
[0023] In this system, the k GPU chips in a single interconnected GPU set are interconnected at the first layer, and each GPU chip is interconnected at the qth layer with only one other GPU chip.
[0024] Each GPU chip corresponds to the target data that needs to be communicated. In this embodiment, the target data is large in volume. If a multi-layer connection relationship is used to communicate the target data directly, the communication result can only be obtained after the target data has been completely communicated, which takes a long time. In this embodiment, the target data is divided into R first data to be communicated, which reduces the amount of data to be communicated in a single communication. The communication result can be used directly after the communication of a single first data to be communicated is completed, which improves communication efficiency. Furthermore, the R first data to be communicated can communicate in parallel because the connection relationship used is at different levels, which further improves communication efficiency.
[0025] Specifically, when a m When the j-th first data to be communicated is completed through the i-th layer connection, steps S103 and S104 are executed in parallel. It should be noted that step S104 is not executed sequentially after step S103. For example, when a... mWhen the first piece of data to be communicated is completed through the Nth layer connection, in step S103, i = N, update j = 2, and return to step S101. At this time, through a m The Nth level connection relationship will be a m The corresponding second sub-data of the first data to be communicated and a m In the Nth layer connection relationship, the second first data to be communicated corresponding to other GPU chips communicate with each other. When executing step S104, update i = N-1, return to execute step S101. At this time, through a m The connection relationship of the (N-1)th layer will be a m The corresponding first sub-data of the first data to be communicated and a m The first sub-data of the first data to be communicated to other GPU chips in the (N-1)th layer connection relationship communicate with each other.
[0026] Taking M=16 and k=4 as an example, the 16 GPU chips form 4 interconnected GPU sets. Each interconnected GPU set contains 4 interconnected GPU chips, and N=3. For the first GPU chip a0, there is a 3-level connection relationship. The first GPU chip has a first-level connection relationship with the second GPU chip a1, the third GPU chip a2, and the fourth GPU chip a3 in the same interconnected GPU set. When q=3, p=2, then (m+p×k)mod(2p×k)+(2p×k)×f(m / (2p×k))=(0+2×4)mod (2×2×4)+(2×2×4)×f(0 / (2×2×4))+1=8mod16+16×0+1=9, so the first GPU chip a0 and the ninth chip a8 have a third-level connection relationship. When q=2, p=1, so (m+p×k)mod(2p×k)+(2p×k)×f(m / (2p×k))+1=(0+1×4)mod(2×1×4)+(2×1×4)×f(0 / (2×1×4))+1=4mod8+8×0+1=5, so the 0th GPU chip a0 and the 5th chip a4 have a second-level connection relationship.
[0027] In one specific implementation, step S101 includes the following steps:
[0028] S1011, if i>1, then through a m The connection relationship of the i-th level will be a m The corresponding M / 2 sub-data in the j-th first data to be communicated and a m In the i-th layer connection relationship, the M / 2 sub-data in the j-th first data to be communicated by another GPU chip communicates with each other.
[0029] Where, when i>1, a m The i-th layer connection contains only one other GPU chip, therefore, through a m The connection relationship of the i-th level will be a m The corresponding M / 2 sub-data in the j-th first data to be communicated and a m In the i-th layer connection relationship, the M / 2 sub-data in the j-th first data to be communicated by another GPU chip communicates with each other.
[0030] Specifically, following the previous example and describing it with j=1, for the first GPU chip a0, when i=3, the 8 sub-data in the first first data to be communicated corresponding to a0 are communicated with the 8 sub-data in the first first data to be communicated corresponding to another GPU chip a8 in the third layer connection relationship to which a0 belongs through the third layer connection relationship. It should be noted that the sub-data in the first first data to be communicated corresponding to a0 can be represented as d. 0 0, d 0 1、…、d 0 15 The first sub-data in the first data to be communicated corresponding to a8 can be represented as d. 8 0, d 8 1、…、d 8 15 a0 will send 8 sub-data d from its first data to be communicated. 0 8. d 0 9、…、d 0 15 Send it to a8, a8 sends 8 parts of its first data to be communicated, d 8 0, d 8 1、…、d 8 7 is sent to a0. When i = 2, through the second-layer connection relationship to which the first GPU chip a0 belongs, the 8 sub-data in the first first data to be communicated corresponding to a0 are mutually communicated with the 8 sub-data in the first first data to be communicated corresponding to another GPU chip a4 in the second-layer connection relationship to which a0 belongs. It should be noted that, at this time, the sub-data in the first first data to be communicated corresponding to a0 can be represented as d. 0 0, d 0 1、…、d 0 7. d 8 0, d 8 1、…、d 8 7. The first sub-data in the first data to be communicated corresponding to a4 can be represented as d. 4 0, d 4 1、…、d 4 7. d12 0, d 12 1、…、d 12 7, a0 will send 8 sub-data d from its first data to be communicated. 0 4. d 0 5. d 0 6. d 0 7. d 8 4. d 8 5. d 8 6. d 8 7 is sent to a4, and a4 sends 8 sub-data d from its first piece of data to be communicated. 4 0, d 4 1, d 4 2, d 4 3, d 12 0, d 12 1, d 12 2, d 12 3 is sent to a0.
[0031] In one specific implementation, step S101 further includes the following steps:
[0032] S1012, if i = 1, then through a m The connection relationship of the i-th level will be a m The corresponding M / k element data in the j-th first data to be communicated and a m In the i-th layer connection relationship, the M / k sub-data in the j-th first data to be communicated by the other k-1 GPU chips communicate with each other.
[0033] When i = 1, a m The i-th layer connection contains k-1 other GPU chips; therefore, through a m The connection relationship of the i-th level will be a m The corresponding M / k element data in the j-th first data to be communicated and a m In the i-th layer connection relationship, the M / k sub-data in the j-th first data to be communicated by the other k-1 GPU chips communicate with each other.
[0034] Specifically, following the previous example, the four sub-data points in the first first data to be communicated corresponding to the first GPU chip a0 are communicated with the four sub-data points in the first first data to be communicated corresponding to the other GPU chip a1 in the first layer of the connection relationship to which a0 belongs, through the first layer connection relationship. At this time, the sub-data points in the first first data to be communicated corresponding to a0 can be represented as d. 0 0, d 0 1, d 0 2, d0 3, d 4 0, d 4 1, d 4 2, d 4 3, d 8 0, d 8 1, d 8 2, d 8 3, d 12 0, d 12 1, d 12 2, d 12 3. The first sub-data in the first data to be communicated corresponding to a1 can be represented as d. 1 0, d 1 1, d 1 2, d 1 3, d 5 0, d 5 1, d 5 2, d 5 3, d 9 0, d 9 1, d 9 2, d 9 3, d 13 0, d 13 1, d 13 2, d 13 3, a0 will send 4 sub-data d from its first data to be communicated. 0 1, d 4 1, d 8 1, d 12 1 sends to a1, and a1 sends four sub-data d from its first piece of data to be communicated. 1 0, d 5 0, d 9 0, d 13 0 is sent to a0, and similarly, a0 sends four sub-data d from its first data to be communicated. 0 2, d 4 2, d 8 2, d 12 2 sends to a2, and a2 sends four sub-data d from its first piece of data to be communicated. 2 0, d 6 0, d 10 0, d 14 0 sends to a0, and a0 sends four sub-data d from its first piece of data to be communicated. 0 3, d 4 3, d 8 3, d 12 3 sends to a3, and a3 sends four sub-data d from its first piece of data to be communicated. 3 0, d 7 0, d11 0, d 15 0 is sent to a0. Therefore, when the first piece of data to be communicated corresponding to a0 is completed through the first layer connection, the 16 sub-data in a0 are d. 0 0, d 1 0、…、d 15 0. Similarly, the 16 sub-data in a1 are d. 0 1, d 1 1、…、d 15 1, and so on.
[0035] In one specific implementation, communication between GPU chips is achieved through a set communication algorithm.
[0036] In this embodiment, the set communication algorithm can refer to an algorithm for performing data set operations and communication between GPU chips.
[0037] In one specific implementation, the set communication algorithm includes at least: a full reduction algorithm, a full collection algorithm, a reduction scattering algorithm, and a full interconnection algorithm.
[0038] Among them, ensemble communication algorithms can include all-reduce algorithms, all-gather algorithms, reduce-scatter algorithms, all-to-all algorithms, etc.
[0039] In one specific implementation, the GPU chip includes S ports.
[0040] Ports can be used to support the establishment of connections between GPU chips.
[0041] In one specific implementation, S, k, and N satisfy the condition: N + k - 2 ≤ S.
[0042] For a single GPU chip, k-1 ports are needed to build the first layer of connections, and N-1 ports are needed to build the second to Nth layer connections. Therefore, N+k-2≤S must be satisfied.
[0043] In one specific implementation, the total data volume of the R first data to be communicated is greater than a preset first data volume threshold.
[0044] The total data volume of the R first data to be communicated, which is also the data volume of the target data, should be greater than the preset first data volume threshold. This indicates that directly communicating with the target data would result in the communication results being unusable for a long time. Therefore, the target data is divided into R first data to be communicated for transmission.
[0045] In this first embodiment, a topology structure with multiple interconnected layers enables data communication between multiple GPU chips. The interconnections can all be constructed through preset connections, eliminating the need for data communication via the CPU. This avoids the bandwidth bottleneck of the path provided by the CPU, improving the efficiency of data communication. Furthermore, by dividing large amounts of data into multiple first data to be communicated, the parallel execution of these multiple first data to be communicated effectively improves the bandwidth utilization of different interconnected layers, thereby further enhancing the efficiency of data communication.
[0046] This second embodiment provides a low-latency communication system based on a non-fully interconnected multi-machine, multi-card aggregation system. See [link to documentation]. Figure 2 This is a flowchart illustrating the execution of a computer program by a processor in a low-latency communication system based on a non-fully interconnected multi-machine, multi-card set, according to Embodiment 2 of the present invention. The system includes: M GPU chips {a0, a1, ..., a...} m , ..., a M-1}, processor and memory storing computer programs, wherein, a m Let m be the (m+1)th GPU chip, where m is an integer in the range [0, M-1]. The M GPU chips form M / k interconnected GPU sets, where k is the number of GPU chips in a single interconnected GPU set. m It belongs to the N-level connection relationship, N = (log2(M / k)) + 1, a m It has a first-level connection with other GPU chips in its interconnected GPU set, a m There is a layer q connection with the (m+p×k)mod(2p×k)+(2p×k)×f(m / (2p×k))+1th GPU chip, where p=2 q-2 q is an integer in the range [2, N], f() is the floor function, mod is the modulo function, and a m Corresponding to the second data to be communicated, each second data to be communicated includes M sub-data. When the computer program is executed by the processor, the following steps are implemented:
[0047] S201, for the m-th GPU chip a m , through a m The connection relationship of the f-th level will be a m The corresponding second sub-data to be communicated and a m The second data to be communicated by the other GPU chip in the f-th layer connection relationship communicates with each other. The initial value of f is N, and f is an integer in the range [2, N].
[0048] S202, when a mWhen the corresponding second data to be communicated is completed through the f-th layer connection relationship, update f = f-1, return to execute step S201, until f = 1, and complete the mutual communication between the second data to be communicated corresponding to the M GPU chips respectively.
[0049] In this embodiment, a single GPU chip corresponds to the second data to be communicated, and the amount of the second data to be communicated is relatively small.
[0050] Specifically, when the amount of data to be communicated is small, the bottleneck in communication efficiency lies in the number of data synchronizations. Compared to the traditional ring algorithm communication, communication through multi-layer connections can effectively reduce the number of synchronizations. For example, in a scenario where H GPU chips communicate using the All-Gather algorithm, the ring algorithm requires H-1 synchronizations, while communication through multi-layer connections only requires N = (log2(H / k)) + 1 synchronizations. For example, in a scenario where 8 GPU chips communicate using the All-Gather algorithm, the ring algorithm requires 7 synchronizations, while when k is 4, communication through multi-layer connections only requires 2 synchronizations, effectively reducing the number of synchronizations. Furthermore, in this embodiment, a... m The corresponding second data to be communicated only through the Nth layer connection to the 2nd layer connection, without having to go through the first layer connection, which further reduces the number of synchronizations and improves communication efficiency.
[0051] In one specific implementation, step S201 includes the following steps:
[0052] S2011, via a m The connection relationship of the f-th level will be a m All sub-data in the corresponding second data to be communicated and a m All sub-data in the second data to be communicated in the f-th layer connection relationship of another GPU chip can communicate with each other.
[0053] In this embodiment, since the data volume of the second data to be communicated is small by default, even if redundant communication of M sub-data is performed, the bandwidth bottleneck will not be reached. Due to the redundant communication method, after the GPU chip completes communication from the Nth layer connection relationship to the second layer connection relationship, it does not need to perform synchronization through the first layer connection relationship. Instead, it can directly perform preset processing inside the GPU chip based on the redundant data obtained through redundant communication. The preset processing may include sum calculation, mean calculation, etc., so as to avoid synchronization through the first layer connection relationship and further reduce the number of synchronizations. It should be noted that, generally, the effect of this embodiment is more obvious when applied to the Reduce-Scatter algorithm. The Reduce-Scatter algorithm needs to perform synchronization again after the data is processed in a preset manner, while this embodiment does not need to perform synchronization again after the data is processed in a preset manner.
[0054] In a specific implementation manner, communication between GPU chips is implemented through a collective communication algorithm.
[0055] In this embodiment, the collective communication algorithm may refer to an algorithm for performing data set operations and communication between GPU chips.
[0056] In a specific implementation manner, the collective communication algorithm at least includes: an All-Reduce algorithm, an All-Gather algorithm, a Reduce-Scatter algorithm, and an All-to-All algorithm.
[0057] The collective communication algorithm may include an All-Reduce algorithm, an All-Gather algorithm, a Reduce-Scatter algorithm, an All-to-All algorithm, and the like.
[0058] In a specific implementation manner, the GPU chip includes S ports.
[0059] The ports may be used to support the construction of connection relationships between GPU chips.
[0060] In a specific implementation manner, S, k, and N satisfy the condition: N+k-2≤S.
[0061] For a single GPU chip, k-1 ports are required to construct the first layer connection relationship, and N-1 ports are required to construct the second layer to Nth layer connection relationship. Therefore, N+k-2≤S needs to be satisfied.
[0062] In a specific implementation manner, the data volume T of the second data to be communicated satisfies the condition: T×(N-1)<W, where W is a preset second data volume threshold.
[0063] Because of redundant transmission, communication at each layer of connection doubles the amount of data required for communication at the next layer. When the amount of data communicated at the second layer is less than a second data threshold, redundant transmission can be considered not to reach the bandwidth bottleneck; that is, T should satisfy the condition: T×2. N-1 <W。
[0064] In one specific implementation, the a m Corresponding to U second data to be communicated;
[0065] Accordingly, step S202 includes:
[0066] S2021, when a m When the u-th second data to be communicated is completed through the f-th layer connection relationship, the current f value is obtained, and steps S2022 and S2023 are executed simultaneously. The initial value of u is 1.
[0067] S2022, if the current value of f is N, then update u = u + 1, return to step S201, and continue until u = U + 1;
[0068] S2023, update f = f-1, return to step S201, until f = 1, and complete the mutual communication between the u-th second data to be communicated corresponding to the M GPU chips.
[0069] In the low-latency communication system of this embodiment two, communication efficiency can also be improved by using the parallel communication method in embodiment one. For a detailed description of parallel communication, please refer to embodiment one.
[0070] In this second embodiment, multiple GPU chips communicate with each other through a topology structure containing multiple layers of connections. This eliminates the need for data communication via the ring algorithm, avoiding the numerous data synchronizations required by the ring algorithm, thus reducing the number of data synchronizations and improving the efficiency of data communication. Furthermore, the redundant transmission of the second data to be communicated, which has a small amount of data, eliminates the need for data synchronization via the first layer of connections, further reducing the number of data synchronizations and thus improving the efficiency of data communication.
[0071] While specific embodiments of the invention have been described in detail by way of example, those skilled in the art should understand that the examples are for illustrative purposes only and not intended to limit the scope of the invention. Those skilled in the art should also understand that various modifications can be made to the embodiments without departing from the scope and spirit of the invention. The scope of this invention is defined by the appended claims.
Claims
1. A high-bandwidth communication system based on a non-fully interconnected multi-machine, multi-card aggregation, characterized in that, The system includes: M GPU chips {a0, a1, ..., a...} m , ..., a M-1 }, processor and memory storing computer programs, wherein, a m Let m be the (m+1)th GPU chip, where m is an integer in the range [0, M-1]. The M GPU chips form M / k interconnected GPU sets, where k is the number of GPU chips in a single interconnected GPU set. m It belongs to the N-level connection relationship, N = (log2(M / k)) + 1, a m It has a first-level connection with other GPU chips in its interconnected GPU set, a m There is a layer q connection with the (m+p×k)mod(2p×k)+(2p×k)×f(m / (2p×k))+1th GPU chip, where p=2 q-2 q is an integer in the range [2, N], f() is the floor function, mod is the modulo function, and a m Corresponding to R first data to be communicated, each first data to be communicated includes M sub-data. When the computer program is executed by the processor, the following steps are implemented: S101, for the m-th GPU chip a m , through a m The connection relationship of the i-th level will be a m The corresponding sub-data of the j-th first data to be communicated and a m The sub-data of the j-th first data to be communicated in the i-th layer connection relationship of other GPU chips communicate with each other. The initial value of i is N, the initial value of j is 1, i is an integer in the range [1, N], and j is an integer in the range [1, R]. S102, when a m When the j-th first data to be communicated is completed through the i-th layer connection relationship, the current i value is obtained, and steps S103 and S104 are executed simultaneously. S103, if the current value of i is N, then update j = j + 1, return to step S101, and continue until j = R + 1; S104, update i = i-1, return to step S101, until i = 0, and complete the mutual communication between the j-th first data to be communicated corresponding to the M GPU chips.
2. The high-bandwidth communication system based on a non-fully interconnected multi-machine, multi-card set according to claim 1, characterized in that, Step S101 includes the following steps: S1011, if i>1, then through a m The connection relationship of the i-th level will be a m The corresponding M / 2 sub-data in the j-th first data to be communicated and a m In the i-th layer connection relationship, the M / 2 sub-data in the j-th first data to be communicated by another GPU chip communicates with each other.
3. The high-bandwidth communication system based on a non-fully interconnected multi-machine, multi-card aggregation according to claim 2, characterized in that, Step S101 also includes the following steps: S1012, if i = 1, then through a m The connection relationship of the i-th level will be a m The corresponding M / k element data in the j-th first data to be communicated and a m In the i-th layer connection relationship, the M / k sub-data in the j-th first data to be communicated by the other k-1 GPU chips communicate with each other.
4. The high-bandwidth communication system based on a non-fully interconnected multi-machine, multi-card set according to claim 1, characterized in that, Communication between GPU chips is achieved through a set communication algorithm.
5. The high-bandwidth communication system based on a non-fully interconnected multi-machine, multi-card set according to claim 4, characterized in that, The set communication algorithm includes at least: full reduction algorithm, full collection algorithm, reduction scattering algorithm and full interconnection algorithm.
6. The high-bandwidth communication system based on a non-fully interconnected multi-machine, multi-card set according to claim 1, characterized in that, The GPU chip contains S ports.
7. The high-bandwidth communication system based on a non-fully interconnected multi-machine, multi-card set according to claim 6, characterized in that, S, k, and N satisfy the condition: N + k - 2 ≤ S.
8. The high-bandwidth communication system based on a non-fully interconnected multi-machine, multi-card set according to claim 1, characterized in that, The total data volume of the R first data to be communicated is greater than the preset first data volume threshold.
