Universal systolic array

By designing the systolic array computing unit and using the bus connection of the crossbar switch and the general-purpose ALU, the problem of low efficiency and insufficient resource utilization of the existing parallel computing system in processing intensive linear algebra operations and other tasks is solved, and efficient tasks are achieved. Execution and hardware resource management.

CN118829976APending Publication Date: 2024-10-22GDM HOLDING LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380020480.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-03-24
Filing Date
2023-02-14
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

When existing parallel computing systems execute multiple parallel operating elements, it is difficult to efficiently handle tasks such as intensive linear algebra operations, sorting, compression, and dynamic programming. In addition, hardware resources are not fully utilized, and there are contention and arbitration problems.

Method used

A systolic array computing unit is designed, including a crossbar switch, a general-purpose arithmetic logic unit (ALU) and a register file. Instructions and data propagation between units are realized through bus connection, allowing each cycle to receive two source vectors and generate at least A result vector that supports SIMD operations and the ability to programmatically execute loop blocks to change the behavior of the array to suit different tasks.

Benefits of technology

Enables efficient dense and sparse matrix multiplication, integer and string sorting, compression, and execution of dynamic programming algorithms, eliminating contention and arbitration, improving hardware resource utilization, and determining data propagation speeds through static compiler analysis , ensuring the predictability and efficiency of calculations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118829976A_ABST
    Figure CN118829976A_ABST
Patent Text Reader

Abstract

A systolic array cell is described that includes a register file and two general arithmetic logic units (ALUs). The plurality of cells may be configured in a matrix or array such that an output of a first ALU in a first cell is provided to a second cell on the right side of the first cell and an output of a second ALU in the first cell is provided to a third cell below the first cell. The two ALUs in each cell of the array allow different instructions to be processed in each cycle.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is a continuation of U.S. patent application No. 17 / 703,479 filed on March 24, 2022, the disclosure of which is hereby incorporated by reference herein. Background Art

[0003] The general parallel computing problem is how to build a general-purpose computer with multiple parallel operating elements that can be efficiently used for a single computing problem. Existing solutions include fixed-function systolic arrays, where the matrix multiplication unit (MXU) of the tensor processing unit (TPU) and the tensor core of the graphics processing unit (GPU) perform matrix multiplication. Early systolic arrays had very small node counts, such as 8 nodes. GPUs can only reach their peak on matrix multiplication. Multi-core central processing units (CPUs) only reach tens or sometimes hundreds of parallel cores. Vector machines have computational units that are one-dimensional. Summary of the invention

[0004] The present disclosure provides a computing unit capable of performing operations beyond dense linear algebra. Such operations may include sparse linear algebra, sorting, compression, dynamic programming, and multiple permutations and table lookup tasks. The computing unit includes a systolic array of cells, each of which includes a crossbar switch, one or more general arithmetic logic units (ALUs), and a register file, which receives outputs from one or more general ALUs and provides the output back to the crossbar switch. The cells are connected by a bus, which carries the right output from a cell to the left input of the next cell facing it, or the bus carries the bottom output from a cell to the top input of the next cell below.

[0005] A systolic array can be programmed to execute loop blocks, each of which is a sequence of instructions that is executed once in all cells of the systolic array. The loop block starts at the top left (0,0) origin of the array and propagates through the array along the anti-diagonal line, but the only hardware order constraint is that the top predecessor and the left predecessor must have been executed before the current cell. Different loop blocks change the behavior of the systolic array. Running different loop blocks allows the execution of: dense or sparse matrix multiplication; sorting of integers, records, and strings; compression; and dynamic programming algorithms to map to systolic arrays. At the edges of the array, data is fed in as vectors along the top and left, propagated through the array and modified by the loop block program, and then output vectors are produced on the bottom and right. These input and output vectors can be serviced by standard vector or SIMD load / store engines.

[0006] One aspect of the present disclosure provides a systolic cell, the systolic cell comprising: a crossbar switch; a first arithmetic logic unit (ALU), the first ALU coupled to a first output of the crossbar switch; a second ALU, the second ALU coupled to a second output of the crossbar switch; and a register file, the register file configured to receive outputs from the first ALU and the second ALU as inputs to the register file. The outputs of the register file may be provided to the inputs of the crossbar switch. The crossbar switch may be configured to receive outputs from one or more adjacent systolic cells as inputs to the crossbar switch. According to some examples, at least one of the first ALU or the second ALU may include a multiplier.

[0007] The register file may use relatively small registers, such as 64-bit registers or smaller. According to some examples, the crossbar is a 4×4 crossbar configured to receive two inputs from the register file and two inputs from adjacent cells and provide two outputs to the first ALU and two outputs to the second ALU.

[0008] In other examples, the systolic cell further includes a third arithmetic logic unit coupled between the crossbar switch and the register file.

[0009] Another aspect of the present disclosure provides a systolic array, the systolic array comprising: a plurality of cells arranged such that a first output of a first cell is provided as an input to an adjacent second cell, and a second output of the first cell is provided as an input to an adjacent third cell. Each of the cells in the array may include: a cross switch; one or more ALUs coupled to the output of the cross switch; a register file configured to receive outputs from the first ALU and the second ALU as inputs to the register file. The one or more ALUs may be general-purpose ALUs. According to some examples, the output of the register file in each cell is provided to the input of the cross switch in the same cell.

[0010] The one or more ALUs may include a first ALU coupled to a first output of the crossbar switch and a second ALU coupled to a second output of the crossbar switch. In some examples, the crossbar switch of the fourth cell is configured to receive an output from the first ALU of the third cell and an output from the second ALU of the second cell as inputs to the crossbar switch.

