Embedded Ring on Ring Computer Network

By adopting multi-layer ring configuration and asymmetric bandwidth utilization in the processing node network, the data transmission in the full reduction algorithm is optimized, which solves the problems of low data exchange efficiency and high power consumption in the existing technology, and achieves a better Efficient data exchange and power utilization.

CN114008602BActive Publication Date: 2024-10-01GRAPHCORE LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202180004027.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-04-30
Filing Date
2021-03-24
Publication Date
2024-10-01
Estimated Expiration
2041-03-24

AI Technical Summary

Technical Problem

Existing total reduction algorithms have problems such as low data exchange efficiency, uneven bandwidth utilization, and high power consumption in machine learning. Especially when training neural networks in a distributed manner, the data transmission efficiency and bandwidth utilization between processing nodes are inconsistent. good.

Method used

Using a multi-layer ring configuration of processing node network, through asymmetric bandwidth utilization of intra-layer and inter-layer links, data is divided into fragments and reduced and broadcasted on the embedded one-dimensional ring to achieve simultaneous operation of multiple logical paths , optimize data transmission paths and link utilization.

Benefits of technology

It improves the efficiency of data exchange between processing nodes, reduces power consumption, and implements more efficient full reduction set operations, which is suitable for data transmission in machine learning and other parallel programs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114008602B_ABST
    Figure CN114008602B_ABST
Patent Text Reader

Abstract

A computer comprises a plurality of interconnected processing nodes arranged in a ring configuration in which multiple layers of interconnected nodes are arranged axially; each layer comprises a plurality of processing nodes connected to form a ring in a non-axial plane by at least a respective set of links within the layer between each pair of adjacent processing nodes, and the links in each set are suitable for simultaneous operation; wherein each processing node in each layer is connected to a respective corresponding node in each adjacent layer through an inter-layer link to form a respective ring along the axial direction; the computer is programmed to provide a plurality of embedded one-dimensional logic paths, and to transmit data around each embedded one-dimensional path in such a manner that the plurality of embedded one-dimensional logic paths operate simultaneously, and each logic path uses all processing nodes of the computer in sequence.
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 that are 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 all-reduce operation enables the result 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 all-reduce 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 all-reduce collection is implemented by reducing the data values ​​from all source processes (e.g., one of these processes) in the 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, such as an average function, that reduces the incremental weights. 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 full reduction 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 all-reduction set is implemented in a wire-connected topology of six 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 all-reduce 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 storage capacity 202, ready to be exchanged in the all-reduce set. In a simple "stream" line all-reduce algorithm, the forward link is used for "reduction" and the backward link is used for "broadcasting". The algorithm is performed at one end by processing node N0 ( Figure 1A ), sending its portion Δ0 to its neighboring node N1. 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 N1 to the next connection node N2. 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, N5 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 nodes have the results 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 the originating node 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 motion, 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 broadcasted on the connecting branch between N5 and N0. The other half of the vector ΔB is reduced on the backward link and then broadcasted on the connecting ring of the backward link.

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

[0012] A. Figure 1C and Figure 1D 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 the all-reduce using an allgather collective followed by a reduce-scatter collective. The paper by Jain and Sabharwal, "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 collective assuming bidirectional links between processing nodes of a torus interconnected processor. This approach operates on the basis that at each step there are multiple data values ​​(fragments) to be processed. In reduce-scatter collective, each process starts with an initial partial vector. It is assumed that the processes mentioned here are processes implemented on 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 collective, each process receives all elements from all other processes. Reduce-scatter collective reduces all the partials and stores each reduction on its own node - see Figure 2 An all-reduce aggregate operation can be implemented by performing a reduce-scatter aggregate followed by an all-gather aggregate 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 in which 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. In many ring configurations, there are bidirectional communication links between the interconnected processing nodes.

