Numerous overlays for use with data processing arrays

By using multiple overlays and runtime parameters within a data processing array, ICs dynamically adapt to diverse computational tasks, addressing inefficiencies in static architectures and improving computational efficiency and throughput.

JP2024531402APending Publication Date: 2024-08-29XILINX INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2024510377
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-08-20
Filing Date
2022-08-15
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

Existing integrated circuits (ICs) with fixed or static circuit architectures struggle to efficiently execute different computational workloads, particularly matrix multiplication operations of varying dimensions, without the need to continually reconfigure the circuit, which leads to inefficiencies and idle time.

Method used

The implementation of multiple overlays within a data processing array in ICs, allowing dynamic adaptation to different workloads by sequentially loading overlays and runtime parameters, enabling efficient execution of diverse computational tasks without full application reconfiguration.

Benefits of technology

This approach enhances computational efficiency by reducing the time required to adapt to different workloads, minimizing idle time, and optimizing throughput by allowing ICs to efficiently handle varying computational demands without continuous reconfiguration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024531402000001_ABST
    Figure 2024531402000001_ABST
Patent Text Reader

Abstract

Using multiple overlays with a data processing array includes loading an application into the data processing array. The data processing array includes a number of computational tiles, each having a processor. The application specifies kernels executable by the processors and implements stream channels that communicate data to the multiple computational tiles. During runtime of the application, multiple overlays are implemented sequentially in the data processing array. Each overlay implements a different mode of data movement in the data processing array via the stream channels. For each implemented overlay, a workload is executed by moving data to the multiple computational tiles based on the respective mode of data movement.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims the benefit of U.S. Provisional Patent Application No. 63 / 235,319, filed August 20, 2021, and U.S. Provisional Patent Application No. 63 / 235,532, filed August 20, 2021, both of which are incorporated by reference in their entireties herein.

[0002] This disclosure relates to integrated circuits (ICs), and more particularly to the use of multiple overlays in a data processing array implemented within an IC. This disclosure also relates to using one or more array controllers to control the operation of the data processing array. [Background technology]

[0003] Integrated circuits (ICs) have evolved over time to provide increasingly sophisticated computing architectures. Some ICs utilize computing architectures that include a single processor, while other ICs include multiple processors. Still other ICs include multiple processors arranged in an array. Such ICs are capable of providing significant computing power and a high degree of parallelism that far exceeds the capabilities of single processor architectures and even multi-core processor architectures. Summary of the Invention

[0004] In one or more example implementations, a method includes loading an application into a data processing array. The data processing array includes a plurality of computational tiles, each having a processor. The application specifies kernels executable by the processors and implements stream channels that communicate data to the plurality of computational tiles. The method includes sequentially implementing a plurality of overlays within the data processing array during runtime of the application. Each overlay implements a different mode of data movement within the data processing array via the stream channels. The method includes executing a workload by moving data to the plurality of computational tiles for each implemented overlay based on the respective mode of data movement.

[0005] In one aspect, multiple overlays are implemented within a data processing array for an application without loading different applications onto the data processing array that load different kernels into computational tiles or modify stream channels.

[0006] In another aspect, the data processing array is subdivided into a plurality of partitions each including a subset of a plurality of computational tiles, each partition adapted to simultaneously execute a different application and sequentially realize a plurality of different overlays specific to the application executed by the partition.

[0007] In another aspect, sequentially implementing the multiple overlays includes configuring the data processing array with a first overlay of the multiple overlays to execute a first workload including a first matrix multiplication operation and configuring the data processing array with a second overlay of the multiple overlays to execute a second workload including a second matrix multiplication operation, wherein the first matrix multiplication operation and the second matrix multiplication operation are of different dimensions.

[0008] In another aspect, an application implements a neural network, each layer of the neural network being mapped to one of a plurality of overlays, different ones of which are loaded over time to implement respective layers of the neural network.

[0009] In another aspect, each overlay specifies a different mapping of buffers to stream channels.

[0010] In another aspect, the mode of data movement for each overlay is characterized (e.g., specifies) the number of feature maps and weights to be conveyed over the stream channels, e.g., an overlay specifies particular weights and feature maps to be transmitted over particular ones of the stream channels.

[0011] In another aspect, sequentially implementing the multiple overlays includes programming multiple direct memory access circuits with a different mapping of buffers to stream channels for each overlay.

[0012] In another aspect, the method includes providing runtime parameters to a selected computational tile of the plurality of computational tiles for a selected overlay of the plurality of overlays, the runtime parameters setting operational parameters of a kernel executed by the selected computational tile.

[0013] In another aspect, the selected overlay corresponds to a particular layer of the application, and the runtime parameters specify at least one dimension of the particular layer implemented by the selected overlay.

[0014] In another aspect, the runtime parameters selectively enable functions of the kernel to be executed by selected computational tiles.

[0015] In another aspect, the method includes providing runtime parameters to a selected computational tile of the plurality of computational tiles for a selected overlay of the plurality of overlays, the runtime parameters selecting a kernel from the plurality of kernels of the selected computational tile for execution.

[0016] In one or more exemplary implementations, a system includes a data processing array disposed in an integrated circuit. The data processing array includes a plurality of computation tiles each having a processor. The data processing array is configured to execute an application. The application specifies a kernel executable by the processor and a stream channel that communicates data to the plurality of computation tiles. During runtime of the application, the data processing array is adapted to realize a plurality of different overlays. Each overlay realizes a different mode of data movement within the data processing array via the stream channel to execute a workload.

[0017] In one aspect, an application implements a neural network, with each layer of the neural network being mapped to one of a plurality of overlays, different of which are loaded over time to implement respective layers of the neural network.

[0018] In another aspect, each overlay specifies a different mapping of buffers to stream channels.

[0019] In another aspect, each overlay mode is characterized by the number of feature maps and weights that are conveyed over the stream channel.

[0020] In another aspect, for a selected overlay of the multiple overlays, the runtime parameters provided to a selected computational tile of the multiple computational tiles set operating parameters of a kernel executed by the selected computational tile.

[0021] In another aspect, the selected overlay corresponds to a particular layer of the application, and the runtime parameters specify one or more dimensions of the particular layer that are implemented by the selected overlay.

[0022] In another aspect, the selected overlay corresponds to a particular layer of the application. The runtime parameters selectively enable functions of the kernel to be executed by the selected computational tile.

[0023] In another aspect, a first overlay of the plurality of overlays configures the data processing array to execute a first workload including a first matrix multiplication operation, and a second overlay of the plurality of overlays configures the data processing array to execute a second workload including a second matrix multiplication operation, the first matrix multiplication operation and the second matrix multiplication operation being of different dimensions.

[0024] In one or more exemplary implementations, an integrated circuit includes a data processing array including a plurality of computational tiles each having a processor. The integrated circuit includes an array controller coupled to the data processing array. The array controller is adapted to configure the plurality of computational tiles of the data processing array to execute an application. The application specifies a kernel executable by the processor and a stream channel that communicates data to the plurality of computational tiles. The array controller is configured to initiate execution of a workload by the data processing array configured with the application.

[0025] In one or more exemplary implementations, an integrated circuit includes a data processing array. The data processing array includes a plurality of computational tiles, each having a processor. The data processing array is subdivided into a first partition including a first subset of the plurality of computational tiles and a second partition including a second subset of the plurality of computational tiles. The integrated circuit includes a first array controller adapted to configure the first partition to execute a first application. The first application specifies a kernel executable by the processor of the first partition and a stream channel that communicates data to the first subset of the plurality of computational tiles of the first partition. The integrated circuit includes a second array controller adapted to configure the second partition to execute a second application. The second application specifies a kernel executable by the processor of the second partition and a stream channel that communicates data to the second subset of the plurality of computational tiles of the second partition. The first array controller and the second array controller are each configured to initiate execution of a workload in a respective partition.

[0026] This summary section is provided merely to introduce certain concepts, and is not intended to identify any key or essential features of the claimed subject matter. Other features of the inventive subject matter will be apparent from the accompanying drawings and the detailed description that follows.

[0027] Arrangements of the present invention are illustrated by way of example in the accompanying drawings. However, the drawings should not be construed as limiting the arrangements of the present invention to only the particular implementations shown. Various aspects and advantages will become apparent upon consideration of the following detailed description and upon reference to the drawings. [Brief description of the drawings]

[0028] [Figure 1] 1 illustrates an exemplary system that includes a data processing (DP) array. [Diagram 2] 1 illustrates an example implementation flow for generating applications for a DP array. [Diagram 3] 1 illustrates an example implementation of a DP array. [Figure 4] 1 illustrates an example implementation of a computational tile of a DP array. [Diagram 5] 1 illustrates an exemplary implementation of memory tiles of a DP array. [Figure 6] 1 illustrates an example implementation of an interface tile for a DP array. [Figure 7] 1 illustrates an example of cascade connectivity between computational tiles of a DP array. [Figure 8] Illustrates an example where a computational tile is configured to operate without cascading to another computational tile. [Figure 9] Illustrates an example in which computational tiles are configured to operate using a cascade connection. [Figure 10A] 1 illustrates certain operational features of an exemplary overlay. [Figure 10B] 1 illustrates certain operational features of an exemplary overlay. [Figure 10C] 1 illustrates certain operational features of an exemplary overlay. [Figure 11] 11 is a table illustrating attributes of an example overlay used to configure applications for partitions of a DP array. [Figure 12A] 1 illustrates examples of input stream channels implemented by an application with different overlay implementations. [Figure 12B] 1 illustrates examples of input stream channels implemented by an application with different overlay implementations. [Figure 12C] 1 illustrates examples of input stream channels implemented by an application with different overlay implementations. [Figure 13] Illustrates an example of an output stream channel implemented by an application. [Figure 14] 1. An example of a method for illustrating certain operational features of the system of FIG. 1 is illustrated. [Figure 15] Illustrates an example in which a DP array includes multiple partitions, each controlled by an array controller. [Figure 16A] 1 illustrates different exemplary architectures for an IC that includes a DP array and one or more array controllers. [Figure 16B] 1 illustrates different exemplary architectures for an IC that includes a DP array and one or more array controllers. [Figure 16C] 1 illustrates different exemplary architectures for an IC that includes a DP array and one or more array controllers. [Figure 16D] 1 illustrates different exemplary architectures for an IC that includes a DP array and one or more array controllers. [Figure 16E] 1 illustrates different exemplary architectures for an IC that includes a DP array and one or more array controllers. [Figure 16F] 1 illustrates different exemplary architectures for an IC that includes a DP array and one or more array controllers. [Figure 16G] 1 illustrates different exemplary architectures for an IC that includes a DP array and one or more array controllers. [Figure 16H] 1 illustrates different exemplary architectures for an IC that includes a DP array and one or more array controllers. [Figure 17] 1 illustrates an exemplary method of operation of an IC that includes a DP array and an array controller. [Figure 18] Illustrates additional operational features of the array controller. [Figure 19] 1 illustrates an exemplary implementation of a data processing system for use in the inventive arrangements described herein. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0029] This disclosure relates to integrated circuits (ICs) and to using multiple overlays in a data processing (DP) array implemented within the IC. This disclosure also relates to using one or more array controllers to control the operation of the DP array.

[0030] A DP array contains multiple circuit blocks called tiles. The tiles may contain computational tiles and interface tiles and / or a mix of computational tiles, interface tiles, and memory tiles. The DP array is configurable to perform desired computational activities by loading configuration data, called an "application," into the DP array. Once configured with an application, the DP array is capable of performing computational activities.

[0031] In one aspect, an application loaded into the DP array specifies multiple kernels that are executable by the computational tiles. For example, the application may specify specific kernels to be executed by particular ones of the computational tiles, e.g., a mapping of kernels to computational tiles. The application may also specify configuration data that implements multiple stream channels that communicatively link the tiles of the DP array.

[0032] When an application is executed on the DP array, different overlays may be implemented on the DP array to execute the application. Each implemented overlay specifies a mode of data movement within the DP array. That is, each overlay specifies a mode of data movement between tiles of the DP array. For example, each overlay specifies a particular data item to be provided to each computational tile via a stream channel implemented by the application. The data items may include feature maps and / or weights.

[0033] In one aspect, the application is a multi-layer application. Different layers of the application may be realized by loading different overlays into the DP array. For each overlay realized in the DP array, one or more runtime parameters may be provided to the tiles of the DP array to further adapt the overlay to the particular layer of the application realized by the overlay. The DP array configured with the application, the overlay, and the one or more runtime parameters is capable of executing the workload of the layer of the application. In general, the term "workload" refers to performing the operations necessary to process input data of a particular layer of a multi-layer application.

[0034] Unlike static or fixed circuit architectures, the configurability of the DP array allows it to adapt to different workloads (e.g., layers) over time. The DP array is adapted to different layers without the need to reconfigure the DP array by loading different applications. For illustrative purposes, consider an example in which the DP array is used to perform one or more matrix multiplication operations. Matrix multiplication operations are utilized in many different computational contexts, including, but not limited to, machine learning, image processing, computer vision, virtual and / or augmented reality, and genetic analysis. For example, in the case of machine learning, different layers of a neural network may perform different matrix multiplication operations where the matrices operated on the different layers have different dimensions. When using a fixed or static circuit architecture to realize these different layers, the circuit architecture may efficiently perform the matrix multiplication operations of a particular layer, but the matrix multiplication operations of other different layers with different dimensions are less efficient. This also applies to other types of workloads that do not include matrix multiplication operations.

[0035] According to the inventive configurations described within this disclosure, the DP array can be adapted over time to efficiently execute a variety of different workloads. The DP array can be configured to execute a particular application. Different overlays can be loaded over time to realize different layers of the application at runtime. Each overlay can realize a particular mode of data movement in the DP array suitable for realizing the particular layer of the application to which the overlay is mapped. Different runtime parameters for the overlays can also be loaded, which can be specific to each layer of the application.

[0036] Consider the previous matrix multiplication example. The DP array may be loaded with an application that includes an adapted kernel to perform a matrix multiplication operation. The application further specifies the stream channels implemented in the DP array. Different overlays and runtime parameters may be loaded into the DP array over time to adapt the DP array configured with the application to efficiently execute different matrix multiplication operations (e.g., matrix multiplications of different dimensions) corresponding to different layers of the application. The specific operational characteristics of each overlay and the kernels being executed by the computational tiles may be changed on a layer-by-layer basis through the loading of runtime parameters. In one aspect, the runtime parameters may specify the specific dimensions of the layers being implemented by a given overlay.

[0037] Loading an application may require a non-negligible number of clock cycles. In comparison, loading an overlay and corresponding runtime parameters to realize a particular layer of an application consumes significantly less time (e.g., fewer clock cycles). By utilizing the application overlay paradigm described herein, the DP array can be adapted to efficiently realize different layers of an application without the need to continually reconfigure the DP array. That is, the DP array can be adapted from one layer to the next without the need to load a different application for each layer of the application, which would cause the DP array to be idle while being continually reconfigured, thereby reducing computational efficiency and throughput.

