This document relates to configuring routing in mesh networks.
In a multi-core processor, an n-dimensional mesh topology can be used for communicating among processor cores. Packets can be routed over a mesh network between a source processor core and a destination processor core. A number of routing mechanisms can be used, e.g., deterministic routing or adaptive routing. Dimension-ordered routing is one type of deadlock-free deterministic minimal routing technique in which successive channels for traversal are assigned based on a numbering scheme determined by the dimension of the channel. The dimension-ordered routing scheme for a two-dimensional mesh is called XY-routing and that for a hypercube is called E-cube routing.
This document describes various techniques, some or all of which apply equally well to a discrete system (e.g., having more than one chip) as well as to single chip systems such as a multicore processor. In a multicore processor, multiple processor cores are on one chip. In the description below, the terms “multicore processor” are used interchangeably with terms such as “tiled processor” or a “chip multiprocessor” (CMP), unless otherwise indicated in their context.
In general, in one aspect, a plurality of processor tiles are provided, each processor tile including a processor core. An interconnection network interconnects the processor cores and enables transfer of data among the processor cores. An extension network connects input/output ports of the interconnection network to input/output ports of one or more peripheral devices, each input/output port of the interconnection network being associated with one of the processor tiles such that each input/output port of the interconnection network sends input data to the corresponding processor tile and receives output data from the corresponding processor tile. The extension network is configurable such that a mapping between input/output ports of the interconnection network and input/output ports of the one or more peripheral devices is configurable.
Implementations may include one or more of the following features. The extension network connects a first portion of the input/output ports of one of the peripheral devices to a first portion of input/output ports of the interconnection network that are associated with processor tiles that are positioned closer to the peripheral device, and the extension network connects a second portion of the input/output ports of the peripheral device to input/output ports of the interconnection network that are associated with processor tiles that are positioned farther away from the peripheral device. The mapping between input/output ports of the interconnection network and input/output ports of the one or more peripheral devices is configurable by software. One or more peripheral devices are provided, in which each peripheral device and a portion of the extension network are defined using a hardware macro, and the same hardware macro is used to define at least two peripheral devices and their corresponding portions of the extension network. Network switches enable several peripheral devices to be connected through the extension network. The peripheral devices include, for example, a memory controller. The interconnection network includes N dimensions, N being an integer. The interconnection network includes, for example, a mesh network.
In general, in another aspect, a plurality of processor cores are provided, an interconnection network interconnects the processor cores and enables transfer of data among the processor cores, and an extension network connects input/output ports of the interconnection network to input/output ports of one or more peripheral devices. Each input/output port of the interconnection network is associated with one of the processor cores such that each input/output port of the interconnection network sends input data to the corresponding processor core and receives output data from the corresponding processor core. The extension network is configurable such that a mapping between input/output ports of the interconnection network and input/output ports of the one or more peripheral devices is configurable.
In general, in another aspect, a two-dimensional array of processor tiles is provided, each processor tile including a processor core, and a two-dimensional mesh network interconnects the processor cores and enables transfer of data among the processor cores. An extension network connects input/output (I/O) ports of the mesh network to I/O ports of at least a first peripheral device and a second peripheral device, the I/O ports of the mesh network being associated with a row or a column of the processor tiles at an edge of the array of processor tiles such that each I/O port sends input data to the corresponding processor tile and receives output data from the corresponding processor tile. The first peripheral device is located closer to a first half of the processor tiles, the second peripheral device is located closer to a second half of the processor tiles, the extension network connects some I/O ports of the first peripheral device to I/O ports of the mesh network that are associated with processor tiles in the first half of the processor tiles, the extension network connects some I/O ports of the first peripheral device to I/O ports of the mesh network that are associated with processor tiles in the second half of the processor tiles, the extension network connects some I/O ports of the second peripheral device to I/O ports of the mesh network that are associated with processor tiles in the first half of the processor tiles, and the extension network connects some I/O ports of the second peripheral device to I/O ports of the mesh network that are associated with processor tiles in the second half of the processor tiles.
In another aspect, in general, a processor includes a plurality of processor tiles, each tile including a processor core, and an interconnection network interconnects the processor cores and enables transfer of data among the processor cores, the interconnection network having a plurality of dimensions in which an ordering of dimensions for routing data is configurable.
Implementations may include one or more of the following features. The interconnection network has a first dimension and a second dimension, and the mesh network is selectable between at least two configurations, the first configuration routing data along the first dimension before routing the data along the second dimension, the second configuration routing data along the second dimension before routing the data along the first dimension. The plurality of processor cores include a two-dimensional array of rows and columns of processor cores, a top row of processor cores are connected to input/output ports that are coupled to corresponding input/output ports of a peripheral device. When there are more data being sent from the peripheral device to the processor cores, the mesh network is configured to route data along a column direction followed by routing the data along a row direction. When there are more data being sent from the processor cores to the peripheral device, the mesh network is configured to route data along a row direction followed by routing the data along a column direction. The peripheral device includes, for example, a memory controller interface. The ordering of dimensions for routing data is configurable by software. The software can include an operating system or a hypervisor. The processor includes a register to store information indicating the ordering of dimensions for routing data. The mesh network has an X-dimension, a Y-dimension, and a Z-dimension, and the mesh network is selectable among six configurations that route data in the order of (X, Y, Z), (X, Z, Y), (Y, X, Z), (Y, Z, X), (Z, X, Y), and (Z, Y, X) dimensions, respectively. The mesh network has N dimensions, N being an integer, and the mesh network is selectable among N! configurations that route data along the N dimensions in various orderings. Each tile includes a routing arbiter to determine a path for routing data through the mesh network. The routing arbiter determines an ordering of dimensions of the routing based on coordinates of the routing arbiter, destination coordinates of the data, and a dimension ordering policy. The routing arbiter routes the data in a dimension along a dimension having a highest priority specified in the dimension ordering policy if the arbiter and the destination of the data do not have any coordinates in common. The interconnection network includes a mesh network. The ordering of dimensions for routing data is configured to reduce or eliminate a skin effect and increase throughput of the interconnection network.
In general, in another aspect, a system includes a processor that has a plurality of processor tiles, each tile having a coordinate, each tile including a processor core, and a routing arbiter to determine a path for routing data through a multi-dimensional interconnection network that interconnects the processor cores and enables transfer of data among the processor cores. The system includes a memory controller having input/output ports that are coupled to corresponding input/output ports of some of the processor cores, and a first dimension register that is programmed to store information indicating the ordering of dimensions for routing data. When each of the routing arbiters receives a packet, the routing arbiter queries the first dimension register to determine a dimension ordering policy, and determines an ordering of dimensions for routing the packet based on coordinates of the routing arbiter, destination coordinates of the packet, and the dimension ordering policy.
In general, in another aspect, a processor includes a plurality of processor cores, and an interconnection network to interconnect the processor cores and enable transfer of data among the processor cores, the interconnection network having a plurality of dimensions in which an ordering of dimensions for routing data is configurable.
In general, in another aspect, a processor includes a plurality of processor tiles, each tile including a processor core, and an interconnection network interconnects the processor cores and enables transfer of data among the processor cores. The interconnection network has a plurality of dimensions in which a first ordering of dimensions is used for routing data from an input/output device to the processor cores, and a second ordering of dimensions is used for routing data from the processor cores to the input/output device, the second ordering of dimensions being different from the first ordering of dimensions.
Implementations may include one or more of the following features. The plurality of processor cores include a two-dimensional array of rows and columns of processor cores, a first row of processor cores are connected to input/output ports that are coupled to corresponding input/output ports of a peripheral device. In some examples, there are more data being sent from the peripheral device to the processor cores, and the first ordering of dimensions specifies that data are to be routed along a column direction followed by routing the data along a row direction. In some examples, there are more data being sent from the processor cores to the peripheral device, and the second ordering of dimensions specifies that data are to be routed along a row direction followed by routing the data along a column direction.
In general, in another aspect, a plurality of processor tiles are provided, each processor tile including a processor core, and an interconnection network interconnects the processor cores and enables transfer of data among the processor cores. The interconnection network has a plurality of dimensions and is configurable to transmit data from an initial processor core or an input/output device to an intermediate processor core based on a first dimension ordering policy, and from the intermediate processor core to a destination processor core. The first dimension ordering policy specifies an ordering of the dimensions of the interconnection network when routing data through the interconnection network.
Implementations may include one or more of the following features. The data is routed from the intermediate processor core to the destination processor core based on a second dimension ordering policy. Software is provided to select one of the processor cores as the intermediate processor core, the software being capable of identifying different intermediate processor cores for different applications. The intermediate processor core is selected to reduce or eliminate a skin effect and increase throughput of the interconnection network. In some examples, the initial processor core generates headers of data packets such that the data packets can be routed through the intermediate processor core. In some examples, the data is transmitted in a packet having a first header and a second header, the first header is used to route the packet from the initial processor core to the intermediate processor core, and the intermediate processor core is configured to remove the first header to expose the second header. In some examples, the intermediate processor core is capable of updating the header of a data packet and generating the header for a remaining portion of the route to the destination processor core.
In general, in another aspect, a processor includes a plurality of processor tiles, each tile comprising a processor core, and an interconnection network to interconnect the processor cores and enable transfer of data among the processor cores. The interconnection network has a plurality of dimensions in which a first ordering of dimensions is used for routing data from an input/output device to intermediate points, a second ordering of dimensions is used for routing data from the intermediate points to the processor cores, a third ordering of dimensions is used for routing data from the processor cores to the intermediate points, and a fourth ordering of dimensions is used for routing data from the intermediate points to the input/output device. At least two of the first, second, third, and fourth orderings of dimensions are different.
Implementations may include one or more of the following features. The plurality of processor cores include a two-dimensional array of rows and columns of processor cores, a first row of processor cores are connected to input/output ports that are coupled to corresponding input/output ports of a peripheral device, wherein there are more data being sent from the peripheral device to the processor cores, and the first ordering of dimensions specifies that data are to be routed along a column direction followed by routing the data along a row direction. The plurality of processor cores include a two-dimensional array of rows and columns of processor cores, a first row of processor cores are connected to input/output ports that are coupled to a peripheral device, wherein there are more data being sent from the processor cores to the peripheral device, and the fourth ordering of dimensions specifies that data are to be routed along a row direction followed by routing the data along a column direction.
In general, in another aspect, a plurality of processor cores are provided, and an interconnection network interconnects the processor cores and enables transfer of data among the processor cores, the interconnection network having a plurality of dimensions. The interconnection network is configurable to transmit data from an initial processor core or an input/output device to an intermediate processor core based on a first dimension ordering policy, and from the intermediate processor core to a destination processor core, the first dimension ordering policy specifying an ordering of the dimensions of the interconnection network when routing data through the interconnection network.
In general, in another aspect, a processor includes a plurality of processor tiles, each processor tile including a processor core, and a multi-dimensional interconnection network to interconnect the processor cores and enable transfer of data among the processor cores. A memory controller has input/output ports that are coupled to corresponding input/output ports of some of the processor cores. The processor is configured to route read data packets from the memory controller to one or more intermediate processor cores based on a first dimension ordering policy, and from the one or more intermediate processor cores to destination processor cores based on a second dimension ordering policy, the read data packets from the memory controller each having a header specifying an address of an intermediate processor core. The processor is configured to route write data packets from one or more processor cores to one or more intermediate processor cores based on a third dimension ordering policy, and from the one or more intermediate processor cores to the memory controller based on a fourth dimension ordering policy, the write data packets from the processor cores each having a header specifying an address of an intermediate processor core.
In general, in another aspect, a data packet is received at a first processor core, the data packet having a destination that corresponds to a second processor core, in which the first and second processor cores are part of an array of processor tiles, each processor tile including a processor core. A header of the data packet is modified to specify an intermediate processor core, and the data packet is routed from the first processor core to the intermediate processor core through an interconnection network that interconnects the array of processor tiles, then the data packet is routed from the intermediate processor core to the second processor core.
Implementations may include one or more of the following features. The intermediate processor core is selected to reduce or eliminate a skin effect. Intermediate processor cores are determined by a mapping table which can be programmed by software. An intermediate processor core is capable of determining a next intermediate processor core based on a dimension ordering policy.
These and other aspects and features, and combinations of them, may be expressed as methods, apparatus, systems, means for performing functions, and in other ways.
Advantages of systems, methods, aspects and features described above can include one or more of the following. The negative impact of skin effect on routing data can be reduced. Affinity restrictions on the placement of input/output devices can be reduced or removed. The dimension ordering policy can be dynamically configured according to the type of data being transmitted to avoid data congestion at certain locations in a network. Multiple dimension ordering policies can be used when routing data to provide flexibility in meeting specific application requirements.
Other features and advantages of the invention are apparent from the following description, and from the claims.
In the following, we describe a “skin effect” that may occur in some mesh networks using dimension-ordered routing. An “affinity restriction” that may affect the placement of hardware components, such as locations of memory and memory controllers, is described. A number of ways to reduce the negative impact of the skin effect are described, e.g., by using an extension of the mesh network to input/output (I/O) devices, a configurable routing scheme, and/or a stacked dimension ordered routing. Ways to reduce or remove the affinity restriction are also described.
For a description of a tiled architecture that can be used to implement a processor array that communicates through an interconnection network, such as a mesh network, see the section “Tiled Architecture” below. The tiled architecture is also described in U.S. application Ser. No. 11/404,958, titled “Managing Data in a Parallel Processing Environment”, filed on Apr. 14, 2006, incorporated herein by reference. In some implementations, a mesh network can allow processors of a processor array to send multi-word messages or scalar values through the network. The mesh network can be a static network or a dynamic network. Static networks switch according to switch instructions determined at compile time, whereas dynamic networks switch according to message headers determined at run time. In a dynamic network, a processor can directly send packets having packet headers and payload data to the mesh network, and the mesh network will take care of delivering the packet to the appropriate receiver, which can be, e.g., a different processor or an input/output device.
Skin Effect
As technology advances, more and more input/output devices, such as memory controllers, are integrated into a multi-core processor. An input/output device can be connected to the multi-core array through multiple networks. A message based protocol can be used so that any processor can communicate with the input/output device. For example, a message based protocol used by a dynamic network is described in U.S. patent application Ser. No. 11/404,958.
In this example, dimension ordered routing is used, with X being the first direction in which a message is routed, and Y being the second direction in which a message is routed. In this example, requests from the processor array 10 destined for an input/output device travel in the X direction until the requests are vertically below one of the ports of a given one of the input/output devices 12a or 12b. Once a request is below a destination port of a given input/output device, the request is routed vertically to the input/output device. Responses coming from the input/output devices 12 travel in the processor array 10 in the X direction first, then the Y direction. This may result in the case where responses for the entire processor array 10 are first routed across a one dimensional array of links (the horizontal links that connect the eight cores from core(0,0) to core(7,0) directly below the input/output device 12), having the network performance similar to a pipelined bus. This is referred to as the “skin effect”. The skin effect can become significant when large amounts of data are exchanged between the input/output devices 12 (e.g., memory controllers) and the processor cores.
The terms “horizontal”, “vertical”, “top”, “bottom”, “left”, and “right” are used to describe relative directions or positions as shown in the figures. The system described in this document can be used in various orientations, thus when we say a signal travels in the vertical direction, it means that the signal travels in the vertical direction as shown in the figure, and does not necessarily mean that the signal travels in a vertical direction using earth as a reference. For example, when we say that an input/output device is coupled to a top row of the processor array 10, it means that for a certain orientation of the processor array 10 (e.g., when the processor array 10 is placed on a circuit board oriented vertically), the edge row being coupled to the input/output device can be regarded as the top row. The processor array 10 can be placed horizontally such that the “top row” is on the same height as the other rows, and the processor array 10 can also be oriented such that what we call the “top row” is actually below the other rows.
When we say that data travel in the X direction, the data can be traveling in the +X direction or the −X direction depending on relative positions of source and destination. Similarly, when we say that data travel in the Y direction, the data can be traveling in the +Y direction or the −Y direction depending on relative positions of source and destination.
For an input/output device 12 connected to the first-dimension (X-dimension in
Note that a traditional single core processor or a multi-core processor with a traditional bus architecture may not have the skin effect problem.
Affinity Restriction
As a multi-core processor integrates more cores, multiple external memory interfaces may be necessary. There can be various types of affinity. In addition to processor affinity and cache homing affinity, there can be memory/IO affinity. For a given processor core, it is useful to allocate the memory accessed by that processor (for example, using its normal load and store instructions) to the nearest memory controller. This way, that processor core's memory requests that miss the core's local cache will travel a shorter distance than if the memory were allocated on a memory controller that was further away. This is referred to as the “affinity restriction”.
This restriction may introduce complexity to the system level software. First, memory requirements for each processor may be different. Second, each memory interface may have different external memory characteristics (e.g., capacity). It is not simple to implement optimized memory affinity. Therefore, it may be desirable to reduce or remove this affinity restriction.
Note that a traditional multi-core processor with mesh network but single memory controller may not have the affinity restriction problem.
System Overview
In the following, we describe three mechanisms to mitigate the performance impact of the skin effect in dimension ordered networks. These mechanisms also result in reducing the affinity restriction (the restriction where cores should be physically close to the input/output devices with which they communicate).
The first mechanism is to provide a mesh I/O extension network that extends the mesh network to peripheral devices, e.g., input/output devices. The skin effect caused by input/output devices can be reduced or removed in a mesh network that uses dimension-ordered routing. The mesh I/O extension network adds additional network links between the I/O ports of the mesh network and the peripheral devices (e.g., memory controllers) and the mesh network between the tiles (a tiled architecture having an array of tiles are described below). The additional network links reduce or eliminate the negative effects of the skin effect.
The second mechanism is to provide configurable dimension ordered routing. The skin effect can be reduced by biasing the routing algorithm such that the skin effect only occurs for the traffic type that requires the least amount of bandwidth. For example, if the sizes of responses from the devices are much larger than requests from the cores, a dimension ordered routing algorithm can be configured to use the Y dimension as the first direction that is routed and the X dimension as the second direction that is routed. In such an example, in the processor array 10, requests will be routed up to the “skin” row of processor cores first and then routed across the skin row, and the responses will be routed down a column of processor cores first and then through different rows of processor cores instead of just the skin row, depending on the destination of each response.
The third mechanism is to provide stacked dimension ordered routing, meaning that data packets are routed according to two or more dimension ordering policies. For example, the skin effect can be reduced by introducing one or more intermediate routing points between the source and destination pair. A data packet can be routed from a starting processor core to an intermediate processor core according to a first dimension ordering policy, and routed from the intermediate processor core to a destination processor core according to a second dimension ordering policy. The operation system or a hypervisor selects the intermediate points and provides flexibility to meet specific application requirement.
The three mechanisms described above can result in reducing the affinity restriction (the restriction where cores are preferably physically close to the input/output devices with which they communicate). This improves system performance, and reduces design complexity for the system level software.
Mesh Network Extension
Referring to
An “extension network” 22 is provided between the two memory controllers 20a and 20b and the mesh network interconnecting the processor cores 10. Heavy traffic (due to skin effect) can be off-loaded from the top row of the mesh network to the extension network 22. This way, the busiest connection has 8 loads of traffic, e.g., between core(0,0) and core(1,0), between (core 2,0) and core(3,0), between core(4,0) and core(5,0), and between core(6,0) and core(7,0). By comparison, a design without using the extension network 22 may have 32 loads at the busiest connection, such as between core(3,0) and core(4,0) in the example of
Table 1 below lists example routes between example source and destination pairs. The examples assume a dimension ordering policy that routes data packets along the X direction first, followed by the Y direction.
For each processor core, the distances to memory controller 0 (20a) and memory controller 1 (20b) is similar. For example, if core(3,1) reads from the memory controller 0 (20a), traffic will go through route “c”, one hop from core(2,0) to core(3,0), and one hop from core (3,0) to core (3,1). If core(3,1) reads from the memory controller 1 (20b), traffic will go through route “d”, and one hop from core(3,0) to core(3,1).
The examples above indicate that “affinity restriction” becomes less of a restriction to the memory controllers 20, at least on the X dimension.
If there are memory controllers on the other side of the chip, e.g., the bottom side, latency from a processor core, e.g., core (3,1), to a memory controller on the top side can be different from the latency to a memory controller on the bottom side. However, since the Y dimension is not the first-order dimension, traffic loadings on the Y dimension are more evenly distributed. Less network congestion results in more predictable latency.
Referring to
The extension network 22 can be implemented in many ways. The following are some examples.
The examples of configurations for connections and switches shown in
Configurable Dimension Ordered Routing
Configurable dimension-ordered routing can help reduce the skin effect. Some peripherals may have more traffic to the multi-core array, while other peripherals may have more traffic from the multi-core array. For example, a memory controller delivers more bandwidth than the Ethernet interface. In some examples, high-traffic peripherals are placed on the opposite side of the chip, e.g., on the top and the bottom sides, or on the left and right sides.
The first dimension can be chosen based upon where the high traffic peripheral is placed and whether there is more traffic to the peripheral or more traffic from the peripheral.
Referring to
In the example of
Referring to
Since there are less read data than write data, the X-dimension can also be the first dimension for read data being returned by the memory controller 20. Although some read data may concentrate on the first row, this routing scheme allows more bandwidth to be reserved for routing write data along the 2nd to 8th rows (the 1st row being the top row and the 8th row being the bottom row in this example).
In some implementations, if the memory controller 20 is coupled to half of the left-most (or right-most) column of the processor array 10 and if there are more memory reads than memory writes, then the X-dimension can be selected as the first dimension for routing read data from the memory controller 20 to the processor cores.
If the memory controller 20 is coupled to half of the left-most (or right-most) column of the processor array 10 and if there are more memory writes than memory reads, then the Y-dimension can be selected as the first dimension for routing write data from the processor cores to the memory controller 20.
Referring to
Some peripherals may have multiple connections to the on-chip mesh network. One connection may have more traffic sourced from the peripheral, while another connection may have more traffic sent to the peripheral. Depending on how the dimension ordering is applied in the application, how the peripheral connects to the on-chip mesh network has an impact to the network congestion.
Referring to
In the example of
In general, to avoid network congestion, it is better to spread out the large amounts of traffic so the traffic travel through parallel paths. For read operations, if a memory controller having multiple I/O ports is connected to a top (or bottom) row of a processor array, such that several processor cores in a row may receive data in parallel, then it is preferable to route the data packets in the column direction first so that data packets travel in parallel through a wider path.
For read operations, if a memory controller having multiple I/O ports is connected to a left (or right) column of a processor array, such that several processor cores in a column may receive data in parallel, then it is preferable to route the data packets in the row direction first so that data packets travel in parallel through a wider path.
For write operations, if a memory controller having multiple I/O ports is connected to a top (or bottom) row of a processor array, then it is preferable to route the data packets in the row direction first, then route the data packets to the multiple I/O ports in the column direction in parallel.
For write operations, if a memory controller having multiple I/O ports is connected to a left (or right) column of a processor array, such that several processor cores in a column may receive data in parallel, then it is preferable to route the data packets in the column direction first, then route the data packets to the multiple I/O ports in the row direction in parallel.
In some implementations, the routing of packets can be pre-configured, such that a first type of data or instructions are routed according to a first predefined dimension ordering, and a second type of data or instructions are routed according to a second predefined dimension ordering, etc. For example, read data can be routed according to a first ordering of dimensions, and write data can be routed according to a second ordering of dimensions. In this example, even though the ordering of dimensions for a specific type of data is fixed, network congestion can still be reduced by using different orderings of dimensions for different types of data.
In some implementations, the routing of packets can be dynamically configured by software at run time, e.g., by an operating system, hypervisor, or application software. For example, a first software application may require reading large amounts of data from and writing large amounts of data to the memory frequently, but the reading and writing occur at different times. In this case, assuming the memory controller is connected to the top row of the processor array as shown in
In the example above, a second software application may require reading large amounts of data from the memory while at the same time writing small amounts of data to the memory. In this case, the second software application may configure the mesh network to route read data in the Y-dimension first followed by the X-dimension, and route write data in the Y-dimension first followed by the X-dimension to avoid congestion in the Y-dimension. In the above examples, the first and second software applications route the read data in a similar manner but route the write data differently.
Stacked Dimension Ordered Routing
One or more intermediate points can be introduced to route a packet between the source and destination.
Referring to
In some implementations, the sender (e.g., a processor core or an input/output device) has most of the intelligence. The sender adds to the packet header a bit to indicate that an additional header is to be looked up. The sender adds the additional headers. After a packet reaches an intermediate point, the current header is popped out and the additional header becomes the header for the remainder of the route.
If there are more than one intermediate point, the sender can add two or more bits to the header to indicate that two or more additional headers are to be looked up during the routing process. When a packet reaches the first intermediate point, the first header is popped out and the second header becomes the header for the second segment of the route. When the packet reaches the second intermediate point, the second header is popped out and the third header becomes the header for the third segment of route, and so forth. Software can program a mapping table to select the intermediate points. For example, the mapping table may specify that for destination (x0,y0), use intermediate point (xi0, yi0).
In some implementations, the intelligence about how to route packets is distributed, and one packet header is used for each route hop. The packet header has data about the source node, intermediate point, and destination node of each hop, which can be used to determine the route for the hop. The sender does not assemble the full route ahead of time, rather, it is up to the intermediate point to update the packet header.
For each node along the route, if the current node matches the intermediate node in the header, and the intermediate node is the same as the destination node in the header, then the final destination is reached. If the current node matches the intermediate node in the header, and the intermediate node is not the same as the destination node, then the current node will update the intermediate node in the header to be the next intermediate point. If the current node does not match the intermediate node in the packet header, then the current node does not modify the packet header.
For two-dimensional routing, to update the next intermediate node, the current intermediate point copies the destination node to the next intermediate node. For example, if an intermediate node receives a header with coordinates [source, intermediate, destination]=[(x0,y0), (x1, y1), (x2,y2)], the intermediate node changes the coordinates of the next source and intermediate nodes to (x1,y1) and (x2,y2), respectively. The destination node can be (x2,y2) or some other node.
For n-dimensional routing, the intermediate point copies the next dimension of the destination node to the next intermediate node. For example, assume that Z first, Y second, and X third dimension ordering is used, and suppose the initial intermediate node is (xi0, yi0, zi0) and the destination node is (x1, y1, z1). In the next hop, the source node becomes (xi0, yi0, zi0), the intermediate node becomes (xi0, yi0, z1) (which is obtained by copying the z-dimension of the destination node), and the destination node remains (x1, y1, z1). In the next hop, the source node becomes (xi0, yi0, z1), the intermediate node becomes (xi0, y1, z1) (which is obtained by copying the y-dimension of the destination node), and the destination node remains (x1, y1, z1). In the next hop, the source node becomes (xi0, y1, z1), the intermediate node becomes (x1, y1, z1) (which is obtained by copying the x-dimension of the destination node), and the destination node remains (x1, y1, z1).
As an example, in
Using the intermediate point approach described above can avoid network congestion and provide fault tolerance—the routing scheme works even if a certain link is down. Using the intermediate point approach can also solve the skin effect problem by using the operating system or hypervisor to choose the intermediate point in a way that avoids the skin effect for a particular set of memory controllers or input/output devices. One of the benefits is this approach is flexibility, in which the operating system or hypervisor can choose the intermediate points based on specific application needs.
One implementation is to select intermediate points so that it has the same X or Y coordinate as the source or destination. For example, given the pair of source (x1, y1) and destination (x2, y2), the intermediate point can be (x1, y2) assuming X-first routing, and the intermediate point can be (x2, y1) assuming Y-first routing.
Using the routing scheme described above, up to 8 routing resources in the X dimension can be utilized to route packets to avoid the skin effect, instead of the originally one routing resource in the X dimension, i.e., between core(3,0) and core(4,0).
In some implementations, the routing of packets through an intermediate point can be pre-configured. For example, for a first type of data or instructions are routed from input/output devices to intermediate points according to a first predefined dimension ordering, then routed from the intermediate points to the processor cores according to a second predefined dimension ordering. A second type of data or instructions are routed from the processor cores to intermediate points according to a third predefined dimension ordering, then routed from the intermediate points to the input/output devices according to a fourth predefined dimension ordering, etc.
The first, second, third, and fourth predefined dimension ordering do not necessarily have to be all different. For example, the first and second dimension orderings can be the same, and the third and fourth dimension orderings can be the same.
In some examples, read data can be routed from memory controllers to intermediate points according to a first ordering of dimensions (Y-dimension first, X-dimension second), then from the intermediate points to the processor cores according to a second ordering of dimensions (Y-dimension first, X-dimension second), and write data can be routed from the processor cores to intermediate points according to a third ordering of dimensions (X-dimension first, Y-dimension second), then routed from the intermediate points to the memory controllers according to the fourth ordering of dimensions (X-dimension first, Y-dimension second), etc. In this example, even though the ordering of dimensions for a specific type of data is fixed, network congestion can still be reduced by using different orderings of dimensions for different types of data when routing through intermediate points.
When there are more than one intermediate point, the orderings of dimensions for a specific type of data from the source to the first intermediate point, from the first intermediate point to the second intermediate point, . . . , from the last intermediate point to the destination can be preconfigured, in which the orderings of dimensions are different for different types of data.
The examples described above can have one or more of the following advantages.
The following describes an example tiled architecture that can be used to implement the processor array 10 of
Referring to
The data path 104 between any two tiles can include multiple “wires” (e.g., serial, parallel or fixed serial and parallel signal paths on the IC 100) to support parallel channels in each direction. Optionally, specific subsets of wires between the tiles can be dedicated to different mesh networks that can operate independently.
In some examples, the network includes paths that extend to diagonal neighbors or to tiles that are multiple rows or columns away. Other examples include higher dimensional mesh topologies. For example, multiple layered integrated circuits or other three-dimensional configurations can be used to form networks in which the connections form a cube of network nodes. In some implementations, a switch coupled to a processor forwards data to and from the processor or between neighboring processors over data paths of a one-dimensional interconnection network such as ring network.
The data paths 104 from one or more tiles at the edge of the network can be coupled out of the array of tiles 101 (e.g., over I/O pins) to an on-chip device 108A, an off-chip device 108B, or a communication channel interface 108C, for example. Multiple wires of one or more parallel channels can be multiplexed down to a fewer number of pins or to a serial channel interface. For example, the wires for one or more channels can be multiplexed onto a high-speed serial link (e.g., SerDes, SPIE4-2, or SPIE5) or a memory controller interface (e.g., a memory controller for DDR, QDR SRAM, or Dynamic RAM). The memory controller can be implemented, for example, off-chip or in logic blocks within a tile or on the periphery of the integrated circuit 100.
The following exemplary implementations are described in the context of tiles that each have the same structure and functionality. Alternatively there can be multiple “tile types” each having different structure and/or functionality. For example, tiles that couple data off of the integrated circuit 100 can include additional circuitry for I/O functions. Tiles are not necessarily arranged in a regular rectilinear array.
Referring to
The processor 200 can be multithreaded and/or have capabilities of a Very Long Instruction Word (VLIW) processor, a superscalar processor, or a vector processor. A VLIW processor can issue multiple instructions based on a stream of macro instructions including subinstructions designated to be executed concurrently by a compiler. A superscalar processor can issue multiple instructions by partitioning one or more instruction stream at run time to multiple functional units. A vector processor can execute instructions using multiple functional units to operate on respective components of data. A multithreaded processor can execute multiple streams of instructions (or threads) within different respective functional units, and/or within a common time-shared functional unit by switching contexts.
In some examples, the processor 200 is a coarse grain multithreaded (CGMT) processor that switches contexts on long latency events such as cache misses to memory or synchronization faults. A multithreaded processor in a tile may also switch contexts when it has to wait on the a network port. In some examples, the processor 200 is a fine grain multithreaded (FGMT) processor that switches contexts every cycle or every few cycles whether there is a long latency event or not. In some examples, the processor 200 is a simultaneous multithreaded (SMT) processor that includes multiple functional units (e.g., in multiple pipelines) to execute instructions from multiple threads without necessarily needing to switch contexts, such as in a superscalar processor.
In some examples, the networks in the tiled array are configured to enable network ports to be shared among multiple threads running in multithreaded processors in the tiles. For example, the networks allow data for different threads to be interleaved such that, if a processor switches context while a first thread is writing to or reading from a network port, the second thread can also write to or read from the network port.
The switch 220 includes input buffers 222 for temporarily storing data arriving over incoming wires 104A, and switching circuitry 224 (e.g., a crossbar fabric) for forwarding data to outgoing wires 104B or the processor 200. The input buffering provides pipelined data channels in which data traverses a path 104 from one tile to a neighboring tile in predetermined number of clock cycles (e.g., a single clock cycle). This pipelined data transport enables the integrated circuit 100 to be scaled to a large number of tiles without needing to limit the clock rate to account for effects due to wire lengths such as propagation delay or capacitance. (Alternatively, the buffering could be at the output of the switching circuitry 224 instead of, or in addition to, the input.)
Switch Operation
Continuing to refer to
In some implementations, the switch 220 includes a switch processor that receives a stream of switch instructions for determining which input and output ports of the switching circuitry to connect in any given cycle. For example, the switch instruction includes a segment or “subinstruction” for each output port indicating to which input port it should be connected. In some implementations, the processor 200 receives a stream of compound instructions with a first instruction for execution in the pipeline 208 and a second instruction for controlling the switching circuitry 224.
The switch instructions enable efficient communication among the tiles for communication patterns that are known at compile time. This type of routing is called “static routing.” An example of data that would typically use static routing are operands of an instruction to be executed on a neighboring processor.
The switch 220 also provides a form of routing called “dynamic routing” for communication patterns that are not necessarily known at compile time. In dynamic routing, circuitry in the switch 220 determines which input and output ports to connect based on the data being dynamically routed (for example, in header information). A tile can send a message to any other tile by generating the appropriate address information in the message header. The tiles along the route between the source and destination tiles use a predetermined routing approach (e.g., shortest Manhattan Routing). The number of hops along a route is deterministic but the latency depends on the congestion at each tile along the route. Examples of data traffic that would typically use dynamic routing are memory access traffic (e.g., to handle a cache miss) or interrupt messages.
The dynamic network messages can use fixed length messages, or variable length messages whose length is indicated in the header information. Alternatively, a predetermined tag can indicate the end of a variable length message. Variable length messages reduce fragmentation.
The switch 220 can include dedicated circuitry for implementing each of these static and dynamic routing approaches. For example, each tile has a set of data paths, buffers, and switching circuitry for static routing, forming a “static network” for the tiles; and each tile has a set of data paths, buffers, and switching circuitry for dynamic routing, forming a “dynamic network” for the tiles. In this way, the static and dynamic networks can operate independently. A switch for the static network is called a “static switch”; and a switch for the dynamic network is called a “dynamic switch.” There can also be multiple static networks and multiple dynamic networks operating independently. For example, one of the dynamic networks can be reserved as a memory network for handling traffic between tile memories, and to/from on-chip or off-chip memories. Another network may be reserved for data associated with a “supervisory state” in which certain actions or resources area reserved for a supervisor entity.
As described above, the switch 220 is coupled to the processor 200 over processor coupling wires 230. For fast (e.g., low latency) communication between tiles of neighboring processors, the coupling wires 230 can be integrated directly into the pipeline 208. The processor 200 can communicate with the switch 220 using distinct opcodes to distinguish between accesses to the static and dynamic network ports. Alternatively, the instructions can use register names to refer to switch ports.
For example, the processor can send or receive data by writing to or reading from a register interface that is directly mapped to the input buffers 222 of the switch 220. For data going to or coming from the processor 200, a switch instruction indicates that the switch 220 should couple data to or from a selected register or bypass path of the pipeline 208 over a register mapped pipeline integrated switch interface 232. This pipeline integration allows data to be available to the switch 200 the moment an instruction is executed and the register value is available. In the next cycle the same data could appear at an input buffer of another tile.
Referring to
Referring to
A switch control module 304 selects which input port and output port are connected in a given cycle. The routing performed by the switch control module 304 depends on whether the switching circuitry 224 is part of the dynamic network or static network. For the dynamic network, the switch control module 304 includes circuitry for determining which input and output ports should be connected based on header information in the incoming data.
Referring to
A program counter 308 steps through the switch instructions, interpreting control information (e.g., a condition code) in the switch instructions to perform actions such as branches or jumps based on program control flow. In a given clock cycle, the switch control module 304A can enable the multiplexers to move data independently onto any output port from any input port, including multicasting an input port to all output ports, as long as two input ports are not connected to the same output port in the same clock cycle.
The switch control module 304A is able to function as a switch processor with or without an ALU and registers. The switch control module 304A can include an ALU and registers to allow in-switch processing of in-flight messages. Optionally, the switch control module 304A can include other components such as a floating point arithmetic unit, or bit shifter, for example, to perform additional functions. In some examples, the switch control module 304A can be a VLIW-type processor and can be multithreaded.
Fast access to the on-chip interconnect in a multicore chip or tiled architecture is a key property for good performance. Some processors access input/output (I/O) mechanisms to communicate with other processors as a result of bus transactions and memory operations. Other processors can use techniques to communicate at faster speeds (at register speeds, for example, being able to access a network port in 1 or 2 cycles, and thereby to communicate a value from one core to another core in 1 to 5 cycles, for example). Such fast access is helpful for distributed ILP (instruction level parallelism) compilation. It is also helpful for efficient stream interfacing. Some processors do not have good ways of accessing the interconnect directly. Fast access to the network can be provided by techniques used in the processor microarchitecture and in its instruction set.
It is to be understood that the foregoing description is intended to illustrate and not to limit the scope of the invention, which is defined by the scope of the appended claims. Other embodiments are within the scope of the following claims. For example, the skin effect can be addressed using the following approaches: (a) Make a fat connection around the periphery of the mesh network (e.g., outer ring has a fat connection), or (b) use fat connections for the entire mesh network.
This application is a continuation of and claims the benefit of U.S. application Ser. No. 12/169,442, titled “Configuring Routing in Mesh Networks,” filed on Jul. 8, 2008 (U.S. Pat. No. 8,045,546 to be issued on Oct. 25, 2011), which is incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
4441162 | Lillie | Apr 1984 | A |
4484292 | Hong et al. | Nov 1984 | A |
4933933 | Dally et al. | Jun 1990 | A |
5533198 | Thorson | Jul 1996 | A |
5917820 | Rekhter | Jun 1999 | A |
6785277 | Sundling et al. | Aug 2004 | B1 |
7007189 | Lee et al. | Feb 2006 | B2 |
7394288 | Agarwal | Jul 2008 | B1 |
7412586 | Rajopadhye | Aug 2008 | B1 |
7461210 | Wentzlaff et al. | Dec 2008 | B1 |
7461236 | Wentzlaff | Dec 2008 | B1 |
7461361 | Rhee | Dec 2008 | B2 |
7539845 | Wentzlaff et al. | May 2009 | B1 |
7577874 | Jones et al. | Aug 2009 | B2 |
7620791 | Wentzlaff | Nov 2009 | B1 |
7624248 | Wentzlaff | Nov 2009 | B1 |
7636835 | Ramey et al. | Dec 2009 | B1 |
7734894 | Wentzlaff et al. | Jun 2010 | B1 |
7734895 | Agarwal et al. | Jun 2010 | B1 |
7774579 | Wentzlaff et al. | Aug 2010 | B1 |
7793074 | Wentzlaff et al. | Sep 2010 | B1 |
7805575 | Agarwal et al. | Sep 2010 | B1 |
7818725 | Agarwal et al. | Oct 2010 | B1 |
7840914 | Agarwal et al. | Nov 2010 | B1 |
7853752 | Agarwal et al. | Dec 2010 | B1 |
7853754 | Agarwal et al. | Dec 2010 | B1 |
20040250046 | Gonzalez et al. | Dec 2004 | A1 |
20040268286 | New et al. | Dec 2004 | A1 |
20060150138 | Rhee | Jul 2006 | A1 |
20060161875 | Rhee | Jul 2006 | A1 |
20060179429 | Eggers et al. | Aug 2006 | A1 |
20070180334 | Jones et al. | Aug 2007 | A1 |
20080211538 | Lajolo et al. | Sep 2008 | A1 |
20080229059 | May | Sep 2008 | A1 |
20090103854 | Beausoleil et al. | Apr 2009 | A1 |
20090103855 | Binkert et al. | Apr 2009 | A1 |
20140149992 | Zimmer et al. | May 2014 | A1 |
Number | Date | Country |
---|---|---|
WO 2004072796 | Aug 2004 | WO |
Entry |
---|
Adve, Vikram et al., “Performance Analysis of Mesh Interconnection Networks with Deterministic Routing.” IEEE: Transactions on Parallel and Distributed Systems, vol. 5, No. 3, Mar. 1994, pp. 225-246. |
Dally et al., “Deadlock-free Message Routing in Multiprocessor Interconnection Networks,” IEEE Transactions on Computers, C-36(5) (May 1987), pp. 547-553. |
USPTO Non-Final Office Action in U.S. Appl. No. 11/404,207, mailed Nov. 13, 2008, 9 pages. |
USPTO Non-Final Office Action in U.S. Appl. No. 11/404,187, mailed Feb. 5, 2009, 15 pages. |
USPTO Non-Final Office Action in U.S. Appl. No. 11/404,655, mailed Mar. 23, 2009, 14 pages. |
USPTO Non-Final Office Action in U.S. Appl. No. 12/130,462, mailed Mar. 3, 2009, 8 pages. |
Agarwal, Anant. “Raw Computation,” Scientific American vol. 281, No. 2: 44-47, Aug. 1999. |
Taylor, Michael Bedford et. al., “Evaluation of the Raw Microprocessor: An Exposed-Wire-Delay Architecture for ILP and Streams,” Proceedings of International Symposium on Computer Architecture, Jun. 2004. |
Taylor, Michael Bedford et. al., “Scalar Operand Networks: On-Chip Interconnect for ILP in Partitioned Architectures,” Proceedings of the International Symposium on High Performance Computer Architecture, Feb. 2003. |
Taylor, Michael Bedford et. al., “A 16-Issue Multiple-Program-Counter Microprocessor with Point-to-Point Scalar Operand Network,” Proceedings of the IEEE International Solid-State Circuits Conference, Feb. 2003. |
Taylor, Michael Bedford et. al., “The Raw Microprocessor: A Computational Fabric for Software Circuits and General-Purpose Programs,” IEEE Micro, pp. 25-35, Mar.-Apr. 2002. |
Lee, Walter et. al., “Space-Time Scheduling of Instruction-Level Parallelism on a Raw Machine,” Proceedings of the Eighth International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS-VIII), San Jose, CA, Oct. 4-7, 1998. |
Kim, Jason Sungtae et. al., “Energy Characterization of a Tiled Architecture Processor with On-Chip Networks,” International Symposium on Low Power Electronics and Design, Seoul, Korea, Aug. 25-27, 2003. |
Barua, Rajeev et. al., “Compiler Support for Scalable and Efficient Memory Systems,” IEEE Transactions on Computers, Nov. 2001. |
Waingold, Elliot et. al., “Baring it all to Software: Raw Machines,” IEEE Computer, pp. 86-93, Sep. 1997. |
Lee, Walter et. al., “Convergent Scheduling,” Proceedings of the 35th International Symposium on Microarchitecture, Istanbul, Turkey, Nov. 2002. |
Wentzlaff, David and Anant Agarwal, “A Quantitative Comparison of Reconfigurable, Tiled, and Conventional Architectures on Bit-Level Computation,” MIT/LCS Technical Report LCS-TR-944, Apr. 2004. |
Suh, Jinwoo et. al., “A Performance Analysis of PIM, Stream Processing , and Tiled Processing on Memory-Intensive Signal Processing Kernels,” Proceedings of the International Symposium on Computer Architecture, Jun. 2003. |
Barua, Rajeev et. al., “Maps: A Compiler-Managed Memory System for Raw Machines,” Proceedings of the Twenty-Sixth International Symposium on Computer Architecture (ISCA-26), Atlanta, GA, Jun. 1999. |
Barua, Rajeev et. al., “Memory Bank Disambiguation using Modulo Unrolling for Raw Machines,” Proceedings of the Fifth International Conference on High Performance Computing, Chennai, India, Dec. 17-20, 1998. |
Agarwal, A. et. al., “The Raw Compiler Project,” Proceedings of the Second SUIF Compiler Workshop, Stanford, CA, Aug. 21-23, 1997. |
Taylor, Michael Bedford et. al., “Scalar Operand Networks,” IEEE Transactions on Parallel and Distributed Systems (Special Issue on On-Chip Networks), Feb. 2005. |
Taylor, Michael. The Raw Prototype Design Document V5.01 [online]. Department of Electrical Engineering and Computer Science, Massachusetts Institute of Technology, Sep. 6, 2004 [retrieved on Sep. 25, 2006]. Retrieved from the Internet: <ftp://ftp.cag.lcs.mit.edu/pub/raw/documents/RawSpec99.pdf>. |
Moritz, Csaba Andras et. al., “Hot Pages Software Caching for Raw Microprocessors,” MIT/LCS Technical Memo LCS-TM-599, Aug. 1999. |
United States Patent & Trademark Office, Non-final Office Action issued in U.S. Appl. No. 12/169,436, mailed Dec. 27, 2010, 13 pages. |
United States Patent & Trademark Office, Non-final Office Action issued in U.S. Appl. No. 12/169,442, mailed Dec. 27, 2010, 11 pages. |
United States Patent & Trademark Office, Non-final Office Action issued in U.S. Appl. No. 12/169,456, mailed Sep. 14, 2010, 9 pages. |
United States Patent & Trademark Office, Non-final Office Action issued in U.S. Appl. No. 12/169,456, mailed Jun. 15, 2011, 12 pages. |
Number | Date | Country | |
---|---|---|---|
Parent | 12169442 | Jul 2008 | US |
Child | 13278676 | US |