[0015] The algorithm for implementing the set discussed in the above-mentioned paper written by Jain and Sabharwal is applied to a ring-connected architecture. This allows the set to process different fragments of vectors in a ring of different dimensions simultaneously, making the processing bandwidth efficient. However, although it is generally accepted in the art that the technique proposed by Jain and Sabharwal is optimal for symmetric rings or asymmetric rings, the inventors have determined that this is not the case. A symmetric ring is understood to be a ring in which the number of nodes in the non-axial rings of the ring matches the number of nodes in the axial rings. An asymmetric ring is understood to be a ring in which the number of nodes in the non-axial rings does not match the number of nodes in the axial rings. Note that in both cases, the number of axial rings is equal to the number of nodes in the non-axial rings.

[0016] The purpose of the present disclosure is to present improved computers and methods for implementing a collection of functions such as all-reduce 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 all-reduce, they can also be used to advantage for other machine learning collections and other types of parallel programs. Summary of the invention

[0017] According to one aspect of the present invention, there is provided a computer comprising a plurality of interconnected processing nodes arranged in a ring configuration having multiple layers arranged along an axis;

[0018] Each layer includes a plurality of processing nodes connected into a ring in a non-axial first dimension by respective sets of links within the layer between each pair of adjacent processing nodes, the links in each set being adapted to operate simultaneously;

[0019] wherein the processing nodes in each layer are connected to respective corresponding nodes in each adjacent layer via inter-layer links to form respective rings in the second dimension along the axial direction;

[0020] The computer is programmed to transfer data around multiple embedded one-dimensional logic paths in a manner that the multiple embedded one-dimensional logic paths operate simultaneously, each logic path using all processing nodes of the computer in a ring sequence.

[0021] In some embodiments, the computer is programmed to transmit data with asymmetric bandwidth utilization. In some embodiments, the computer is programmed to transmit data with symmetric bandwidth utilization.

[0022] In some embodiments, utilization of intra-layer link bandwidth is greater than utilization of along-axis bandwidth.

[0023] In some embodiments, the embedded paths are isomorphic.

[0024] The all-reduce set may be implemented using a computer in the manner described herein.

[0025] 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 logical paths can be embedded.

[0026] In another embodiment, the intra-layer link set includes three links, and the bandwidth utilization is 3B / 8 within each layer and B / 8 along the axis. Four logical paths can be embedded.

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

[0028] 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).

[0029] The processing nodes can each be programmed to transfer data items in a forward direction to their adjacent connected processing nodes around each logical path in the reduce-scatter phase. The data items that can be transferred in each step are called "segments". Segments are vector segments - as described herein, vectors are divided into pieces to take advantage of the logical loops formed in the embedded paths.

[0030] 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 embedded paths.

[0031] 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.

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

[0033] 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.

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

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

[0036] Each processing node may be configured to transmit fully reduced segments simultaneously on each of its links during the all-gather phase of the all-reduce set.

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

[0038] Another aspect of the present invention provides a method of generating a program set for parallel execution on a computer, comprising a plurality of interconnected processing nodes arranged in a ring configuration having multiple layers arranged along an axial direction;

[0039] Each layer includes a plurality of processing nodes connected into a ring in a non-axial first dimension by respective sets of links within the layer between each pair of adjacent processing nodes, the links in each set being adapted to operate simultaneously;

[0040] wherein the processing nodes in each layer are connected to respective corresponding nodes in each adjacent layer via inter-layer links to form respective rings in the second dimension along the axial direction;

[0041] The method includes

[0042] 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

[0043] determining link identifiers to transfer data around the plurality of embedded one-dimensional logic paths in a manner that the plurality of embedded one-dimensional logic paths operate simultaneously, each logic path sequentially utilizing all processing nodes of the computer;

[0044] In some embodiments, the generator transmits data with symmetric or asymmetric bandwidth utilization.

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

[0046] 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.