[0038] In some cases, controlling the loading of applications, overlays, and runtime parameters and initiating workloads for a DP array requires significant computational resources. These operations may consume a significant amount of clock cycles for a processor tasked with such responsibilities, leaving few clock cycles available for the processor to perform other functions or run other applications. Thus, in one or more exemplary implementations, to take advantage of the significant computational power provided by the DP array, one or more array controllers may be included in the same IC as the DP array. The array controller may be dedicated to controlling the operation of the DP array.

[0039] The inclusion of an array controller ensures smooth and efficient operation of the DP array. For example, the array controller can keep the DP array busy to achieve higher data throughput because it is dedicated to managing the DP array and does not attempt to multitask with other non-DP array related operations. The inclusion of an array controller also frees other processors, whether located within the IC or external to the IC, from performing DP array related control operations so that such processors may perform other tasks.

[0040] For IC architectures that include programmable logic, one or more of the array controllers may be implemented in programmable logic. In other examples, for IC architectures that include programmable logic, one or more array controllers may be implemented in programmable logic while one or more other array controllers may be implemented as hardwired circuit blocks. In yet other examples, for IC architectures that do not include programmable logic, the array controllers may be implemented as hardwired circuit blocks. It should be understood that the array controllers may also be implemented as hardwired circuit blocks within an IC that includes programmable logic. Further aspects of the inventive arrangements are described below with reference to the figures.

[0041] 1 illustrates an exemplary system 100. In this example, the system 100 includes a DP array 102, an array controller 106, an interconnect 108, and one or more subsystems 112, 114, 118, and / or 120. The DP array 102 includes an array interface 104.

[0042] In one or more exemplary implementations, system 100 is implemented as an integrated circuit (IC). System 100 may be implemented within a single IC package. In one aspect, system 100 is implemented using a single die disposed within a single IC package. In another aspect, system 100 is implemented using two or more interconnected dies disposed within a single IC package.

[0043] The DP array 102 is formed from multiple different types of circuit blocks referred to as tiles. Tiles may include computational tiles, memory tiles, and / or interface tiles. For purposes of discussion, the term "array tile" is used herein to refer to computational tiles or a mixture of computational and memory tiles. The computational and memory tiles are hardwired and programmable. The array interface 104 includes multiple circuit blocks referred to as "interface tiles." The interface tiles communicatively link the array tiles of the DP array 102 with circuitry external to the DP array 102. The interface tiles are hardwired and programmable.

[0044] The array controller 106 is communicatively linked to the DP array 102 and / or the array interface 104. The array controller 106 may be coupled to the DP array 102 and / or the array interface 104 directly and / or via an interconnect 108. In one aspect, the array controller 106 is dedicated to configuring the DP array 102 and controlling the operation of the DP array 102. That is, the array controller 106 performs only functions related to the configuration and / or control of the DP array 102. The array controller 106 may be implemented as a state machine or as a processor capable of executing program code. In one example, the array controller 106 is implemented as a hardwired circuit block. In another example, the array controller 106 is implemented using programmable logic. In one or more exemplary implementations, the array controller 106 may be omitted. In that case, a processor, which may be implemented as one of the subsystems 112-120, may perform operations attributed to the array controller 106. Alternatively, a processor external to the system 100 may perform the operations attributed to the array controller 106 .

[0045] The interconnect 108 is coupled to one or more of the array interface 104, the array controller 106, and the subsystems 112-120. The interconnect 108 may be implemented as an on-chip interconnect. One example of an on-chip interconnect is the Advanced Microcontroller Bus Architecture (AMBA) eXtensible Interface (AXI) bus. The AXI bus is an embedded microcontroller bus interface for use in establishing on-chip connections between circuit blocks and / or systems. Other exemplary implementations of the interconnect 108 may include, but are not limited to, other buses, crossbars, Network-on-Chip (NoC), and the like. For purposes of illustration, the interconnect 108 may include or be coupled to a memory controller capable of reading and / or writing to one or more memories.

[0046] Subsystems 112-120 may represent any of a variety of different types of electronic subsystems and / or circuits. For purposes of illustration, examples of subsystems 112-120 may include, but are not limited to, any combination of processors or processor systems, programmable logic, hardwired circuit blocks (e.g., application specific circuit blocks), memory, and the like. It should be understood that the number of subsystems illustrated in the example of FIG. 1 is for purposes of illustration. System 100 may include more or fewer subsystems than those shown. Some example implementations of system 100 may include, for example, only DP array 102, or only DP array 102 and one or more array controllers 106.

[0047] A processor implemented as one of the subsystems 112-120 is capable of executing computer readable instructions. In one example, the processor is implemented as a hardwired processor. In another example, the processor is implemented as a soft processor using programmable logic. When the processor is implemented as one of the subsystems 112-120, the array controller 106 may be omitted. The processor may then be programmed to configure the DP array 102 and control the operation of the DP array 102.

[0048] In another aspect, the processor may be external to the IC that includes the DP array 102. In that case, the processor may be part of another data processing system (e.g., a host computer) that is communicatively linked to the IC that includes the DP array 102. If the processor is included as part of the host computer, the processor may communicate with the array controller 106 to control the operation of the array controller 106. In one aspect, the processor may write run-time data that is executed by the array controller 106 to control the operation of the DP array 102. In an exemplary implementation in which the array controller 106 is omitted, the particular processor used to control the operation of the DP array 102, whether external or implemented within one of the subsystems 112-120, may or may not be dedicated to controlling the DP array 102.

[0049] In one example, one or more of the subsystems 112-120 may be implemented as a memory. The memory may be implemented as a random-access memory (RAM). In one example, the memory may be implemented as a High Bandwidth Memory (HBM). For example, the memory may be a RAM circuit (e.g., HBM) implemented on the same die as the DP array 102 or on a different die in the same IC package. In another aspect, one or more memories may be implemented external to the IC that includes the DP array 102.

[0050] In one or more exemplary implementations, certain elements of system 100, such as array controller 106, interconnect 108, and one or more or all of subsystems 112-120, are optional and may be omitted.

[0051] 2 illustrates an example of an implementation flow 200 for generating an application for a DP array. The implementation flow 200 of FIG. 2 may be executed or realized by a data processing system. An example of a data processing system capable of executing the implementation flow 200 is described in connection with FIG.

[0052] 2, application 202 may be provided to compiler 204. Application 202 may be specified in source code. In one or more examples, application 202 may be specified in a high-level programming language, such as C and / or C++. In one or more examples, application 202 may be specified as a dataflow graph that specifies one or more kernels to be compiled and executed by computational tiles of DP array 102.

[0053] In general, the compiler 204 can generate executable versions of applications that can be executed by the DP array 102 (e.g., the computational tiles contained therein). The compiler 204 can also generate control applications that can be executed by the array controller 106 or other processors to control the operation of the DP array 102. In executing the control applications, the array controller 106 can load the applications, overlays of the applications, and runtime parameters of the layers of the applications. In executing the control applications, the array controller 106 can also start the workloads in the DP array 102 as configured with the applications, overlays, and runtime parameters.

[0054] In one or more example implementations, the application 202 is a multi-layer application. In one example, the application 202 is implemented as a neural network. In another example, the application 202 may be implemented as a machine learning model. Examples of different types of machine learning models that may be implemented by the application 202 may include, but are not limited to, a Convolutional Neural Network (CNN), a Long-Short Term Memory (LSTM) network, a Deep Learning Recommendation Model (DLRM), and the like.

[0055] In one aspect, each different type of machine learning model may be specified as a different application, where the application is built using a kernel specific to the machine learning model being implemented. A kernel refers to executable program code that may be executed by a computational tile of the DP array 102. Although a kernel is tailored to a particular type of machine learning model, each kernel may be generalized in the sense that certain operating characteristics of the kernel may be changed or set at runtime through the use of runtime parameters. Thus, depending on the type of machine learning model implemented by the application 202, the application 202 utilizes different types of kernels. Additionally, in one or more exemplary implementations, multiple kernels may be loaded into the same computational tile. The particular kernel or kernels to be executed may then be selected on a per-layer basis for the application 202 in a given computational tile.

[0056] Within this disclosure, a kernel represents one or more functions. In some configurations, a kernel includes multiple different functions. In other configurations, the program code is configured such that different functions are implemented as different (e.g., multiple) kernels. In either case, the runtime parameters may set one or more operating parameters of the kernel. In some cases, the settings selectively enable / disable one or more functions of the kernel, so that the function is executed or not executed. In some cases, the runtime parameters may select a particular function or kernel from multiple such functions / kernels for execution.

[0057] In the example of FIG. 2, application 202 may specify multiple layers 1-M. As an example, each layer 1-M of application 202 may correspond to a particular set of operations, referred to as a workload, performed by the layer. In one example, each layer may specify a particular matrix multiplication operation to be performed. Different layers may have different dimensions of the matrices that are multiplied together. For example, the matrices multiplied by layers 1-M may have a different number of columns and / or a different number of rows from one layer to the next. For example, two matrix multiplication operations that multiply matrices of different dimensions may be considered different matrix multiplication operations.

[0058] Each layer of the application 202 may include one or more specific functions to be performed. Examples of different functions that may be performed in different layers of the application 202 may include, but are not limited to, convolution, General Matrix Multiply (GEMM), Rectified Linear Unit (ReLU), batch normalization, or other functions commonly known in the field of machine learning and / or neural networks.

[0059] As an illustrative and non-limiting example, consider the case where application 202 implements a CNN. The CNN may include different layers 1-M, with different layers having different dimensions that process different columns and rows of pixels of an image. Further, for purposes of illustration, layer 1 of application 202 may be a two-dimensional (2D) convolutional layer. Layer 2 of application 202 may be a 2D convolutional layer with batch normalization. Layer M of application 202 may be a 2D convolutional layer with ReLU. The exemplary application and layers are provided for purposes of illustration and not limitation.

[0060] The compiler 204 can receive the application 202 and one or more overlays 206. In one aspect, each of the overlays 206 can be a pre-built definition of how data should be moved between tiles of the DP array 102 to realize a layer (or a portion of a layer) of the application 202 (e.g., a particular machine learning model). In general, the overlays 206 represent all possible overlays available for a particular type of machine learning model realized by the application 202. For example, each overlay 206 can specify a different mode of data movement for the application as realized in the DP array 102. The mode of data movement uses a stream channel realized in the DP array 102 by the compiled application 202. That is, the stream channel established by the application 202 can remain in place while different modes of data movement are realized over time using different ones of the overlays 206. Each overlay uses the same stream channel realization for the application 202.

[0061] In one aspect, the overlays may specify data movement through the stream channels by indicating the type of input data that is conveyed on the various stream channels. Examples of different types of input data include feature maps and weights. Some stream channels may convey feature maps, while other stream channels convey weights. In one aspect, each overlay 206 defines the stream channels as the logical connections between the different tiles of the DP array 102 that are required to realize, e.g., efficiently realize, a particular layer of a given machine learning model. Exemplary overlays 206 and the corresponding modes of data movement realized by the overlays are further illustrated in the example of FIG. 8.

[0062] Thus, as defined within this disclosure, the term "overlay" means data provided to a DP array during runtime of an application executing thereon, the data defining a mode of data movement within at least a portion of the DP array to implement a particular layer of the application.

[0063] Continuing with the example where application 202 specifies a CNN type machine learning model, each overlay 206 is pre-built for the CNN type machine learning model to realize a layer of such machine learning model in DP array 102. In one aspect, each overlay 206 is suitable for processing data of a layer of application 202 having a particular shape. In this example, overlay 206-1 can efficiently process data of a square layer. Overlay 206-2 can efficiently process data of a tall rectangular layer. Overlay 206-N can efficiently process data of a wide rectangular layer. Thus, in this example, overlay 206 is not limited to processing layers having particular dimensions, although this may also be the case, but rather is intended to handle layers of a particular shape. It should be understood that fewer or more overlays for a given type of application may be created for shapes as described herein or different shapes.

[0064] The compiler 204 can compare the available pre-built overlays 206 with layers 1-M of the application 202 to determine the mapping of the overlays 206 to layers 1-M of the application 202. The overlays 206 are specific to the type of application 202. The overlays 206 can also be specific to the architecture of the DP array 102. For example, if the application 202 implements different types of machine learning models, the pre-built overlays available for the compiler 204 to map to the layers of the application will be different. The available overlays are suitable for implementing the specific type of data movement required for the specific type of machine learning model being implemented. Thus, the overlays 206 used in the mapping by the compiler 204 include only the pre-built overlays for the specific type of machine learning model being implemented by the application 202.

[0065] In one aspect, the compiler 204 can map the overlays 206 to layers 1-M of the application 202 by determining the shape of each layer. The shape can be given by a specific weight or weight matrix of the layer. The compiler 204 can match the shape of each layer to a specific overlay 206 (e.g., the shape of the overlay 206) suitable for operating on the layer of the determined shape. While the same shape and / or shape similarity is used to map the overlays to the layers, in another aspect, the compiler 204 can determine the dimensions of each layer and map the layer to a specific (e.g., one) overlay 206 suitable for the layer based on the dimensions, which can be used as a proxy for the shape. By mapping the overlays 206 to layers 1-M according to the shape, the data throughput achieved by the DP array 102 in implementing each layer of the application 202 using the mapped overlays can be increased or optimized.

[0066] 2, the overlays 206 appear to correspond to layers of the application 202 on a one-to-one basis, but this need not be the case. That is, the compiler 204 may have access to or may include multiple pre-built overlays 206 for different types of machine learning models that are available to compile the application. The number of overlays 206 may be more or less than the number of layers of the application being compiled.

[0067] The compiler 204 can generate an executable version of the application 202, shown as application 208. The application 208 is executable by the DP array 102. For example, the application 208 specifies an executable version of a kernel to be executed by a particular one of the computational tiles of the DP array 102. In this regard, the application 208 can specify not only the kernel, but also which computational tiles execute each respective kernel. In one aspect, the application 208 utilizes a single or the same kernel, and each computational tile used to execute the application 208 executes an instance of the kernel. The kernel may include multiple different and selectable functions. In another example, each computational tile used to execute the application 208 executes each instance of a set of multiple or different kernels. The set of kernel instances executed by each computational tile executing the application 208 may be the same or may vary from one computational tile to another. As part of the application 208, the compiler 204 also generates configuration data that, when loaded into the DP array 102, implements stream channels in the DP array 102 that communicate data. The application 208 may also specify initialization data for the various memories of the DP array 102 .