[0011] According to some examples, the array is configured to receive two source vectors and produce at least one result vector per cycle.

[0012] Another aspect of the present disclosure provides a systolic array cell, wherein the cell includes a register file and two general arithmetic logic units (ALUs). Multiple cells can be configured into a matrix or array so that the output of a first ALU in a first cell is provided to a second cell to the right of the first cell, and the output of a second ALU in the first cell is provided to a third cell below the first cell. The two ALUs in each cell of the array allow different instructions to be processed in each cycle.

[0013] Another aspect of the present disclosure provides a computing system, the computing system comprising: one or more memories; one or more processors, the one or more processors communicating with the one or more memories; and a plurality of cells, the plurality of cells communicating with the one or more processors, the plurality of cells being arranged so that a first output of a first cell is provided as an input to an adjacent second cell, and a second output of the first cell is provided as an input to an adjacent third cell. Each cell may include: a cross switch; a first arithmetic logic unit (ALU), the first ALU coupled to a first output of the cross switch; a second ALU, the second ALU coupled to a second output of the cross switch; and a register file, the register file being configured to receive outputs from the first ALU and the second ALU as inputs to the register file.

[0014] The one or more processors may include at least one of a scalar core and a vector processing unit. The one or more memories may include a vector data cache.

[0015] According to some examples, the system also includes a sequencer configured to control instructions sent to the one or more processors and the plurality of cells.

[0016] The array may be configured to receive two source vectors and produce at least one result vector per cycle. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 is a circuit diagram illustrating an example cell according to aspects of the present disclosure.

[0018] Figure 2 Shows Figure 1 Example arrays of monomers.

[0019] Figure 3 An example hardware implementation according to aspects of the present disclosure is shown.

[0020] Figure 4 An example system according to aspects of the present disclosure is shown.

[0021] Figure 5 An example computing environment according to aspects of the present disclosure is shown.

[0022] FIG. 6A to FIG. 6C An example of a multi-cycle fragment propagating between cells over time is shown in accordance with aspects of the present disclosure.

[0023] 7A to 7E Example executions of operations with varying degrees of misalignment in accordance with aspects of the present disclosure are shown.

[0024] Figure 8 is an example timing diagram showing the combined timing of vector unit, stagger insertion, LHS corner transposition (cornerturn), matrix unit, RHS corner transposition, destagger, skid buffer, and value return to the vector unit.

[0025] Figures 9 to 13 Various example operations according to aspects of the present disclosure are shown. DETAILED DESCRIPTION

[0026] According to the present disclosure, a systolic array monomer includes a register file and one or more general arithmetic logic units (ALUs). Each of the one or more ALUs can receive input from the output port of the cross switch. The output of the ALU can be input to the register file, which is then input back into the cross switch. The output from the ALU can also be input to an adjacent monomer. For example, the output from the first ALU can be input to the cross switch of the second monomer on the right side of the array. The output from the second ALU can be input to the cross switch of the third monomer below the array. The bus can be generalized so that there are one or more horizontal buses and one or more vertical buses controlled by a programmer. The bus can be unidirectional so that only downward connections and rightward connections are included. This can avoid arbitration.

[0027] Instructions can be delivered in a pulsating manner, so the array behaves in a single instruction / multiple data (SIMD) manner. For example, a spanning tree of cells can be used to execute an instruction stream so that the predecessor cell to the left or top of the current cell has a previous instruction. A single control unit at the top left corner of the array can deliver instructions to the upper left corner of the array. The instruction then propagates through the array along an anti-diagonal wavefront. In other words, for a given cell in the array, the cell can receive input from an upstream adjacent neighbor and pass output to a downstream adjacent neighbor, where the terms upstream and downstream are relative to the direction in which the instruction or data propagates through the array. Each instruction accesses all cells of a rectangular pulsating array once. This delivery provides SIMD-style control, with one control unit for all cells, but with pipeline delivery. According to some examples, the array can be a one-dimensional vector cell controlled using pipeline instructions.

[0028] The array can be configured to perform different tasks by changing the program running in the cells. The array can operate as a dense or sparse matrix multiplier, or as a sorting network, or as a compressor, or as a stage in a dynamic programming calculation.

[0029] By design, the parallel computing method described herein has no contention or arbitration between concurrently operating units. Like a systolic array matrix multiplier or a very long instruction word (VLIW), program execution time can be determined entirely by analyzing the source code, without relying on data.

[0030] Figure 1 It shows that it can be used as Figure 2 An example cell 100 of a computing unit 200 is shown. Cell 100 may be a flexible arithmetic logic pulsating two-dimensional cell. Cell 100 may have an architecture similar to a matrix multiplication unit (MXU). However, cell 100 includes one or more arithmetic logic units (ALUs) 120, 130, rather than fixed-function multiplication-accumulation hardware. According to some examples, a floating-point ALU may be used. In addition, a SIMD-within-register ALU may be used, thereby performing four 8-bit operations within a 32-bit register file. Although two ALUs are shown and described in this example, in other examples, additional or fewer ALUs may be implemented.

[0031] ALU 120, 130 can be, for example, a general purpose ALU or a specialized ALU. ALU 120, 130 can be 16-bit, 32-bit, 64-bit, or any other value. Although in some examples, both ALU 120, 130 are of the same type and size, in other examples, ALU 120, 130 can be different from each other. According to some examples, ALU 120 can be equipped with a multiplier, such as a 16b, 32b, or other multiplier. The size of the multiplier can vary relative to the size of the ALU. According to other examples, the ALU can be capable of performing other types of specialized operations, such as a population count and a find-first-set / find-first-zero / count-leading-sign bit operation.