[0047] In some embodiments, each program includes one or more instructions to divide a respective portion of a vector of a processing node executing the program into segments and to transmit data in the form of consecutive segments over respective defined links.

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

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

[0050] In some embodiments, each program includes one or more instructions to transmit fully reduced segments simultaneously on each of its links during an all-gather phase of an all-reduce set.

[0051] 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 ring configuration having multiple layers arranged along an axial direction;

[0052] Each layer includes a plurality of processing nodes connected into a ring in a non-axial first dimension by respective sets of links within the layer between each pair of adjacent processing nodes, the links in each set being adapted to operate simultaneously;

[0053] wherein the processing nodes in each layer are connected to respective corresponding nodes in each adjacent layer via inter-layer links to form respective rings in the second dimension along the axial direction;

[0054] The method includes:

[0055] 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 data is to be transferred during the data transfer phase;

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

[0057] Data can be transmitted with symmetric or asymmetric bandwidth utilization.

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

[0059] 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

[0060] 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.

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

[0062] Figure 1A is a schematic diagram showing lines of processing nodes for implementing a simple "streamline all-reduce" algorithm.

[0063] Figure 1B It is the timing diagram of the "streamline" full reduction algorithm.

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

[0065] Figure 1D It is the timing diagram of the ring-reduction algorithm.

[0066] Figure 2 is a schematic diagram showing the implementation of an all-reduce function through a reduce-scatter step followed by an all-gather step.

[0067] Figure 3A and Figure 3B A bucket-based all-reduce algorithm is shown.

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

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

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

[0071] 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.

[0072] 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.

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

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

[0075] 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.

[0076] Fig. 7A and Figure 7B Two isomorphic embedded rings are shown, which can be embedded in a 4×4 computer network connected as a ring.

[0077] Fig. 8A and Figure 8B Represent each of the two isomorphic embedded rings on a 4×8 computer network connected as a ring.

[0078] Fig.9A and Fig. 9B Representing each of the two isomorphic rings, they can be embedded in an 8×8 computer network connected as a ring. DETAILED DESCRIPTION

[0079] 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 article is to design a machine that is very efficient in deterministic (repeatable) computation. The processing nodes are interconnected in a way that enables collections (particularly but not limited to broadcasts and all-reduces) to be efficiently implemented.

[0080] 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.

[0081] 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.

[0082] The inventors have developed a machine topology that is particularly suitable for MI workloads and addresses the following properties of MI workloads. This embodiment provides a different structure where an R ring is embedded on an Rx 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.

[0083] In MI workloads, inter-chip communication is currently dominated by broadcast and all-reduce gathers. Broadcast gathers can be implemented by scatter gathers followed by all-gather gathers, while all-reduce gathers can be implemented by reduce-scatter gathers followed by all-gather gathers. 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 chassis.

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

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

[0086] The full reduction set 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 N1. 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 an all-gather 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 at each node in state S3 is the complete reduction vector, which is the "result" or fully reduced vector of parts. 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.

[0087] Figure 3A and Figure 3BA bucket-based algorithm is shown for reduce-scatter / all-gather 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 on each node, represented by red, yellow, green, blue, purple, or the corresponding line shading (R-diamond grid, Y-upward diagonal stripes, G-square grid, B-horizontal stripes, P-downward diagonal stripes, L-vertical stripes). The letters represent corresponding fragments that will be reduced to each other and define the "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.

[0088] 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 full reduction process. Figure 3A and Figure 3B In , the all-reduce process is completed by a reduce-scatter phase followed by an all-gather phase. Figure 3B In the example, each segment is represented by a different line shading method.

[0089] Figure 3A and Figure 3B The 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, which 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.

[0090] 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.

[0091] The full gathering 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 on node N5, preparing for the first step of the full gathering phase. The final reduction of the Y segment ends correspondingly on node N0. In the next step of the full gathering phase, the reduced segments are transferred again to their next neighboring node. Thus, the fully reduced R segment is now also on N2, the fully reduced Y segment is now also on 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 vectors at the end of the full gathering phase.