[0068] As mentioned above, the compiler 204 can also generate a control application 214 that is executable by the array controller 106. The control application 214 can include a mapping 210 and runtime parameters 212. The mapping 210 specifies which overlay 206 to use for each of the layers 1-M of the application 208 during execution (e.g., runtime) of the application 208. The runtime parameters 212 can be generated for one or more or each of the layers 1-M of the application 208. That is, the runtime parameters 212 are layer-specific. Additionally, the runtime parameters 212 can be specific to a particular computational tile. In general, the runtime parameters 212 can be provided to different computational tiles of the DP array 102 during runtime to configure the kernels for execution. For example, the runtime parameters 212 can select a particular kernel for execution and / or enable and / or disable certain functions of the kernel to execute (e.g., to effect a change in the execution flow of any of the various kernels being executed by the computational tiles). Further details regarding the runtime parameters are described in more detail below.

[0069] In one aspect, the control application 214 may specify a schedule to be followed by the array controller 106 to initiate implementation of the overlay 206 and runtime parameters 212 for different layers of the application 208 during runtime. The schedule may further specify the specific tasks to be performed and the sequencing of the tasks for initiating the workload of the various layers of the application 208 during runtime.

[0070] When executing an application in the DP array 102, the array controller 106 can load the application 208 into the program memory of the compute tiles, load configuration data for the application 208 into the control registers, configure the stream switches to implement the stream channels, and initialize the memory of the DP array 102. When executing the control application 214, the array controller 106 can implement different overlays and load run-time parameters into the DP array 102 for the application 208 during run-time per a specified schedule. Furthermore, when executing the control application 214, the array controller 106 initiates workloads for the application 208 that correspond to different layers of the application 208 over time per a schedule.

[0071] Within this disclosure, references are made to loading and executing applications on the DP array 102. It should be understood that the DP array 102 may be subdivided into one, two, or more partitions (each partition may include one or more computational tiles and one or more interface tiles), or a combination of one or more computational tiles, one or more memory tiles, and one or more interface tiles. Each partition may operate independently of the other partitions, such that each partition may execute different applications and may execute simultaneously with other partitions. Thus, within this disclosure, references to loading, executing, or implementing applications, loading overlays, loading runtime parameters, and / or executing workloads on partitions of the DP array 102 may refer to cases where the entire DP array 102 is viewed as a single partition and such operations are performed on the single partition, or where the DP array 102 is subdivided into two or more smaller partitions and operations are performed on each of the two or more smaller partitions independently under the control of one or more array controllers.

[0072] 3 illustrates an example implementation of the DP array 102. In this example, the DP array 102 includes computation tiles 302, memory tiles 306, and interface tiles 304. The interface tiles 304 are part of the array interface 104. In this example, the computation tiles 302 and memory tiles 306 are arranged in a grid having multiple rows and columns. The interface tiles 304 are arranged in rows, with each interface tile 304 aligned with a column of the grid configuration of the DP array 102. The computational tiles 302 include computational tiles 302-1, 302-2, 302-3, 302-4, 302-5, 302-6, 302-7, 302-8, 302-9, 302-10, 302-11, 302-12, 302-13, 302-14, 302-15, 302-16, 302-17, and 302-18. The interface tiles 304 include interface tiles 304-1, 304-2, 304-3, 304-4, 304-5, and 304-6. The memory tiles 306 include memory tiles 306-1, 306-2, 306-3, 306-4, 306-5, and 306-6. In this example, each tile is associated with adjacent tiles to the left (west), right (east), above (north), and below (south) if such tile is located in such a position.

[0073] The example of FIG. 3 is provided for illustrative purposes only. The number of tiles in a given column and / or row, the number of tiles included in the DP array 102 and / or array interface 104, and the sequence or order of tile types (e.g., memory and computational tiles) within the columns and / or rows are for illustrative purposes and not limiting. Other configurations may be included having various numbers of tiles, rows, columns, mixes of tile types, and the like. For example, the rows of FIG. 3 are homogenous with respect to tile type, but the columns are not homogenous. In other configurations, the rows may be heterogeneous with respect to tile type, but the columns may be homogenous. Additionally, additional rows of memory tiles 306 may be included in the DP array 102. Such rows of memory tiles 306 may be grouped together without intervening rows of computational tiles 302, or may be distributed throughout the DP array 102 such that rows of computational tiles 302 are intervening between rows or groups of rows of memory tiles 306.

[0074] In another example implementation of the DP array 102, the memory tiles 306 may be omitted such that the bottom row of the computational tiles 302 directly couple to the interface tiles 304. For example, if the memory tiles 306 were omitted, the interface tiles 304-1 would connect directly to the computational tiles 302-3, etc. In such a case, various example implementations described herein may read data from and write data to a memory (e.g., one of the subsystems 112-120) instead of the memory tiles 306. However, including the memory tiles 306 may increase the data throughput of the DP array 102 in that data may be stored closer to the computational tiles 302 without having to continually read data from and / or write data to a RAM external to the DP array 102.

[0075] 4 illustrates an example implementation of a computational tile 302. The example of FIG. 4 is provided to illustrate certain architectural features of the computational tile 302, and is not intended as a limitation on the form of the DP array 102 or the architecture of the computational tile 302 in general. Some connections between components and / or tiles have been omitted for ease of illustration.

[0076] In this example, each computational tile 302 includes a core 402, a RAM 404, a stream switch 406, a memory mapped switch 408 (e.g., abbreviated as an "MM" switch in the figures), control registers 414, and direct memory access (DMA) circuitry 434. The core 402 includes a processor 420 and a program memory 422. The control registers 414 may be written by the memory mapped switch 408 to control the operation of various components included in the computational tile 302. Although not shown, each memory component of the computational tile 302 (e.g., the program memory 422, the control registers 414, and the RAM 404) may be read and / or written via the memory mapped switch 408 for configuration and / or initialization purposes.

[0077] The processor 420 may be any of a variety of different processor types. In one aspect, the processor 420 is implemented as a vector processor. In another example, the processor 420 may be implemented as a scalar processor. In another example, the processor 420 may include a vector processor and a scalar processor. The program memory 422 may be loaded with executable instructions, referred to as a "kernel," for example, by loading an application. Each computational tile 302 is capable of performing data processing operations and operating on large amounts of data through execution of kernels stored in the program memory 422 by the processor 420.

[0078] Each core 402, e.g., processor 420, is directly connected to a RAM 404 located within the same computational tile 302 through a memory interface 432. Within this disclosure, when a memory interface is used by circuitry within the same tile to access the RAM, the memory interface is referred to as a "local memory interface." Memory interface 432-1 is an example of a local memory interface because processor 420 within the same tile utilizes the memory interface to access RAM 404. In comparison, a memory interface used by circuitry outside the tile to access RAM 404 is referred to as a contiguous memory interface. Memory interfaces 432-2, 432-3, and / or 432-4 are examples of contiguous memory interfaces because such memory interfaces are used by circuitry within other contiguous tiles to access RAM 404.

[0079] Thus, each processor 420 can access (e.g., read and / or write) the RAM 404 in the same computational tile 302 and one or more other RAMs 404 in adjacent tiles via standard read and write operations directed to such memory interface. The RAM 404 is configured to store application data. The RAM 404 may be read and / or written via a memory mapped switch 408 for configuration and / or initialization purposes. The RAM 404 may be read and / or written by the processor 420 during run-time and / or by the DMA circuitry 434.

[0080] The DMA circuit 434 can read and write data to a RAM 404 located within the same computational tile 302. The DMA circuit 434 can receive data from sources external to the computational tile 302 via the stream switch 406 and store such data in the RAM 404. The DMA 434 can read data from the RAM 404 and output the data to the stream switch 406 for transmission to one or more other destinations external to the computational tile 302.

[0081] Each core 402, e.g., processor 420, may be directly connected via a memory interface to RAMs 404 located in adjacent computational tiles 302 (e.g., in the north, south, east, and / or west directions). Thus, processor 420 may directly access such other adjacent RAMs 404 in the same manner that processor 420 may access RAMs 404 located in the same computational tile 302 without initiating a read or write transaction via stream switch 406 and / or using DMA circuitry 434. As an illustrative example, processor 420 of computational tile 302-5 may read and / or write to RAMs 404 located in computational tiles 302-5, 302-2, 302-4, and 302-6 without submitting a read or write transaction via stream switch 406 and / or using DMA circuitry 434. However, it should be understood that the processor 420 may initiate read and write transactions to the RAM 404 of any other computational tiles 302 and / or memory tiles 306 via the stream switch 406 and DMA circuitry 434.

[0082] Processors 420 may also include direct connections, referred to as cascade connections (not shown), to processors 420 of adjacent cores (e.g., in the north, south, east, and / or west directions) that enable direct sharing of data stored in internal registers (e.g., accumulation registers) of processor 420 with other processors 420. This means that data stored in one or more internal registers of one processor 420 may be directly transferred to one or more internal registers of a different processor 420 without first writing such data to RAM 404 and / or using DMA circuitry 434 to transfer such data through stream switch 406.

[0083] 4, the loading of an application 208 in the DP array 102 by the array controller 106 loads executable program code of a kernel in the program memory 422 of each of the compute tiles 302. The operation of other components of the compute tiles 302, such as the stream switch 406, may be controlled by loading configuration data of the application 208 into control registers 414 to implement stream channels (e.g., logical connections). Different overlays 206 may be loaded to implement different modes of data movement through the stream channels to implement different layers of the application 208.

[0084] The runtime parameters 212 may be loaded into the RAM 404 by the array controller 106. That is, a kernel executed by the processor 420 may include instructions that cause the processor 420 to read values ​​of the runtime parameters 212 from a particular area of ​​the RAM 404 that may be reserved for storing the runtime parameters 212. The kernel executed by the computational tile 302 may be configured based on the value of any runtime parameters 212 that may be stored in the RAM 404. For example, the execution of the kernel may be altered by loading certain runtime parameters 212. In another aspect, the processor 420 may execute a function that selects a particular kernel or a function of a kernel to be executed based on the runtime parameters 212 read from the RAM 404. It should be understood that the particular runtime parameters loaded into the RAM 404 of one computational tile 302 may differ from the runtime parameters (if any) loaded into another RAM 404 of another different computational tile 302. The runtime parameters 212 may be altered for each layer of the application 208 that is executed.

[0085] For purposes of illustration, consider the previous example where application 208 implements a CNN. The runtime parameters 212 of one layer may configure the kernel executed by processor 420 to perform a particular matrix multiplication operation. For example, the runtime parameters may specify the dimensions of the matrix multiplication operation to be performed. In another example, the runtime parameters 212 may specify the particular functions of the kernel to be executed or the different kernels to be executed. For example, the runtime parameters 212 of a first layer may indicate the dimensions of the layer and that a convolution operation should be performed. The runtime parameters 212 loaded for a different layer may specify the different dimensions of the layer and that convolution and batch normalization should be performed. The runtime parameters 212 loaded for a further different layer may specify the dimensions of the layer and that convolution and ReLU should be performed. In this example, the different functions, e.g., convolution, batch normalization, and ReLU, may be implemented as different functions of a general CNN kernel that may be selectively executed based on the particular runtime parameters 212 loaded for that layer. That is, the runtime parameters 212 configure the kernel to perform a particular function. In another example, different functions may be implemented as different kernels that are selected for execution and configured by runtime parameters 212 .

[0086] Figure 5 illustrates an example implementation of a memory tile 306. The example of Figure 5 is provided to illustrate certain architectural features of the memory tile 306, and is not intended as a limitation on the configuration of the DP array 102 or the architecture of the memory tile 306 in general. Some connections between components and / or tiles have been omitted for ease of illustration.

[0087] Each memory tile 306 includes a DMA circuit 502, a RAM 504, a stream switch 506, a memory mapped switch 508, and / or control registers 514. The control registers 514 may be written by the memory mapped switch 508 to control the operation of the various components illustrated in the memory tile 306. Although not shown, each memory component of the memory tile 306 (e.g., the RAM 504 and the control registers 514) may be read and / or written via the memory mapped switch 508 for configuration and / or initialization purposes.

[0088] Each DMA circuit 502 of a memory tile 306 is coupled to a RAM 504 in the same memory tile 306 via a local memory interface 532-1, and may be coupled to one or more RAMs 504 of other adjacent memory tiles 306. In the example of FIG. 5, each DMA circuit 502 may access (e.g., read from and / or write to) a RAM 504 contained within the same memory tile 306 via local memory interface 532-1. RAM 504 includes adjacent memory interfaces 532-2 and 532-3, through which the DMA circuits of the east and west memory tiles 306 may access RAM 504. For example, DMA circuit 502 of memory tile 306-2 may access RAM 504 of memory tile 306-1 and / or RAM 504 of memory tile 306-3. DMA circuit 502 in this example may read from and / or write to the RAM of the adjacent memory tile 306 via the adjacent memory interfaces of the RAM of such other memory tiles. The DMA circuit 502 may place data read from RAM 504 on the stream switch 406 and write data received through the stream switch to RAM 504.

[0089] Similar to the example of Figure 4, the memory mapped switch 508 is used for configuration and initialization purposes of the memory tiles 306, and the stream switch 506 is used to convey data during run-time. In one aspect, the RAM 504 may be initialized as part of the process of loading the application 208 into the DP array 102. Loading the application 208 also loads configuration data into the control registers 514 that configure the stream switch 506 to implement the stream channels. Different overlays 206 described in connection with Figure 2 may be loaded to implement specific modes of data movement.

[0090] In the examples described herein, a particular tile may include one or more common or similar components, such as a memory mapped switch, a stream switch, and / or a DMA circuit, etc. However, it should be understood that a memory tile 306 is generally characterized by the lack of a processing element (e.g., a processor 420) included therein.

[0091] Figure 6 illustrates an example implementation of an interface tile 304. The example of Figure 6 is provided to illustrate certain architectural features of the interface tile 304 and not as a limitation on the configuration of the DP array 102. Some connections between components and / or tiles have been omitted for ease of illustration.

[0092] In this example, each interface tile 304 includes a DMA circuit 602, one or more interfaces 604, a stream switch 606, a memory mapped switch 608, and a control register 614. In other example implementations, not all interface tiles 304 include a DMA circuit 602. The array interface 104 operates as an interface between the array tiles of the DP array 102 and other circuits of the system 100 through the interconnect 108. In the example of FIG. 6, the interface tiles 304 couple to memory tiles 306. In other example implementations, the interface tiles 304 couple to computation tiles 302 depending on whether the DP array 102 includes memory tiles 306 and / or the location of such memory tiles 306 within the DP array 102. Through the interconnect 108, the interface tiles 304 can couple to one or more other circuits within the system 100 and / or external to the system. Such other circuits may include one or more hardwired circuits and / or subsystems, circuits and / or subsystems implemented in programmable logic, and / or the like.