[0032] Although Figure 1Two ALUs 120, 130 are shown, but in other examples, additional or fewer ALUs may be included. The ALUs in a call may all be driven by the same VLIW instruction bundle, so that the single body executes the bundle in a single cycle. The instruction bundle may include as many operations as there are ALUs in the single body.

[0033] Each of the two ALUs 120, 130 may be coupled to an output of the crossbar switch 110. Figure 1 In the example shown in FIG. 1 , crossbar switch 110 is a 4×4 crossbar switch. In other examples, other types of crossbar switches may be used. Inputs to crossbar switch 110 may include outputs from adjacent cells, such as cells to the left or cells above in the array. Inputs to crossbar switch 110 may also include one or more outputs from general register file 150, described further below.

[0034] The outputs of the two ALUs 120, 130 may be input to a multiplexer 140, which may further be input to a register file 150. According to some examples, the multiplexer 140 may select one of the ALU outputs for writing to the register file. For example, the multiplexer 140 may select the output based on the instruction being transmitted. For example, given that the first ALU writes to its corresponding bus and the second ALU writes to the bundle of the register file, the multiplexer may select the second ALU. In examples where the register file includes an additional port, the two ALU outputs may be written to the register file per cycle. In such examples, the multiplexer 140 may be omitted.

[0035] Register file 150 may be relatively small, such as having 8 entries, etc. Register file 150 in monomer 100 may be general purpose registers, rather than dedicated registers as used in MXU monomers. According to some examples, the monomer does not include large local storage. According to other examples, addressable memory may be included.

[0036] Each of the two ALUs 120, 130 can be controlled with a true instruction stream. In this regard, each single cell 100 in the array can execute instructions at different instruction cycles. The control unit also propagates instructions along an anti-diagonal wavefront in a rectangular array, so each instruction accesses each single cell in the array once.

[0037] Figure 2 An example computing unit 200 is shown, including a computer having the Figure 1An array of monomers 100 of the described architecture. In this example, the computing unit 200 is a rectangular two-dimensional pulsating array. The wires 202, 205 that form the connection between the monomers of the array flow from the top to the bottom and from the left to the right. For example, the wire 202 can couple the output of the monomer 100 to the input of the monomer 102 on the right side of the monomer 100, and the wire 205 can couple the output of the monomer 100 to the input of the monomer 103 below the monomer 100. Each monomer in the array receives inputs from the top and the left, performs calculations, and sends outputs downward and to the right. Data propagates through the rectangular array along the anti-diagonal wavefront. The orthogonal wires of the pulsating array 200 can match the metal layers of modern semiconductor processes. Although examples of connections between monomers according to specific directions and orientations (e.g., top to bottom and left to right) are provided herein, it should be understood that other arrangements are possible, for example, bottom to top and right to left.

[0038] The array 200 may have various dimensions. For example, the array 200 may be square with an equal number of monomers in each dimension (e.g., horizontally and vertically). Such a square array may have dimensions of, for example, 16, 32, 64, or any other number. According to other examples, the array 200 may be rectangular with a different number of monomers in each dimension. The dimensions of the array 200 may be related to the vector length of the base core. In this regard, vector load and store operations on the base core may be matched with push / pop operations in each monomer.

[0039] Array 200 can fit in a tiny corner of a chip. Furthermore, it consumes very little power while still being efficient in performing calculations.

[0040] Although array 200 can be a rectangular systolic array, software can be implemented to simulate other topologies. Other example topologies include, for example, a multidimensional torus, a grid, a hypercube, a butterfly, a fat tree, or a ring. For example, array 200 can perform a variety of functions, including but not limited to: permutation and multi-port table lookups; sorting integers, strings, and records; compression using Burrows-Wheeler Transform; alignment of gene sequences using dynamic programming and the Smith-Waterman algorithm, etc.

[0041] The monomer 100 may execute different instructions per cycle. The sequencer may control the instructions sent to each monomer 100. Each monomer 100 includes one or more general-purpose ALUs, each of which may perform a set of standard operations. For example, each monomer 100 may include one, two, four, six or more general-purpose ALUs. Each monomer 100 is fed with an instruction stream that directs what to do per cycle. In the example where the monomer includes 2 ALUs, each monomer 100 may perform twice the work of a system with one ALU per monomer per cycle. The pulsation wavefront propagates through the array 200 on an anti-diagonal pipeline, so that such work is performed by the monomer 100 per cycle. For example, instructions may be delivered in a pulsating manner, so that the array behaves in a SIMD manner. Instructions propagate along the anti-diagonal wavefront, for example, from the left side to the right side of the array. Each instruction requires B cycles to advance through the array, where B=2*(dimension of the array)-1. Each instruction uses a different set of ALUs per single cycle.

[0042] According to some examples, flip-flops can be used to implement cycle boundaries. For example, a flip-flop in a given cell can hold a value for an adjacent cell. A flip-flop can be located at each cell boundary. In a single cycle, all register reads and register writes occur in one register cycle. However, more complex systems can use pipelines and bypass networks to reduce clock cycle times and improve clock rates. Inter-cell registers that are not implemented as part of the register file also need to be on the same clock.

[0043] The collective operation of the entire array 200 of cells defines the behavior of the cell. For example, the sort kernel looks like:

[0044] b=min(t,l); r=max(t,l)

[0045] In a single cycle, the dual operation bundle instructs one ALU to write the bottom (b) output with the minimum of the top (t) and left (l) inputs. At the same time, the other ALU writes the right (r) output with the maximum of the top and left inputs. A single cell performs the "compare-and-swap" operation of the sorting network. However, when grouped into a whole N of compare-and-swap operations, 2 When a single cell systolic array, the unit will permute any input vector into sorted order, effectively implementing a quadratic bubble sort network.