[0092] The implementation of the algorithm is efficient if the computations required for the reduction can be hidden behind pipeline latencies. The inventors have observed that when forming a suitable ring in a computer for the implementation of the all-reduction, it is most efficient if the tour of the ring visits each node in the ring only once. Thus, the natural ring formed by the lines of bidirectional links ( Figure 1A ) is not the most efficient loop.

[0093] An improved topology will now be described for an interconnected network of processing nodes that allows efficient exchange of partial sum results between processing nodes to implement all-reduce sets.

[0094] Based on the configuration of embedded one-dimensional rings, a configuration with multiple stacked layers is provided. Note that the embedded rings are also referred to herein as "paths." These terms are interchangeable, but it is important to recognize that the term "virtual ring" is reserved for the scenarios outlined above, where multiple fragments may operate in each embedded ring or virtual ring on a path. One embodiment of this configuration is in 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 Fig. 6A Such a vertical stack is shown.

[0095] Each layer consists of three processing nodes. Figure 4 The leftmost layer in the diagram is shown as N51, N52 and N53. The term "leftmost" refers to the layout as shown - in practice, in a ring configuration, each layer includes nodes connected in a ring, each of which participates in another ring formed along the axis. Each layer of the ring is considered "non-axial" because it does not extend along the axis. The processing nodes of the "leftmost" layer are connected in a ring, where each processing node is connected to the adjacent processing nodes 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 "center" layer of the stack is connected with only a single link. The connectivity of the links means that these links are active and able to transfer data. There can be other inactive connections between processing nodes, which do not form part of the configuration operation.

[0096] The configuration is operated to provide three embedded one-dimensional loops or paths 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.

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

[0098] In the first embedded path, node N51 is connected to node N52 along one side of the first most end layer by the link between nodes N51 and N52. For the purpose of convenience of explanation, it is described as an intralayer link along one side of the first most end layer. The path continues to node N53 along the lower side of the first outermost layer. Then the path advances to node N56 from node N53 via an interlayer link. Then, the path is from node N56 to N55 via another interlayer link on the same face of the configuration with nodes N52 and N56. The path extends from node N55 to node N58 along this face, and then passes through this face to node N59 along the intralayer link. The path is from node N59 along the interlayer link to node N512, and then along the intralayer link from node N512 to node N511, and from there along the intralayer link from N511 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 4 It is shown by a small dashed line.

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

[0100] It can be shown that the third embedded path starts from node N52 and extends along the intra-layer link to node N53; the third embedded path is shown as a dashed line. The path then follows Figure 4The bottom side of the configuration shown is from node N53 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 N512, from node N512 to N511. The path has a return portion from node N511 to N52.

[0101] 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. Each path then has a return portion that passes directly between the end-most layers, without passing through any intermediate processing nodes. Each path uses a series of processing nodes in a ring or loop, where the "first" node is connected to the "last" node.

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

[0103] 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.

[0104] 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.

[0105] 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.

[0106] 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 3BThe one-dimensional ring algorithm described performs a reduction around one of the rings.

[0107] Each node outputs The ring is a vector of size 1, where N is the number of nodes and V is the size of the data structure being reduced - scattered or all-gathered - 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. In most embodiments, each segment has the same size. However, there may be cases where, for example, the number of elements in the vector is not evenly divisible and the sizes of the segments can be slightly different. In this case, they are roughly the same size - they may differ by one or two elements, depending on the division factor. Note that in contrast to the structure described in the Jain 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 at the same time. Each ring is one-dimensional - it is a non-branching chain of processing nodes.

[0108] In some embodiments, reference to operating as a ring refers to implementing the one-dimensional algorithm described above to implement an all-reduce set. In the structures described herein, all embedded rings can operate simultaneously, enabling the partial vector of each node to be divided into multiple parts for simultaneous processing on multiple rings in the structure.