[0093] In the example of FIG. 6, the interface 604 may connect to other systems and / or circuits of systems. For illustrative purposes, the interface 604 may be coupled to a NoC, programmable logic, an embedded processor and / or processor system (separate from the DP array 102), a platform management controller embedded in the IC, and / or one or more other hardwired circuit blocks (e.g., ASIC blocks) within the IC. For example, the interface 604 may include or provide a direct connection to the array controller 106 and / or one or more of the subsystems 112-120. In another configuration, the interface 604 may be configured to communicate with circuits and / or systems located within the same package as the DP array 102, but implemented within a different die within the package. In yet another configuration, the interface 604 may be configured to communicate with circuits and / or systems located outside the IC including the DP array 102 (e.g., to circuits and / or systems outside the package).

[0094] The interface tiles 304 can communicate data, whether application runtime data via stream switch 606 or application via memory mapped switch 608, to the array tile located above each respective interface tile 304 as it is received over the interconnect 108 and / or as it sends such data to other circuitry over the interconnect 108. Additionally, the interface tiles 304 are configurable by loading an application (e.g., including configuration data) into control registers 614 of each respective interface tile 304 via the memory mapped switch 608. For example, the array controller 106 can write configuration data to the control registers 614.

[0095] Collectively, within the DP array 102, the stream switches (406, 506, and 606) form a stream network capable of communicating application runtime data (as distinct from the application itself). Application runtime data includes data received, manipulated, or generated (e.g., output) by array tiles (e.g., compute tiles 302) of the DP array 102 during the runtime of the application. Application runtime data is typically stored in RAM 404 and RAM 504 during runtime and communicated through stream channels implemented by the stream switches set by the application. Collectively, the memory-mapped switches (408, 508, and 608) form a memory-mapped network through which applications can be loaded into the DP array 102. In one aspect, the overlays 206 and / or runtime parameters 212 can be communicated through the memory-mapped network. In another aspect, the overlays 206 and / or runtime parameters 212 can be communicated through the stream network. The task to initiate the workload may be communicated over a memory mapped network (e.g., to DMA circuits 434, 502, and / or 602). In another aspect, the task may be communicated over a stream network.

[0096] Referring to the DP Array 102, the configuration data written to the tile's control registers (414, 514, and 614) can also control whether the tile's stream switch operates as a circuit-switched stream interconnect or a packet-switched stream interconnect. The circuit-switched stream interconnect can realize a point-to-point dedicated stream suitable for high-bandwidth communication between tiles of the DP Array 102. The packet-switched stream interconnect allows sharing of streams to time-multiplex multiple logical streams onto one physical channel for medium-bandwidth communication. Thus, the stream switch can be configured to realize a packet-switched stream network through which application data can be conveyed.

[0097] FIG. 7 illustrates an example of cascade connectivity between computational tiles 302. For purposes of illustration, only a subset of computational tiles 302 of the DP array 102 is illustrated. In this example, a processor 420 of a core 402 may be directly connected to one or more other processors 420 of adjacent cores 402. A direct connection between processors 420 is referred to herein as a "cascade connection" and is labeled "CC" in the example of FIG. 7. A cascade connection can operate independently of sharing data through RAMs 404, 504 and / or stream switches. In the example of FIG. 7, each processor 420 is coupled to an adjacent processor 420 via a cascade connection. In other examples, a processor 420 may be connected to other processors via multiple cascade connections.

[0098] Each cascade connection may be viewed by a processor as an output cascade connection or an input cascade connection. For example, from the perspective of the processor 420 of the computational tile 302-6, the cascade connection from the computational tile 302-3 to the computational tile 302-6 may be referred to as an input cascade connection. From the perspective of the processor 420 of the computational tile 302-6, the cascade connection from the computational tile 302-6 to the adjacent computational tile to the right may be referred to as an output cascade connection.

[0099] Each cascade connection may convey a multi-bit data stream (e.g., up to several hundred bits in parallel) from one processor 420 to another. In one aspect, a cascade connection may output the contents of an accumulation register in a processor 420 and convey its contents, e.g., a number of bits per clock cycle, to another internal register of an adjacent processor 420. A receiving register may feed into or be coupled to an accumulation register in a receiving processor 420. An accumulation register is a type of register included in a processor that acts as a temporary storage location that can hold intermediate values ​​generated during the processor's operations. Intermediate results of an operation may be written incrementally to the accumulation register, overwriting previous values. As described above, each cascade connection allows data to be conveyed directly from one processor 420 to another processor 420 without first storing the data in RAM or utilizing a stream switch and / or DMA circuitry.

[0100] Each cascade connection may be independently enabled such that data is propagated over the cascade connection from one processor 420 to another, or disabled such that data is not propagated over the cascade connection. In one aspect, each cascade connection may be selectively enabled based on the kernel program code executed by the respective processor 420. That is, the kernel program code may include instructions that cause the processor 420 to write data to an output cascade connection or read data from an input cascade connection. These instructions may be executed or skipped by writing suitable runtime parameters 212 for the overlay 206 that cause a given processor 420 to perform functions to read data from and / or write data to a cascade connection.

[0101] In another example, the runtime parameters 212 may be used to specify the addressing used by the processor 420 when executing a kernel. For example, the runtime parameters 212 may be used to shift the addressing so that the processor writes to a RAM 404 in the same computational tile, to a specific adjacent RAM 404, and / or to another memory via a DMA circuit and stream switch. In this manner, the movement of data within the DP array 102 may be further modified by loading the appropriate runtime parameters 212 for each overlay 206 that is loaded during the runtime of the application 208.

[0102] In another example, the runtime parameters 212 may select a kernel to execute in a computational tile 302 configured to communicate using input and / or output cascading, or may select a different kernel that may be functionally similar or the same, but does not utilize cascading.

[0103] 8 illustrates an example where a computational tile 302-1 is configured to operate without a cascade connection to another computational tile. The configuration illustrated in FIG. 8 may be achieved by loading an overlay and, optionally, runtime parameters into the DP array 102. For purposes of discussion, an overlay that does not utilize a cascade connection is referred to herein as a "non-cascaded overlay." Similarly, an operating mode achieved in the DP array 102 by a non-cascaded overlay may be referred to as a "non-cascaded mode." In a non-cascaded mode, the processors 420 of the computational tiles 302 do not communicate by way of a cascade connection.

[0104] 8, using a non-cascaded overlay, the computational tiles 302 are configured to perform a matrix multiplication operation. In other examples, the computational tiles 302 may perform other types of operations. For purposes of illustration, the DP array 102 is used to multiply matrices A and B to generate a matrix C. Each computational tile 302 of a partition of the DP array 102 in non-cascaded mode is configured to generate one element of matrix C.