[0046] Figure 3An example hardware implementation is shown. As shown, the implementation includes a matrix unit 310, and injections from the left and top of the matrix unit. The matrix unit 310 may receive inputs from a vector unit 320. For example, as shown, data from the vector unit 320 is input to the top and left hand side of the matrix unit 310. The scalar core 360 ​​provides inputs to the matrix unit 310 and the vector unit 320. The vector unit 320 communicates with a vector data cache 330, which communicates with a memory controller 340. The scalar core 360 ​​receives instructions from an instruction cache 380 coupled to the memory controller 340 and an L1 cache 370. The L1 cache 370 may be supported by one or more other cache levels. The memory controller 340 may communicate with the main memory 350 of the computing system. In some implementations, the vector data cache 330 is an L2 data cache, and L1 data cache 370 misses are serviced from the vector data cache. In some implementations, consistency is implemented among all caches by hardware including a memory controller.

[0047] although Figure 3 310, but the outputs from the matrix unit 310 can be fed back into the vector unit 320. For example, outputs can be generated from the bottom and right hand side of the matrix unit 310. Such outputs can be looped back into the vector unit 320 as inputs. In this regard, full cycle connectivity can be obtained. For example, subsequent calculations can be used to process data from previous waves.

[0048] The scalar core 360 ​​and the vector unit 320 may be part of a base core built according to an instruction set architecture (ISA). The scalar core 360 ​​performs branches and generates addresses. The vector unit 320 moves data between the memory system and each monomer of the matrix monomer 310. The memory system may include, for example, one or more of the main memory 350, the memory controller 340, and / or the vector data cache 330. The base core may include a vector coprocessor expansion port for connecting to the matrix unit 310. From the perspective of the base vector unit 320, each monomer of the matrix 310 may behave as a coprocessor or an extended vector ALU, to which two source vectors are sent, and in return, a result vector is received per cycle.

[0049] The matrix unit 310 may be, for example, an array of monomers, such as Figure 1 The monomer is composed of 100 Figure 2 Based on such an architecture, the matrix unit 310 can perform sorting operations, semi-ring operations (such as comparison, maximum-reduce), etc.

[0050] The vector unit 320 may be a processor or computing unit that can operate on an entire vector in one instruction. The vector unit 320 may include, for example, a RISC-V instruction set architecture (ISA) or other types of architectures. The vector unit 320 may include vectors of data, indexes, block addresses, or other information.

[0051] Vector data cache 330 may be a cache or other type of memory or storage unit that holds vector data accessed by vector unit 320 .

[0052] The scalar core 360 ​​may be a processor that performs calculations on one number or set of data at a time. The scalar core 360 ​​may include, for example, a RISC-V ISA extension. The scalar core 360 ​​may perform branches and generate addresses. A sequencer may control the order in which instructions are executed by the scalar core 360, the vector unit 320, and the matrix unit 310. In some implementations, scalar, vector, and matrix instructions all occur in a single instruction stream.

[0053] Figure 4 4 is a block diagram of a data processing system 401 that implements an example computing unit 400. The computing unit 400 can be any of a variety of different computing units, such as those described herein. Figures 1 to 3 An array 200 of cells 100 is depicted. Computing unit 400 may implement any of a variety of combinations of horizontal and vertical circuits as described throughout this specification.

[0054] The data processing system may include a host interface 405, a sequencer circuit 410, one or more processors 415, a memory 420, and a timing circuit 425. The data processing system 401 may be implemented in one or more devices across one or more physical locations, as described herein with reference to Figure 5 In some examples, the components of the described data processing system 401 may be implemented on one or more chips that may interface with a host device according to any of a variety of data buses or other physical interconnect interfaces. In some examples, the data processing system 401 may be implemented on one or more devices on a network, for example, on one or more servers of a cloud platform.

[0055] The processor 415 and the memory 420 may be as described herein with reference to Figure 5 Any of the various different types of processors and memories described. In some examples, processor 415 receives instructions that can be executed by computing unit 400 to process data. For example, the instructions can be part of a computer program written to perform operations using computing unit 400.

[0056] The sequencer circuit 410 may convert received instructions into one or more signals understood by the computing unit 400, which cause the computing unit 400 to perform any of a variety of preconfigured operations. These operations may include: loading data, such as from the memory 420, into the systolic array of the computing unit 400, moving the data to one or more of the processing elements of the systolic array, processing the data by one or more processing elements, and pushing the data out of the systolic array. The sequencer circuit 410 may also be configured to generate one or more control signals to control when instructions are pushed to the computing unit 400.

[0057] Host interface 405 may be configured to receive data from outside of data processing system 401 (eg, from a processor or another device) and send data generated by computation unit 400 (eg, products of matrix multiplication) to one or more devices or processors.

[0058] Timing circuit 425 may be configured to control the timing of the computing unit, such as the clock frequency or clock rate of the computing unit. For example, operations performed by computing unit 400 may be performed once per clock cycle, where such clock cycles are managed by timing circuit 425.

[0059] Data processing system 401 may also be connected to power source 1030. Power source 430 may be a battery or other form of power available on a host device implementing the data processing system, or may be a source that is external to the host device and connected to the host device and data processing system 401 by some wireless or physical connection (e.g., by wires). Power source 430 may supply a voltage to computing unit 400 that may be managed by processor 415, e.g., adjusted higher or lower.