[0109] 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 The structure of is described as having asymmetric bandwidth. That is, the bandwidth utilization of a node is different between the links of the node. Further embodiments provide ring configurations that also operate 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.

[0110] Note that asymmetric bandwidth utilization is different from an asymmetric ring configuration, where the number of nodes in a non-axial ring is different from the number of nodes in an axial ring. Asymmetric bandwidth utilization can be used in either symmetric or asymmetric ring configurations.

[0111] 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 forming three axial rings, each with eight nodes. Figure 5AIn 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.

[0112] 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" layer 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.

[0113] Different rings can be programmed in this way. For example, the direction in which data circulates through the processing nodes in each layer can be clockwise or counterclockwise. Note that each node in a layer is visited before moving to the next layer. However, the direction in which the nodes are visited can be clockwise or counterclockwise. This refers to a specific data flow - for a bidirectional link, data can flow in both directions at the same time. The "access direction" refers to the physical order of the nodes in the embedded ring. In each layer, nodes can be visited in one of two directions, clockwise and counterclockwise.

[0114] 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 5DIn a ring, the ring travels clockwise around the processing nodes of each layer before proceeding to the next layer. Note, however, that this is not necessarily the case. That is, the direction in which nodes are visited around a particular layer can be the same in each layer, or different in each layer. In some embodiments, it is the same in each layer, while in other embodiments, such as in consecutive layers, it is different in different layers. Note that if the link is bidirectional at the same time, data can be transmitted in either direction around each path. The references below explain one direction of data transmission to explain the sequence in which nodes are visited in each embedded path.

[0115] exist 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.

[0116] 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-like manner, and there are six layers forming four rings, each with six nodes. The corresponding processing nodes of the "endmost" 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-most 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.

[0117] 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 utilized in each ring to connect between adjacent layers.

[0118] 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 each processing node in a layer before moving on to the next layer. FIG. 5A to FIG. 5D As with the illustrated structure, different types of rings may be embedded, for example, each in a different direction (counterclockwise or clockwise) around each layer. As described above, the direction of access nodes around a particular layer may be the same in each layer, or may be different in each layer.

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

[0120] Fig. 7A and Figure 7B Two embedded paths in a 4×4 network configuration are shown. Fig. 7A and Figure 7B The interconnections between the nodes in the figure show two embedded paths in the configuration. Each path extends through a series of nodes, such as Fig. 7A and Figure 7B Each path visits each node of the configuration in turn, as shown by the lines connecting the nodes in .

[0121] Fig. 8A and Figure 8B Figure 2 shows two embedded paths in a 4×8 network configuration. The node numbers are Fig. 7A , with additional nodes N16 to N31 in the bottom four rows. Figure 5A The 4×4 configuration is expanded into Fig. 8A and Figure 8B The 4x8 configuration shown is possible, but it is also possible to build a 4x8 configuration from its own network nodes.

[0122] Fig. 8A and Figure 8B The interconnections between the nodes in each of represent the corresponding two embedded paths in the configuration.

[0123] refer to Fig.9A and Fig. 9B , Fig.9A and Fig. 9B Two embedded paths in an 8×8 network configuration are shown. Fig.9A and Fig. 9B The nodes in Fig. 8A The nodes in the configuration are marked with additional nodes N32 to N63 in four additional columns. The configuration can be expanded by adding nodes Fig. 8A configuration, thus forming Fig.9A and Fig. 9B Configuration shown. Alternatively, Fig.9A and Fig. 9B The configuration in can be built from its own source node.

[0124] Fig.9A and Fig. 9B The interconnections between the nodes in each of the two embedded rings in the network configuration are shown respectively.

[0125] 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 optimal ring full reduction 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.

[0126] Bandwidth asymmetry means that the bandwidth allocation is different in the two dimensions of the wired connection: the plane of the layer (called non-axial) 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.