[0105] In this example, computational tile 302-1 generates the dot product of the first row of matrix A and the first column of matrix B to produce element C 00 That is, the calculation tile 302-1 generates (A 00 ×B 00 )+(A 01 ×B 10 In the example of Figure 8, element A 00 , B 00 , A 01 , and B 10 are provided to the computational tile 302-1 via one or more input stream channels implemented in a stream network as part of an application.

[0106] Thus, a DP array (or a partition thereof) with eight computation tiles can generate eight output elements in parallel. In this configuration using a non-cascaded overlay, the DP array 102 can use four computation tiles 302 to compute the matrix C in parallel. Each of the four computation tiles 302 computes an element C of the matrix C. 00 , C 01 , C 10 , and C 11 Calculate one of them in parallel.

[0107] FIG. 9 illustrates an example in which the computational tiles 302-1 and 302-2 are configured to operate using a cascade connection. The configuration illustrated in FIG. 9 may be realized by loading an overlay and optionally runtime parameters into the DP array 102. For purposes of discussion, an overlay utilizing one or more cascade connections is referred to herein as a "cascade overlay." Similarly, an operating mode realized by a cascade overlay may be referred to as a "cascade mode" in which the processors 420 of selected computational tiles 302 communicate via a cascade connection. It should be understood that in some cases, the selected processors 420 may communicate using only a cascade connection, and in other cases, such processors may communicate using a combination of a cascade connection and a stream channel (e.g., a stream network).

[0108] In the example of FIG. 9, using a cascaded overlay, the computational tiles 302 are configured to perform a matrix multiplication operation. In other examples, the computational tiles 302 may perform other operations. For illustration purposes, the DP array 102 is used to multiply matrices A and B to generate a matrix C. In the example of FIG. 9, a pair of computational tiles 302 work together to generate one element of matrix C. FIG. 9 shows that the processors 420 of the computational tiles 302-1 and 302-2 are coupled by a cascaded connection. Thus, the computational tile 302-2 performs matrix multiplication on A, B, and C. 00 ×B 00 On the other hand, the calculation tile 302-1 can calculate A 01 ×B 10 We can calculate and sum up the products.

[0109] For example, A 00 and B. 00 is provided to compute tile 302-2 via one or more input stream channels implemented in a stream network. 01 and B. 10is provided to compute the tile 302-1 via one or more input stream channels implemented in a stream network. 00 ×B 00 The result of A may be output from the accumulation register of the processor 420 of the computational tile 302-2 via a cascade connection to the processor 420 of the computational tile 302-1. The processor 420 of the computational tile 302-1 then 01 ×B 10 Calculate and sum the two products.

[0110] The configuration of FIG. 9 computes element C of matrix C in less time (e.g., using fewer clock cycles) than the example of FIG. 00 9, but utilizing two computation tiles 302 instead of one to compute each element of matrix C. Thus, a DP array with eight computation tiles using the cascade mode of FIG. 9 can generate four elements simultaneously instead of eight. Each cascaded pair of computation tiles 302 can compute an output element using fewer clock cycles than the single computation unit from the example of FIG. 8. In this configuration, using the cascade overlay, computing matrix C can be performed in parallel using all eight computation tiles of the DP array 102, where each set of two cascaded computation tiles computes C. 00 , C 01 , C 10 , and C 11 Calculate one of them in parallel.

[0111] In one or more example implementations, a cascade connection may be disabled by a processor 420 of a computational tile 302 executing a non-cascade kernel. A non-cascade kernel is a kernel that does not include any programming or instructions that cause the processor 420 to read data from or write data to a cascade connection. Similarly, a cascade connection may be enabled by a processor 420 of a computational tile 302 executing a cascade kernel. A cascade kernel is a kernel that includes programming or instructions that cause the processor 420 to read data from or write data to a cascade connection.

[0112] For example, in one or more exemplary implementations, each overlay may specify a particular kernel to be executed by each computational tile 302 to achieve a desired connectivity and / or functionality. Upon initialization of the DP array 102, each program memory 422 may be loaded with one or more different kernels. When executed by the processor 420 in the same computational tile 302, each kernel indicates whether cascade connections should be used. In this example, the kernels may be of a first type that uses cascade connections, or a second type that does not use cascade connections. Of the first type of kernels that use cascade connections, one or more kernels may be configured to read data from the cascade connections (e.g., read cascade kernels), one or more kernels may be configured to write data to the cascade connections (e.g., write cascade kernels), and one or more kernels may be available to read data from and write data to the cascade connections. Another type of kernel, referred to as an activation kernel, may also be included in the program memory 422. The activation kernel may perform a selected activation function. In one aspect, the activation kernel may perform a Rectified Linear (ReLU) activation function. It should be understood that the activation kernel may perform other activation functions. In one example, the particular kernel to be performed (e.g., cascaded and / or non-cascaded, and / or the particular activation function to be performed) may be specified by the runtime parameters 212.

[0113] 7, computational tiles connected by cascade connections enabled in cascade mode may cooperate with each other by selecting an appropriate kernel for execution. For example, computational tile 302-3 may execute a write cascade kernel that writes data to the cascade connection for transmission to computational tile 302-6. Computational tile 302-6 may execute a read cascade kernel that reads data from the cascade connection and receives data from computational tile 302-3, and so on.

[0114] Referring again to the example of FIG. 9, the write cascade kernel executed by the computational tile 302-2 is (A 00 ×B 00 The read cascade kernel executed by the computation tile 302-1 may compute (A 01 ×B 10 ) and summing the results.

[0115] 10A, 10B, and 10C illustrate certain operational characteristics of an exemplary overlay. FIG. 10A, 10B, and 10C illustrate examples of logical connectivity realized by different overlays. In the examples of FIG. 10A, 10B, and 10C, the A terms represent feature maps, while the B terms represent weights. The C terms represent output data items generated by the operations of the computational tiles 302. In the examples of FIG. 10A, 10B, and 10C, the overlay is realized using four computational tiles 302. For example, a partition used to run an application includes four computational tiles.

[0116] FIG. 10A illustrates an exemplary implementation of an overlay and corresponding modes of data movement. In the example of FIG. 10A, the illustrated overlay is characterized by broadcasting of weights. The term "broadcast" refers to the communication of the same data item to multiple different endpoints or destinations over a selected (e.g., single) channel. In this example, the weights are broadcast to each of the four computational tiles 302 over a single stream channel. As shown, weight B 00are first broadcast to each computational tile 302. The weights are used as part of a matrix multiplication operation with a feature map (A) that is also provided to the computational tile. The stream channels to which the feature maps are provided are not illustrated. Obviously, each of the computational tiles 302 illustrated in FIG. 10A receives a different feature map, so four stream channels are needed to convey the feature maps (e.g., one stream channel for each of the illustrated computational tiles 302). In the example of FIG. 10A, no cascade connections are utilized between the computational tiles 302.

[0117] In this example, each computational tile 302 receives the same weights and a different feature map. For example, computational tile 302-2 first receives A 00 and B. 00 The calculation tile 302-1 first receives A 10 and B. 00 The calculation tile 302-3 first receives A 20 and B. 00 The calculation tile 302-6 first receives A 30 and B. 00 Each of the computational tiles 302 performs a matrix multiplication operation. Then, the weights B 10 is broadcast to each of the four computation tiles. 01 and B. 10 The calculation tile 302-1 receives A 11 and B. 10 The calculation tile 302-3 receives A 21 and B. 10 The calculation tile 302-6 receives A 31 and B. 10 Each computational tile 302 then performs a matrix multiplication operation. Each computational tile 302 may sum the results of the two matrix multiplication operations and output the sum.

[0118] FIG. 10B illustrates another exemplary implementation of an overlay and corresponding mode of data movement. In the example of FIG. 10B, the illustrated overlay is characterized by the broadcasting of feature maps. The feature maps are broadcast to each of the four computational tiles 302. The feature maps may be broadcast over a single stream channel. As shown, feature map A 00 is initially broadcast to each computational tile 302. The feature map is used as part of a matrix multiplication operation with weights that are also provided to the computational tile. The stream channels to which the weights are provided are not illustrated. Obviously, each of the computational tiles 302 illustrated in FIG. 10B receives a different weight, so four stream channels are needed to convey the weights (e.g., one for each of the illustrated computational tiles 302). In this example, each computational tile 302 receives the same feature map and different weights. For example, computational tile 302-2 initially receives A 00 and B. 00 The calculation tile 302-1 first receives A 00 and B. 01 The calculation tile 302-3 first receives A 00 and B. 02 The calculation tile 302-6 first receives A 00 and B. 03 Each of the computation tiles 302 performs a matrix multiplication operation. Then, the computation tile 302-2 receives A 01 and B. 10 The calculation tile 302-1 receives A 01 and B. 11 The calculation tile 302-3 receives A 01 and B. 12 The calculation tile 302-6 receives A 01 and B. 13 Each computational tile 302 is capable of performing a matrix multiplication operation. Each computational tile 302 is capable of summing the results of two matrix multiplication operations and outputting the sum.

[0119] 10C illustrates another exemplary implementation of an overlay and corresponding modes of data movement. In the example of FIG. 10C, the illustrated overlay is characterized by the broadcast of multiple weights. A first weight is broadcast to two different computation tiles via one stream channel. A second weight is broadcast to two different computation tiles via one stream channel. The first stream channel broadcasts weight B to computation tiles 302-2 and 302-3. 00 while a second, different stream channel broadcasts weights B 10 In this example, two computational tiles 302 are used to perform two matrix multiplication operations and a sum, thereby resulting in the use of a larger number of computational tiles with faster operations (higher throughput).

[0120] In the example of FIG. 10C, the calculation tile 302-2 is A 00 ×B 00 The result is passed to the computation tile 302-1 via the cascade connection. The computation tile 302-1 performs a matrix multiplication operation of A 01 and B. 10 The computational tile 302-1 sums the results of the two matrix multiplications and outputs the resulting sum. The computational tile 302-3 performs a matrix multiplication operation on A. 10 ×B 00 The result is passed to the computation tile 302-6 via the cascade connection. The computation tile 302-6 performs a matrix multiplication operation of A 11 and B. 10 The computational tile 302-6 performs a matrix multiplication operation of: ##EQU1## The computational tile 302-6 sums the results of the two matrix multiplications and outputs the resulting sum.

[0121] The examples of Figures 10A, 10B, and 10C illustrate how different overlays can realize different modes of data movement for a given application realized in a partition of the DP array 102. For example, in the examples of Figures 10A and 10B, each computation tile generates an element of the resulting C matrix. In the example of Figure 10C, two computation tiles are used to calculate one element of the resulting C matrix. The example of Figure 10C requires twice as many computation tiles as the examples of Figures 10A and 10B to generate four elements of array C, but provides a greater data throughput (e.g., a greater computation speed in that elements of matrix C can be calculated in fewer clock cycles). Each different overlay can be suitable for realizing a layer having a particular shape.

[0122] Figure 11 is a table 1100 illustrating attributes of example overlays used to configure applications for partitions of the DP array 102. In the example of Figure 11, each overlay 0, 1, and 2 implements a particular mode of data movement within the DP array 102 or within a partition of the DP array 102. Each overlay specifies the mode of data movement based on the indicated parameters.

[0123] In this example, the "Cascade" column indicates whether the overlay utilizes a cascade connection. The "IFM Streams" column ("IFM" stands for "Input Feature Map") specifies the number of different feature maps that are sent over stream channels created by the application to the particular computational tile 302 that realizes the overlay. The feature maps may be sent simultaneously. The "W Streams" column specifies the number of different weights that are provided over stream channels created by the application to the particular computational tile 302 that realizes the overlay. The weights may be sent simultaneously.

[0124] Thus, in the example of FIG. 11, overlay 0 implements a mode of data movement referred to as mode 0. In mode 0, the "IFM Stream" parameter of 4 indicates that four different feature maps are conveyed over the stream channels. The "W Stream" parameter of 2 indicates that two different weights are conveyed over the stream channels. Mode 0 is a non-cascaded mode, as indicated by the cascaded parameter.

[0125] In the example of Figure 11, overlay 1 implements a mode of data movement referred to as mode 1. In mode 1, the "IFM Stream" parameter of 2 indicates that two different feature maps are conveyed over the stream channels. The "W Stream" parameter of 4 indicates that four different weights are conveyed over the stream channels. Mode 1 is a non-cascaded mode, as indicated by the cascaded parameter.

[0126] In the example of Figure 11, overlay 2 implements a mode of data movement referred to as mode 2. In mode 2, the "IFM Stream" parameter of 4 indicates that four different feature maps are conveyed over the stream channels. The "W Stream" parameter of 4 indicates that four different weights are conveyed over the stream channels. Mode 2 is a cascade mode, as indicated by the cascade parameter.

[0127] FIG. 12A illustrates an example of stream channels implemented by an application and an implementation of overlay 0 that uses stream channels. In the example of FIG. 12A, different stream channels used to communicate feature maps and weights to the computational tiles 302 are depicted as stream channels 0, 1, 2, 3, 4, 5, 6, and 7. In this example, the stream channels are considered "input" stream channels because they provide data to the computational tiles 302. Stream channels 0-7 communicate feature maps and weights to their respective computational tiles 302. The particular overlay being implemented defines which stream channels communicate which particular weights and which stream channels communicate which particular feature maps.

[0128] For purposes of illustration and convenience, the tiles have been renumbered in Figures 12A, 12B, and 12C. Additionally, the DP array 102, or a partition thereof, includes, in this example, eight computational tiles and two memory tiles.

[0129] In the example of FIG. 12A, different data items (e.g., feature maps and / or weights) may be provided over the various stream channels 0-7 by supplying the data items to the various stream channels from different buffers located within memory tile 306. That is, by connecting a particular buffer to a particular stream channel, the stream channel conveys the type of data item contained in that buffer. As will be discussed, if memory tile 306 is omitted, data may be supplied to stream channels 0-7 from other buffers stored in other memories, whether on-chip or off-chip memories.

[0130] In the example of FIG. 12A, four different feature maps are conveyed along with two different weights. Each of the four different stream channels conveys a different feature map (F0, F1, F2, and F3). The RAM 504 of memory tile 306-1 includes buffers B0, B1, and B2. The RAM 504 of memory tile 306-2 includes buffers B3, B4, and B5. Buffer B0 stores feature map F0. Buffer B1 stores feature map F1. Buffer B2 stores weights W0. Buffer B3 stores weights W1. Buffer B4 stores feature map F2. Buffer B5 stores feature map F3.

[0131] In the example of FIG. 12A, buffer 0 feeds stream channel 0, which is configured to communicate feature map F0 to each of computational tiles 302-1 and 302-2. Buffer 1 feeds stream channel 1, which is configured to broadcast feature map F1 to each of computational tiles 302-3 and 302-4. Stream channel 2 is fed with data from buffer B2. Stream channel 2 is configured to broadcast weights W0 to each of computational tiles 302-1 and 302-6. Stream channel 3 is fed with data from buffer B2. Stream channel 3 is configured to broadcast weights W0 to each of computational tiles 302-3 and 302-8. Stream channel 4 is fed with data from buffer B3. Stream channel 4 is configured to communicate weights W1 to each of computational tiles 302-2 and 302-5. Stream channel 5 is fed with data from buffer B3. Stream channel 5 is configured to broadcast weights W1 to each of computational tiles 302-4 and 302-7. Stream channel 6 is fed from buffer B4. Stream channel 6 is configured to communicate feature map F2 to each of computational tiles 302-6 and 302-5. Stream channel 7 is fed from buffer B5. Stream channel 7 is configured to communicate feature map F3 to each of computational tiles 302-8 and 302-7.

[0132] 12A, the particular data items, e.g., particular feature maps and / or weights, provided to each stream channel depend on the configuration of memory tile 306, and more specifically, the particular buffers (B0, B1, B2, B3, B4, and B5) in memory that are used to supply data to each respective stream channel. The overlay directs the buffer to stream channel pairing by configuring the DMA circuitry in each tile (e.g., memory tile 306 and compute tile 302 in this example).

[0133] Overlay 0 may be implemented within a partition of the DP array 102 by the array controller 106 programming the DMA circuitry of the memory tile 306 with a particular buffer-to-stream channel mapping. In another aspect, if the data is obtained from a memory other than the memory tile 306, the DMA circuitry of other tiles, such as the interface tile 304, which accesses the other memory to provide the data to the computation tile 302, may be programmed with a particular buffer-to-stream channel mapping. The array controller 106 implements overlay 0 of FIG. 12A, for example, by writing the data to the appropriate DMA circuitry to create the mapping of buffers to the indicated stream channels. Additionally, buffers B0-B5 may be moved from other memories to the memory tile 306 by the array controller 106 programming the DMA circuitry of the interface tile 304 and / or memory tile 306 to move such data to implement a layer (e.g., an overlay) of an application.

[0134] The particular kernels and / or functions thereof executed in each processor 420 of each computational tile 302 provide the executable instructions necessary to properly process the data received over the different stream channels. Although the data provided over the stream channels may vary from one overlay to another, the particular kernels and / or functions executed in the various computational tiles 302 may also vary based on the configuration of such kernels by providing appropriate runtime parameters 212 to each computational tile of each overlay being implemented. The runtime parameters 212 provided to each computational tile 302 ensure that the kernels executed by the processors 420 therein properly interpret and apply the received data in performing any calculations for the particular layer being implemented based on the corresponding overlay being used.

[0135] In one or more other example implementations, each overlay may select a kernel to execute in its respective computational tile, and runtime parameters 212 may configure such kernel.

[0136] In the example of Figure 12A, each computational tile 302 outputs results via an output stream channel illustrated in Figure 13. One or more of the computational tiles 302 may also be configured to execute an activation kernel following execution of a non-cascaded kernel.

[0137] FIG. 12B illustrates an example of application-implemented stream channels and an implementation of overlay 1 that uses stream channels. The stream channels illustrated in FIG. 12B are input stream channels. In the example of FIG. 12B, stream channels 0-7 are the same as those described in connection with FIG. 12A. That is, FIG. 12A and FIG. 12B illustrate the same application-implemented stream channels, which may remain in place when different overlays are implemented. Thus, in the example of FIG. 12B, each stream channel 0-7 provides data to the same computational tile 302 as in the example of FIG. 12A.

[0138] In the example of FIG. 12B, different data items (e.g., feature maps and / or weights) may be provided over the various stream channels 0-7 by supplying the data items to the various stream channels from different buffers located within memory tile 306. That is, by connecting a particular buffer to a particular stream channel, the stream channel conveys the type of data item contained in that buffer. As will be discussed, if memory tile 306 is omitted, data may be supplied to stream channels 0-7 from other buffers stored in other memories, whether on-chip or off-chip memories.

[0139] In the example of Figure 12B, two different feature maps are communicated along with four different weights. The RAM 504 of memory tile 306-1 includes buffers B0, B1, and B2. The RAM 504 of memory tile 306-2 includes buffers B3, B4, and B5. Buffer B0 stores feature map F0. Buffer B1 stores weight W0. Buffer B2 stores weight W1. Buffer B3 stores weight W2. Buffer B4 stores weight W3. Buffer B5 stores feature map F1.

[0140] In the example of FIG. 12B, four stream channels are used to convey feature maps. A first pair of two of the four stream channels conveys the same feature map (e.g., F0). A second pair of two of the four stream channels conveys the same feature map (e.g., F1), but a different feature map from that conveyed by the first pair of stream channels. The four stream channels are used to convey four different weights.

[0141] In the example of FIG. 12B, buffer 0 feeds stream channels 0 and 1. As stream channels 0 and 1 are fed with data from the same buffer, each conveys the same data, in this case feature map F0. Stream channel 0 is configured to broadcast feature map F0 to each of computational tiles 302-1 and 302-2. Stream channel 1 is configured to broadcast feature map F0 to each of computational tiles 302-3 and 302-4. Stream channel 2 is fed with data from buffer B1. Stream channel 2 is configured to broadcast weights W0 to each of computational tiles 302-1 and 302-6. Stream channel 3 is fed with data from buffer B2. Stream channel 3 is configured to broadcast weights W1 to each of computational tiles 302-3 and 302-8. Stream channel 4 is fed with data from buffer B3. Stream channel 4 is configured to broadcast weights W2 to each of computational tiles 302-2 and 302-5. Stream channel 5 is fed from buffer B4. Stream channel 5 is configured to broadcast weights W3 to each of computational tiles 302-4 and 302-7. Stream channel 6 and stream channel 7 are fed from the same buffer B5. Stream channel 6 is configured to broadcast feature map F1 to each of computational tiles 302-6 and 302-5. Stream channel 7 is configured to broadcast feature map F1 to each of computational tiles 302-8 and 302-7.

[0142] In the example of Figure 12B, feature maps F0 and F1 and weights W0, W1, W2, and W3 are provided to the computational tile 302 from the memory tile 306. The particular data items, e.g., the particular feature maps and / or weights, provided to each stream channel depend on the configuration of the memory tile 306, and more specifically, the particular buffers (B0, B1, B2, B3, B4, and B5) in memory that are used to supply data to each respective stream channel. The overlay directs the buffer to stream channel pairing by configuring the DMA circuitry in each tile (e.g., memory tile 306 in this example).

[0143] Overlay 1 may be implemented within a partition of the DP array 102 by the array controller 106 programming the DMA circuitry of the memory tiles 306 with a particular buffer-to-stream channel mapping. In another aspect, if the data is obtained from a memory other than the memory tiles 306, the DMA circuitry of other tiles, such as the interface tiles 304, which access other memories to provide data to the computation tiles 302, may be programmed with a particular buffer-to-stream channel mapping. The array controller 106 implements overlay 1 of FIG. 10B, for example, by writing data to the appropriate DMA circuitry to create the mapping of buffers to the indicated stream channels, and moving the data to create buffers within the memory tiles 306 as illustrated.

[0144] The particular kernels and / or functions thereof executed in each processor 420 of each computational tile 302 provide the executable instructions necessary to properly process the data received over the different stream channels. Although the data provided over the stream channels may vary from one overlay to another, the particular kernels and / or functions executed in the various computational tiles 302 may also vary based on the configuration of such kernels by providing appropriate runtime parameters 212 to each computational tile of each overlay being implemented. The runtime parameters 212 provided to each computational tile 302 ensure that the kernels executed by the processors 420 therein properly interpret and apply the received data in performing any calculations for the particular layer being implemented based on the corresponding overlay being used.

[0145] In one or more other example implementations, each overlay may select a kernel to execute in its respective computational tile, and runtime parameters 212 may configure such kernel.

[0146] In the example of Figure 12B, each computational tile 302 outputs results via an output stream channel illustrated in Figure 13. One or more of the computational tiles 302 may also be configured to execute an activation kernel following execution of a non-cascaded kernel.

[0147] FIG. 12C illustrates an example of application-implemented stream channels and an implementation of overlay 2 that uses stream channels. The stream channels illustrated in FIG. 12C are input stream channels. In the example of FIG. 12C, stream channels 0-7 are the same as those described in connection with FIG. 12A and FIG. 12B. That is, FIG. 12A, FIG. 12B, and FIG. 12C illustrate stream channels implemented by the same application and may remain in place when different overlays are implemented. Thus, in the example of FIG. 12C, each stream channel 0-7 provides data to the same computational tile 302 as in the example of FIG. 12B.

[0148] In the example of FIG. 12C, four different feature maps are communicated along with four different weights. The RAM 504 of memory tile 306-1 includes buffers B0, B1, B2, and B3. The RAM 504 of memory tile 306-2 includes buffers B4, B5, B6, and B7. Buffer B0 stores feature map F0. Buffer B1 stores feature map F1. Buffer B2 stores weights W0. Buffer B3 stores weights W1. Buffer B4 stores weights W2. Buffer B5 stores weights W3. Buffer B6 stores feature map F2. Buffer B7 stores feature map F3.

[0149] As mentioned above, overlay 2 is a cascade overlay that implements a cascade mode. In the example of FIG. 12C, selected processors 420 of the computational tiles 302 are connected, e.g., configured to communicate, using cascade connections. In the cascade mode, the cascade connections, e.g., at least selected ones of the cascade connections, are enabled. That is, the enabled ones of the cascade connections can pass data. Although the example of FIG. 12C utilizes vertical cascade connections (e.g., cascade connections between processors in the same column), it should be understood that the cascade connections can run horizontally (row-wise) and / or vertically (column-wise) according to the particular DP array architecture and overlay being implemented.

[0150] An example of a cascade connection being enabled is by a processor 420 of a computational tile 302 executing a kernel and / or function configured by runtime parameters 212 to write data to an output cascade connection and another kernel and / or function in another processor 420 coupled to the same cascade connection configured by runtime parameters 212 to read data from an input cascade connection. In the example of Figure 12C, the pairs of cascaded computational tiles are computational tiles (302-1 and 302-3), (302-2 and 302-4), (302-5 and 302-7), and (302-6 and 302-8).

[0151] In the example of Figure 12C, configured to achieve overlay 2 for an application, each of stream channels 0-7 is fed data from a different buffer stored in memory tile 306. In the example of Figure 12C, each of stream channels 0-7 is fed data from a respective one of buffers B1, B2, B3, B4, B5, B6, and B7. In the example of Figure 12C, four stream channels are used to convey four different feature maps, and four stream channels are used to convey four different weights.

[0152] As a result, stream channel 0 is configured to broadcast feature map F0 to each of computational tiles 302-1 and 302-2. Stream channel 1 is configured to broadcast feature map F1 to each of computational tiles 302-3 and 302-4. Stream channel 2 is configured to broadcast weights W0 to each of computational tiles 302-1 and 302-6. Stream channel 3 is configured to broadcast weights W1 to each of computational tiles 302-3 and 302-8. Stream channel 4 is configured to broadcast weights W2 to each of computational tiles 302-2 and 302-5. Stream channel 5 is configured to broadcast weights W3 to each of computational tiles 302-4 and 302-7. Stream channel 6 is configured to broadcast feature map F2 to each of computational tiles 302-5 and 302-6. Stream channel 7 is configured to broadcast feature map F3 to each of computational tiles 302-7 and 302-8.

[0153] Overlay 2 may be implemented within a partition of the DP array 102 by the array controller 106 programming the DMA circuitry of the memory tiles 306 with specific buffer to stream channel mappings. In another aspect, if the data is available from a memory other than the memory tiles 306, the DMA circuitry of other tiles, such as the interface tiles 304, which access other memories to provide data to the computation tiles 302, may be programmed with specific buffer to stream channel mappings. The array controller 106 implements overlay 2 of FIG. 12C, for example, by writing data to the appropriate DMA circuitry to create a mapping of buffers to stream channels, creating the buffers illustrated in the example of FIG. 12C.

[0154] The particular kernels and / or functions thereof executed in each processor 420 of each computational tile 302 provide the executable instructions necessary to properly process the data received over the different stream channels. Although the data provided over the stream channels may vary from one overlay to another, the particular kernels and / or functions executed in the various computational tiles 302 may also vary based on the configuration of such kernels by providing appropriate runtime parameters 212 to each computational tile of each overlay being implemented. The runtime parameters 212 provided to each computational tile 302 ensure that the kernels executed by the processors 420 therein properly interpret and apply the received data in performing any calculations for the particular layer being implemented based on the corresponding overlay being used.

[0155] In one or more other example implementations, each overlay may select a kernel to execute in its respective computational tile, and runtime parameters 212 may configure such kernel.

[0156] The examples of Figures 12A, 12B, and 12C illustrate that by loading an overlay into a partition of a DP array, different data is distributed across tiles of the partition, thereby enabling different modes of data movement between tiles. The different modes of data movement can be achieved at least thanks to sending different weights and / or feature maps through different ones of the established stream channels. This allows different modes of data movement to be realized for the same application. That is, for a given application that specifies the computational tiles and kernels to be executed by a particular stream channel, different modes can be realized without reconfiguring the DP array 102.

[0157] Figure 13 illustrates another example of a stream channel implemented by an application. The example of Figure 13 illustrates an output stream channel for an application. That is, the stream channel illustrated in Figure 13 may be implemented by the same application referenced in Figures 12A, 12B, and 12C to output data from the computational tiles 302 of the partition illustrated for the different overlays described.

[0158] In the example of FIG. 13, stream channels (e.g., output stream channels) 0, 1, 2, 3, and 4 are implemented. The output stream channels can be implemented by configuring the stream switches of the various tiles included in the partition, similar to the input stream channels described above. In this example, stream channel 0 communicates output data items (e.g., C) generated by computation tiles 302-1 and 302-2 to memory tile 306-1 (or other memory as discussed). Stream channel 1 communicates output data items generated by computation tiles 302-3 and 302-4 to memory tile 306-1. Stream channel 2 communicates output data items generated by computation tiles 302-5 and 302-6 to memory tile 306-2. Stream channel 3 communicates output data items generated by computation tiles 302-7 and 302-8 to memory tile 306-2.

[0159] When a cascade overlay is used, the stream channels located at the ends (e.g., destination tiles) of a set of cascaded computational tiles 302 may be used. For example, the stream channels (0 and 3) shown with dashed lines are not used. Instead, stream channels 1 and 2 are used to convey output data items generated by computational tiles 302-3, 302-4, 302-7, and 302-8 to memory tiles 306-1 and 306-2.

[0160] In one or more other example implementations, kernels executed within the computational tiles 302 illustrated in FIG. 13 may be configured using runtime parameters to indicate where output data items are directed or written. The kernels may be configured by the runtime parameters to write data to the appropriate address (e.g., a particular stream switch or output cascade interface) for each overlay. For example, while implementing a non-cascaded overlay, the kernel executed by the computational tile 302-1 directs output to output stream channel 0. The kernel executed by the computational tile 302-3 directs output to output stream channel 1. In comparison, when implementing a cascaded overlay, the kernel executed by the computational tile 302-1 directs output to the computational tile 302-3 via the cascade connection. The kernel executed by the computational tile 302-3 directs output to output stream channel 1.

[0161] Different overlays are described within this disclosure. It should be understood that other overlays using more than one cascade connection to link more than two computation tiles 302 can be realized. That is, while the cascade mode illustrated herein is created using a computing cluster of two computation tiles 302, in other configurations, a computing cluster of three, four, or more computation tiles 302 linked by cascade connections can be formed. Furthermore, partitions of the DP array 102 can be configured by loading an application and sequentially loading overlays over time that correspond to different layers of the application being executed. This allows a partition to execute the workload of a given layer of an application in a wholly or partially repetitive manner when the size of the layer is larger than the partition. It should be understood that the dimensions of any matrix multiplication operations performed by a partition can vary from those illustrated, particularly from one workload (e.g., overlay / mode) to another.

[0162] Figure 14 illustrates an example method 1400 illustrating certain operational features of the system 100 of Figure 1. For purposes of illustration, the array controller 106 may perform the operations described in connection with the method 1400. It should be understood that in other example implementations, a processor may perform the operations attributed to the array controller 106. Additionally, in other example implementations, the processor may provide instructions to the array controller 106 to control the operation of the DP array 102.

[0163] In the example of FIG. 14, reference is made to a partition of the DP array 102. As discussed, a partition may encompass the entire DP array 102 or a subset of tiles of the DP array 102. Method 1400 may be performed for either type of partition. Additionally, an array controller may perform the operations of FIG. 14 for multiple partitions operating simultaneously. In other example implementations, the operations described in connection with FIG. 14 may be performed by two or more different array controllers operating simultaneously to control different partitions, each running a different application. Each partition may operate independently of the others, regardless of whether the partitions are under the control of the same array controller or different array controllers.

[0164] In block 1402, the array controller 106 loads an application into a partition of the DP array 102. The DP array 102 includes multiple computation tiles, each having a processor. The application specifies kernels executable by the processors and implements stream channels (e.g., input stream channels) that communicate data to the multiple computation tiles. The application also implements output stream channels.

[0165] For example, loading an application into the DP array 102 performs an initialization of a partition of the DP array 102. In executing block 1402, the array controller 106 can load an executable kernel into the program memory 422 of the computational tile 302 of the partition, initialize any memory of the partition (e.g., the RAM 404 of the computational tile 302 and / or the RAM 504 of the memory tile 306), and implement stream channels by loading configuration data into the control registers 414, 514, and / or 614. The loading of the application, including the initialization and configuration data, can be performed by the array controller 106 writing such data over a memory mapped network formed from the memory mapped switch of the tile.

[0166] In block 1404 , the array controller 106 may load an overlay that corresponds to a layer of an application to be executed by a partition of the DP array 102 .

[0167] In one aspect, each overlay specifies a different mapping of buffers to stream channels implemented by the application. Each buffer may contain a particular data type (e.g., feature maps or weights). Further, each buffer may contain a particular element of a data type. In one or more examples, implementing a selected one of the multiple overlays is performed by array controller 106 programming a plurality of DMA circuits to communicate data from a particular buffer to a selected one of the computation tiles via a selected one of the stream channels.

[0168] In another aspect, the mode of data movement for each overlay is characterized by the number of input feature maps and weights that are conveyed over the stream channel.

[0169] In one aspect, sequentially implementing the multiple overlays includes programming multiple DMA circuits with different mappings of buffers to stream channels for each overlay. As an example, a selected overlay may be implemented within a partition for an application by programming multiple DMA circuits to communicate data from particular buffers to selected ones of the compute tiles via selected ones of the stream channels.

[0170] In another aspect, sequentially realizing multiple overlays includes setting up various buffers that are mapped to the stream channels. The array controller 106 can program the DMA circuits of the interface tiles 304 and / or memory tiles 306 to move data, for example, to create the various buffers mapped to the stream channels to contain the correct data.

[0171] In one aspect, an application implements a neural network, each layer of the neural network being mapped to one of a plurality of overlays, different ones of which are loaded over time to implement respective layers of the neural network.

[0172] In one example, the array controller 106 may execute a control application that specifies a schedule stored in memory. The schedule specifies the workloads to be executed by the application implemented in the partitions. The workloads may be generated by the compiler 204. The schedule may specify which overlays are to be loaded as part of a series of overlays that are loaded for the application to execute a series of workloads (e.g., to implement layers of the application and execute the workloads of each layer). In another aspect, another processor, such as a host processor, may instruct the array controller 106 to initiate the loading of a particular overlay in a partition of the DP array 102. In that case, the other processor dictates the schedule or sequence of overlays to be implemented by the array controller 106 on the DP array 102.

[0173] In block 1406, the array controller 106 loads runtime parameters into the partition of the overlay loaded in block 1404. Each layer of the application may be associated with a set of runtime parameters. The runtime parameters may be computation tile specific. The runtime parameters configure various kernels for execution. Thus, in block 1406, the array controller 106 selects runtime parameters for the layers implemented by the overlay loaded into the partition in block 1404 and loads the runtime parameters into the RAM 404 of the computation tile 302. The loaded runtime parameters may be for one or more selected computation tiles or all computation tiles of the partition of the DP array 102.

[0174] In one aspect, the array controller 106 can provide runtime parameters to a selected one of the plurality of computational tiles for a selected one of the plurality of overlays. The runtime parameters set operational parameters of a kernel executed by the selected computational tile. For example, the runtime parameters are used by a processor of the selected computational tile in executing a kernel stored therein to change operational characteristics of the selected computational tile. However, it should be understood that the runtime parameters loaded can be for one or more selected computational tiles or all computational tiles of a partition of the DP array 102.

[0175] In one aspect, the runtime parameters for a selected computational tile can alter the execution flow of a kernel executed by the selected computational tile. For example, the kernel can be configured to read values ​​from the runtime parameters and selectively execute certain functions (e.g., execute certain functions and / or skip execution of certain functions) based on the read values. Thus, when different runtime parameters are loaded into a partition of the DP array during runtime of different layers, the function and / or runtime behavior of the kernel of the application can be modified.

[0176] This allows each kernel to perform different operations based on the specific runtime parameter values ​​read for the different layers being implemented and according to the overlay used for each layer. For example, different layers of an application may utilize different functions such as matrix multiplication, convolution, batch normalization, ReLU, other activation functions, or other operations. The runtime parameters loaded for an overlay may specify which of the functions available in the kernel or different kernels should be executed on a per-computation tile basis for a given overlay. The runtime parameters may cause the kernel to execute, for example, an activation function or may not depend on the value of the runtime parameters.

[0177] Thus, the particular function executed by each kernel may depend on the runtime parameters loaded into the computational tile and may vary from one layer to another based on the particular runtime parameters loaded. Thus, for purposes of illustration, the last computational tile 302 in a cascaded configuration may be instructed to execute an activation function, while other computational tiles 302 in the cascaded configuration may not execute an activation function.

[0178] In one or more examples, the runtime parameters may activate or deactivate a cascade connection between the selected computational tile and at least one other computational tile of the plurality of computational tiles. For example, the runtime parameters may cause a processor of the selected computational tile to provide data to another computational tile by writing to an output cascade connection or to receive data from another computational tile by reading from an input cascade connection.

[0179] In one example, the overlays correspond to particular layers of an application. Then, for each layer, the runtime parameters specify one or more dimensions of the particular layer that are implemented using the overlays loaded into the partitions of that layer. For example, the runtime parameters may specify at least one of the number of rows of a matrix to be processed or the number of columns of a matrix to be processed.

[0180] In one or more example implementations, the runtime parameters may cause a kernel to read from and / or write to a particular location (e.g., memory) within the DP array 102. For example, the runtime parameters may cause a kernel to read from and / or write to local RAM 404, a particular RAM 404 of an adjacent compute unit, and / or RAM 504 of a particular memory tile 306.

[0181] In another aspect, the runtime parameters may specify or select a particular kernel among multiple kernels in a computational tile to be executed in the respective computational tile, hi other aspects, the overlay may specify a kernel to be executed with runtime parameters that configure each kernel.

[0182] At block 1408, the partitions of the DP array 102 execute the workload as configured by the application and based on the overlay and runtime parameters. In response to completing the workload, the method 1400 may loop back to block 1404, where the array controller 106 may initiate a new process for a different layer of the application.

[0183] For example, in one aspect, when the array controller 106 realizes the next layer of the application, it loads a different overlay into the partition of the DP array 102 for that layer. In that case, the array controller 106 may continue and load the runtime parameters for the different overlay. In another aspect, the overlay to be used for the next layer may be the same overlay that was used for the previous layer of the application. In that case, the array controller 106 may leave the overlay loaded and proceed to block 1406. The runtime parameters may or may not be the same.

[0184] Method 1400 illustrates that during runtime of an application, multiple overlays are sequentially implemented within a partition of the DP array 102. Each overlay implements a different mode of data movement in the DP array 102 using stream channels. As described above, each overlay may be used to implement a particular layer of an application within a partition. For each implemented overlay (e.g., layer), a workload may be executed by moving data to multiple compute tiles based on the respective mode of data movement.

[0185] For example, sequentially implementing the multiple overlays may include implementing a first overlay of the multiple overlays to execute a first workload including a first matrix multiplication operation. A second overlay of the multiple overlays may be implemented to execute a second workload including a second matrix multiplication operation. The first matrix multiplication operation and the second matrix multiplication operation may be of different dimensions. In one aspect, linking a particular buffer to an input stream channel for the purpose of conveying data may be set by loading of the overlay. That is, an input stream channel may be established with respect to connectivity to a particular tile, but the buffer from which each such input stream channel obtains data to provide to the tile is determined by the overlay loaded into the DP array 102.

[0186] Different overlays and runtime parameters can be loaded into partitions of the DP Array 102 without loading different applications into the DP Array 102 that load different kernels into computational tiles or modify stream channels, so that different layers of an application can be realized within a partition.

[0187] As discussed, the DP array 102 may be subdivided into multiple partitions, each of which may include a subset of multiple computation tiles, each of which is adapted to simultaneously execute different applications and sequentially realize multiple different overlays specific to the application executed by the partition.

[0188] The inventive configurations described within this disclosure provide an efficient and flexible technique for adapting a DP array to achieve different layers of machine learning or other layered applications. Compared to loading an overlay, loading an application can take time because the size of the application (e.g., including kernel and configuration data) is large compared to the size of the overlay and / or runtime parameters. Thus, the application can be loaded at start-up and adapted to different workloads through loading of the overlay and runtime parameters. If one attempted to reconfigure the entire partition of the DP array for each layer (e.g., with a new application for each layer), the DP array would lose significant clock cycles undergoing continuous reconfiguration. By isolating certain elements, e.g., application and data movement, the DP array can be adapted to different layers of an application without incurring substantial timing penalties for reconfiguration. Furthermore, the DP array operates in a more computationally efficient manner for each respective layer of the application.

[0189] In one or more other example implementations, an application loaded into the DP array may have multiple kernels loaded into the RAM 404 of a computational tile. Runtime parameters may then be used to select a particular kernel to be executed for each overlay, with each kernel adapted to the data movement of the overlay in which it is loaded. Thus, the particular kernel selected for execution for a given computational tile 302 may differ from the particular kernel selected for execution for a different computational tile 302.

[0190] In one aspect, the array controller 106 can provide tasks to task queues of the various DMA circuits 434, 502, 602 to move data to and from the DP array 102. In one example, as each task is completed, the DMA circuits can generate a notification that the task is complete, thereby allowing the array controller 106 to track the progress of the workload being executed by the DP array 102.

[0191] As will be discussed, an overlay specifies particular input buffers to be used to supply data to input stream channels and / or particular output buffers to receive data from output stream channels established in the DP array 102. The specified input and / or output buffers may vary from overlay to overlay.

[0192] Figure 15 illustrates an example in which the DP array 102 includes multiple partitions, each controlled by an array controller 106. In the example of Figure 15, the DP array 102 is partitioned into multiple partitions 1502, 1504. Each partition 1502, 1504 includes one or more computational tiles 302, optionally one or more memory tiles 304 (if included in the DP array 102, for example), and one or more interface tiles 306.

[0193] In the example of Figure 15, a single array controller 106 can control the operation of multiple partitions. Each of the partitions 1502, 1504 can operate independently of one another, although under the control of the array controller 106. Thus, partition 1502 may run one application, while, for example, partition 1504 runs a different application at the same time. The array controller 106 can control each partition with respect to loading applications, loading overlays, loading runtime parameters, and initiating workloads for layers of the application.

[0194] 16A, 16B, 16C, 16D, 16E, 16F, and 16G illustrate different exemplary architectures for an IC including a DP array 102 and an array controller 106. In the example of FIG. 16A, the IC includes programmable logic 1602 used to implement the array controller 106. In one aspect, the array controller 106 can be implemented as a state machine circuit. In another example, the array controller 106 can be implemented as a soft processor. A soft processor refers to a processor formed or implemented using the programmable logic 1602, e.g., a circuit capable of executing program code.

[0195] In one or more examples, the array controller 106 may execute a control application 214 from a memory (not shown) to control the operation of the DP array 102. In another example implementation, the array controller 106 may operate under the control of a processor 1604. The processor 1604 may be implemented as a hardwired processor.

[0196] The example of Figure 16B may operate substantially as described in connection with Figure 16A, except that the array controller 106 may be implemented as a hardwired circuit block. In one aspect, the array controller 106 may be implemented as a state machine circuit. In another example, the array controller 106 may be implemented as a processor capable of executing program code.

[0197] In the example of FIG. 16C, more than one array controller is implemented and is shown as array controller 106-1 and array controller 106-2. In one example, both array controllers 106-1 and 106-2 are implemented within programmable logic 1602. In one aspect, array controller 106-1 may be assigned or allocated a particular subset of tiles of DP array 102, such as partition 1502, while array controller 106-2 may be assigned a different non-overlapping subset of tiles of DP array 102, such as partition 1504. For example, viewing DP array 102 as a grid of columns 1 to N, array controller 106-1 may control the tiles within columns 1 to (M-1), while array controller 106-2 may control the tiles within columns M to N, where M and N are integers and M < N. In one aspect, each subset of tiles may be considered a partition that is independent from other partitions. Each partition may execute and run different applications therein and may be controlled completely independently from other partitions. Tiles and stream channels within different partitions in the examples provided herein are separated from each other.

[0198] In one or more examples, each of array controllers 106-1 and 106-2 of FIG. 16C may execute its own control application 214 from memory (not shown) to control the operation of each respective partition of DP array 102. In another exemplary implementation, array controllers 106-1 and 106-2 may operate under the control of processor 1604. Processor 1604 may be implemented as a hardwired processor or as a soft processor. In either case, processor 1604 can independently control each of array controllers 106-1 and 106-2 to effect independent operation of the partitions controlled by each respective array controller. For example, processor 1604 may write control application 214 to memory accessible by array controllers 106-1 and 106-2.

[0199] The example of Figure 16D may operate substantially as described in connection with Figure 16C, except that array controller 106-1 and array controller 106-2 may each be implemented as hardwired circuit blocks. The array controllers may be implemented as state machine circuits or as processors capable of executing program code.

[0200] In one or more other example implementations, the array controller 106-1 of FIG. 16C and / or FIG. 16D may be implemented using programmable logic 1602 (e.g., as a state machine circuit or a soft processor), while the array controller 106-2 is implemented as a hardwired circuit block (e.g., an ASIC block) that implements the state machine circuit or processor.

[0201] In the example of Figure 16E, the processor 1604 is not implemented or embedded in an IC. For example, the processor 1604 may be implemented as an x86 type processor or another type of processor having another instruction set architecture. The processor 1604 may be located within or may be part of another data processing system to which the IC is communicatively linked.

[0202] In one or more examples, each array controller 106-1 and 106-2 may execute its own control application 214 from memory (not shown) to control the operation of its respective partition of the DP array 102. In another example implementation, the array controllers 106-1 and 106-2 may operate under the control of a processor 1604. In various examples described herein, an array controller operating under the control of a processor may include the processor 1604 writing the control application 214 executed by the array controller to memory accessible by the array controller 106 for execution.

[0203] In the example of Figure 16E, the IC does not include programmable logic. Thus, the array controllers 106-1 and 106-2 may be implemented as hardwired circuit blocks (e.g., ASIC circuit blocks). In the example of Figure 16E, the array controllers 106-1 and / or 106-2 may be implemented as hardwired state machine circuits or hardwired processors.

[0204] The example of Figure 16F may operate substantially as described in connection with Figure 16E, except that the IC includes programmable logic 1602. Thus, one or both of array controllers 106-1 and / or 106-2 may be implemented using programmable logic, whether as a state machine or as a soft processor.

[0205] In the example of Figure 16G, the IC architecture includes a single array controller 106 implemented as a hardwired circuit block (e.g., an ASIC block). The array controller 106 may be implemented as a hardwired state machine circuit or a hardwired processor. The single array controller may control two or more partitions (e.g., partitions 1502, 1504) of the DP array 102 through the execution of a control application 214.

[0206] In the example of Figure 16H, the IC architecture includes programmable logic 1602. In the example of Figure 16H, the IC includes a single array controller 106 implemented using programmable logic 1602. The array controller 106 may be implemented as a state machine circuit or a soft processor. The single array controller may control two or more partitions (e.g., partitions 1502, 1504) of the DP array 102 through execution of a control application 214.

[0207] In the examples of Figures 16A, 16B, 16C, 16D, 16E, 16F, 16G, and 16H, the particular number of array controllers 106 shown is provided for illustrative purposes. One, two, or more array controllers 106 may be included in an IC to control the DP array 102. In one aspect, the array controllers 106 correspond on a one-to-one basis to the partitions implemented in the DP array 102. For example, each array controller 106 may be dedicated to control a particular partition of the DP array 102. Each array controller 106 may control the loading of applications, loading of overlays and runtime parameters, and initiation of workloads for a respective partition of the DP array 102. In other examples, the array controller to partition ratio need not be one-to-one.

[0208] When initiating a workload, the array controller 106 can provide pointers (e.g., memory addresses) to the partitions of the DP array 102 that are being controlled to specify input data (e.g., feature maps and weights) to be processed from the buffers. Each array controller 106 can further provide control information. In one aspect, the array controller 106 can write tasks to various DMA circuits of tiles in the respective partitions. For illustration purposes, the tasks can specify buffer descriptors, pointers, and / or control data. For example, the tasks can specify pointers to data to move to the DMA circuits to create buffers, program the DMA circuits to map specific buffers to specific stream channels, and / or provide data items to the computational tiles 302. For example, each DMA circuit can include one or more task queues. The array controller 106 can write tasks to these task queues as part of executing the control application 214. As an illustrative and non-limiting example, the array controller 106 can write tasks, e.g., programming, to the DMA circuitry via various communication mechanisms described herein (e.g., memory mapped and / or stream switches, via direct connections, and / or via connections to the interfaces 604 of the interface tiles 304) to accomplish the data movement. For example, the array controller 106 can implement the overlay by writing buffer descriptors or other data to the DMA circuitry.

[0209] For illustrative purposes, referring to the example of FIG. 10B, the array controller 106 may create a buffer in the memory tile 306. The array controller 106 may then transmit the data to the DMA circuit via a stream channel. 00 to the computation tile 302-2, 00 The array controller 106 may provide a pointer to the DMA circuitry of the memory tile 306 that specifies the address of the 01Another pointer specifying the address of A can be provided to the DMA circuit of the memory tile 306 so that the DMA circuit can transmit the 01 to the compute tile 302-2. The array controller 106 can continually provide pointers to convey the various data items illustrated so that the partitions can execute the workload for each given layer using the correct sequence of operations based on the overlay being used.

[0210] In performing the functionality described herein, the controller 106 reduces the workload imposed on other processors, whether embedded in the IC itself or implemented externally to the IC and located within the host data processing system. Although the size of the DP array 102 is relatively small in the exemplary diagrams disclosed herein for purposes of illustration, the DP array 102 may include hundreds of tiles in various configurations. Thus, the number of data transfer and data movement operations required to keep the DP array 102 operating at or near full capacity may be significant. The inclusion of one or more array controllers 106 frees up significant processing resources (e.g., clock cycles) of other processors. Furthermore, the inclusion of such a controller on the same IC as the DP array 102 facilitates more efficient operation and greater data throughput.

[0211] In one or more exemplary implementations, the array controller 106 may control the operation of the computational tiles 302, the interface tiles 304, and the memory tiles 306. In some configurations, the array controller 106 may not control the operation of the computational tiles 302. For example, the computational tiles 302 may operate under the control of a kernel executed by the respective processor 420 of the computational tiles 302. As discussed above, runtime parameters provided by the computational tiles 302 may vary the functionality of the kernel. In one or more other exemplary implementations, the array controller 106 may control the operation of the computational tiles 302, the interface tiles 304, and the memory tiles 306.

[0212] 17 illustrates an example method 1700 of operation of an IC including a DP array 102. The method 1700 illustrates various operations performed by the array controller 106 to execute a workload using the DP array 102.

[0213] At block 1702, the array controller 106 loads an application into a partition of the DP array 102. The application includes multiple kernels that are executable by the computational tiles 302. More specifically, the kernels are executable by the processors 420 of the computational tiles 302. As discussed, the application loads the kernels into the computational tiles of the partition, initializes the memory of the partition, and implements stream channels (e.g., input and output stream channels) for communicating data to the computational tiles and outputting data from the computational tiles.

[0214] In block 1704, the array controller 106 loads an overlay to implement the layer of the application in the partition. The array controller 106 also loads run-time parameters for the layer.

[0215] In block 1706, the array controller 106 starts the workload in the partition as configured by the application, overlay, and runtime parameters. The array controller 106 may start the workload by writing tasks to the tile's DMA circuitry. The tasks, specified by the controlling application, sequence the layers and the operations required to realize each layer. The tasks may move data to create buffers. The tasks may specify addresses of data contained in the buffers, e.g., feature maps and weights, to communicate the data to the computational tiles via each of the stream channels. The tasks may specify pointers to output buffers to be used in writing data generated by the computational tiles.

[0216] In one or more example implementations, the instructions executed by the array controller 106 may be pre-generated by a compiler 204. The instructions may be embodied as a control application 214 that includes mappings 210 and runtime parameters 212 and specifies schedules as described herein. The array controller 106 may execute the instructions at runtime to run the application and perform various operations as described herein.

[0217] In another aspect, the schedule of the control application 214 specifies the number of times each partition will iterate to complete a given layer when executing an application programmed with overlay and runtime parameters. That is, in some cases, a partition may be able to realize an entire layer of an application without needing to execute a loop. In other cases, a layer is divided into sections and a partition is iterated multiple times (e.g., corresponding to the number of sections) to complete the workload of the layer. It should be appreciated that the control application generated by the compiler 204 controls this aspect of the operation of each partition with respect to different layers of the application being executed.

[0218] After block 1706, the method 1700 may loop back to block 1704 to continue processing additional workloads. Thus, the array controller may control the loading of applications, overlays, and runtime parameters into partition and sequence workloads by providing pointers and / or control information to the DP array 102.

[0219] In one or more other example implementations in which the DP array 102 is partitioned into multiple partitions and includes multiple controllers 106, each controller may be dedicated to control a particular partition of the DP array 102. In such cases, each controller may independently control a partition of the DP array 102. For example, each array controller 106 may perform the operations described herein in connection with FIG. 17 with respect to the partition controlled by that array controller. Thus, the DP array 102 may independently execute multiple applications therein, with each application executing within a different partition controlled by a different array controller 106.

[0220] Additionally, each array controller 106 is also capable of performing the operations described herein in connection with FIG. 17 with respect to the partitions controlled by that controller. Thus, each partition may implement different overlays over time under the control of the particular array controller for that partition. The overlays implemented by each partition are different based on the applications executed by each respective partition. This allows each partition to operate independently and with a dedicated array controller 106 to control the loading of applications, overlays, runtime parameters, and workload sequencing by providing pointers and / or control information.

[0221] Figure 18 illustrates additional operational features of the array controller 106. In the example of Figure 18, the array controller 106 may issue a task 1802 to the array interface 104. The array controller 106 may further receive notification 1804 when a particular task performed by a computational tile 302 has completed execution. In one aspect, the notification received by the array controller 106 may be received via a memory mapped switch, via a stream switch, and / or as an interrupt provided through another interface that couples the particular tile or component issuing the interrupt to the array controller 106.

[0222] In this manner, the array controller 106 may continue to provide tasks to the DP array 102, such that the DP array 102, or multiple partitions within the DP array 102, may continue to operate without host processor (e.g., from a host computer) intervention or involvement. As an illustrative and non-limiting example, the array controller 106 may initiate data transfers between DMA circuits of the interface tiles 304 and / or memory tiles 306 to provide data to and receive data generated by the computational tiles 302. The array controller 106 may continue to store tasks in the task queues of the DMA circuits, such that such DMA circuits may continue to operate as long as tasks remain to be processed.

[0223] 19 illustrates an example implementation of a data processing system 1900. As defined herein, the term "data processing system" means one or more hardware systems configured to process data, each hardware system including at least one processor and memory, where the processor is programmed with computer readable instructions that initiate operations when executed. The data processing system 1900 can include a processor 1902, a memory 1904, and a bus 1906 that couples various system components including the memory 1904 to the processor 1902.

[0224] The processor 1902 may be implemented as one or more processors. In one example, the processor 1902 is implemented as a central processing unit (CPU). The processor 1902 may be implemented as one or more circuits capable of executing instructions contained in a program code. The circuits may be integrated circuits or may be embedded in an integrated circuit. The processor 1902 may be implemented using a complex instruction set computer architecture (CISC), a reduced instruction set computer architecture (RISC), a vector processing architecture, or other known architectures. Exemplary processors include, but are not limited to, processors having x86 type architectures (IA-32, IA-64, etc.), Power Architecture, ARM processors, etc.

[0225] Bus 1906 represents one or more of any of a variety of communication bus structures. By way of example and not limitation, bus 1906 may be implemented as a Peripheral Component Interconnect Express (PCIe) bus. Data processing system 1900 typically includes a variety of computer system readable media. Such media may include computer readable volatile and nonvolatile media and computer readable removable and non-removable media.

[0226] The memory 1904 may include computer readable media in the form of volatile memory, such as random access memory (RAM) 1908 and / or cache memory 1910. The data processing system 1900 may also include other removable / non-removable, volatile / non-volatile computer storage media. By way of example, a storage system 1912 may be provided for reading from and writing to a non-removable, non-volatile magnetic and / or solid state medium (not shown, typically referred to as a "hard drive"). Although not shown, a magnetic disk drive may be provided for reading from and writing to a removable, non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive may be provided for reading from and writing to a removable, non-volatile optical disk, such as a CD-ROM, DVD-ROM, or other optical medium. In such a case, each may be connected to the bus 1906 by one or more data media interfaces. The memory 1904 is an example of at least one computer program product.

[0227] The memory 1904 can store computer readable program instructions that are executable by the processor 1902. For example, the computer readable program instructions can include an operating system, one or more application programs, other program code, and program data. The processor 1902, in executing the computer readable program instructions, can perform various computer-attributed operations described herein. It should be understood that the data items used, generated, and / or operated on by the data processing system 1900 are functional data structures that provide functionality when used by the data processing system 1900. As defined within this disclosure, the term "data structure" refers to a physical implementation of a data model's organization of data in a physical memory. Thus, a data structure is formed from specific electrical or magnetic structural elements in a memory. The data structure imposes a physical organization on the data stored in the memory for use by an application program executed using the processor.

[0228] Data processing system 1900 may include one or more input / output (I / O) interfaces 1918 communicatively linked to bus 1906. I / O interface 1918 enables data processing system 1900 to communicate with one or more external devices and / or over one or more networks, such as a local area network (LAN), a wide area network (WAN), and / or a public network (e.g., the Internet). Examples of I / O interface 1918 may include, but are not limited to, a network card, a modem, a network adapter, a hardware controller, and / or the like. Examples of external devices may also include devices that enable a user to interact with data processing system 1900 (e.g., a display, a keyboard, and / or a pointing device) and / or other devices, such as accelerator cards.

[0229] Data processing system 1900 is just one exemplary implementation. Data processing system 1900 can be implemented as a standalone device (e.g., as a user computing device or server, as a bare metal server), in a cluster (e.g., two or more interconnected computers), or in a distributed cloud computing environment (e.g., as a cloud computing node) where tasks are performed by remote processing devices linked through a communications network. In a distributed cloud computing environment, program modules can be located in both local and remote computer system storage media, including memory storage devices.

[0230] The example of FIG. 19 is not intended to suggest any limitation as to the scope of use or functionality of the exemplary implementations described herein. Data processing system 1900 is an example of computer hardware capable of performing various operations described within this disclosure. In this regard, data processing system 1900 may include fewer components than shown, or additional components not illustrated in FIG. 19, depending on the particular type of device and / or system being implemented. The particular operating system and / or applications included may vary according to device and / or system type, as well as the type of I / O devices included. Additionally, one or more of the illustrated components may be incorporated into or form part of another component. For example, a processor may include at least some memory.

[0231] Data processing system 1900 is an example of a computer that can execute the software framework illustrated in the example of Figure 2. Data processing system 1900 is also an example of a computer that can be communicatively linked to an IC or system as described herein having a DP array, where data processing system 1900 uses the IC / system as an accelerator. For example, processor 1902 can be a "host processor."

[0232] The present disclosure concludes with claims defining novel features, but it is believed that the various features described within the present disclosure will be better understood from a consideration of the description in conjunction with the drawings. The processes, machines, manufactures, and any variations thereof described herein are provided for illustrative purposes. The specific structural and functional details described within the present disclosure should not be construed as limiting, but merely as a representative basis for teaching those skilled in the art to employ the described features in various ways in virtually any appropriately detailed structure. Moreover, the terms and phrases used within the present disclosure are not intended to be limiting, but rather to provide an understandable description of the described features.

[0233] For simplicity and clarity of illustration, elements shown in the figures have not necessarily been drawn to scale. For example, dimensions of some of the elements may be exaggerated relative to other elements for clarity. Further, where considered appropriate, reference numerals have been repeated among the figures to indicate corresponding, similar or like features.

[0234] As defined herein, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0235] As defined herein, the terms "at least one," "one or more," and "and / or" are open-ended expressions that are both conjunctive and disjunctive in operation unless expressly stated otherwise. For example, each of the phrases "at least one of A, B, and C," "at least one of A, B, or C," "one or more of A, B, and C," "one or more of A, B, or C," and "A, B, and / or C" means A alone, B alone, C alone, a combination of A and B, a combination of A and C, a combination of B and C, or a combination of A, B, and C.

[0236] As defined herein, the term "automatically" means without human intervention. As defined herein, the term "user" means a human being.

[0237] As defined herein, the term "computer-readable storage medium" means a storage medium that contains or stores program code for use by or in connection with an instruction execution system, apparatus, or device. As defined herein, a "computer-readable storage medium" is not itself a transitory propagating signal. The computer-readable storage medium can be, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. The various forms of memory described herein are examples of computer-readable storage media. A non-exhaustive list of more specific examples of computer-readable storage media may include portable computer diskettes, hard disks, RAM, read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), electronically erasable programmable read-only memory (EEPROM), static random-access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, and the like.