[0060] Figure 5 5 is a block diagram of an example environment 500 for implementing a data processing system 401 including a computing unit 400. System 501 may be implemented on one or more devices having one or more processors in one or more locations, such as in a server computing device 505. User computing devices 512 and server computing devices 505 may be communicatively coupled to one or more storage devices 530 via a network 560. Storage devices 530 may be a combination of volatile and non-volatile memory and may be located in the same or different physical locations as computing devices 512, 505. For example, storage devices 530 may include any type of non-transitory computer-readable medium capable of storing information, such as a hard drive, a solid-state drive, a tape drive, optical storage, a memory card, ROM, RAM, DVD, CD-ROM, writable memory, and read-only memory.

[0061] The server computing device 505 may include one or more processors 513 and memory 514. The memory 514 may store information accessible by the processor 513, including instructions 521 executable by the processor 513. The memory 514 may also include data 523 that may be retrieved, manipulated, or stored by the processor 513. The memory 514 may be a type of non-transitory computer-readable medium capable of storing information accessible by the processor 513, such as volatile memory and non-volatile memory. The processor 513 may include one or more central processing units (CPUs), graphics processing units (GPUs), field programmable gate arrays (FPGAs), and / or application-specific integrated circuits (ASICs), such as tensor processing units (TPUs).

[0062] Instructions 521 may include one or more instructions that, when executed by processor 513, cause one or more processors to perform actions defined by the instructions. Instructions 521 may be stored in an object code format for direct processing by processor 513, or in other formats including interpretable scripts or independent source code module collections that are interpreted on demand or compiled in advance. Instructions 521 may include instructions for implementing system 401 consistent with aspects of the present disclosure. System 401 may be executed using processor 513 and / or using other processors located remotely from server computing device 505.

[0063] Data 523 may be retrieved, stored, or modified by processor 513 according to instructions 521. Data 523 may be stored in a computer register, in a relational or non-relational database as a table with multiple different fields and records, or as a JSON, YAML, proto, or XML document. Data 523 may also be formatted in a computer readable format, such as, but not limited to, binary values, ASCII, or Unicode. In addition, data 523 may include information sufficient to identify the relevant information, such as a number, descriptive text, proprietary code, pointer, reference to data stored in other storage (including other network locations), or information used by a function to calculate the relevant data.

[0064] The user computing device 512 may also be configured similarly to the server computing device 1105, with one or more processors 516, memory 517, instructions 518, and data 519. The user computing device 512 may also include user output 526 and user input 524. The user input 524 may include any suitable mechanism or technology for receiving input from a user, such as a keyboard, a mouse, a mechanical actuator, a soft actuator, a touch screen, a microphone, and a sensor.

[0065] The server computing device 505 may be configured to transmit the data to the user computing device 512, and the user computing device 512 may be configured to display at least a portion of the received data on a display implemented as part of the user output 526. The user output 526 may also be used to display an interface between the user computing device 512 and the server computing device 505. The user output 526 may alternatively or additionally include one or more speakers, transducers or other audio outputs, tactile interfaces, or other tactile feedback that provides non-visual and non-auditory information to a platform user of the user computing device 512.

[0066] although Figure 5 Processor 513 and memory 514 are shown as being within computing device 505, but the components described in the specification (including processor 513 and memory 514) may include multiple processors and memories that may operate in different physical locations rather than within the same computing device. For example, processor 513 may include a collection of processors that may perform concurrent and / or sequential operations.

[0067] The server computing device 505 may be configured to receive requests for processing data from the user computing device 512. For example, the environment 500 may be part of a computing platform configured to provide a variety of services to users through various user interfaces and / or APIs that expose the platform services. One or more services may be a machine learning framework, or a set of tools for generating neural networks or other machine learning models based on specified tasks and training data. The user computing device 512 may receive and transmit data specifying operations to be performed by the computing unit 400.