[0127] 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. What is outlined in this article is a method for exchanging data in an efficient manner to implement a specific exchange pattern, which is useful in machine learning models. In addition, the link can be expressed in any suitable way. It is advantageous that they are bidirectional, and it is best that 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 this link is 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 regardless of 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.

[0128] It is possible for links to be dynamically deactivated so that they effectively consume 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, chip-to-chip link power consumption is essentially constant, and therefore the best optimization is to maximize utilization of the physical link by keeping chip-to-chip traffic concurrent with IPU activity as much as possible.

[0129] 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 is more energy efficient than switched communication.

[0130] 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.

[0131] When optimizing machine architectures for machine learning, all-reduce sets can be used as a metric for required bandwidth. An example of all-reduce sets is given above in terms of handling parameter updates for model averaging. Other examples include gradient averaging and computation norms.

[0132] As an example, consider the all-reduce 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.

[0133] ResNet 50 is a 50-layer residual network. ResNet 50 has 25M weights, so a full reduction of all weight gradients involves a 50-megabyte portion in a single location floating point format F16. To illustrate the bandwidth requirements, assume that each complete batch requires a full reduction. This could be (but does not have to be) a full reduction of gradients. To achieve this, each node must output 100 megabits in each full reduction. ResNet 50 requires 250 gigaflops per image when training. If the subbatch size is 16 images per processing node, each processor performs 400 gigaflops per set of full reductions. If the processor achieves 100 teraflops, it requires about 25 gigaflops between all links to maintain computational concurrency with the full reduction communication. 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.

[0134] Performing an all-reduce set between p processors, with each processor starting with a portion of m megabytes (equal to the reduction size), requires at least 2m.(p-1) megabytes to send over the links. Therefore, if each processor has l links it can send simultaneously, the asymptotic minimum reduction time is 2m.(p-1).(p-1) / (pl).

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

[0136] 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.

[0137] 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.

[0138] 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.

[0139] 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.

[0140] 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.

[0141] The concepts and techniques described herein are particularly useful because they enable optimal utilization of non-switching links. A configuration may 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 a configuration, there may be fewer links between processing nodes than at the end tiers. Alternatively, links may be provided between processing nodes but may be permanently disabled in certain configurations.

[0142] 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.

[0143] 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.

[0144] 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.

[0145] 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 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).

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

[0147] 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 ring configuration in which multiple layers of interconnected nodes are arranged axially; Each layer includes a plurality of processing nodes connected into a ring in a non-axial plane by at least a respective set of links in the layer between each pair of adjacent processing nodes, the links in each set being adapted to operate simultaneously; in, Each of the processing nodes in each layer is connected to a respective corresponding node in each adjacent layer through an inter-layer link to form a respective ring along the axial direction; The computer is programmed to provide multiple embedded one-dimensional logic paths, and to transmit data around each of the embedded one-dimensional paths in a manner that the multiple embedded one-dimensional logic paths operate simultaneously, each logic path using all processing nodes of the computer in sequence, wherein the computer is programmed to have intra-layer bandwidth utilization and along-axial bandwidth utilization, wherein the intra-layer bandwidth utilization is asymmetric or symmetric relative to the along-axial bandwidth utilization.

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, wherein: The embedded paths are isomorphic.

4. The computer according to claim 1, 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 logic paths are embedded.

6. The computer according to claim 1, 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 logic paths are embedded.

8. The computer of claim 1, configured such that each logic path comprises a sequence of processing nodes in each layer that are visited in one of a counterclockwise and a clockwise direction.

9. The computer according to claim 8, wherein: Nodes in consecutive layers are visited in the same direction.

10. The computer according to claim 8, wherein: Nodes in consecutive layers are visited in opposite directions.

11. The computer according to claim 1, 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 in arrays of other processing nodes.

12. The computer according to claim 11, wherein: The processing nodes are each programmed to transfer data items in a forward direction to their adjacent connected processing nodes around each logic path in the reduce-scatter phase.