[0238] As defined herein, the term "when" means "when" or "in the course of" or "in response to" or "in response to," depending on the context. Thus, the phrase "when it is determined that" or "when [a described condition or event] is detected" may be interpreted to mean "upon determining that" or "in response to determining that," or "upon detecting [a described condition or event]" or "in response to detecting [a described condition or event]," depending on the context.

[0239] As defined herein, the term "in response to" and similar phrases as explained above, such as "when," "when," or "in the event of," means to readily respond or react to an action or event. The response or reaction is performed automatically. Thus, when a second action is performed "in response to" a first action, there is a causal relationship between the occurrence of the first action and the occurrence of the second action. The term "in response to" indicates a causal relationship.

[0240] As defined herein, the term "processor" means at least one circuitry capable of executing instructions contained in a program code. The circuitry may be an integrated circuit or may be embedded in an integrated circuit.

[0241] As defined herein, the term "substantially" means that the recited characteristic, parameter, or value need not be achieved exactly, but that deviations or variations including, for example, tolerances, measurement errors, measurement accuracy limitations, and other factors known to those of ordinary skill in the art may occur in an amount that does not eliminate the effect that the characteristic is intended to provide.

[0242] Terms such as first, second, etc. may be used herein to describe various elements, and these elements should not be limited by these terms, as these terms are only used to distinguish one element from another, unless otherwise stated or the context clearly indicates otherwise.