[0068] Devices 512, 505 may be able to communicate directly and indirectly over network 560. Devices 505, 512 may set up listening sockets that may accept initiated connections for sending and receiving information. Network 560 itself may include a variety of configurations and protocols, including the Internet, the World Wide Web, an intranet, a virtual private network, a wide area network, a local area network, and a private network using one or more company-proprietary communication protocols. Network 560 may support a variety of short-range and long-range connections. Short-range and long-range connections may be made over different bandwidths, such as 2.402 GHz to 2.480 GHz (commonly used with wireless networks). standards), 2.4 GHz and 11 GHz (often associated with or using multiple communication standards, such as for wireless broadband communications Additionally or alternatively, the network 1160 may also support wired connections between the devices 1112, 1105, including through various types of Ethernet connections.

[0069] although Figure 5A single server computing device 505, a user computing device 512, and a data processing system 4001 are shown, but it should be understood that aspects of the present disclosure may be implemented according to a variety of different configurations and numbers of computing devices (including in examples for sequential or parallel processing), or implemented through a distributed network of multiple devices. In some implementations, aspects of the present disclosure may be performed on a single device and any combination thereof. In some examples, one or more devices implement one or more data processing systems, each of which includes one or more computing units according to aspects of the present disclosure. In some examples, a single device may implement multiple computing units, each of which is configured to communicate with at least one other computing unit to perform distributed data processing tasks, such as in sequential or parallel processing.

[0070] Aspects of the present disclosure may be implemented in digital circuits, computer-readable storage media, as one or more computer programs, or a combination of one or more of the foregoing. The computer-readable storage medium may be non-transitory, for example, as one or more instructions executable by a cloud computing platform and stored on a tangible storage device.

[0071] The systolic array described above can be programmed to execute loop blocks, each of which is a sequence of instructions that is executed once in all cells of the systolic array. The loop block starts at the top left (0,0) origin of the array and propagates through the array along the anti-diagonal line, but the only hardware order constraint is that the top predecessor and the left predecessor must have been executed before the current cell. Different loop blocks change the behavior of the systolic array. Running different loop blocks allows the execution of: dense or sparse matrix multiplication; sorting of integers, records, and strings; compression; and dynamic programming algorithms to map to the systolic array. At the edges of the array, data is fed in as vectors along the top and left, propagated through the array and modified by the loop block program, and then output vectors are produced on the bottom and right. These input and output vectors can be serviced by standard vector or SIMD load / store engines.

[0072] Software pipelining can be performed at each cell 100 and at the array 200. A software pipelined loop typically has three parts: a prologue, a body, and an epilogue. The body is a steady-state software pipelined program that exhibits best-case throughput in terms of loops initiated per cycle. The prologue has a "spin up" software pipeline so that enough work is run on the inductive logic programming (ILP) machine to reach steady-state work in the body. The epilogue is similar in reverse, and when there are no more iterations, the epilogue "spins down" the machine. The height of the body in the cycle is called the start interval (II). The software pipeline searches for the minimum II (MinII) that can be achieved for the loop. Resources (including registers) can limit II. This resource limit is called resource II (ResII).

[0073] Within array 200, a singleton segment or loop block is written into each singleton 100. Each singleton segment may start with a vector push into the array, with per-singleton instructions propagating through the array along an anti-diagonal wavefront, and finish by returning the result via a vector pop approximately 2N cycles after the first vector push. Each singleton segment is a 2D hardware-supported loop that combines 7A to 7E The further description is performed in a small number of array cycles.

[0074] FIG. 6A to FIG. 6C An example of a multi-periodic fragment, specifically a two-periodic fragment, is shown, and how it propagates from monomer to monomer over time in the array.

[0075] Fig. 6A An example is shown where there are no inter-cell dependencies. The only dependency indicated by the arrow is from one instance of instruction A to the following instance of instruction B. Such dependencies tend to run through the register file, where A writes to a register and B reads that register value. Because these dependencies do not propagate across cell boundaries, they are called temporal dependencies. This case corresponds to a misalignment of 0, but it requires that the data already exists in each cell.

[0076] Figure 6BAn example is shown that includes inter-cell dependencies, but only from an instance of an instruction to an instance of the same instruction in the next cell. The instructions may be, for example, a VLIW bundle consisting of one or more RISC-style operations. Because inter-cell dependencies are carried through wires and flip-flops between cells, the right instance of each instruction obtains its input one cycle later than the left instance. In this case, it is correct that the cell fragments are offset in time by one cycle - corresponding to a misalignment of 1. The temporal dependency from A to B does not affect the misalignment. Even if operation A requires a delay of multiple cycles to complete, the spatial dependencies from A to A and from B to B can be performed with a misalignment of 1. Any processing from left to right or from top to bottom is completed in a single cycle.

[0077] Figure 6C An example is shown where the inter-cell dependency goes from instruction B to instruction A. This case runs slower because the left instance of instruction B completes its work before passing its output to the right instance of instruction A. This case corresponds to a stagger of 2. This example will take 4N-2 cycles to execute this pair of instructions, rather than the 2N-1 cycles required to execute a single instruction.

[0078] When a single cell segment uses a bus, the bus maintains flow conservation so that a single cell segment writes to the bus as many times as it reads from it, and the program relies on the in-order delivery of these values ​​on the bus. Each write of a value occurs in the single cell segment at the same or later cycle as the original read of the value. If the read and write occur in the same cycle, the dependency causes a misalignment of 1. If the write occurs d cycles after the read, the dependency causes a misalignment of d+1. The misalignment for the entire program is the maximum over all such bus write / read pairs. To support control misalignment, short instruction FIFOs are included between the single cells. For example, the FIFO can be about 8 instructions or less.

[0079] 7A to 7E Shows Figure 2 An example array period diagram of array 200 of FIG. An array period can be defined algebraically as a set of space-time triplets (i, j, i+j); i∈[0,N), j∈[0,N), which form a wavefront that sweeps sequentially in time across an anti-diagonal sequence. Each array period accesses N2 monomers, so it can perform N2 work and requires a latency of 2N-1 cycles to complete. Such array periods are pipelined so that each cycle can initiate an array period from the upper left corner monomer of the array. After 2N cycles, the sequence fully utilizes the array. A sequence of M consecutive array periods will require M+2N-2 cycles to complete.

[0080] Fig. 7Arepresents the array in a single clock cycle. The array includes a plurality of cells in a first dimension, shown as 4 cells in the i dimension, but it is understood that other numbers of cells may be included to provide different values ​​for the i dimension. Fig. 7A The array shown in also includes multiple monomers in the j dimension, shown here as 4 monomers. Similarly, it should be understood that the value of j can vary and can be the same as or different from the value of i.

[0081] Figure 7B A 3D diagram is shown where the two spatial dimensions of a pulsating array are two dimensions and time is the third dimension. The array period is the diagonal plane that cuts this 3D diagram at a 45 degree angle between the time dimension and the two spatial dimensions. In this array period diagram, N2=42=16 lighter shaded blocks require 2N-1=7 cycles to execute, with the lighter shaded wavefront traveling to each consecutive spatial anti-diagonal at a rate of one anti-diagonal per cycle.

[0082] FIG. 7C to FIG. 7D Example dislocations are shown, including a multi-cycle single-cell procedure. Figure 7C Represents two clock cycles, each with a different shading. Fig.7D Indicates the use of array 200 ( Figure 2 ) is executed as a multi-cycle monolithic program. Although the monolithic program has a multi-cycle length, the program still has an inter-monolithic offset of 1. Fig.7D The cycles of these arrays look like Figure 7B , where the blue array cycle is the most recent (starting at t=1) and the green array cycle is older / earlier (starting at t=0).

[0083] Fig. 7E Examples are shown where the misalignment is greater than one. Fig. 7E A two-cycle program is shown with a true dependency from the blue (second) instruction to the green (first) instruction in the next cell through the bus.

[0084] While the above examples show staggers of one or two instructions, additional staggers may be supported. For example, an array may support a delay between when an instruction begins executing in a cell and when the instruction begins executing on a subsequent cell equivalent to 8 or more instructions.

[0085] Figure 8An example timing diagram showing the combined timing of vector units, misalignment insertion, LHS corner transposition, matrix units, RHS corner transposition, de-misalignment, sliding buffers, and value return to vector units is provided. For example, misalignment is the difference between SIMD / vector parallel timing and systolic / pipeline timing. Data flows through the matrix unit and travels from top to bottom in time. The left half of the figure shows four vector channels and corresponding matrix columns, where time runs vertically in the conceptual stage. Vector data arrives at the vector matrix unit in parallel. The misalignment FIFO injects a delay of i cycles into the data to be injected at the i-th column or row of the matrix unit. The left corner transposition requires 2 cycles of wire and flip-flop delay. In order to ensure that the left input and the top input arrive at the matrix unit synchronously, the top input is delayed by two cycles. The matrix unit has a top-to-bottom delay of four cycles. The right corner transposition and the matching bottom delay require another two cycles. The de-misalignment FIFO adds a delay of Ni-1 cycles to the i-th column. The sliding buffer has room for 2N+2 cycles worth of work so that all previous logic can always flow into it safely. The right half of the figure shows the cycle-by-cycle timing. According to some examples, this can be scaled, such as by using 4 corner transposition cycles, a total of 31 misaligned / unmisaligned cycles and 32 cycles of latency. The right half of the figure shows the effects of misalignment as the operand moves through the matrix cells.

[0086] The computing system described above may be capable of performing various operations, including matrix-vector multiplication, sparse matrix-vector multiplication, permutation, scatter step and gather step, vector manipulation (such as shift, rotation, strided slice, concatenation, append, etc.), sorting, and other operations. According to some examples, the computing system may perform a different permutation per cycle. Figure 8 to Figure 1 2 to describe some example operations.

[0087] Fig. 9 An example collection operation is shown. The collection operation may include parallel generalization of the load. For example, index 604 may be used to collect data from table 602 and provide output 606. The value in index 604 corresponds to the location in table 602 from which the data is collected. For example, program code for the operation may include:

[0088]

[0089] Fig.10 Another collection operation is shown, including a parallel generalization of another load. For example, such an operation can be encoded as:

[0090]

[0091] FIG. 11A to FIG. 11B An example scatter operation is shown. Fig.11A , index 804 can be used to distribute data from table 802 into output 806. However, in some cases, address conflicts may occur. For example, in Fig.11A In the output corresponding to the index value "2", an address conflict occurs because there are two values ​​"2" in the index that point to the same address space in the output. Fig. 11B An example of using a matrix reduction operation to resolve address conflicts is shown. For example, an add operation can be used to add conflicts. In other examples, a maximum value (max) operation can be used to determine the maximum value among any conflicting values ​​that will be returned.

[0092] Figure 11 = 2A-B shows an example sort, such as argsort on a vector of integers. Fig. 12A As shown, a comparison is made between the left and top vector data 920 via matrix 910. Matrix 910 takes a linear input, performs quadratic work, and provides a linear output, thereby pipelined once per cycle. Output 906 can be fed to scatter to sort the data. Fig. 12B As shown, conflicts can be resolved to assign unique locations to replicated data items. This fine-tunes the replicated items so that they each obtain a unique scattered index.

[0093] Figure 12=3 shows an example merge-sort-step operation. A first sorted vector 1012 is pushed at the top of the matrix cell 1010. A second reverse-sorted vector 1013 is pushed at the left side of the matrix cell 1010. The bottom result is a sorted vector 1016. Building the right edge output can produce a reverse-sorted vector 1018. In some examples, the second cycle can be run with opposite polarity. The system may include wiring for optionally returning the right-hand side (RHS) output, rather than using the second cycle to obtain the RHS output using a modified program. For example, such wiring may return one of the bottom or right array edge outputs in a cycle, but both may be available. Two outputs can be obtained through multiple cycles.

[0094] Although a number of example operations are shown above, it should be understood that these are only a few example operations and that the above descriptions may be used in conjunction with the example operations. Figures 1 to 5 With the computing system described, many operations are possible. For example, the computing system may be able to map a large class of doubly nested loops and accelerate them in hardware. Due to memory limitations, the bodies of these doubly nested loops can only depend on previous loop iterations in each dimension, and they can only store what fits in a local register file. However, the previous loop iterations in each spatial dimension and the temporal storage in the register file allow very high dependency chains to be mapped onto the computing system.

[0095] The compute unit described in this article is beneficial because it is completely statically schedulable and predictable. There is no contention, arbitration, or queuing in the architecture, which means there is no tail latency. In addition, there are no dynamic changes in the timing of the array. The speed at which data propagates through the array can be determined completely statically through compiler analysis prior to program execution.

[0096] In this specification, the phrase "configured to" is used in different contexts related to a computer system, hardware, or part of a computer program, engine, or module. When a system is said to be configured to perform one or more operations, it means that the system has appropriate software, firmware, and / or hardware installed on the system, which software, firmware, and / or hardware causes the system to perform one or more operations when in operation. When a piece of hardware is said to be configured to perform one or more operations, it means that the hardware includes one or more circuits that receive inputs when in operation and generate outputs based on the inputs and corresponding to the one or more operations. When a computer program, engine, or module is said to be configured to perform one or more operations, it means that the computer program includes one or more program instructions that, when executed by one or more computers, cause the one or more computers to perform one or more operations.

[0097] Although the operations shown in the drawings and described in the claims are shown in a particular order, it should be understood that the operations may be performed in a different order than shown, and some operations may be omitted, performed more than once, and / or performed in parallel with other operations. In addition, the separation of different system components configured to perform different operations should not be understood as requiring the separation of components. The components, modules, programs, and engines described may be integrated together as a single system, or may be part of multiple systems.

[0098] Unless otherwise stated, the foregoing alternative examples are not mutually exclusive, but may be implemented in various combinations to achieve unique advantages. Since these and other variations and combinations of the features discussed above can be utilized without departing from the subject matter defined by the claims, the description of the foregoing embodiments should be made in an illustrative manner rather than in a manner that limits the subject matter defined by the claims. In addition, the examples described herein and the provision of clauses expressed as "such as," "including," etc. should not be interpreted as limiting the subject matter of the claims to specific examples; on the contrary, the examples are intended to illustrate only one embodiment of many possible embodiments. In addition, the same reference numerals in different figures may identify the same or similar elements.

Claims

1. A pulsating monomer, characterized in that: include: Crossbar switch; a first arithmetic logic unit (ALU) coupled to a first output of the crossbar switch; a second arithmetic logic unit coupled to a second output of the crossbar switch; as well as A register file is configured to receive outputs from the first arithmetic logic unit and the second arithmetic logic unit as inputs of the register file.

2. The pulsating monomer according to claim 1, characterized in that: Wherein the output of the register file is provided to the input of the crossbar switch.

3. The pulsating monomer according to claim 1, characterized in that: The crossbar switch is configured to receive outputs from one or more adjacent pulsating cells as inputs of the crossbar switch.

4. The pulsating monomer according to claim 1, characterized in that: At least one of the first arithmetic logic unit or the second arithmetic logic unit comprises a multiplier.

5. The pulsating monomer according to claim 1, characterized in that: The register file uses 64-bit registers or smaller registers.

6. The pulsating monomer according to claim 1, characterized in that: The crossbar switch is a 4×4 crossbar switch configured to receive two inputs from the register file and two inputs from adjacent cells, and to provide two outputs to the first arithmetic logic unit and two outputs to the second arithmetic logic unit.

7. The pulsating monomer according to claim 1, characterized in that: Also included is a third arithmetic logic unit coupled between the crossbar switch and the register file.

8. A systolic array, characterized in that: include: A plurality of monomers, wherein the plurality of monomers are configured such that a first output of a first monomer serves as an input of an adjacent second monomer, and a second output of the first monomer serves as an input of an adjacent third monomer, wherein each monomer comprises: Crossbar switch; one or more arithmetic logic units (ALUs) coupled to outputs of the crossbar switch; and A register file is configured to receive outputs from the one or more arithmetic logic units as inputs to the register file.

9. The systolic array according to claim 8, characterized in that: The output of the register file in each cell is provided to the input of the crossbar switch in the same cell.

10. The systolic array according to claim 8, characterized in that: The one or more arithmetic logic units are general purpose arithmetic logic units.

11. The systolic array according to claim 8, characterized in that: The one or more arithmetic logic units include a first arithmetic logic unit coupled to a first output of the crossbar switch and a second arithmetic logic unit coupled to a second output of the crossbar switch.

12. The systolic array according to claim 11, characterized in that: The cross switch of the fourth cell is configured to receive an output of the first arithmetic logic unit of the third cell and an output of the second arithmetic logic unit of the second cell as inputs of the cross switch.

13. The systolic array according to claim 8, characterized in that: The array is configured to receive two source vectors and produce at least one result vector per cycle.

14. A computing system, characterized in that: include: one or more memories; one or more processors in communication with the one or more memories; a plurality of cells in communication with the one or more processors, the plurality of cells being arranged such that a first output of a first cell is provided as an input of an adjacent second cell, and a second output of the first cell is provided as an input of an adjacent third cell, wherein each cell comprises: Crossbar switch; one or more arithmetic logic units (ALUs) coupled to outputs of the crossbar switch; and A register file is configured to receive outputs from the one or more arithmetic logic units as inputs to the register file.

15. The computing system according to claim 14, characterized in that: Wherein the one or more processors include at least one of a scalar core and a vector processing unit.

16. The computing system according to claim 14, characterized in that: Wherein the one or more memories include a vector data cache.

17. The computing system according to claim 14, characterized in that: Also included is a sequencer configured to control instructions sent to the one or more processors and the plurality of cells.

18. The computing system according to claim 14, characterized in that: The array is configured to receive two source vectors and produce at least one result vector per cycle.

19. The computing system of claim 14, wherein: The output of the register file in each cell is provided to the input of the crossbar switch in the same cell.

20. The computing system of claim 14, wherein: The crossbar switch is configured to receive outputs from one or more adjacent cells as inputs of the crossbar switch.

21. The computing system of claim 14, wherein: The one or more arithmetic logic units are general purpose arithmetic logic units.

22. The computing system of claim 14, wherein: The one or more arithmetic logic units include a first arithmetic logic unit coupled to a first output of the crossbar switch and a second arithmetic logic unit coupled to a second output of the crossbar switch.