13. The computer according to claim 11, wherein: Each processing node is programmed to generate a vector of partial increments in a computation step and partition its vector into sub-arrays for respective exploitation of the embedded path.

14. The computer according to claim 1, wherein: Each of the processing nodes is programmed to deactivate any inter-layer and intra-layer links that it is not using in the data transfer step.

15. The computer according to claim 1, wherein: Each processing node is programmed to split the partial vector corresponding to that node into segments and to transfer the data in the form of consecutive segments around each embedded one-dimensional path.

16. The computer according to claim 15, wherein: The computer is programmed to operate each path as a set of logical rings, wherein successive segments are transmitted around each logical ring in simultaneous transmission steps.

17. The computer according to claim 16, wherein: Each processing node is configured to simultaneously output respective fragments on each of its intra-layer and inter-layer link sets.

18. The computer according to claim 15, wherein: Each processing node is configured to reduce the incoming fragments with its corresponding locally stored fragments.

19. The computer according to claim 18, wherein: Each processing node is configured to transmit fully reduced segments simultaneously on each of its links during the all-gather phase of the all-reduce set.

20. The computer according to claim 1, wherein: The links are bidirectional, allowing them to transmit data in both directions on the link.

21. A method of generating a set of programs to be executed in parallel on a computer, the computer comprising a plurality of interconnected processing nodes arranged in a ring configuration having multiple layers arranged in an axial direction; Each layer includes a plurality of processing nodes connected into a ring in a non-axial plane by respective sets of links in 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 to form respective rings along the axial direction; 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 that defines an output link over which data is to be transferred in the data transfer phase; and The link identifiers are determined so as to transmit data around the multiple embedded one-dimensional logic paths in a manner that the multiple embedded one-dimensional logic paths operate simultaneously, each logic path using all processing nodes of the computer in sequence, wherein a program is generated to have utilization of bandwidth within a layer and utilization of bandwidth along an axial direction, wherein utilization of bandwidth within a layer is asymmetric or symmetric relative to utilization of bandwidth along an axial direction.

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

23. The method according to claim 21, wherein: Each program includes one or more instructions to deactivate any of its inter-layer links and intra-layer links that are not used in the data transmission step.

24. The method according to claim 21, wherein: Each program includes one or more instructions to divide a corresponding portion of a vector of a processing node on which the program is executed into fragments and to transmit data in the form of consecutive fragments over respectively defined links.

25. The method according to claim 24, wherein: Each program includes one or more instructions to simultaneously output a respective segment on each of a plurality of links.

26. The method according to claim 24, wherein: Each program includes one or more instructions to reduce an incoming fragment using its corresponding locally stored fragment.

27. The method of claim 21, wherein: Each program consists of one or more instructions that transmit fully reduced fragments simultaneously on each of its links during the all-gather phase of the all-reduce set.

28. A method of executing a set of programs in parallel on a computer, the computer comprising a plurality of interconnected processing nodes arranged in a ring configuration having multiple layers arranged along an axial direction; Each layer includes a plurality of processing nodes connected into a ring in a non-axial plane by respective sets of links in 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 through inter-layer links to form respective rings in the second dimension along the axial direction; 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; The link identifiers have been determined so as to transmit data around each of a plurality of embedded one-dimensional logic paths formed by respective sets of processing nodes and links in a manner in which the plurality of embedded one-dimensional logic paths operate simultaneously, each logic path using all processing nodes of the computer in sequence, wherein a program is generated to have utilization of bandwidth within a layer and utilization of bandwidth along an axial direction, wherein utilization of bandwidth within a layer is asymmetric or symmetric relative to utilization of bandwidth along an axial direction.

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

30. The method of claim 28, wherein: The execution program operates each path as a set of logical rings, where successive segments of the partial vectors provided at each processing node are transmitted around each logical ring in a synchronous transmission step.