[0243] In some alternative implementations, the actions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may be executed substantially simultaneously, or the blocks may sometimes be executed in the reverse order, depending on the functionality involved. In other examples, the blocks may be executed in generally ascending numerical order, and in still other examples, one or more blocks may be executed in various orders, with the results stored and utilized in a subsequent block or in another block that does not immediately follow. It will also be noted that each block of the block diagrams and / or flowchart illustrations, and combinations of blocks in the block diagrams and / or flowchart illustrations, may be implemented by special-purpose hardware-based systems that perform the specified functions or acts, or a combination of special-purpose hardware and computer instructions.

Claims

1. 1. A method comprising: An application in a data processing array including a plurality of computational tiles each having a processor, loading an application, the application specifying a kernel executable by the processor and implementing a stream channel that communicates data to the plurality of computational tiles; sequentially implementing, during runtime of said application, a number of overlays within said data processing array, each overlay implementing a different mode of data movement within said data processing array via said stream channel; and for each implemented overlay, executing a workload by moving data to the plurality of compute tiles based on the respective mode of data movement.

2. 2. The method of claim 1 , wherein the multiple overlays are realized within the data processing array for the applications without loading different applications onto the data processing array that load different kernels into the computational tiles or modify the stream channels.

3. 2. The method of claim 1, wherein the data processing array is subdivided into a plurality of partitions each including a subset of the plurality of computational tiles, each partition adapted to simultaneously execute a different application and sequentially realize a plurality of different overlays specific to the application executed by the partition.

