Embedded Ring on Ring Computer Network

By adopting a multi-layer ring link topology between processing nodes, efficient Allreduce data exchange is achieved, solving the problem of low efficiency in the existing technology and improving the computing performance in machine learning.

CN113785280BActive Publication Date: 2024-09-03GRAPHCORE LTD
View PDF 23 Cites 0 Cited by

Patent Information

Application Number
CN202080024733.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-03-27
Filing Date
2020-03-26
Publication Date
2024-09-03
Estimated Expiration
2040-03-26

AI Technical Summary

Technical Problem

The existing Allreduce algorithm has low efficiency in the data exchange process in machine learning, especially when processing data exchange between nodes, resulting in limited computing performance.

Method used

A multi-layer configured processing node topology is adopted, in which the processing nodes of each layer form a ring connection through intra-layer and inter-layer links, allowing data to be transmitted in an asymmetric bandwidth utilization manner and operated simultaneously through an embedded one-dimensional logical ring to achieve Efficient implementation of Allreduce sets.

Benefits of technology

It improves the efficiency of data exchange between processing nodes, reduces waiting time, optimizes computing performance, and is especially suitable for updating model parameters of distributed training neural networks in machine learning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113785280B_ABST
    Figure CN113785280B_ABST
Patent Text Reader

Abstract

A computer includes a plurality of interconnected processing nodes arranged in a configuration having multiple layers, the multiple layers being arranged along an axis, including first and second end-most layers and at least one intermediate layer between the first and second end-most layers. Each layer includes a plurality of processing nodes connected in a ring by respective sets of links within the layer between each pair of adjacent processing nodes, the links being adapted to operate simultaneously. The nodes of each layer are connected to respective corresponding nodes of each adjacent layer by inter-layer links. Each processing node of the first end-most layer is connected to a corresponding node of the second end-most layer. Data is transmitted around a plurality of embedded one-dimensional logical rings with asymmetric bandwidth utilization, each logical ring utilizing all processing nodes of the computer in a manner such that the plurality of embedded one-dimensional logical rings operate simultaneously.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to data exchange between processing nodes connected in a computer, particularly but not limited to optimizing data exchange in machine learning / artificial intelligence applications. Background Art

[0002] Collectives are routines commonly used when processing data in a computer. They are routines that enable data to be shared and processed across multiple different processes, which can run on the same processing node or different processing nodes. For example, if a process reads data from a data store, it can share that data with other processes using a "broadcast" process. Another example is when the result of a particular function is needed on multiple processes. "Reduction" is the result of applying a computational function to data values ​​from each of multiple processes. "Gather" and "scatter" collectives process more than one data item. Certain collectives are becoming increasingly important in processing machine learning applications.

[0003] MPI (Message Passing Interface) is a message passing standard that can be applied to many parallel computing architectures. MPI defines several collections suitable for machine learning. One such collection is called "Allreduce". The Allreduce operation enables the results of a computational function acting on multiple data values ​​from different source processes to be provided to a receiving process. Note that the receiving process can be one of the source processes, and there can be multiple receiving processes. The Allreduce collection reduces the data values ​​from multiple source processes and distributes the results to all source processes (which act as receiving processes for the reduction results). According to the MPI standard, the Allreduce collection is implemented by reducing the data values ​​from all source processes (e.g., one of these processes) in a reduction collection and then broadcasting the results to each source process.

[0004] Figure 1 1 is a schematic block diagram of a distributed architecture for training a neural network. A source 100 of training data is provided. This may be a database or any other kind of data storage capable of holding training data suitable for the neural network model being trained. The processing of the neural network model itself is distributed across a plurality of processing units 110a, 110b, 110c, etc. Figure 1Only three units are shown, but it will be readily appreciated that any number of processing units may be utilized. Each processing unit 110a, 110b, 110c receives a batch of training data from a training data source 100. Each processing unit 110a, 110b, 110c maintains a set of parameters 112a, 112b, 112c that define the model. A batch of incoming training data is processed in a computation function 114 using the current set of parameters, and the result of the computation function is used to generate a so-called delta, which represents the difference between the original parameters and the new parameters as a result of applying the computation function with respect to the batch of training data and the current set of parameters. In many neural networks, these parameters are referred to as "weights," and so the delta values ​​are referred to as "delta weights." In Figure 1 In the example, weights are labeled 112a, 112b, 112c and incremental weights are labeled 116a, 116b, 116c. It will be appreciated that in practice, weights and incremental weights are stored in appropriate storage accessible to the processing unit. If weights and incremental weights can be kept in local memory, this will make the training process more efficient.

[0005] Figure 1 The purpose of the architecture is not to train three separate models, but to train a single model in a distributed manner. Therefore, the goal is to get the model parameters (or weights) of each processing unit to converge to a single common set. Obviously, starting from any particular set of weights, and assuming that each processing unit does not receive exactly the same batch of training data, there will be variations in the incremental weights produced by each computation function of each processing unit. Therefore, what is needed is a way to distribute the incremental weights across the processing units after each iteration of the batched training data. This is done in Figure 1 , where a combination function 118 receives incremental weights from each processing unit and performs a mathematical function that reduces the incremental weights, such as an average function. The output of the combination function 118 is then fed back to the combination circuits 120a, 120b, and 120c within each processing unit, respectively. This produces a new set of weights that are the combined outputs of the original weights and the combination function 118, and the new weights 118a, 118b, and 118c are stored back in the local memory. Then, the next batch of training data is provided to each processing unit, and the process is repeated multiple times. Obviously, if the starting weights of the processing units are the same, then after each iteration, they will be reset to the same new value again. It is easy to see that the above situation is an example where the Allreduce function is particularly useful. The incremental weights are provided to the combination function 118a, where they are reduced, and then they are provided back to each of the processing units in a reduced form, where they can be combined with the original weights.

[0006] Figure 1Ais a schematic diagram showing how the Allreduce collection is implemented in a wire-connected topology of five processing nodes N0...N5. These processing nodes may correspond to Figure 1 processing units in which the combinatorial functions are distributed. These processing nodes are shown connected in a linear configuration, where each processing node is connected by a "forward" link L F and the "backward" link L B is connected to its neighbors. As the directional phrase implies, the forward link Figure 1A The processing nodes are connected from left to right in , and the backward link is Figure 1A 200 and storage capacity. The processing nodes are connected from right to left in FIG. Each processing node has a processing capability designated as 200 and a storage capability designated as 202. The processing capability and storage capability can be implemented in any of a wide variety of ways. In a particular representation, a processing node may include a plurality of tiles, each individual tile having its own processing capability and associated storage capability. Each processing node also has one or more link interfaces that enable it to communicate with each other via link L F / L B Connect to its adjacent nodes.