4. Multiple overlays can be realized sequentially. configuring the data processing array with a first overlay of the plurality of overlays to execute a first workload including a first matrix multiplication operation; configuring the data processing array with a second overlay of the plurality of overlays to execute a second workload including a second matrix multiplication operation; The method of claim 1 , wherein the first matrix multiplication operation and the second matrix multiplication operation are of different dimensions.

5. 2. The method of claim 1 , wherein the application implements a neural network, each layer of the neural network being mapped to one of the multiple overlays, and different overlays of the multiple overlays being loaded over time to implement respective layers of the neural network.

6. The method of claim 1 , wherein each overlay specifies a different mapping of buffers to stream channels.

7. The method of claim 1 , wherein the mode of data movement for each overlay is characterized by the number of feature maps and the number of weights conveyed over the stream channel.

8. Multiple overlays can be realized sequentially.

2. The method of claim 1, comprising programming a plurality of direct memory access circuits with a different mapping of buffers to said stream channels for each overlay.

9. 2. The method of claim 1, further comprising providing runtime parameters to a selected computational tile of the plurality of computational tiles for a selected overlay of the plurality of overlays, the runtime parameters setting operational parameters of a kernel executed by the selected computational tile.

10. 10. The method of claim 9, wherein the selected overlay corresponds to a particular layer of the application, and the runtime parameters specify at least one dimension of the particular layer that is realized by the selected overlay.

11. The method of claim 9 , wherein the runtime parameters selectively enable functions of the kernel to be executed by the selected computational tiles.

12. 2. The method of claim 1, further comprising providing runtime parameters to a selected computational tile of the plurality of computational tiles for a selected overlay of the plurality of overlays, the runtime parameters selecting a kernel from a plurality of kernels of the selected computational tile for execution.

13. 1. A system comprising: a data processing array disposed within an integrated circuit, the data processing array including a plurality of computational tiles, each having a processor; the data processing array is configured to execute an application, the application specifying kernels executable by the processors and stream channels that communicate data to the plurality of computational tiles; The system, wherein during runtime of the application, the data processing array is adapted to realize a number of different overlays, each overlay realizing a different mode of data movement within the data processing array via the stream channel in order to execute a workload.

14. 14. The system of claim 13, wherein the application implements a neural network, each layer of the neural network being mapped to one of the multiple overlays, and different overlays of the multiple overlays being loaded over time to implement respective layers of the neural network.

15. configuring the data processing array such that a first overlay of the plurality of overlays executes a first workload including a first matrix multiplication operation; configuring the data processing array such that a second overlay of the plurality of overlays executes a second workload including a second matrix multiplication operation; The system of claim 13 , wherein the first matrix multiplication operation and the second matrix multiplication operation are of different dimensions.

Citation Information

Patent Citations

  • A processing system with interspersed processors and communication elements

    JP2005531089A

  • System and method for an optimized winograd convolution accelerator

    US20190042923A1