[0007] To understand the implementation of the Allreduce set, assume that a first node N0 generates a "partial" vector labeled Δ0. A "part" can be a data structure, such as a vector or tensor, including an array of incremental weights. A partial vector is an array of parts, each part corresponding to a calculation on a processing node. Each "part" can be a set of incremental weights. This is stored in the storage capacity 202, ready to be exchanged in the Allreduce set. In a simple "stream" line Allreduce algorithm, the forward link is used for "reduction" and the backward link is used for "broadcasting". The algorithm is performed on a processing node ( Figure 1A ), sending its portion Δ0 to its neighboring node N. At this node, the incoming portion (Δ0 in this example) is reduced with the corresponding portion Δ1 generated by the computational power 200 at processing node N1. The result of this reduction (in Figure 1A The ADD function is then sent from processing node N to the next connection node N. As further mentioned in this article, the ADD function can be replaced by any combination function that can be used for the reduction part. This process occurs at each processing node until the last processing node, Figure 1A In the figure, N4 is represented as part of the reduction. At this point, the reduction (sum Δ) is transmitted via the backward link L B is sent back to each processing node. It is received at each node, stored in the memory capacity of that node, and then also transmitted to the next node. In this way, each processing node ends with the result of the reduction.

[0008] Figure 1B shows the timing diagram of the reduction and broadcast phases. Note that a processing node cannot send the result of a reduction to the next node before receiving the incoming data from the previous node. Therefore, each outbound transmission on the forward link has an inherent latency marker Δ.

[0009] Furthermore, the backward links are not used for broadcasting until the terminal node has the result of the full reduction. However, if the partial vectors are large due to pipelining effects, the leading data items of the result will be returned to the originating node before it has finished sending its partial data items, so there may be a large overlap in activity on all forward and backward links.

[0010] In a modification of this algorithm, a small improvement is represented in which the processing nodes at each end of the line can begin sending their partial data to the central node where the reduction is performed. In this case, the results are broadcast back to the end nodes. Note that in this case there are reversals of direction of movement, for example between nodes N2 and N3, and between N3 and N4 on both the forward and reverse links. If the line is closed into a loop (by connecting the last node N5 to the first node N0 on both the forward and reverse links), the pipeline algorithm can serialize the reduction and broadcast in the same direction, so that the two logical loops formed by the bidirectional links can each operate independently on half of the data. That is, each partial vector is divided into two parts, and the first part ΔA is reduced on the forward link (as Figure 1A ) and broadcast on the connection leg between N5 and N0. The other half of the vector ΔB is reduced on the backward link and then broadcast on the connection ring of the backward link.

[0011] Figure 1D The corresponding timing diagrams for the forward and reverse links are shown.

[0012] A. Figure 1A and Figure 1C The principle of the one-dimensional ring shown can be extended to a two-dimensional ring, such as a ring or a ring-connected computer.

[0013] With a two-dimensional ring, an alternative approach is to implement Allreduce using an Allgather collection followed by a Reduce-Scatter collection. The paper by Jain and Sabharwal, titled "Optimal Bucket Algorithms for large MPI collectives on torus interconnects" (ICS'10, June 2-4, Tsukuba), presents bucket-based algorithms for Allgather, Reduce-Scatter, and Allreduce collections assuming bidirectional links between processing nodes of a ring-interconnected processor. This approach operates on the basis that at each step there are multiple data values ​​(fragments) to be processed. In Reduce-Scatter, each process starts with an initial partial vector. It is assumed that the processes mentioned here are the processes implemented on the processing nodes. The partial vector can be divided into multiple elements or fragments. The corresponding elements of all processes are reduced, and then these reduced elements are distributed across the processes. In Allgather, each process receives all elements from all other processes. Reduce-Scatter reduces all the parts and stores each reduction on its own node - see Figure 2 The Allreduce collective operation can be implemented by performing a Reduce-Scatter collective followed by an Allgather collective operation.

[0014] As discussed in Jain's paper, the ring interconnect is an attractive interconnect architecture for distributed memory supercomputers. In the above discussion, collectives have been described in the context of communication between processes. In a distributed supercomputer, processing nodes are interconnected, and each processing node can be responsible for one or more processes in the context of a collective. The ring interconnect is a type of mesh interconnect where the processing nodes are arranged in an N-dimensional array, with each node connected to its nearest neighbors and corresponding nodes at opposite edges of the array. Bidirectional communication links exist between interconnected processing nodes.

[0015] The algorithm for implementing the collective discussed in the above-mentioned paper by Jain and Sabharwal is applied to a ring-connected architecture. This allows the collective to process different fragments of a vector in a ring of different dimensions simultaneously, making the processing bandwidth efficient. In fact, Jain and Sabthawal present their technique as being optimal for asymmetric rings, and the art has accepted this as the case.

[0016] The purpose of the present disclosure is to present improved computers and methods for implementing Allreduce functions, particularly but not limited to the use of processing functions for machine learning. Although the topologies and configurations described herein are particularly effective for efficient implementation of Allreduce, they can also be advantageously used for other machine learning collections and other types of parallel programs.

[0017] While the topologies and configurations described in this article are particularly effective for efficient implementations of Allreduce, they can also be used to advantage with other machine learning collections and other types of parallel programs. Summary of the invention

[0018] According to one aspect of the present invention, there is provided a computer comprising a plurality of interconnected processing nodes arranged in a configuration having multiple layers, the multiple layers being arranged along an axis, including first and second end-most layers and at least one intermediate layer between the first and second end-most layers;

[0019] Each layer includes a plurality of processing nodes connected into a ring by respective sets of links within the layer between each pair of adjacent processing nodes, the links in each set being suitable for simultaneous operation;

[0020] wherein the processing nodes in each layer are connected to respective corresponding nodes in each adjacent layer via inter-layer links, wherein each processing node in the first most end layer is connected to a corresponding node in the second most end layer;

[0021] The computer is programmed to transfer data around a plurality of embedded one-dimensional logic rings, each logic ring utilizing all of the processing nodes of the computer, in such a manner that the plurality of embedded one-dimensional logic rings, each logic ring utilizing all of the processing nodes of the computer, operate simultaneously;

[0022] In this case, computers are programmed to transmit data in an asymmetric bandwidth utilization manner.

[0023] In some embodiments, utilization of link bandwidth within a layer is greater than utilization of bandwidth along an axis.

[0024] In some embodiments, the embedded rings are isomorphic.

[0025] The Allreduce collection may be implemented using a computer in the manner described herein.

[0026] In one embodiment, the intra-layer link set includes two links, and the bandwidth utilization is B / 6 along the axis and B / 3 within each layer, where B is the total bandwidth of each processing node. Three rings can be embedded.

[0027] In another embodiment, the intra-layer link set includes three links, and the bandwidth utilization is 3B / 8 in each layer and B / 8 along the axis. Four rings may be embedded.

[0028] Data may pass through the processing nodes of each layer along each ring in a counterclockwise or clockwise direction. In some embodiments, data may pass through successive layers in the same direction. In other embodiments, data may pass through successive layers in opposite directions. Many variations are possible.

[0029] Each processing node may include a memory configured to store arrays of data items to be exchanged in the reduce-scatter phase, wherein each data item is located in the array respectively, and corresponding data items are located in corresponding positions of the arrays of other processing nodes respectively. The arrays may be "parts" (vectors of partial results) or "results" (vectors of fully reduced parts).

[0030] Processing nodes can be programmed to transfer data items to their neighboring processing nodes in the forward direction during the reduce-scatter phase of each ring. The data items that can be transferred in each step are called "segments". Segments are vector segments - as described herein, vectors are divided into segments to take advantage of the logical ring formed in the embedded ring.

[0031] Each array may represent at least a portion of a vector of partial increments, each partial increment representing an adjustment to a value stored at each processing node. Each processing node may be programmed to generate a vector of partial increments in a computation step. Each processing node may be programmed to divide its vector into sub-arrays to separately utilize the embedded rings.

[0032] Each processing node may be programmed to deactivate any of its inter-layer and intra-layer links that are not used in the data transfer step.

[0033] Each processing node can be programmed to split that node's respective partial vector into segments and transmit the data as consecutive segments around each one-dimensional path.

[0034] The computer may be programmed to operate each path as a set of logical rings, where successive segments are transmitted around each logical ring in synchronized transmission steps.

[0035] Each processing node may be configured to output a respective fragment on each of its intra-layer and inter-layer links simultaneously.

[0036] Each processing node can be configured to reduce the incoming fragments with the corresponding locally stored fragments.

[0037] Each processing node can be configured to transmit fully reduced fragments simultaneously on each of its links during the Allgather phase of the Allreduce collection.

[0038] In some embodiments, some or all of the links are bidirectional, ie, they can transmit data in both directions over the link, optionally simultaneously.

[0039] Another aspect of the present invention provides a method of generating a program assembly for parallel execution on a computer, comprising a plurality of interconnected processing nodes arranged in a configuration having multiple layers, the multiple layers arranged along an axis, including first and second end-most layers and at least one intermediate layer between the first and second end-most layers;

[0040] Each layer includes a plurality of processing nodes connected into a ring by respective sets of links within the layer between each pair of adjacent processing nodes, the links in each set being suitable for simultaneous operation;

[0041] wherein the processing nodes in each layer are connected to respective corresponding nodes in each adjacent layer via inter-layer links, wherein each processing node in the first most end layer is connected to a corresponding node in the second most end layer;

[0042] The method includes

[0043] generating at least one data transfer instruction for each program to define a data transfer phase in which data is transferred from a processing node executing the program, wherein the data transfer instruction includes a link identifier that defines an output link over which the data is to be transferred during the data transfer phase; and

[0044] determining link identifiers for transmitting data around a plurality of embedded one-dimensional logical rings, each logical ring utilizing all processing nodes of the computer, in such a manner that the plurality of embedded one-dimensional logical rings, each logical ring utilizing all processing nodes of the computer, operate simultaneously;

[0045] Therein, the generating program transmits data in a manner of asymmetric bandwidth utilization.

[0046] In some embodiments, utilization of link bandwidth within a layer is greater than utilization of bandwidth along an axis.

[0047] In some embodiments, each program includes one or more instructions to deactivate any of its inter-layer and intra-layer links that are not used in the data transfer step.

[0048] In some embodiments, each program includes one or more instructions for dividing a respective partial vector of a processing node executing the program into segments and transmitting data in the form of consecutive segments over respective defined links.

[0049] In some embodiments, each program includes one or more instructions to output a respective segment on each of a plurality of links simultaneously.

[0050] In some embodiments, each program includes one or more instructions to reduce incoming segments to respective corresponding locally stored segments.

[0051] In some embodiments, each program includes one or more instructions to transmit fully reduced fragments simultaneously on each of its links during the Allgather phase of the Allreduce collection.

[0052] Another aspect of the present invention provides a method of executing a set of programs in parallel on a computer, comprising a plurality of interconnected processing nodes arranged in a configuration having multiple layers, the multiple layers arranged along an axis, including first and second end-most layers and at least one intermediate layer between the first and second end-most layers;

[0053] Each layer includes a plurality of processing nodes connected into a ring by respective sets of links within the layer between each pair of adjacent processing nodes, the links in each set being suitable for simultaneous operation;

[0054] wherein the processing nodes in each layer are connected to respective corresponding nodes in each adjacent layer via inter-layer links, wherein each processing node in the first most end layer is connected to a corresponding node in the second most end layer;

[0055] The method includes

[0056] executing at least one data transfer instruction for each program to define a data transfer phase in which data is transferred from a processing node executing the program, wherein the data transfer instruction includes a link identifier that defines an output link over which the data is to be transferred during the data transfer phase; and

[0057] The link identifiers have been determined so as to transmit data around each of a plurality of embedded one-dimensional logical rings formed by respective sets of processing nodes and links in a manner such that the plurality of embedded one-dimensional logical rings operate simultaneously, each logical ring utilizing all processing nodes of the computer;

[0058] Therein, data is transmitted in an asymmetric bandwidth utilization manner.

[0059] In some embodiments, utilization of link bandwidth within a layer is greater than utilization of bandwidth along an axis.

[0060] In some embodiments, the execution program operates each path as a set of logical rings, where successive segments of the partial vector provided at each processing node are transmitted around each logical ring in a synchronous transmission step. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] For a better understanding of the invention and to show how the invention may be put into practice, reference will now be made to the accompanying drawings, by way of example.

[0062] Figure 1 is a schematic diagram showing distributed training of a neural network.

[0063] Figure 1Ais a schematic diagram showing lines of processing nodes for implementing a simple "stream" line Allreduce algorithm.

[0064] Figure 1B It is the timing diagram of the "streamline" Allreduce algorithm.

[0065] Figure 1C It is a diagram of a line with end nodes connected into a ring.

[0066] Figure 1D It is the timing diagram of the Ring Allreduce algorithm.

[0067] Figure 2 is a schematic diagram showing the implementation of the Allreduce function through a reduce-scatter step followed by an Allgather step.

[0068] Figure 3A and Figure 3B The bucket-based Allreduce algorithm is shown.

[0069] Figure 4 is a schematic diagram of a "triangular ring" configuration of a processing node in which three rings are embedded.

[0070] Figure 5A A 3x8 ring with 2:1 bandwidth asymmetry is shown.

[0071] Figure 5B Three isomorphic embedded rings are shown that can circulate simultaneously on the graph, each using B / 6 per link.

[0072] Figure 5C A three-dimensional view is shown showing an alternative of three embedded rings; the other two rings are the same rings rotated 120° about the major axis.

[0073] Figure 5D A three-dimensional view is shown showing another alternative of three embedded rings; the other two rings are the same rings rotated 120° about the major axis.

[0074] Fig. 6A A 4x6 ring with 3:1 bandwidth asymmetry is shown.

[0075] Figure 6B Four isomorphic embedded rings are shown that can circulate simultaneously on the graph, each using a per-link bandwidth of B / 8.

[0076] Figure 6C A three-dimensional view is shown showing one of four embedded rings; the other three rings are identical rings rotated 90° about the major axis. DETAILED DESCRIPTION

[0077] Aspects of the present invention are developed in the context of a multi-tile processor designed as an accelerator for machine learning workloads. The accelerator includes multiple interconnected processing nodes. Each processing node can be a single multi-tile chip, a package of multiple chips, or a rack of multiple packages. The goal of this paper is to design a machine that is very efficient in deterministic (repeatable) computing. The processing nodes are interconnected in a way that enables collections (especially broadcast and allreduce) to be implemented efficiently.

[0078] One particular application is updating the model when training a neural network using distributed processing. In this context, distributed processing utilizes multiple processing nodes that are in different physical entities, such as chips or packages or racks. That is, data transmission between processing nodes requires exchanging messages over physical links.

[0079] The challenges of developing topologies specifically for machine learning are different from those in the general area of ​​high-performance computing (HPC) networks. HPC networks typically emphasize on-demand asynchronous all-to-all personalized communication, so dynamic routing and bandwidth over-provisioning are normal. Excess bandwidth can be provided in HPC networks for the purpose of reducing latency rather than providing bandwidth. Over-provisioning active communication links wastes power that could help improve computing performance. The most common types of links in computing today consume power when they are active, whether they are used to transmit data or not.

[0080] The inventors have developed a machine topology that is particularly suitable for MI workloads and addresses the following properties of MI workloads.

[0081] This embodiment provides a different structure in which an R ring is embedded in an R x N ring, where R is the number of nodes in a layer and N is the number of layers, and each ring visits all nodes in a layer before moving to the next layer.

[0082] In MI workloads, inter-chip communication is currently dominated by broadcast and allreduce collectives. Broadcast collectives can be implemented by scatter collectives followed by allgather collectives, while allreduce collectives can be implemented by reduce-scatter collectives followed by allgather collectives. In this context, the term inter-chip refers to any communication between processing nodes connected via external communication links. As mentioned earlier, these processing nodes can be chips, packages, or racks.

[0083] Note that the communication link can be between chips on a printed circuit board, or between chips on different printed circuit boards.

[0084] Workloads can be compiled so that within a single intelligence processing unit (IPU) machine, all-to-all communications are primarily inter-chip.

[0085] The Allreduce collection has been described above and is Figure 2 is described in. Figure 2 A collection of partial values ​​or "partial" vectors P0, P1, P2, P3 at each of the four nodes in the starting state S1 are shown. In this context, a node is a processing node in a network of processing nodes. Note that each node N0, N1, N2, N3 has four "corresponding" parts, which are labeled accordingly (large diamond grid, wide downward diagonal stripes, large square grid, wide upward diagonal stripes). That is, each part has a position in its part vector, so that P0(n) has the same position in its vector on node n as P0(n+1) has in the vector on node n+1. The suffix (n) is used to indicate the node in which the part resides - so P0(0) is part P0 on node N0. In a reduce-scatter pass, the corresponding parts are reduced and the reduction is provided to one of the nodes. For example, parts P0(0), P0(1), P0(2), P0(3) are reduced (to r0) and placed on node N0. Similarly, parts P1(0), P1(1), P1(2), and P1(3) are reduced (to r1) and placed on node N. Similarly, in the intermediate state S2, each node has one of the reductions r0, r1, r2, and r3. As explained, the reductions can be made by any combinatorial function - It can include independent operators (e.g. max) or associative operators = P1(0)*P1(1)*P1(2)*P1(3) to proceed. Then, in the Allgather pass, each reduction is given to all nodes to activate state S3, where each node now holds all four reductions. Note that in S1, the "corresponding" parts, e.g. P0(0), P0(1), P0(2), and P0(3) may all be different, while in state S3, each reduction, e.g. r0, is the same in all nodes, where r i =f{(P i (0),P i (1),P i (2),P i(3))}. In machine learning, the set of parts P0, P1, P2, P3 is a vector. During training, each pass through the model produces a vector of parts (e.g., updated weights). The reduction r0, r1, r2, r3 of each node in state S3 on the diamond grid, downward diagonal stripes, square grid, and upward diagonal stripes is a complete reduction vector, which is the "result" or fully reduced vector. In the context of machine learning, each part can be an updated increment of a parameter in the model. Or (in arrangements not further described herein), it can be an updated parameter.

[0086] Figure 3A and Figure 3B A bucket-based algorithm is shown for Reduce-Scatter / Allgather assuming six "virtual rings". These are also referred to herein as "logical" rings. Figure 3A Schematic diagram showing the reduction of parts in multiple virtual rings. Each part is divided into six segments. Figure 3A In the diagram, the capital letters R, Y, G, B, P, and L represent different fragments of the part stored at each node, represented by a shaded diamond grid, upward diagonal stripes, a square grid, horizontal stripes, downward diagonal stripes, and vertical stripes. These letters represent corresponding fragments that will be reduced to each other and define a "virtual" or "logical" ring of these fragments. Take a look Figure 3A , the "R" segments of each of the parts P0, P1, P2, P3, and P4 are reduced to a single segment in the result vector The same is true for the Y, G, B, P and L segments.

[0087] Figure 3B A timing diagram is shown, where the time on the horizontal axis indicates the data exchange and calculation at each step in the Allreduce process. Figure 3A and Figure 3B In , the Allreduce process is completed by the Reduce-Scatter phase followed by the Allgather phase. Figure 3B In the video, each of the segments is represented by a different line shading method, as follows: R-diamond grid, Y-upward diagonal stripes, G-square grid, B-horizontal stripes, P-downward diagonal stripes, L-vertical stripes.

[0088] Figure 3A and Figure 3BThe notation in is as follows. The parts are denoted P0, P1, P2, P3, P4, P5 respectively. At the beginning of the process, each fragment is stored in its respective node N0, N1, N2, N3, N4, N5. Each fragment is labeled according to its fragment ordinal number and its position in the virtual ring in which it is considered to be reduced. For example, RA0 represents the R fragment in part P0, because it is the first fragment in the virtual ring formed by nodes N0-N1-N2-N3-N4-N0. RA1 represents the R fragment of node N1, which is in the second position in its virtual ring. YA0 represents the Y fragment of node N1. The suffix "0" indicates that it is the first fragment in its virtual ring, and the Y ring is N1-N2-N3-N4-N0-N1. Please pay special attention to the fact that the suffix on A reflects the virtual ring and does not correspond to a physical node (or part). Please note that Figure 3A Only the virtual ring on the forward link is shown. Figure 3B It is shown that an equivalent process occurs on the reverse link, with segment denoted as B.

[0089] In step one, the first segment (A0) in each virtual ring is transferred from its node to the next adjacent node, where it is reduced along with the corresponding segment of that node. That is, RA0 is moved from N0 to N1, where it is reduced to R(A0+A1). Once again, the "+" sign is used here as a shorthand for any combinatorial function. Note that in the same step, the A0 segments of each virtual ring will be transmitted simultaneously. That is, the link between N1 and N2 is used to transmit YA0, the link between N2 and N3 is used to transmit GA0, and so on. In the next step, the corresponding reduced segments are transmitted to their next adjacent node via the forward link. For example, R(A0+A1) is transmitted from N1 to N2, and Y(A0+A1) is transmitted from N2 to N3. Note that for clarity, Figure 3A Not all segments are numbered, nor are all transfers numbered. The complete set of segments and numbering is in Figure 3B This process is shown in Figure 1. This process is carried out in five steps. After five steps, there is a reduction of all fragments on each node. At the end of the fifth step, this reduction is on the last node of each corresponding ring of the fragment. For example, R is reduced to node N5.

[0090] The Allgather phase begins with a transfer from the last node to the first node of each virtual ring. Thus, the final reduction of the R segment ends at node N5, preparing for the first step of the Allgather phase. The final reduction of the Y segment ends correspondingly at node N0. In the next step of the Allgather phase, the reduced segments are transferred again to their next neighboring nodes. Thus, the fully reduced R segment is now also at N2, the fully reduced Y segment is now also at N3, and so on. In this way, each node ends with all the fully reduced segments R, Y, G, B, P, L of the partial vector at the end of the Allgather phase.

[0091] If the computation required for the reduction can be hidden behind pipeline latency, then the implementation of the algorithm is efficient. Note that when a suitable ring is formed in the computer for the implementation of Allreduce, a tour of the ring must visit each node in the ring only once. Thus, the natural ring formed by the line of bidirectional links ( Figure 1A ) is not the most efficient loop.

[0092] An improved topology will now be described for an interconnected network of processing nodes that allows efficient exchange of parts and results between processing nodes to implement Allreduce collections.

[0093] According to another configuration of embedded one-dimensional rings, a configuration with multiple stacked layers is provided. One embodiment of this configuration is Figure 4 , which is a 3D view of a triangular ring. There are physical connections and logical connections, both of which will be described. In terms of physical connections, the configuration includes multiple stacked layers - Figure 4 The stack is shown from left to right in FIG. The orientation of the stack is irrelevant, although it is noted that in a practical configuration, the processing units may be arranged on a server rack and it may be useful to stack them in a vertical configuration corresponding to the server rack. Figure 5A and 6A Such a vertical stack is shown.

[0094] Each layer consists of three processing nodes. Figure 4 The leftmost layer in the stack is shown as N51, N52 and N53. These processing nodes are connected in a ring, where each processing node is connected to the adjacent processing node by two links L1, L2. These links can each be bidirectional. The rightmost layer of the stack is also connected together by two links between the nodes. However, the central layer of the stack is connected with only a single link. The connectivity of the links means that these links are active and can transfer data. There can be other inactive connections between processing nodes, which do not form part of the configuration operation.

[0095] The configuration is operated to provide three embedded one-dimensional rings that can be operated simultaneously. Figure 4 This is shown schematically, with the loops labeled R1, R2, and R3. R1 is shown as a solid black line, R2 as a dotted line, and R3 as a dashed line. Considering the configuration to be a cylinder with a triangular cross section, each plane of the cylinder contains a one-dimensional embedded loop. For example, loop R1 is made up of nodes N51, N52 (at the endmost layer), a link between N52 and N55 (between layers), a link between N55 and N54 (within the next layer), a link between N54 and N57 (between layers), a link between N57 and N58 (within the next layer), a link between N58 and N511 (between layers), a link between N511 and N510 (at the rightmost layer), a link between N510 and N512, and a return link between N512 and N53, then back to N51.

[0096] In each of the other two phases, a corresponding embedded ring can be found. Therefore, each ring is formed by connecting the links within each layer to the links between layers, and so on, until the ring is complete. These rings (or paths) are described in more detail below, see Figure 4 .

[0097] In the first embedded path, node N51 is connected to node N53 along one side of the first most end layer by the link between nodes N51 and N53. This is an intralayer link along one side of the first most end layer. The path continues to node N52 along the next side of the first outermost layer. The path then advances to node N56 from node N52 via an interlayer link. Then, the path is from node N56 to N55 via another interlayer link on the same face of the configuration as nodes N52 and N56. The path extends from node N55 to node N58 along this face, and then passes through this face to node N57 along the intralayer link. The path is from node N59 along the interlayer link to node N511, then from node N61 to node N512 along the intralayer link, and from there along the intralayer link from N512 to node N510 of the second most end layer. The intralayer link between nodes N511, N512 and N510 is the edge of the second most end layer. The path then proceeds along the return portion from node N510 to node N51 of the last layer of the first layer. Figure 5A It is shown by a small dashed line.

[0098] A second embedding path can also be shown starting from node N51, shown as a solid black line. This path has a first portion that follows Figure 4The "bottom" of the illustrated configuration extends from node N51 to node N53, from node N53 to node N55, from node N55 to node N54, from node N54 to N57, from node N57 to N58, from node N58 to N512, and from node N512 to node N511. The return second portion of the path is provided by the interconnection link between node N511 of the second end-most layer and N52 of the first end-most layer.

[0099] It can be shown that the third embedded path starts from node N53 and extends along the intra-layer link to node N52; the third embedded path is shown with a large connecting symbol. The path then follows Figure 4 The back face of the configuration shown is from node N52 to N51, N51 to N54, N54 to N56, node N56 to N59, from node N59 to N57, from node N57 to N510, from node N510 to node N511, from node N511 to N512. The path has a return portion from node N512 to N53.

[0100] Note that each path has a first portion that uses each of the nodes of one face of the configuration only once, and two "legs" from each of the end-most layers. Then, each path has a return portion that passes directly between the end-most layers, without passing through any intermediate processing nodes.

[0101] Three embedded rings can operate simultaneously. If all links can operate in both directions simultaneously, six embedded rings can operate simultaneously.

[0102] The capacity of a computer can be expanded by adding new layers of processing nodes. To do this, the interconnectivity of the processing nodes is changed. For example, consider the second-most layer ( Figure 4 An additional layer is added to the right layer in the configuration. One of the links from node N511 is disconnected and connected to the corresponding processing node in the additional layer, which is shown as EPN1 (additional processing node 1). Similarly, one of the links from each of node N512 and node N511 is disconnected from the node they are currently connected to and connected to the corresponding additional processing nodes, labeled EPN2 and EPN3 respectively. Nodes EPN1, EPN2, and EPN3 are then themselves connected in a ring with their respective link structures the same as the other layers in the configuration. Note that the connectivity of the rest of the configuration remains unchanged. Layers can be added to either end of the configuration stack in this way.

[0103] Note that the path taken by each layer (a collection of three nodes) around the triangular cylinder configuration is such that the extended triangular prism of a layer consisting of three processing nodes can be split into different lengths so that each partition can operate in a self-contained manner. This can be done by deactivating the links between the layers of the independent partitions.

[0104] An internetwork is a ring configuration with asymmetric bandwidth allocation, in which multiple one-dimensional rings or paths are embedded. These rings can be used simultaneously in the data exchange step.

[0105] To use this structure, the part (or fragment) to be transmitted is divided into two parts at each node, each part using the above reference Figure 3A and Figure 3B The one-dimensional ring algorithm described performs a reduction around one of the rings.

[0106] Each node outputs The size of the segments is , where N is the number of nodes and V is the size of the data structure being reduced - scattered or allgathered at a particular stage. At the beginning, V is the size of the partial vector. Before each step around the ring, the number of segments is equal to the number of nodes in the ring. Note that in contrast to the structure described in Jain's paper, the ring passes through all nodes and all links are used at all times. This paper assumes that each processing node can output its data on two links at the same time, and can receive and process data simultaneously. Each ring is one-dimensional - it is a non-branching chain of processing nodes.

[0107] In some embodiments, reference to operating as a ring refers to implementing the one-dimensional algorithm described above to implement the Allreduce collection. In the structure described herein, all embedded rings can operate simultaneously, enabling partial vectors of each node to be partitioned for simultaneous processing on multiple rings in the structure.

[0108] When the return path is provided by the connections between corresponding processing nodes of the end-most layer, e.g. Figure 4 Between nodes N51N and N510, a ring structure is created. Embodiments of the present invention provide a novel way to operate a computer network connected in a ring configuration. Figure 4 A further embodiment provides a ring configuration operating with asymmetric bandwidth utilization. Figure 4 In the structure of the present invention, the asymmetry is revealed to provide more bandwidth between the layers. In the novel configuration described below, the asymmetry is revealed to provide more bandwidth utilization in each layer.

[0109] Figure 5A A 3x8 ring is shown. That is, each layer of processing nodes connected in a ring includes three processing nodes, and there are eight layers. Figure 5A In the diagram, the circles represent processing nodes and the lines in the middle represent the links connecting the processing nodes. Note that this is at the schematic level. Figure 5A The number of operating links between each pair of processing nodes is not shown. In fact, the number of operating links defines the bandwidth utilization between the processing nodes. Figure 5A The computer network shown in is configured with a bandwidth asymmetry of 2 to 1. That is, the bandwidth utilization between processing nodes within a layer is B / 3. The bandwidth utilization between processing nodes in adjacent layers is B / 6. Note that B is the maximum bandwidth utilization. Figure 5A The connectivity of the structure is shown, and the allocation of the total node bandwidth B to the links is shown. Figure 5B This bandwidth allocation can be seen more clearly.

[0110] Figure 5B Each of the three isomorphic embedded rings is shown, which can be looped simultaneously in the structure, with a bandwidth utilization of B / 6 per link. These rings are labeled TR1, TR2, and TR3. By studying the three isomorphic embedded rings, the bandwidth utilization can be seen. For example, consider the end-most layers of the three processing nodes at the top of the figure in rings TR1 and TR2. Both of the rings are using the link between the two rightmost processing nodes. Therefore, the bandwidth utilization between these processing nodes is doubled due to the use of these two links. Similarly, the two leftmost processing nodes use two links in rings TR1 and TR3. However, in the structural axis downward on the page, only one downward link is used in each ring between processing nodes. The choice of link for each processing node to transmit data is determined by the compiler, which will be explained later. The compiler generates node-level programs, each of which defines the link identifiers used in the data exchange steps.

[0111] Different loops can be programmed in this way. For example, the direction in which data circulates through the processing nodes of each layer can be clockwise or counterclockwise. Note that each node of a layer is visited before moving to the next layer. However, the direction in which nodes are visited can be clockwise or counterclockwise.

[0112] Figure 5C is a three-dimensional view showing one of the three embedded rings according to one possible ring structure. The other two rings are identical, rotated 120° around the major axis. As mentioned before, there are several equivalent routes for each ring. Figure 5D Another option is shown. Figure 5D The ring goes clockwise around the processing nodes of each layer before entering the next layer. Figure 5C In the embodiment of the present invention, the rings travel alternately clockwise and counterclockwise on the respective alternating layers. Other variations are possible using this structure.

[0113] Fig. 6A A 4 x 6 ring structure is shown. That is, each layer of the structure includes four processing nodes, connected in a ring manner, and there are six layers. The corresponding processing nodes of the last layer are connected together to form a ring. Fig. 6A The connectivity of the structure is shown, showing the allocation of the total node bandwidth B to the links. In this case, the bandwidth utilization between the processing nodes in each layer is 3B / 8. The bandwidth between the processing nodes in adjacent layers is B / 8. Note that in this context, the bandwidth utilization of the return path between the end layers is also B / 8. The bandwidth utilization is determined by the links provided between the processing nodes. There are three operational links between adjacent processing nodes in each layer. There is one operational link between processing nodes in adjacent layers.

[0114] Figure 6B Bandwidth utilization is shown in more detail, showing four isomorphic embedded rings that can loop simultaneously in the structure with a bandwidth utilization of B / 8 per link. For example, it can be seen that rings BR1, BR2, and BR3 each use the link between the rightmost processing nodes in the top layer. Similarly, rings BR1, BR2, and BR4 use the link between the middle two processing nodes in the top layer. In contrast, only a single link is used in each ring to connect between adjacent layers.

[0115] Figure 6C is a 3D view showing one of the four embedded rings. The other three rings are identical, rotated 90° around the long axis of the structure. Note that the ring visits every processing node in a layer before moving on to the next layer. Figures 5A to 5D As with the structure shown, different kinds of rings can be embedded, for example, in different directions (counterclockwise or clockwise) around each layer.

[0116] and FIG. 5A to FIG. 5D Like the structure of , bandwidth utilization is programmed using the compiler.

[0117] In the above embodiment, the fragment size is independent of the bandwidth of each link. The fragment size depends only on the number of nodes in the embedded ring (if there are n nodes, then the Best Ring Allreduce algorithm uses fragments of size 1 / n of the full vector, as described above). The bandwidth allocation shown is the fraction of the total node bandwidth that must be allocated to the link (in and out of the node at the same time if all rings are bidirectional) so that data loops on all embedded rings can use all available bandwidth through all nodes and links simultaneously.

[0118] Bandwidth asymmetry means that the bandwidth allocation is different in the two dimensions of the wired connection: the plane of the layer and the "long axis" of the layer direction (stack). Note that for completeness, the ring has only one dimension when considering the data transmission path, but the structure has two dimensions.

[0119] Each node is capable of implementing a processing or computing function. Each node can be implemented as a single processor. However, it is more likely that each node will be implemented as a single chip or chip package, wherein each chip includes multiple processors. There are many possible different manifestations of each individual node. In one example, the node can be composed of an intelligent processing unit of the type described in the British application, which has publication numbers GB2569843; GB2569430; GB2569275, the contents of which are incorporated herein by reference. However, the technology described here can be used on any type of processor that constitutes a node. Outlined herein is a method for exchanging data in an efficient manner to implement a specific exchange pattern, which is useful in a machine learning model. In addition, the link can be expressed in any suitable manner. Advantageously, they are bidirectional, and preferably they can operate in both directions at the same time, although this is not a basic requirement. A special type of communication link is a SERDES link, whose power requirements are independent of the amount of data transmitted through the link or the time to transmit the data. SERDES is an acronym for Serializer / DeSerializer, and such links are well known. In order to transmit a signal on the wires of such a link, power needs to be applied to the wires to change the voltage and thus generate the signal. SERDES links have the characteristic of constantly applying power to the wires to keep them at a certain voltage level so that the signal can be transmitted by changes in this voltage level (rather than by changes between 0 and the applied voltage level). Therefore, there is a fixed power for the bandwidth capability on the SERDES link, whether it is used or not. SERDES links are implemented at each end by circuits that connect the link layer devices to the physical link (such as copper wires). This circuit is sometimes called a PHY (physical layer). PCIe (Peripheral Component Interconnect Express) is an interface standard for connecting high-speed computers.

[0120] It is possible for a link to be dynamically deactivated so that it effectively consumes no power when not in use. However, the activation times and non-deterministic nature of machine learning applications often make dynamic activation during program execution problematic. Therefore, the inventors have determined that it may be better to exploit the fact that for any particular configuration, the chip-to-chip link power consumption is essentially constant, and therefore the best optimization is to maximize the utilization of the physical link by keeping chip-to-chip communications concurrent with IPU activity as much as possible.

[0121] The SERDES PHY is full-duplex (i.e., a 16Gbit / s PHY supports 16Gbits / s in each direction simultaneously), so utilization of the full link bandwidth means balanced bidirectional traffic. Also, note that there are significant advantages to using direct chip-to-chip communication versus indirect communication such as via a switch. Direct chip-to-chip communication uses much less power than switched communication.

[0122] Another factor to consider is the bandwidth requirements between nodes. The goal is to have enough bandwidth so that the communication between nodes is hidden behind the computations performed on each node for distributed machine learning.

[0123] Allreduce collections can be used as a metric for required bandwidth when optimizing machine architectures for machine learning. An example of Allreduce collections is given above in terms of handling parameter updates for model averaging. Other examples include gradient averaging and computation norms.

[0124] As an example, consider the Allreduce requirement of a residual learning network. A residual learning network is a class of deep convolutional neural networks. In a deep convolutional neural network, multiple layers are utilized to learn corresponding features within each layer. In residual learning, the residuals can be learned instead of features. A specific residual learning network known as ResNet implements direct connections between different layers of the network. It has been shown that in certain contexts, training such residual networks may be easier than traditional deep convolutional neural networks.

[0125] ResNet 50 is a 50-layer residual network. ResNet 50 has 25M weights, so an Allreduce of all weight gradients involves a 50-megabyte portion in single-place floating point format F16. To illustrate bandwidth requirements, assume that one full Allreduce is required for each complete batch. This could be (but not necessarily) an Allreduce of gradients. To achieve this, each node must output 100 megabits per Allreduce. ResNet 50 requires 250 Gigafloats per image when training. If the subbatch size is 16 images per processing node, each processor performs 400 Gigafloats per Allreduce set. If the processor achieves 100 Teraflops, it requires about 25 Gigabits per second between all links to maintain computational concurrency with Allreduce communications. In the case of subbatches of 8 images per processor, the required bandwidth nominally doubles, but this is partially mitigated by the lower achievable Teraflops for processing smaller batches.

[0126] Implementing an Allreduce collective across p processors, with each processor starting with a portion of m megabytes (equal to the reduce size), requires that at least 2m.(p-1) megabytes be sent over the links. Therefore, if each processor has l links it can send to simultaneously, the asymptotic minimum reduce time is 2m.(p-1).(p-1) / (pl).

[0127] The concepts and techniques described above can be used in several different examples.

[0128] In one example, a fixed configuration is provided for use as a computer. In this example, the processing nodes are interconnected as described and illustrated in the various embodiments discussed above. In this arrangement, only basic intra-layer and inter-layer links are provided between the processing nodes.

[0129] A fixed configuration can be constructed from the exact number of processing nodes of the configuration. Alternatively, it can be provided by partitioning from a larger structure. That is, a set of processing nodes can be provided that form a multi-faceted prism with a set of stacked layers. The processing nodes in each stacked layer can have inter-layer links to corresponding processing nodes in adjacent stacked layers and intra-layer links between adjacent processing nodes in that layer.

[0130] A fixed configuration of a desired number of stacked layers can be provided by disconnecting each inter-layer link in a specified stacked layer in the stacked layer's origin set and connecting it to an adjacent processing node in the specified stacked layer to provide an intra-layer link. In this way, a specified stacked layer in the stacked layer's origin set can be made to form one of the first and second end layers of a structure. Note that the layer's origin set can be split into more than one fixed configuration structure in this way.

[0131] The inter-layer and intra-layer links are physical links provided by appropriate buses or wires as mentioned above. In one form, each processing node has a set of wires extending therefrom to connect it to another processing node. For example, this can be done through one or more interfaces of each processing node, which have one or more ports to which one or more physical wires are connected.

[0132] In another representation, the links may be formed by wires on a board. For example, a single board may support a chip set, such as four chips. Each chip has an interface, a port that can be connected to other chips. The connections between the chips may be formed by soldering the wires to the board according to a predetermined method. Note that the concepts and techniques described herein are particularly useful in this context because they maximize the use of pre-soldered links between chips on a printed circuit board.

[0133] The concepts and techniques described herein are particularly useful because they enable optimal use of non-switching links. A configuration can be established by connecting the processing nodes described herein using fixed non-switching links between the nodes. In some cases, if the links between the processing nodes are not used, it is not necessary to provide additional links. For example, in the middle tiers of the configuration, there are fewer links between the processing nodes than in the end-most tiers.

[0134] Additionally, links may be provided between processing nodes, but in certain configurations may be permanently disabled.

[0135] To use the configuration, a parallel program set is generated. This parallel program set contains node-level programs, i.e., programs that are specified to work on a particular processing node in the configuration. A parallel program set that runs on a particular configuration can be generated by a compiler. It is the compiler's responsibility to generate node-level programs that correctly define the links to be used for each data transfer step for some data. These programs include one or more instructions for enabling data transfers during a data transfer phase, which use link identifiers to identify the links to be used for that transfer phase. For example, a processing node may have two or three active links at any one time (double if the links are also bidirectional). The link identifier causes the correct link to be selected for the data item for that transfer phase. Note that each processing node may not be aware of the actions of its neighboring nodes - the exchange activities are pre-compiled for each exchange phase.

[0136] Note also that the link does not have to be switched - the data item does not need to be actively routed, nor does the connectivity of the link need to be changed while it is being transmitted.

[0137] As described above, the configuration of the computer network described herein is to enhance parallelism in computing. In this context, parallelism is achieved by loading node-level programs into the configured processing nodes, which are to be executed in parallel, for example, as described above, training artificial intelligence models in a distributed manner. However, it is easy to understand that this is just one application of the parallelism enabled by the configuration described herein. One scheme for achieving parallelism is called "bulk synchronous parallel" (BSP) computing. According to the BSP protocol, each processing node performs a calculation phase and an exchange phase immediately following the calculation phase. During the calculation phase, each processing node performs its computational tasks locally, but does not exchange its computational results with other processing nodes. In the exchange phase, each processing node is allowed to exchange its computational results in the previous calculation phase with other processing nodes in the configuration. A new calculation phase will not start until the exchange phase on the configuration is completed. In this form of the BSP protocol, barrier synchronization is placed at the transition from the calculation phase to the exchange phase, or from the exchange phase to the calculation phase, or at the junction of the two.

[0138] In this embodiment, when the exchange phase is initiated, each processing node executes instructions to exchange data with adjacent nodes using the link identifiers established by the compiler for this exchange phase. The nature of the exchange phase can be established by using the MPI message passing standard discussed above. For example, a collection, such as a collection of all reductions, can be called from a library. In this way, the compiler has pre-compiled node-level programs that control the links that transfer partial vectors (or transfer respective fragments of partial vectors).

[0139] Obviously, other synchronization protocols can also be exploited.

[0140] Although specific embodiments have been described, other applications and variations of the disclosed technology may become apparent to those skilled in the art once given the disclosure herein. The scope of the present disclosure is not limited by the described embodiments, but only by the appended claims.

Claims

1. A computer comprising a plurality of interconnected processing nodes arranged in a configuration having multiple layers, the multiple layers arranged along an axis including a first end-most layer and a second end-most layer and at least one intermediate layer between the first end-most layer and the second end-most layer; Each layer includes a plurality of processing nodes connected into a ring by respective sets of links within the layer between each pair of adjacent processing nodes, the links in each set being suitable for simultaneous operation; in, The processing nodes in each layer are connected to respective corresponding nodes in each adjacent layer via inter-layer links, wherein each processing node in the first end-most layer is connected to a corresponding node in the second end-most layer; The computer is programmed to transfer data around a plurality of embedded one-dimensional logic rings, each logic ring utilizing all processing nodes of the computer in a manner such that the plurality of embedded one-dimensional logic rings operate simultaneously, each logic ring utilizing all processing nodes of the computer; The computer is programmed to transmit data in an asymmetric bandwidth utilization manner, wherein bandwidth utilization between processing nodes within a layer is asymmetric to bandwidth utilization between processing nodes in adjacent layers.

2. The computer according to claim 1, wherein: The utilization of link bandwidth within a layer is greater than the utilization of bandwidth along the axis.

3. The computer according to claim 1 or 2, wherein: Embedded one-dimensional logic rings are isomorphic.

4. The computer according to claim 1 or 2, wherein: The intra-layer link set includes two links, and the bandwidth utilization is B / 6 along the axis and B / 3 within each layer, where B is the total bandwidth of each processing node.

5. The computer according to claim 4, wherein: Three rings are embedded.

6. The computer according to claim 1 or 2, wherein: The intra-layer link set includes three links, and the bandwidth utilization is 3B / 8 within each layer and B / 8 along the axis, where B is the total bandwidth of each processing node.

7. The computer according to claim 6, wherein: Four rings are embedded.

8. The computer of claim 1 or 2, configured such that data passes through the processing nodes in each layer along each ring in one of a counterclockwise and a clockwise direction.

9. A computer according to claim 8, configured so that the data passes through consecutive layers in the same direction.

10. The computer of claim 8, configured to cause the data to pass through successive layers in opposite directions.

11. The computer according to claim 1 or 2, wherein: Each processing node includes a memory configured to store an array of data items to be exchanged in the reduce-scatter phase, wherein each data item is located in the array and corresponding data items are located at corresponding positions of the arrays of other processing nodes.

12. The computer according to claim 1 or 2, wherein: Each processing node is programmed to transfer data items to its neighboring processing nodes in a forward direction in each embedded one-dimensional logic ring during the reduce-scatter phase.

13. The computer according to claim 12, wherein: Each processing node is programmed to generate a vector of partial increments in a computation step and to partition its vector into sub-arrays for respective utilization of the embedded one-dimensional logic ring.

14. The computer according to claim 1, wherein: Each processing node is programmed to split that node's respective partial vector into segments and to transfer the data as consecutive segments around each one-dimensional path.

15. A computer according to claim 14, configured to operate such that consecutive segments are transmitted around each logical ring in the simultaneous transmission step.

16. The computer according to claim 1 or 2, wherein: Each processing node is configured to reduce the incoming fragments with its corresponding locally stored fragments.

17. A method of generating a set of programs for parallel execution on a computer, the computer comprising a plurality of interconnected processing nodes, the processing nodes arranged in a configuration having multiple layers, the multiple layers arranged along an axis, including a first end-most layer and a second end-most layer and at least one intermediate layer between the first end-most layer and the second end-most layer; Each layer includes a plurality of processing nodes connected into a ring by respective sets of links within the layer between each pair of adjacent processing nodes, the links in each set being suitable for simultaneous operation; in, The processing nodes in each layer are connected to respective corresponding nodes in each adjacent layer via inter-layer links, wherein each processing node in the first end-most layer is connected to a corresponding node in the second end-most layer; The method comprises: generating at least one data transfer instruction for each program to define a data transfer phase in which data is transferred from a processing node executing the program, wherein the data transfer instruction includes a link identifier defining an output link over which data is to be transferred during the data transfer phase; and determining the link identifiers to transmit data around a plurality of embedded one-dimensional logical rings, each logical ring utilizing all processing nodes of the computer in a manner that the plurality of embedded one-dimensional logical rings operate simultaneously, each logical ring utilizing all processing nodes of the computer; The program is generated to transmit the data in an asymmetric bandwidth utilization manner in which bandwidth utilization between processing nodes within a layer is asymmetric to bandwidth utilization between processing nodes in adjacent layers.

18. The method according to claim 17, wherein: The utilization of link bandwidth within a layer is greater than the utilization of bandwidth along the axis.

19. A method of executing a set of programs in parallel on a computer, the computer comprising a plurality of interconnected processing nodes, the processing nodes arranged in a configuration having multiple layers, the multiple layers arranged along an axis, including a first end-most layer and a second end-most layer and at least one intermediate layer between the first end-most layer and the second end-most layer; Each layer includes a plurality of processing nodes connected into a ring by respective sets of links within the layer between each pair of adjacent processing nodes, the links in each set being suitable for simultaneous operation; in, The processing nodes in each layer are connected to the respective corresponding nodes in each adjacent layer through inter-layer links, wherein each processing node in the first most end layer is connected to the corresponding node in the second most end layer; The method comprises: executing at least one data transfer instruction in each program to define a data transfer phase in which data is transferred from a processing node executing the program, wherein the data transfer instruction includes a link identifier defining an output link over which data is to be transferred in the data transfer phase; and The link identifiers have been determined so as to transmit data around each of a plurality of embedded one-dimensional logical rings formed by respective sets of processing nodes and links in a manner such that: the plurality of embedded one-dimensional logical rings operate simultaneously, each logical ring utilizing all processing nodes of the computer; The data is transmitted in an asymmetric bandwidth utilization manner in which bandwidth utilization between processing nodes within a layer is asymmetric to bandwidth utilization between processing nodes in adjacent layers.

Citation Information

Patent Citations

  • Instruction set

    GB2569275A

  • Synchronization in a multi-tile processing array

    GB2569430A

  • Scheduling tasks in a multi-threaded processor

    GB2569843A

  • Reduction processing method for parallel computer, and parallel computer

    CN101038579A

  • Device, system, and method for transporting data using combined broadband and legacy network infrastructures

    CN101258711A