Multi-tiled memory management
A multi-tiled memory management system within GPUs optimizes thread distribution and memory access, addressing inefficiencies in current GPU architectures and enhancing performance for diverse operations, particularly in graphics and machine learning tasks.
Patent Information
- Application Number
- JP2024102405
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2019-03-15
- Filing Date
- 2024-06-25
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2040-03-14
AI Technical Summary
Current graphics processing units (GPUs) face challenges in efficiently handling a wide variety of operations due to the transition from fixed-function to programmable units, and existing parallel processing architectures like SIMT struggle with optimal utilization of thread execution and memory management.
The implementation of a multi-tiled memory management system within GPUs, which includes a parallel processing unit with a scheduler and memory crossbar to optimize thread distribution and memory access, along with specialized circuitry for efficient command execution, enhances the processing efficiency of graphics and general-purpose tasks.
This approach improves the performance and flexibility of GPUs by optimizing thread execution and memory access, allowing for more efficient handling of diverse graphics and machine learning operations, including neural network training and inference.
Smart Images

Figure 2024138299000001_ABST
Abstract
Description
[Technical field]
[0001] [PRIORITY CLAIM AND CROSS-REFERENCE TO RELATED APPLICATIONS] This application claims the benefit of and priority to U.S. Provisional Application No. 62 / 819,337, entitled GRAPHICS PROCESSING, by Abhishek Appu et al. (Attorney Docket No. AC0271-Z), filed on March 15, 2019, 62 / 819,435, entitled GRAPHICS DATA PROCESSING, by Lakshminarayanan Striramassarma et al. (Attorney Docket No. AC0285-Z), filed on March 15, 2019, and 62 / 819,361, entitled SYSTEM AND METHOD FOR PARTITIONING A CACHE TO REDUCES CACHE ACCESS LATENCY, by Subramaniam Maiyuran et al. (Attorney Docket No. AC0286-Z), filed on March 15, 2019, all of which are incorporated herein by reference.
[0002] [Field] The present disclosure relates generally to data processing, and more particularly, to data processing via general purpose graphics processing units. [Background technology]
[0003] Modern parallel graphics data processing includes systems and methods developed to perform specific operations on graphics data, such as, for example, linear interpolation, tessellation, rasterization, texture mapping, depth testing, etc. Traditionally, graphics processors used fixed function computation units to process the graphics data; however, in recent years, some graphics processors have become programmable, allowing such processors to support a wider variety of operations for processing vertex and fragment data.
[0004] To further improve performance, graphics processors typically implement processing techniques such as pipelining that attempt to process as much graphics data as possible in parallel across different parts of the graphics pipeline. Parallel graphics processors with single instruction, multiple threads (SIMT) architectures are designed to maximize the amount of parallelism in the graphics pipeline. In SIMT architectures, a group of parallel threads attempts to synchronously execute multiple program instructions together as often as possible to improve processing efficiency. A general overview of the software and hardware for SIMT architectures can be found in Shane Cook, CUDA Programming, Chapter 3, pp. 37-51 (2013). [Brief description of the drawings]
[0005] So that the above-mentioned features of the present embodiments can be understood in detail, a more particular description of the above briefly summarized embodiments may be had by reference to embodiments, some of which are illustrated in the accompanying drawings. It should be noted, however, that the accompanying drawings depict only typical embodiments and are therefore not to be considered as limiting the scope thereof.
[0006] [Figure 1] FIG. 1 is a block diagram illustrating a computer system configured to implement one or more aspects of the embodiments described herein.
[0007] [Figure 2A] 1 shows a parallel processor component. [Figure 2B] 1 shows a parallel processor component. [Figure 2C] 1 shows a parallel processor component. [Figure 2D] 1 shows a parallel processor component.
[0008] [Figure 3A] FIG. 1 is a block diagram of a graphics multiprocessor and a multiprocessor-based GPU. [Figure 3B] FIG. 1 is a block diagram of a graphics multiprocessor and a multiprocessor-based GPU. [Figure 3C] FIG. 1 is a block diagram of a graphics multiprocessor and a multiprocessor-based GPU.
[0009] [Figure 4A] 1 illustrates an exemplary architecture in which multiple GPUs are communicatively coupled to multiple multi-core processors. [Figure 4B] 1 illustrates an exemplary architecture in which multiple GPUs are communicatively coupled to multiple multi-core processors. [Figure 4C] 1 illustrates an exemplary architecture in which multiple GPUs are communicatively coupled to multiple multi-core processors. [Figure 4D] 1 illustrates an exemplary architecture in which multiple GPUs are communicatively coupled to multiple multi-core processors. [Figure 4E] 1 illustrates an exemplary architecture in which multiple GPUs are communicatively coupled to multiple multi-core processors. [Figure 4F] 1 illustrates an exemplary architecture in which multiple GPUs are communicatively coupled to multiple multi-core processors.
[0010] [Diagram 5] 1 shows a graphics processing pipeline.
[0011] [Figure 6] Shown is a machine learning software stack.
[0012] [Figure 7] 1 illustrates a general-purpose graphics processing unit.
[0013] [Figure 8] A multi-GPU computing system is shown.
[0014] [Figure 9A] 1 illustrates layers of an exemplary deep neural network. [Figure 9B] 1 illustrates layers of an exemplary deep neural network.
[0015] [Figure 10] 1 illustrates an exemplary recurrent neural network.
[0016] [Figure 11] Illustrates training and deploying deep neural networks.
[0017] [Figure 12] FIG. 2 is a block diagram illustrating distributed learning.
[0018] [Figure 13] 1 illustrates an exemplary inference system-on-chip (SOC) suitable for performing inference using a trained model.
[0019] [Figure 14] FIG. 1 is a block diagram of a processing system.
[0020] [Figure 15A] 1 illustrates a computing system and a graphics processor. [Figure 15B] 1 illustrates a computing system and a graphics processor. [Figure 15C] 1 illustrates a computing system and a graphics processor.
[0021] [Figure 16A] 1 illustrates a block diagram of an additional graphics processor and computation accelerator architecture. [Figure 16B] 1 illustrates a block diagram of an additional graphics processor and computation accelerator architecture. [Figure 16C] 1 illustrates a block diagram of an additional graphics processor and computation accelerator architecture.
[0022] [Figure 17] FIG. 2 is a block diagram of a graphics processing engine of the graphics processor.
[0023] [Figure 18A] 1 illustrates thread execution logic including an array of processing elements employed in a graphics processor core. [Figure 18B] 1 illustrates thread execution logic including an array of processing elements employed in a graphics processor core.
[0024] [Figure 19] Indicates additional execution units.
[0025] [Figure 20] FIG. 2 is a block diagram showing an instruction format of a graphics processor.
[0026] [Figure 21] FIG. 1 is a block diagram of an additional graphics processor architecture.
[0027] [Figure 22A] 2 shows a graphics processor command format and a command sequence. [Figure 22B] 2 shows a graphics processor command format and a command sequence.
[0028] [Figure 23] 1 illustrates an exemplary graphics software architecture for a data processing system.
[0029] [Figure 24A] FIG. 1 is a block diagram showing an IP core development system.
[0030] [Figure 24B] 1 shows a vertical cross-sectional view of an integrated circuit package assembly.
[0031] [Figure 24C] 1 illustrates a package assembly that includes multiple units of hardware logic chiplets connected to a substrate (eg, a base die).
[0032] [Figure 24D] 1 shows a package assembly containing replaceable chiplets.
[0033] [Diagram 25] FIG. 1 is a block diagram illustrating an exemplary system-on-chip integrated circuit.
[0034] [Figure 26A] FIG. 1 is a block diagram illustrating an example graphics processor for use within a SoC. [Figure 26B] FIG. 1 is a block diagram illustrating an example graphics processor for use within a SoC.
[0035] [Figure 27] 4 is a flow chart illustrating steps in a method for implementing a compression technique according to an embodiment. [Figure 28] 4 is a flow chart illustrating steps in a method for implementing a compression technique according to an embodiment.
[0036] [Figure 29] FIG. 2 is a schematic diagram of compressing and decompressing a bit sequence according to an embodiment;
[0037] [Diagram 30] 2 is a flow chart illustrating steps in a method according to an embodiment.
[0038] [Figure 31A]FIG. 1 is a schematic block diagram of a processing environment adapted to implement L3 cache aware dispatch according to an embodiment. [Figure 31B] FIG. 1 is a schematic block diagram of a processing environment adapted to implement L3 cache aware dispatch according to an embodiment.
[0039] [Diagram 32] 1 is a flowchart illustrating steps in a method for implementing cache L3 cache-aware kernel dispatch according to an embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0040] Graphics processing units (GPUs) are communicatively coupled to host / processor cores to, for example, accelerate graphics operations, machine learning operations, pattern analysis operations, and / or various general purpose GPUs (GPGPUs). GPUs may be communicatively coupled to host processors / cores through a bus or another interconnect (e.g., a high speed interconnect such as PCIe or NVLink). Alternatively, GPUs may be integrated on the same package or chip as the cores and communicatively coupled to the cores through an internal processor bus / interconnect (i.e., internal to the package or chip). Regardless of the manner in which the GPU is connected, the processor cores may assign work to the GPU in the form of a sequence of commands / instructions contained in work descriptors. The GPU then employs dedicated circuitry / logic to efficiently process these commands / instructions.
[0041] In the following description, numerous specific details are set forth to provide a deeper understanding. However, it will be apparent to one skilled in the art that the present embodiments described herein may be practiced without one or more of these specific details. In other instances, well-known features have not been described to avoid obscuring the details of the present embodiments. [System Overview]
[0042] 1 is a block diagram illustrating a computing system 100 configured to implement one or more aspects of the embodiments described herein. The computing system 100 includes a processing subsystem 101 having one or more processors 102 and a system memory 104 that communicate over an interconnect path that may include a memory hub 105. The memory hub 105 may be a separate component within a chipset component or may be integrated within the one or more processors 102. The memory hub 105 couples with an I / O subsystem 111 via a communication link 106. The I / O subsystem 111 includes an I / O hub 107 that enables the computing system 100 to receive input from one or more input devices 108. Additionally, the I / O hub 107 enables a display controller that may be included in the one or more processors 102 to provide output to one or more display devices 110A. In one embodiment, the one or more display devices 110A coupled with the I / O hub 107 may include local, internal, or embedded display devices.
[0043] The processing subsystem 101 includes, for example, one or more parallel processors 112 coupled to the memory hub 105 via a bus or other communication link 113. The communication link 113 may be one of any number of standards-based communication link technologies or protocols, such as, but not limited to, PCI Express, or may be a vendor-specific communication interface or fabric. The one or more parallel processors 112 may form a computationally intensive parallel or vector processing system that may include multiple processing cores and / or processing clusters, such as a Many Integrated Core (MIC) processor. For example, the one or more parallel processors 112 form a graphics processing subsystem that can output pixels to one of one or more display devices 110A coupled via the I / O hub 107. The one or more parallel processors 112 may also include a display controller and display interface (not shown) that allows for direct connection to one or more display devices 110B.
[0044] Within the I / O subsystem 111, a system storage unit 114 can connect to the I / O hub 107 to provide a storage mechanism for the computing system 100. The I / O switch 116 can be used to provide an interface mechanism that allows connections between the I / O hub 107 and other components, such as a network adapter 118 and / or a wireless network adapter 119, which may be integrated into the platform, and various other devices, which may be added via one or more add-in devices 120. The add-in devices 120 may also include, for example, one or more external graphics processor devices and / or computational accelerators. The network adapter 118 can be an Ethernet adapter or another wired network adapter. The wireless network adapter 119 can include one or more of a Wi-Fi, Bluetooth, Near Field Communication (NFC), or other network device including one or more wireless radios.
[0045] Computing system 100 may include other components not explicitly shown, including USB or other port connections, optical storage drives, imaging devices, etc., which may be connected to I / O hub 107. The communication paths interconnecting the various components in FIG. 1 may be implemented using any suitable protocol, such as a Peripheral Component Interconnect (PCI)-based protocol (e.g., PCI-Express) or any other bus or point-to-point communication interface and / or protocol, such as the NV-Link high-speed interconnect or any interconnect protocol known in the art.
[0046] The one or more parallel processors 112 may incorporate circuitry optimized for graphics and video processing, including, for example, video output circuitry, constituting a graphics processing unit (GPU). Alternatively or additionally, the one or more parallel processors 112 may incorporate circuitry optimized for general purpose processing, while retaining a basic computational architecture as described in more detail herein. The components of computing system 100 may be integrated with one or more other system elements on a single integrated circuit. For example, one or more parallel processors 112, memory hub 105, processor 102, and I / O hub 107 may be integrated into a system-on-chip (SoC) integrated circuit. Alternatively, the components of computing system 100 may be integrated into a single package to form a system-in-package (SIP) configuration. In one embodiment, at least some of the components of computing system 100 may be integrated into a multi-chip module (MCM), which may be interconnected with other multi-chip modules in a modular computing system.
[0047] It is understood that the computing system 100 shown herein is exemplary and that variations and modifications are possible. The connection topology, including the number and arrangement of bridges, the number of processors 102, and the number of parallel processors 112, may be modified as desired. For example, the system memory 104 may be directly connected to the processors 102 rather than through a bridge, while other devices communicate with the system memory 104 via the memory hub 105 and the processors 102. In other alternative topologies, the parallel processors 112 may be connected to the I / O hub 107 rather than the memory hub 105, or directly to one of the one or more processors 102. In other embodiments, the I / O hub 107 and the memory hub 105 may be integrated into a single chip. It is also possible that two or more sets of processors 102 are attached via multiple sockets, which may be coupled to two or more instances of the parallel processors 112.
[0048] Some of the specific components illustrated herein are optional and may not be included in all implementations of computing system 100. For example, any number of add-in cards or peripherals may be supported, and some components may be omitted. Additionally, some architectures may use different terminology for components similar to those illustrated in FIG. 1. For example, memory hub 105 may be referred to as a northbridge in some architectures, while I / O hub 107 may be referred to as a southbridge.
[0049] 2A illustrates a parallel processor 200. The parallel processor 200 may be a GPU or a GPGPU as described herein, etc. Various components of the parallel processor 200 may be implemented using one or more integrated circuit devices, such as a programmable processor, an application specific integrated circuit (ASIC), or a field programmable gate array (FPGA). The illustrated parallel processor 200 may be the parallel processor 112, or one of the parallel processors 112, illustrated in FIG. 1.
[0050] Parallel processor 200 includes parallel processing units 202. Parallel processing units include I / O units 204 that enable communication with other devices, including other instances of parallel processing units 202. I / O units 204 may be directly connected to other devices. For example, I / O units 204 connect to other devices through the use of a hub, such as memory hub 105, or a switch interface. The connection between memory hub 105 and I / O units 204 forms communication link 113. Within parallel processing units 202, I / O units 204 connect to host interface 206 and memory crossbar 216, where host interface 206 receives commands directing the execution of processing operations and memory crossbar 216 receives commands directing the execution of memory operations.
[0051] When the host interface 206 receives command buffers via the I / O unit 204, the host interface 206 can direct work operations to execute these commands to the front end 208. In one embodiment, the front end 208 interfaces with a scheduler 210, which is configured to distribute commands or other work items to the processing cluster array 212. The scheduler 210 ensures that the processing cluster array 212 is properly configured and in a valid state before tasks are distributed to the processing clusters of the processing cluster array 212. The scheduler 210 may be implemented via firmware logic executing on a microcontroller. The microcontroller-implemented scheduler 210 can be configured to perform complex scheduling and work distribution operations at both coarse and fine granularity, allowing rapid preemption and context switching of threads executing on the processing array 212. Preferably, the host software can expose workloads for scheduling to the processing array 212 via one of multiple graphics processing doorbells. The workload can then be automatically distributed across the processing array 212 by scheduler 210 logic within the scheduler microcontroller.
[0052] The processing cluster array 212 may include up to "N" processing clusters (e.g., cluster 214A, cluster 214B through cluster 214N). Each cluster 214A-214N of the processing cluster array 212 may execute multiple concurrent threads. The scheduler 210 may assign work to the clusters 214A-214N of the processing cluster array 212 using various scheduling and / or work distribution algorithms that may vary depending on the workload generated for each type of program or computation. Scheduling may be handled dynamically by the scheduler 210 or may be partially assisted by compiler logic during compilation of program logic configured for execution by the processing cluster array 212. Optionally, different clusters 214A-214N of the processing cluster array 212 may be assigned to process different types of programs or to perform different types of computations.
[0053] The processing cluster array 212 may be configured to perform various types of parallel processing operations. For example, the cluster array 212 may be configured to perform general-purpose parallel computing operations. For example, the processing cluster array 212 may include logic to perform processing tasks including filtering video and / or audio data, performing modeling operations including physics operations, and performing data transformations.
[0054] The processing cluster array 212 is configured to perform parallel graphics processing operations. In such embodiments in which the parallel processor 200 is configured to perform graphics processing operations, the processing cluster array 212 may include additional logic to support the execution of such graphics processing operations, including, but not limited to, texture sampling logic to perform texture operations, as well as tessellation logic and other vertex processing logic. In addition, the processing cluster array 212 may be configured to perform graphics processing related to shader programs, such as, but not limited to, vertex shaders, tessellation shaders, geometry shaders, and pixel shaders. The parallel processing units 202 may transfer data from the system memory for processing via the I / O units 204. During processing, the transferred data may be stored in an on-chip memory (e.g., the parallel processor memory 222) during processing and then written back to the system memory.
[0055] In embodiments in which parallel processing units 202 are used to perform graphics processing, scheduler 210 may be configured to divide the processing workload into tasks of approximately equal size to better distribute graphics processing operations to multiple clusters 214A-214N of processing cluster array 212. In some of these embodiments, portions of processing cluster array 212 may be configured to perform different types of processing. For example, a first portion may be configured to perform vertex shading and topology generation, a second portion may be configured to perform tessellation and geometry shading, and a third portion may be configured to perform pixel shading or other screen space operations to generate rendered images for display. Intermediate data generated by one or more of clusters 214A-214N may be stored in buffers to allow the intermediate data to be transmitted between clusters 214A-214N for further processing.
[0056] During operation, the processing cluster array 212 may receive processing tasks to be executed via the scheduler 210, which receives commands defining the processing tasks from the front end 208. For graphics processing operations, a processing task may include data to be processed, e.g., surface (patch) data, primitive data, vertex data, and / or pixel data, as well as state parameters and command indices that define how the data should be processed (e.g., which programs should be executed). The scheduler 210 may be configured to fetch the index corresponding to the task or may receive the index from the front end 208. The front end 208 may be configured to ensure that the processing cluster array 212 is configured to be in a valid state before a workload specified by an arriving command buffer (e.g., a batch buffer, a push buffer, etc.) is initialized.
[0057] Each of the one or more instances of the parallel processing unit 202 can be coupled to a parallel processor memory 222. The parallel processor memory 222 can be accessed via a memory crossbar 216, which can receive memory requests from the processing cluster array 212 as well as the I / O unit 204. The memory crossbar 216 can access the parallel processor memory 222 via a memory interface 218. The memory interface 218 can include multiple partition units (e.g., partition unit 220A, partition unit 220B through partition unit 220N), each of which can be coupled to a portion (e.g., a memory unit) of the parallel processor memory 222. The number of partition units 220A-220N can be configured to be equal to the number of memory units, such that a first partition unit 220A has a corresponding first memory unit 224A, a second partition unit 220B has a corresponding memory unit 224B, and an Nth partition unit 220N has a corresponding Nth memory unit 224N. In other embodiments, the number of partition units 220A-220N may not be equal to the number of memory devices.
[0058] The memory units 224A-224N may include various types of memory devices including dynamic random access memory (DRAM) or graphics random access memory, such as synchronous graphics random access memory (SGRAM) including graphics double data rate (GDDR) memory. Optionally, the memory units 224A-224N may also include 3D stacked memory, including but not limited to high bandwidth memory (HBM). Those skilled in the art will appreciate that the specific implementation of the memory units 224A-224N may vary and may be selected from one of a variety of conventional designs. Render targets, such as frame buffers or texture maps, may be stored across the memory units 224A-224N, allowing the partition units 220A-220N to write portions of each render target in parallel to efficiently use the available bandwidth of the parallel processor memory 222. In some embodiments, local instances of the parallel processor memory 222 may be omitted in favor of a unified memory design that utilizes system memory along with local cache memory.
[0059] Optionally, any one of the clusters 214A-214N of the processing cluster array 212 has the capability to process data that is written to any of the memory units 224A-224N in the parallel processor memory 222. The memory crossbar 216 can be configured to forward the output of each cluster 214A-214N to any of the partition units 220A-220N or to another cluster 214A-214N, which can perform additional processing operations on the output. Each cluster 214A-214N can communicate with a memory interface 218 through the memory crossbar 216 to read from or write to various external memory devices. In one embodiment having a memory crossbar 216, the memory crossbar 216 has a connection to a memory interface 218 for communicating with the I / O units 204, and a connection to a local instance of a parallel processor memory 222, allowing processing units in different processing clusters 214A-214N to communicate with system memory or other memory that is not local to the parallel processing units 202. In general, the memory crossbar 216 may be capable of separating traffic streams between the clusters 214A-214N and the partition units 220A-220N, for example, using virtual channels.
[0060] While a single instance of parallel processing unit 202 is illustrated within parallel processor 200, any number of instances of parallel processing unit 202 may be included. For example, multiple instances of parallel processing unit 202 may be provided on a single add-in card, or multiple add-in cards may be interconnected. Different instances of parallel processing unit 202 may be configured to interoperate even if they have different numbers of processing cores, different amounts of local parallel processor memory, and / or other configuration differences. Optionally, some instances of parallel processing unit 202 may include higher precision floating point units compared to other instances. Systems incorporating one or more instances of parallel processing unit 202 or parallel processor 200 may be implemented in a variety of configurations and form factors, including, but not limited to, desktop, laptop or handheld personal computers, servers, workstations, game consoles, and / or embedded systems.
[0061] FIG. 2B is a block diagram of partition unit 220. Partition unit 220 may be an instance of one of partition units 220A-220N of FIG. 2A. As shown, partition unit 220 includes L2 cache 221, frame buffer interface 225, and ROP 226 (raster operation unit). L2 cache 221 is a read / write cache configured to execute load and store operations received from memory crossbar 216 and ROP 226. Read misses and urgent writeback requests are output by L2 cache 221 to frame buffer interface 225 for processing. Updates may also be sent to a frame buffer via frame buffer interface 225 for processing. In one embodiment, frame buffer interface 225 communicates with one of the memory units in a parallel processor memory, such as memory units 224A-224N (e.g., in parallel processor memory 222) of FIG. 2A. Additionally or alternatively, the partition unit 220 may also communicate with one of the memory units in the parallel processor memory via a memory controller (not shown).
[0062] In graphics applications, ROP 226 is a processing unit that performs raster operations such as stencil, z-test, and blending. ROP 226 then outputs processed graphics data that is stored in graphics memory. In some embodiments, ROP 226 includes compression logic that compresses depth or color data that is written to memory and decompresses depth or color data that is read from memory. The compression logic can be lossless compression logic that uses one or more of a number of compression algorithms. The type of compression performed by ROP 226 can vary based on the statistical characteristics of the data to be compressed. For example, in one embodiment, delta color compression is performed on a per tile basis for depth and color data.
[0063] ROP 226 may be included within each processing cluster (e.g., clusters 214A-214N of FIG. 2A) instead of within partition unit 220. In such an embodiment, read and write requests for pixel data, instead of pixel fragment data, are transmitted over memory crossbar 216. The processed graphics data may be displayed on a display device, such as one of one of the one or more display devices 110 of FIG. 1, routed for further processing by processor 102, or routed for further processing by one of the processing entities in parallel processor 200 of FIG. 2A.
[0064] FIG. 2C is a block diagram of a processing cluster 214 in a parallel processing unit. For example, the processing cluster is an instance of one of the processing clusters 214A-214N of FIG. 2A. The processing cluster 214 can be configured to execute many threads in parallel, with the term "thread" referring to an instance of a particular program executing on a particular set of input data. Optionally, a single instruction, multiple data (SIMD) instruction issue technique may be used to support the parallel execution of multiple threads without providing multiple independent instruction units. Alternatively, a single instruction, multiple threads (SIMT) technique may be used to support the parallel execution of multiple generally synchronized threads using a common instruction unit configured to issue instructions to a set of processing engines in each of the processing clusters. Unlike SIMD execution, where all processing engines typically execute identical instructions, SIMT execution allows different threads to more easily follow divergent execution paths through a particular thread program. Those skilled in the art will appreciate that SIMD processing represents a functional subset of SIMT processing.
[0065] The operation of the processing clusters 214 may be controlled through a pipeline manager 232 that distributes processing tasks to the SIMT parallel processors. The pipeline manager 232 receives instructions from the scheduler 210 of FIG. 2A and manages the execution of these instructions through the graphics multiprocessor 234 and / or the texture unit 236. The illustrated graphics multiprocessor 234 is an exemplary instance of a SIMT parallel processor. However, various types of SIMT parallel processors of different architectures may be included within the processing clusters 214. One or more instances of the graphics multiprocessor 234 may be included within the processing clusters 214. The graphics multiprocessor 234 may process data, and the data crossbar 240 may be used to distribute the processed data to one of multiple possible destinations, including other shader units. The pipeline manager 232 may facilitate the distribution of the processed data by identifying a destination for the processed data to be distributed via the data crossbar 240.
[0066] Each graphics multiprocessor 234 in a processing cluster 214 may include an identical set of function execution logic (e.g., arithmetic logic units, load-store units, etc.). The function execution logic may be configured in a pipelined manner that allows new instructions to issue before previous instructions complete. The function execution logic supports a variety of operations including integer and floating point arithmetic, comparison operations, Boolean operations, bit shifts, and calculation of various algebraic functions. The same functional unit hardware may be utilized to perform different operations, and any combination of functional units may be present.
[0067] An instruction transmitted to a processing cluster 214 constitutes a thread. A set of threads executing across a set of parallel processing engines is a thread group. A thread group executes the same program on different input data. Each thread in a thread group may be assigned to a different processing engine in the graphics multiprocessor 234. A thread group may include fewer threads than the number of processing engines in the graphics multiprocessor 234. If a thread group includes fewer threads than the number of processing engines, one or more of the processing engines may be idle during a cycle in which a thread group is being processed. A thread group may include more threads than the number of processing engines in the graphics multiprocessor 234. If a thread group includes more threads than the number of processing engines in the graphics multiprocessor 234, processing may be executed over successive clock cycles. Optionally, multiple thread groups may be executed simultaneously on the graphics multiprocessor 234.
[0068] The graphics multiprocessor 234 may include an internal cache memory to perform load and store operations. Optionally, the graphics multiprocessor 234 may use a cache memory (e.g., L1 cache 248) in the processing cluster 214 ahead of the internal cache. Each graphics multiprocessor 234 also has access to an L2 cache in a partition unit (e.g., partition units 220A-220N of FIG. 2A) that is all shared among the processing clusters 214 and may be used to transfer data between threads. The graphics multiprocessor 234 may also access an off-chip global memory, which may include one or more of the local parallel processor memories and / or system memories. Any memory external to the parallel processing unit 202 may be used as global memory. An embodiment in which the processing cluster 214 includes multiple instances of the graphics multiprocessor 234 may share common instructions and data, which may be stored in the L1 cache 248.
[0069] Each processing cluster 214 may include a memory management unit (MMU) 245 configured to map virtual addresses to physical addresses. In other embodiments, one or more instances of MMU 245 may reside in memory interface 218 of FIG. 2A. MMU 245 includes a set of page table entries (PTEs) used to map virtual addresses to physical addresses of tiles and optionally cache line indexes. MMU 245 may include an address translation lookaside buffer (TLB) or cache that may reside in graphics multiprocessor 234 or an L1 cache or processing cluster 214. The physical addresses are processed to distribute surface data access locality to allow efficient request interleaving across partition units. The cache line index may be used to determine whether a request for a cache line is a hit or a miss.
[0070] In graphics and computing applications, the processing clusters 214 may be configured such that each graphics multiprocessor 234 is coupled to a texture unit 236 to perform texture mapping operations, e.g., to determine texture sample locations, read texture data, and filter texture data. Texture data is read from an internal texture L1 cache (not shown) or, in some embodiments, from an L1 cache within the graphics multiprocessor 234, and fetched from an L2 cache, local parallel processor memory, or system memory as needed. Each graphics multiprocessor 234 outputs processed tasks to the data crossbar 240 to provide the processed tasks to another processing cluster 214 for further processing, or stores the processed tasks in an L2 cache, local parallel processor memory, or system memory via the memory crossbar 216. A preROP 242 (pre-raster computation unit) is configured to receive data from the graphics multiprocessor 234 and direct the data to the ROP unit, which may be located in a partition unit as described herein (e.g., partition units 220A-220N of FIG. 2A). The preROP 242 unit can perform optimizations for color blending, organize pixel color data, and perform address conversions.
[0071] It is understood that the core architecture described herein is exemplary and that variations and modifications are possible. Any number of processing units, e.g., graphics multiprocessor 234, texture unit 236, preROP 242, etc., may be included within processing cluster 214. Additionally, while only one processing cluster 214 is shown, a parallel processing unit may include any number of instances of processing cluster 214, as described herein. Optionally, each processing cluster 214 may be configured to operate independently of the other processing clusters 214, using separate and different processing units, L1 caches, etc.
[0072] 2D illustrates an example of a graphics multiprocessor 234 in communication with a pipeline manager 232 of a processing cluster 214. The graphics multiprocessor 234 has an execution pipeline including, but not limited to, an instruction cache 252, an instruction unit 254, an address mapping unit 256, a register file 258, one or more general-purpose graphics processing unit (GPGPU) cores 262, and one or more load / store units 266. The GPGPU cores 262 and the load / store units 266 are coupled to a cache memory 272 and a shared memory 270 via a memory and cache interconnect 268. The graphics multiprocessor 234 may further include a tensor and / or ray tracing core 263 that includes hardware logic for accelerating matrix and / or ray tracing operations.
[0073] An instruction cache 252 may receive a stream of instructions to execute from the pipeline manager 232. The instructions are cached in the instruction cache 252 and dispatched for execution by the instruction unit 254. The instruction unit 254 may dispatch instructions as thread groups (e.g., warps) with each thread of the thread group assigned to a different execution unit in the GPGPU core 262. Instructions can access either the local, shared, or global address space by specifying an address in the unified address space. An address mapping unit 256 may be used to translate addresses in the unified address space into individual memory addresses that can be accessed by the load / store unit 266.
[0074] Register file 258 provides a set of registers to the functional units of graphics multiprocessor 234. Register file 258 provides temporary storage for operands that are connected to the data paths of the functional units (e.g., GPGPU cores 262, load / store unit 266) of graphics multiprocessor 234. Register file 258 may be divided among each of the functional units such that each functional unit is assigned a dedicated portion of register file 258. For example, register file 258 may be divided among different warps executed by graphics multiprocessor 234.
[0075] Each of the GPGPU cores 262 may include a floating point unit (FPU) and / or an integer arithmetic logic unit (ALU) used to execute instructions of the graphics multiprocessor 234. In some implementations, the GPGPU cores 262 may include hardware logic that may otherwise be present in the tensor and / or ray tracing cores 263. The GPGPU cores 262 may be similar to or different from the architecture. For example, in one embodiment, a first portion of the GPGPU cores 262 includes a single precision FPU and an integer ALU, while a second portion of the GPGPU cores includes a double precision FPU. Optionally, the FPU may implement the IEEE 754-2008 standard for floating point arithmetic or allow variable precision floating point arithmetic. The graphics multiprocessor 234 may further include one or more fixed function or special function units to perform specific functions, such as rectangle copy or pixel blending operations. One or more of the GPGPU cores may also include fixed or special function logic.
[0076] GPGPU core 262 may include SIMD logic capable of executing a single instruction on multiple sets of data. Optionally, GPGPU core 262 may physically execute SIMD4, SIMD8, and SIMD16 instructions, and logically execute SIMD1, SIMD2, and SIMD32 instructions. SIMD instructions for the GPGPU core may be generated at compile time by a shader compiler, or may be generated automatically when executing a program that is written and compiled for a single program multiple data (SPMD) or SIMT architecture. Multiple threads of a program configured for a SIMT execution model may be executed via a single SIMD instruction. For example, in one embodiment, eight SIMD threads performing the same or similar operations may be executed in parallel via a single SIMD8 logical unit.
[0077] Memory and cache interconnect 268 is an interconnect network that connects each of the functional units of graphics multiprocessor 234 to register file 258 and shared memory 270. For example, memory and cache interconnect 268 is a crossbar interconnect that allows load / store unit 266 to perform load and store operations between shared memory 270 and register file 258. Register file 258 can operate at the same frequency as GPGPU core 262, and therefore data transfers between GPGPU core 262 and register file 258 are very low latency. Shared memory 270 can be used to enable communication between threads executing on functional units within graphics multiprocessor 234. Cache memory 272 can be used as a data cache, for example, to cache texture data communicated between the functional units and texture unit 236. Shared memory 270 can also be used as a program management cache. Threads executing on GPGPU cores 262 can programmatically store data in shared memory in addition to the automatically cached data stored in cache memory 272 .
[0078] 3A-3C illustrate additional graphics multiprocessors according to embodiments. FIGS. 3A-3B illustrate graphics multiprocessors 325, 350, which are related to and may be used in place of one of the graphics multiprocessors 234 of FIG. 2C. Thus, disclosure of any feature in combination with graphics multiprocessor 234 herein also discloses the corresponding combination with graphics multiprocessor 325, 350, although not limited to such. FIG. 3C illustrates a graphics processing unit (GPU) 380 that includes a set of dedicated graphics processing resources arranged in multicore groups 365A-365N corresponding to graphics multiprocessors 325, 350. The illustrated graphics multiprocessors 325, 350 and multicore groups 365A-365N may be streaming multiprocessors (SMs) capable of simultaneous execution of multiple execution threads.
[0079] The graphics multiprocessor 325 of FIG. 3A includes multiple additional instances of execution resource units compared to the graphics multiprocessor 234 of FIG. 2D. For example, the graphics multiprocessor 325 may include multiple instances of instruction units 332A-332B, register files 334A-334B, and texture units 344A-344B. The graphics multiprocessor 325 also includes multiple sets of graphics or compute execution units (e.g., GPGPU cores 336A-336B, tensor cores 337A-337B, ray tracing cores 338A-338B), and multiple sets of load / store units 340A-340B. The execution resource units have a common instruction cache 330, texture and / or data cache memory 342, and shared memory 346.
[0080] The various components can communicate through interconnect fabric 327. Interconnect fabric 327 may include one or more crossbar switches that enable communication between the various components of graphics multiprocessor 325. Interconnect fabric 327 may be a separate high-speed network fabric layer on which each component of graphics multiprocessor 325 is stacked. The components of graphics multiprocessor 325 communicate with remote components through interconnect fabric 327. For example, GPGPU cores 336A-336B, 337A-337B, and 338A-338B can each communicate with shared memory 346 through interconnect fabric 327. Interconnect fabric 327 can arbitrate communications within graphics multiprocessor 325 to ensure fair bandwidth allocation between components.
[0081] Graphics multiprocessor 350 of FIG. 3B includes multiple sets of execution resources 356A-356D, each set including multiple instruction units, register files, GPGPU cores, and load store units as shown in FIG. 2D and FIG. 3A. Execution resources 356A-356D can work in conjunction with texture units 360A-360D for texture operations while sharing instruction cache 354 and shared memory 353. For example, execution resources 356A-356D can share instruction cache 354 and shared memory 353, as well as multiple instances of texture and / or data cache memories 358A-358B. The various components can communicate via interconnect fabric 352, which is similar to interconnect fabric 327 of FIG. 3A.
[0082] Those skilled in the art will appreciate that the architectures described in Figures 1, 2A-2D, and 3A-3B are for illustration purposes only and do not limit the scope of the present embodiments. Thus, the techniques described herein may be implemented on any suitably configured processing unit, including but not limited to one or more mobile application processors, one or more desktop or server central processing units (CPUs), including multi-core CPUs, one or more parallel processing units, such as parallel processing unit 202 of Figure 2A, and one or more graphics processors or special purpose processing units, without departing from the scope of the embodiments described herein.
[0083] As described herein, parallel processors or GPGPUs may be communicatively coupled to host / processor cores to accelerate graphics operations, machine learning operations, pattern analysis operations, and various general purpose GPUs (GPGPUs). GPUs may be communicatively coupled to host processors / cores through a bus or other interconnect (e.g., a high speed interconnect such as PCIe or NVLink). In other embodiments, GPUs may be integrated on the same package or chip as cores and communicatively coupled to cores through an internal processor bus / interconnect (i.e., internal to the package or chip). Regardless of the manner in which the GPU is connected, the processor cores may assign work to the GPU in the form of a sequence of commands / instructions contained in a work descriptor. The GPU then uses dedicated circuitry / logic to efficiently process these commands / instructions.
[0084] 3C illustrates a graphics processing unit (GPU) 380 that includes a set of dedicated graphics processing resources arranged into multi-core groups 365A-365N. While details of only a single multi-core group 365A are provided, it will be understood that multi-core groups 365B-365N may be equipped with the same or similar sets of graphics processing resources. The detailed description of multi-core groups 365A-365N may also apply to any of the graphics multiprocessors 234, 325, 350 described herein.
[0085] As shown, multicore group 365A may include a set of graphics cores 370, a set of tensor cores 371, and a set of ray tracing cores 372. Scheduler / dispatcher 368 schedules and dispatches the graphics threads for execution on the various cores 370, 371, 372. A set of register files 369 store operand values used by the cores 370, 371, 372 when executing the graphics threads. These may include, for example, integer registers for storing integer values, floating point registers for storing floating point values, vector registers for storing packed data elements (integer and / or floating point data elements), and tile registers for storing tensor / matrix values. The tile registers may be implemented as a combined set of vector registers.
[0086] One or more combined level 1 (L1) cache and shared memory units 373 store graphics data, such as texture data, vertex data, pixel data, ray data, bounding volume data, etc., locally within each multicore group 365A. One or more texture units 374 may also be used to perform texturing operations, such as texture mapping and sampling. A level 2 (L2) cache 375, shared by all or a subset of the multicore groups 365A-365N, stores graphics data and / or instructions for multiple simultaneous graphics threads. As shown, the L2 cache 375 may be shared across multiple multicore groups 365A-365N. One or more memory controllers 367 couple the GPU 380 to memory 366, which may be system memory (e.g., DRAM) and / or dedicated graphics memory (e.g., GDDR6 memory).
[0087] Input / output (I / O) circuitry 363 couples GPU 380 to one or more I / O devices 362, such as a digital signal processor (DSP), a network controller, or a user input device. An on-chip interconnect may be used to couple I / O devices 362 to GPU 380 and memory 366. One or more I / O memory management units (IOMMUs) 364 of I / O circuitry 363 couple I / O devices 362 directly to system memory 366. Optionally, IOMMU 364 manages multiple sets of page tables to map virtual addresses to physical addresses in system memory 366. I / O devices 362, CPU 361, and GPU 380 may then share the same virtual address space.
[0088] In one implementation of IOMMU 364, IOMMU 364 supports virtualization, where it may manage a first set of page tables that map guest / graphics virtual addresses to guest / graphics physical addresses and a second set of page tables that map guest / graphics physical addresses to system / host physical addresses (e.g., in system memory 366). The base addresses of each of the first and second sets of page tables may be stored in control registers and swapped out on a context switch (e.g., such that a new context is provided with access to the associated set of page tables). Although not shown in FIG. 3C, each of cores 370, 371, 372 and / or multicore groups 365A-365N may include a translation lookaside buffer (TLB) that caches guest virtual to guest physical, guest physical to host physical, and guest virtual to host physical translations.
[0089] The CPU 361, GPU 380 and I / O devices 362 may be integrated onto a single semiconductor chip and / or chip package. The illustrated memory 366 may be integrated onto the same chip or may be coupled to a memory controller 367 via an off-chip interface. In one implementation, the memory 366 comprises GDDR6 memory that shares the same virtual address space as other physical system-level memory, although the underlying principles described herein are not limited to this particular implementation.
[0090] Tensor cores 371 may include multiple execution units specifically designed to perform matrix operations, which are fundamental computational operations used to perform deep learning operations. For example, simultaneous matrix multiplication operations may be used for neural network training and inference. Tensor cores 371 may perform matrix operations using a variety of operand precisions, including single-precision floating point (e.g., 32 bits), half-precision floating point (e.g., 16 bits), integer word (16 bits), byte (8 bits), and half-byte (4 bits). For example, neural network implementations may extract features of each rendered scene and combine them with detailed information from potentially multiple frames to construct a high-quality final image.
[0091] In a deep learning implementation, parallel matrix multiplication operations may be scheduled for execution on tensor cores 371. Training neural networks, in particular, requires a significant number of matrix dot product operations. To process the inner product formulation of an N×N×N matrix multiplication, tensor cores 371 may include at least N dot product processing elements. Before the matrix multiplication begins, an entire matrix is loaded into a tile register, and at least one column of a second matrix is loaded in each of the N cycles. In each cycle, there are N dot products to be processed.
[0092] Matrix elements may be stored in different precisions depending on the particular implementation, including 16-bit words, 8-bit bytes (e.g., INT8), and 4-bit half-bytes (e.g., INT4). Different precision modes may be specified to tensor core 371 to ensure that the most efficient precision is used for different workloads (e.g., inference workloads that can tolerate quantization to bytes and half-bytes).
[0093] Ray tracing core 372 may accelerate ray tracing computations for both real-time ray tracing and non-real-time ray tracing implementations. In particular, ray tracing core 372 may include ray traversal / intersection circuitry to perform ray traversal using a bounding volume hierarchy (BVH) and identify intersections between rays and primitives enclosed within the BVH volume. Ray tracing core 372 may include circuitry for performing depth testing and culling (e.g., using a Z-buffer or similar configuration). In one implementation, ray tracing core 372 performs traversal and intersection operations in conjunction with image denoising techniques described herein, which may be performed at least in part on tensor core 371. For example, tensor core 371 may implement a deep learning neural network to perform denoising of frames generated by ray tracing core 372. However, the CPU 361, the graphics core 370 and / or the ray tracing core 372 may implement all or part of the denoising and / or deep learning algorithms.
[0094] Additionally, as mentioned above, a distributed approach to denoising may be used, with the GPU 380 in a computing device that is coupled to other computing devices through a network or high-speed interconnect. In this distributed approach, the interconnected computing devices may share neural network learning / training data to improve the speed at which the entire system learns to perform denoising for different types of image frames and / or different graphics applications.
[0095] The ray tracing core 372 may handle all BVH traversal and / or ray-primitive intersections, preventing the graphics core 370 from being overloaded with thousands of instructions per ray. For example, each ray tracing core 372 includes a first set of dedicated circuitry for performing bounding box tests (e.g., for traversal operations) and / or a second set of dedicated circuitry for performing ray triangle intersection tests (e.g., intersecting traversed rays). Thus, for example, the multi-core group 365A may simply launch ray probes, and the ray tracing core 372 may independently perform ray traversal and intersections and return hit data (e.g., hit, no hit, multiple hits, etc.) to the thread context. While the ray tracing core 372 is performing traversal and intersection operations, the other cores 370, 371 are freed or perform other graphics or computational work.
[0096] Optionally, each ray tracing core 372 may include a traversal unit that performs BVH test operations and / or an intersection unit that performs ray-primitive intersection tests. The intersection unit generates and provides a "hit", "no hit", or "multiple hits" response to the appropriate thread. During traversal and intersection operations, the execution resources of other cores (e.g., graphics core 370 and tensor core 371) are freed to perform other types of graphics work.
[0097] One optional embodiment, described below, uses a hybrid rasterization / ray tracing approach in which work is distributed between the graphics core 370 and the ray tracing core 372.
[0098] The ray tracing core 372 (and / or other cores 370, 371) may include hardware support for a ray tracing instruction set such as Microsoft's DirectX Raytracing (DXR), including the DispatchRays command, as well as ray-generation, closest-hit, any-hit, and miss shaders that enable assignment of a unique set of shaders and textures to each object. Another ray tracing platform that may be supported by the ray tracing core 372, graphics core 370, and tensor core 371 is Vulkan 1.1.85. However, it should be noted that the underlying principles described herein are not limited to any particular ray tracing ISA.
[0099] In general, the various cores 372, 371, 370 may support a ray tracing instruction set that includes instructions / functions for one or more of ray generation, closest hit, any hit, ray-primitive intersection, per-primitive and hierarchical bounding box construction, miss, visit, and exception. More specifically, preferred embodiments include ray tracing instructions that perform one or more of the following functions:
[0100] [Ray Generation] - Ray Generation commands may be executed for each pixel, sample, or other user-defined work allocation.
[0101] [Closest Hit] - The closest hit command may be executed to find the closest intersection point between a ray and a primitive in the scene.
[0102] [Any Hit] - The any hit command potentially identifies multiple intersections between rays and primitives in the scene and identifies a new closest intersection point.
[0103] [intersection] - The intersection instruction performs a ray-primitive intersection test and outputs the result.
[0104] [Build Per-Primitive Bounding Box] - This instruction builds a bounding box around a given primitive or group of primitives (e.g., when building a new BVH or other acceleration data structure).
[0105] Miss - indicates that the ray did not hit all geometry in the scene or a specific area of the scene.
[0106] Visit—Indicates the child volume that the ray will traverse.
[0107] Exceptions - Contains exception handlers of various types (i.e., called for various error conditions). [GPU-host processor interconnect technology]
[0108] 4A illustrates an exemplary architecture in which multiple GPUs 410-413, such as the parallel processor 200 illustrated in FIG. 2A, are communicatively coupled to multiple multi-core processors 405-406 through high-speed links 440A-440D (e.g., buses, point-to-point interconnects, etc.). Depending on the implementation, the high-speed links 440A-440D may support communication throughputs of 4 GB / s, 30 GB / s, 80 GB / s, or more. Various interconnect protocols may be used, including, but not limited to, PCIe 4.0 or 5.0, and NVLink 2.0. However, the underlying principles described herein are not limited to any particular communication protocol or throughput.
[0109] Two or more GPUs 410-413 may be interconnected through high-speed links 442A-442B, which may be implemented using the same or different protocols / links as those used for high-speed links 440A-440D. Similarly, two or more multi-core processors 405-406 may be connected through high-speed link 443, which may be a symmetric multi-processor (SMP) bus operating at 20 GB / s, 30 GB / s, 120 GB / s, or higher. Alternatively, all communications between the various system components shown in FIG. 4A may be achieved using the same protocols / links (e.g., through a common interconnect fabric). However, as previously noted, the underlying principles described herein are not limited to any particular type of interconnect technology.
[0110] Each multi-core processor 405-406 may be communicatively coupled to a processor memory 401-402 via a memory interconnect 430A-430B, respectively, and each GPU 410-413 may be communicatively coupled to a GPU memory 420-423 via a GPU memory interconnect 450A-450D, respectively. The memory interconnects 430A-430B and 450A-450D may utilize the same or different memory access technologies. By way of example and not limitation, the processor memory 401-402 and the GPU memory 420-423 may be volatile memory, such as dynamic random access memory (DRAM) (including stacked DRAM), graphics DDR SDRAM (GDDR) (e.g., GDDR5, GDDR6) or high bandwidth memory (HBM), and / or may be non-volatile memory, such as 3D XPoint / Optane or Nano-Ram. For example, some of the memories may be volatile memory and other portions may be non-volatile memory (eg, using a two-level memory (2LM) hierarchy).
[0111] As described below, the various processors 405-406 and GPUs 410-413 may each be physically coupled to a particular memory 401-402, 420-423, but a unified memory architecture may be implemented in which the same virtual system address space (also referred to as the "effective address" space) is distributed among all of the various physical memories. For example, the processor memories 401-402 may each have a system memory address space of 64 GB, and the GPU memories 420-423 may each have a system memory address space of 32 GB (resulting in a total of 256 GB of addressable memory in this example).
[0112] 4B shows additional optional details regarding the interconnect between multi-core processor 407 and graphics acceleration module 446. Graphics acceleration module 446 may include one or more GPU chips integrated on a line card that is coupled to processor 407 via high-speed link 440. Alternatively, graphics acceleration module 446 may be integrated on the same package or chip as processor 407.
[0113] The illustrated processor 407 includes multiple cores 460A-460D, each having a translation lookaside buffer 461A-461D and one or more caches 462A-462D. The cores may include various other components for executing instructions and processing data (e.g., instruction fetch, branch prediction unit, decoder, execution unit, reorder buffer, etc.) that are not illustrated to avoid obscuring the principles underlying the components described herein. The caches 462A-462D may include a level 1 (L1) and a level 2 (L2) cache. Additionally, one or more shared caches 456 may be included in the caching hierarchy and shared by the set of cores 460A-460D. For example, one embodiment of the processor 407 includes 24 cores, each having its own L1 cache, 12 shared L2 caches, and 12 shared L3 caches. In this embodiment, one of the L2 and L3 caches is shared by two adjacent cores. The processor 407 and the graphics accelerator integrated module 446 are coupled to a system memory 441, which may include the processor memory 401-402.
[0114] Coherency is maintained for data and instructions stored in the various caches 462A-462D, 456 and system memory 441 via inter-core communication over a coherence bus 464. For example, each cache may have associated cache coherency logic / circuitry that communicates with them over the coherence bus 464 in response to a read or write detected for a particular cache line. In one implementation, a cache snooping protocol is implemented over the coherence bus 464 to snoop cache accesses. Cache snooping / coherency techniques are well understood by those skilled in the art and will not be described in detail here to avoid obscuring the underlying principles described herein.
[0115] A proxy circuit 425 may be provided that communicatively couples the graphics acceleration module 446 to the cache coherence bus 464 and enables the graphics acceleration module 446 to participate in cache coherence protocols as a peer of the cores. In particular, an interface 435 provides connectivity to the proxy circuit 425 through a high-speed link 440 (e.g., a PCIe bus, an NVLink, etc.), and an interface 437 connects the graphics acceleration module 446 to the high-speed link 440.
[0116] In one implementation, the accelerator integrated circuit 436 provides cache management, memory access, context management, and interrupt management services on behalf of the multiple graphics processing engines 431, 432, N of the graphics acceleration module 446. The graphics processing engines 431, 432, N may each comprise a separate graphics processing unit (GPU). Alternatively, the graphics processing engines 431, 432, N may comprise different types of graphics processing engines within a GPU, such as graphics execution units, media processing engines (e.g., video encoders / decoders), samplers, blit engines, etc. That is, the graphics acceleration module may be a GPU having multiple graphics processing engines 431-432, N, or the graphics processing engines 431-432, N may be individual GPUs integrated on a common package, line card, or chip.
[0117] The accelerator integrated circuitry 436 may include a memory management unit (MMU) 439 for performing various memory management functions, such as virtual-to-physical memory translation (also referred to as effective-to-real memory translation) and memory access protocols for accessing the system memory 441. The MMU 439 may include a translation lookaside buffer (TLB) (not shown) for caching virtual / effective to physical / real address translations. In one implementation, the cache 438 stores commands and data for efficient access by the graphics processing engines 431-432, N. Data stored in the cache 438 and the graphics memory 433-434, N may be kept coherent with the core caches 462A-462D, 456 and the system memory 411. As already mentioned, this may be achieved via a proxy circuit 425 which participates in the cache coherency mechanism on behalf of the cache 438 and memory 433-434 (e.g., sending updates to and receiving updates from the cache 438 related to modifications / accesses of cache lines on the processor caches 462A-462D, 456).
[0118] A set of registers 445 stores context data for threads executed by the graphics processing engines 431-432,N, and a context management circuit 448 manages thread contexts. For example, the context management circuit 448 may perform save and restore operations to save and restore the context of various threads during a context switch (e.g., a first thread is saved and a second thread is saved so that the second thread can be executed by the graphics processing engine). For example, in a context switch, the context management circuit 448 may store current register values in a specified area in memory (e.g., identified by a context pointer). Then, when returning to the context, the register values may be restored. For example, the interrupt management circuit 447 may receive interrupts from system devices and process the received interrupts.
[0119] In one implementation, virtual / effective addresses from the graphics processing engine 431 are translated by the MMU 439 to real / physical addresses in the system memory 411. Optionally, the accelerator integration circuitry 436 supports multiple (e.g., 4, 8, 16) graphics accelerator modules 446 and / or other accelerator devices. The graphics accelerator modules 446 may be dedicated to a single application executing on the processor 407 or may be shared among multiple applications. Optionally, a virtualized graphics execution environment is provided in which the resources of the graphics processing engines 431-432, N are shared with multiple applications or virtual machines (VMs). Resources may be subdivided into "slices" that are assigned to different VMs and / or applications based on the processing demands and priorities associated with the VMs and / or applications.
[0120] As such, the accelerator integration circuitry 436 acts as a bridge to the system for the graphics acceleration module 446, providing address translation and system memory caching services. In one embodiment, to facilitate the bridging function, the accelerator integration circuitry 436 may include shared I / O 497 (e.g., PCIe, USB) and hardware that allows system control of voltage, clocking, performance, thermal, and security. The shared I / O 497 may utilize a separate physical connection or may traverse high speed link 440. Additionally, the accelerator integration circuitry 436 may provide a virtualization function to the host processor that manages the virtualization of the graphics processing engine, interrupts, and memory management.
[0121] The hardware resources of the graphics processing engines 431-432,N are explicitly mapped into the real address space seen by the host processor 407, so that any host processor can directly address these resources using effective address values. One optional feature of the accelerator integration circuitry 436 is to physically separate the graphics processing engines 431-432,N so that they appear to the system as independent units.
[0122] One or more graphics memories 433-434, M may be coupled to each of the graphics processing engines 431-432, N, respectively. The graphics memories 433-434, M store instructions and data to be processed by each of the graphics processing engines 431-432, N. The graphics memories 433-434, M may be volatile memory, such as DRAM (including stacked DRAM), GDDR memory (e.g., GDDR5, GDDR6), or HBM, and / or may be non-volatile memory, such as 3D XPoint / Optane or Nano-Ram.
[0123] To reduce data traffic on the high-speed link 440, biasing techniques may be used to ensure that the data stored in the graphics memories 433-434,N is the data used most frequently by the graphics processing engines 431-432,N and preferably not (or at least not frequently) used by the cores 460A-460D. Similarly, biasing mechanisms attempt to keep data needed by the cores (and preferably not the graphics processing engines 431-432,N) in the cores' caches 462A-462D,456 and system memory 411.
[0124] According to the variant shown in Figure 4C, the accelerator integration circuit 436 is integrated within the processor 407. The graphics processing engines 431-432, N communicate directly to the accelerator integration circuit 436 through a high-speed link 440 via an interface 437 and an interface 435 (which again may utilize any form of bus or interface protocol). The accelerator integration circuit 436 may execute the same process as described with respect to Figure 4B, but with a given higher throughput due to the potentially closer proximity to the coherency bus 464 and the caches 462A-462D, 456.
[0125] The described embodiments may support different programming models, including a dedicated process programming model (without graphics acceleration module virtualization) and a shared programming model (with virtualization), which may include a programming model controlled by the accelerator integration circuitry 436 and a programming model controlled by the graphics acceleration module 446.
[0126] In a dedicated processing model embodiment, the graphics processing engines 431-432,N may be dedicated to a single application or process under a single operating system. A single application can send other application requests to the graphics engines 431-432,N to provide virtualization within a VM / partition.
[0127] In a dedicated process programming model, the graphics processing engines 431-432,N may be shared by multiple VM / application partitions. The shared model requires the system hypervisor to virtualize the graphics processing engines 431-432,N to allow access by each operating system. For a single partition system without a hypervisor, the graphics processing engines 431-432,N are owned by the operating system. In both cases, the operating system can virtualize the graphics processing engines 431-432,N to provide access to each process or application.
[0128] For a shared programming model, the graphics acceleration module 446 or the individual graphics processing engines 431-432,N select a process element using a process handle. The process element may be stored in system memory 411 and addressable using the effective address to real address conversion techniques described herein. The process handle may be an implementation-specific value provided to a host process when it registers its context with the graphics processing engines 431-432,N (i.e., makes a system software call to add the process element to a linked list of process elements). The low-order 16 bits of the process handle may be the offset of the process element in the linked list of process elements.
[0129] 4D illustrates an exemplary accelerator integration slice 490. As used herein, a "slice" comprises a particular portion of the processing resources of the accelerator integration circuitry 436. An application effective address space 482 in the system memory 411 stores a process element 483. The process element 483 may be stored in response to a GPU call 481 from an application 480 executing on the processor 407. The process element 483 includes a process state for the corresponding application 480. A work descriptor (WD) 484 included in the process element 483 may be a single job requested by the application or may include a pointer to a queue of jobs. In the latter case, the WD 484 is a pointer to a job request queue in the application's address space 482.
[0130] The graphics acceleration module 446 and / or the individual graphics processing engines 431-432, N can be shared by all or a subset of the processes in the system. For example, the techniques described herein may include an infrastructure that sends a WD484 to the graphics acceleration module 446 that sets up the process state and starts a job in a virtualized environment.
[0131] In one implementation, the dedicated process programming model is implementation specific, in which a single process owns the graphics acceleration module 446 or a separate graphics processing engine 431. Because the graphics acceleration module 446 is owned by a single process, the hypervisor initializes the accelerator integrated circuitry 436 for the owning partition, and the operating system initializes the accelerator integrated circuitry 436 for the owning process at the time the graphics acceleration module 446 is allocated.
[0132] During operation, a WD fetch unit 491 in the accelerator integrated slice 490 fetches the next WD 484 that contains an indication of work to be done by one of the graphics processing engines of the graphics acceleration module 446. Data from the WD 484 may be stored in registers 445 and used by the MMU 439, the interrupt management circuitry 447, and / or the context management circuitry 448 as shown. For example, the MMU 439 may include a segment / page walk circuit to access a segment / page table 486 in the OS virtual address space 485. The interrupt management circuitry 447 may process interrupt events 492 received from the graphics acceleration module 446. When performing a graphics operation, an effective address 493 generated by the graphics processing engines 431-432,N is translated to a real address by the MMU 439.
[0133] An identical set of registers 445 may be replicated by each graphics processing engine 431-432,N and / or graphics acceleration module 446 and may be initialized by the hypervisor or operating system. Each of these replicated registers may be included in the accelerator unified slice 490. Exemplary registers that may be initialized by the hypervisor are shown in Table 1. Table 1 - Hypervisor initialized registers [Table 1]
[0134] Exemplary registers that may be initialized by the operating system are shown in Table 2. Table 2 - Operating System Registers Initialized [Table 2]
[0135] Each WD 484 may be specific to a particular graphics acceleration module 446 and / or graphics processing engines 431-432, N. It may contain all the information that the graphics processing engines 431-432, N need to do its work, or it may be a pointer to a memory location where an application has set up a command queue for work to be completed.
[0136] 4E illustrates additional optional details of the sharing model, including a hypervisor real address space 498 in which a process element list 499 is stored. The hypervisor real address space 498 is accessible via a hypervisor 496, which virtualizes the graphics acceleration module engine for an operating system 495.
[0137] A shared programming model allows all or a subset of processes from all or a subset of the partitions in a system to use the graphics acceleration module 446. There are two programming models in which the graphics acceleration module 446 is shared by multiple processes and partitions: time-sliced sharing and graphics-directed sharing.
[0138] In this model, the system hypervisor 496 owns the graphics acceleration module 446 and makes its capabilities available to all operating systems 495. For a graphics acceleration module 446 to support virtualization by the system hypervisor 496, the graphics acceleration module 446 may adhere to the following requirements: 1) the application's job requests must be non-autonomous (i.e., state does not need to be maintained between jobs) or the graphics acceleration module 446 must provide a context save and restore mechanism; 2) the application's job requests must be guaranteed by the graphics acceleration module 446 to complete within a certain amount of time including any transformation failures or the graphics acceleration module 446 must provide the ability to preempt the processing of jobs; and 3) the graphics acceleration module 446 must ensure fairness between processes when operating in a directed sharing programming model.
[0139] For the shared model, the application 480 may need to make a system call to the operating system 495 with the graphics acceleration module 446 type, a working descriptor (WD), an authority mask register (AMR) value, and a context save / restore area pointer (CSRP). The graphics acceleration module 446 type describes the targeted acceleration function for the system call. The graphics acceleration module 446 type may be a system specific value. The WD is formatted specifically for the graphics acceleration module 446 and may be in the form of a graphics acceleration module 446 command, an effective address pointer to a user-defined structure, an effective address pointer to a queue of commands, or any other data structure that describes the work to be done by the graphics acceleration module 446. In one embodiment, the AMR value is the AMR state to be used for the current process. The value passed to the operating system is similar to the application setting the AMR. If the implementation of the accelerator integrated circuitry 436 and the graphics acceleration module 446 does not support a user authority mask override register (UAMOR), the operating system may apply the current UAMOR to the AMR value before passing the AMR in the hypervisor call. Optionally, the hypervisor 496 may apply the current authority mask override register (AMOR) value before placing the AMR in the process element 483. The CSRP may be one of the registers 445 that contains the effective address of the area in the application's address space 482 for the graphics acceleration module 446 to save and restore the context state. This pointer is optional if no state needs to be saved between jobs or if the job is preempted. The context save / restore area may be fixed system memory.
[0140] Upon receiving the system call, operating system 495 may verify that application 480 has registered and been granted permission to use graphics acceleration module 446. Operating system 495 then calls hypervisor 496 with the information shown in Table 3. Table 3 - OS-Hypervisor Call Parameters [Table 3]
[0141] Upon receiving the hypervisor call, the hypervisor 496 verifies that the operating system 495 has registered and been granted permission to use the graphics acceleration module 446. The hypervisor 496 then places a process element 483 in the process element link list for the type of the corresponding graphics acceleration module 446. The process element may include the information shown in Table 4. Table 4 - Process Element Information [Table 4]
[0142] The hypervisor may initialize registers 445 of multiple accelerator integrated slices 490.
[0143] As shown in FIG. 4F, one optional implementation uses a unified memory addressable via a common virtual memory address space that is used to access the physical processor memories 401-402 and the GPU memories 420-423. In this implementation, operations performed by the GPUs 410-413 use the same virtual / effective memory address space to access the processor memories 401-402 and vice versa, thereby simplifying programmability. A first portion of the virtual / effective address space may be assigned to the processor memory 401, a second portion to the second processor memory 402, a third portion to the GPU memory 420, etc. This allows the entire virtual / effective memory space (sometimes referred to as the effective address space) to be distributed across each of the processor memories 401-402 and the GPU memories 420-423, allowing any processor or GPU to access any physical memory using a virtual address that is mapped to that memory.
[0144] Bias / coherence management circuits 494A-494E may be provided within one or more of the MMUs 439A-439E to ensure cache coherence between the caches of a host processor (e.g., 405) and the GPUs 410-413 and to implement biasing techniques to indicate in which physical memory certain types of data should be stored. While multiple instances of bias / coherence management circuits 494A-494E are shown in FIG. 4F, the bias / coherence circuits may be implemented within the MMUs of one or more of the host processors 405 and / or within the accelerator integration circuitry 436.
[0145] The GPU-attached memory 420-423 may be mapped as part of the system memory and accessed using shared virtual memory (SVM) techniques, but does not suffer from the typical performance drawbacks associated with full system cache coherence. The ability of the GPU-attached memory 420-423 to be accessed as system memory without the burdensome cache coherence overhead provides a favorable operating environment for GPU offload. This arrangement allows the host processor 405 software to set up operands and access computation results without the overhead of traditional I / O DMA data copies. Such traditional copies involve driver calls, interrupts, and memory-mapped I / O (MMIO) accesses, which are all inefficient compared to simple memory accesses. At the same time, the ability to access the GPU-attached memory 420-423 without the overhead of cache coherence can be critical to the execution time of the offload computation. When streaming write memory traffic is large, for example, cache coherence overhead can significantly reduce the effective write bandwidth seen by the GPUs 410-413. The efficiency of operand setup, the efficiency of the resulting accesses, and the efficiency of GPU computation all play a role in determining the effectiveness of GPU offloading.
[0146] The selection between the GPU bias and the host processor bias may be driven by a bias tracker data structure. A bias table may be used, which may be, for example, a page-granular structure (i.e., controlled at the granularity of a memory page) containing one or two bits per GPU-attached memory page. The bias table may be implemented within stolen memory of one or more GPU-attached memories 420-423, with or without a bias cache within the GPU 410-413 (e.g., to cache frequently / recently used entries of the bias table). Alternatively, the entire bias table may be maintained within the GPU.
[0147] In one implementation, the bias table entry associated with each access to GPU attached memory 420-423 is accessed prior to the actual access to the GPU memory, causing the following steps: First, local requests from GPUs 410-413 that find their page in the GPU bias are forwarded directly to the corresponding GPU memory 420-423. Local requests from GPUs that find their page in the host bias are forwarded to processor 405 (e.g., via a high-speed link as described above). Optionally, requests from processor 405 that find the requested page in the host processor bias complete the request like a normal memory read. Alternatively, requests directed to a GPU bias page may be forwarded to GPU 410-413. Second, the GPU may migrate the page to the host processor bias if the page is not currently in use.
[0148] The bias state of a page can be changed by either software-based mechanisms, hardware-assisted software-based mechanisms, or, in a limited set of cases, by purely hardware-based mechanisms.
[0149] One mechanism for changing the bias state is using an API call (e.g., OpenCL) that invokes a GPU device driver, which sends a message (or queues a command descriptor) to the GPU instructing it to change the bias state and, for some transitions, to perform a cache flush operation in the host. A cache flush operation is required for transitions from host processor 405 bias to GPU bias, but not for the reverse transition.
[0150] Cache coherency may be maintained by temporarily rendering non-cacheable GPU bias pages by host processor 405. Depending on the implementation, to access these pages, processor 405 may request access from GPU 410, which may or may not immediately grant the access. Thus, to reduce communication between host processor 405 and GPU 410, it is advantageous to ensure that GPU bias pages are pages required by the GPU, and not by host processor 405, and vice versa. [Graphics Processing Pipeline]
[0151] FIG. 5 illustrates a graphics processing pipeline 500. A graphics multiprocessor, such as the graphics multiprocessor 234 of FIG. 2D, the graphics multiprocessor 325 of FIG. 3A, or the graphics multiprocessor 350 of FIG. 3B, may implement the illustrated graphics processing pipeline 500. The graphics multiprocessor may be included within a parallel processing subsystem, such as the parallel processor 200 of FIG. 2A, as described herein, and may be associated with or used in place of one of the parallel processors 112 of FIG. 1. Various parallel processing systems may implement the graphics processing pipeline 500 via one or more instances of a parallel processing unit (e.g., the parallel processing unit 202 of FIG. 2A) as described herein. For example, a shader unit (e.g., the graphics multiprocessor 234 of FIG. 2C) may be configured to perform one or more functions of the vertex processing unit 504, the tessellation control processing unit 508, the tessellation evaluation processing unit 512, the geometry processing unit 516, and the fragment / pixel processing unit 524. The functions of data assembler 502, primitive assemblers 506, 514, 518, tessellation unit 510, rasterizer 522, and raster operation unit 526 may be performed by other processing engines in a processing cluster (e.g., processing cluster 214 of FIG. 2A) and corresponding partition unit (e.g., partition units 220A-220N of FIG. 2A). Graphics processing pipeline 500 may be implemented using dedicated processing units for one or more functions. It is also possible that one or more portions of graphics processing pipeline 500 are performed by parallel processing logic within a general-purpose processor (e.g., CPU). Optionally, one or more portions of graphics processing pipeline 500 may access on-chip memory (e.g., parallel processor memory 222 of FIG. 2A) via memory interface 528, which may be an instance of memory interface 218 of FIG. 2A. Graphics processing pipeline 500 may be implemented via multi-core group 365A of FIG. 3C.
[0152] Data assembler 502 is a processing unit that may collect vertex data for surfaces and primitives. Data assembler 502 then outputs vertex data, including vertex attributes, to vertex processing unit 504. Vertex processing unit 504 is a programmable execution unit that runs vertex shader programs, lighting and transforming the vertex data as specified by the vertex shader programs. Vertex processing unit 504 may be programmed to read data stored in a cache, local or system memory for use in processing the vertex data, and to transform the vertex data from an object-based coordinate representation to a world space coordinate space or a normalized device coordinate space.
[0153] A first instance of primitive assembler 506 receives vertex attributes from vertex processing unit 504. Primitive assembler 506 reads stored vertex attributes as needed and builds graphics primitives for processing by tessellation control processing unit 508. Graphics primitives include triangles, lines, points, patches, etc. as supported by various graphics processing application programming interfaces (APIs).
[0154] The tessellation control processing unit 508 treats the input vertices as control points for the geometric patch. The control points are converted from the input representation of the patch (e.g., the base of the patch) to a representation suitable for use in surface evaluation by the tessellation evaluation processing unit 512. The tessellation control processing unit 508 can also calculate tessellation factors for edges of the geometric patch. The tessellation factor is applied to a single edge to quantify a view-dependent level of detail associated with the edge. The tessellation unit 510 is configured to receive the tessellation coefficients of the edges of the patch and tessellate the patch into a number of geometric primitives, such as line, triangle, and quadrilateral primitives, which are transmitted to the tessellation evaluation processing unit 512. The tessellation evaluation processing unit 512 operates on the parameterized coordinates of the subdivided patch to generate a surface representation associated with the geometric primitive and vertex attributes for each vertex.
[0155] A second instance of primitive assembler 514 receives vertex attributes from tessellation evaluation processing unit 512 and, if necessary, reads stored vertex attributes to construct graphics primitives for processing by geometry processing unit 516. Geometry processing unit 516 is a programmable execution unit that executes a geometry shader program to transform the graphics primitives received from primitive assembler 514 as specified by the geometry shader program. Geometry processing unit 516 may be programmed to subdivide graphics primitives into one or more new graphics primitives and to calculate parameters used to rasterize the new graphics primitives.
[0156] Geometry processing unit 516 may be able to add or remove elements in the geometry stream. Geometry processing unit 516 outputs parameters and vertices that specify new graphics primitives to primitive assembler 518. Primitive assembler 518 receives parameters and vertices from geometry processing unit 516 and builds graphics primitives for processing by viewport scale, cull, and clip unit 520. Geometry processing unit 516 reads data stored in parallel processor memory or system memory for use in processing the geometry data. Viewport scale, cull, and clip unit 520 performs clipping, culling, and viewport scaling and outputs processed graphics primitives to rasterizer 522.
[0157] Rasterizer 522 can perform depth sculling and other depth-based optimizations. Rasterizer 522 also performs scan conversion on new graphics primitives to generate fragments and outputs these fragments and associated coverage data to fragment / pixel processing unit 524. Fragment / pixel processing unit 524 is a programmable execution unit configured to execute a fragment shader program or a pixel shader program. Fragment / pixel processing unit 524 transforms fragments or pixels received from rasterizer 522 as specified by the fragment or pixel shader program. For example, fragment / pixel processing unit 524 may be programmed to perform processes including, but not limited to, texture mapping, shading, blending, texture correction, and depth correction to generate shaded fragments or pixels, which are output to raster operation unit 526. Fragment / pixel processing unit 524 can read data stored in either parallel processor memory or system memory for use in processing fragment data. A fragment or pixel shader program may be configured to shade at samples, pixels, tiles or other granularity, depending on the sampling rate configured for the processing unit.
[0158] Raster operations unit 526 is a processing unit that performs raster operations including, but not limited to, stenciling, z-testing, blending, etc., and outputs pixel data as processed graphics data to be stored in a graphics memory (e.g., parallel processor memory 222 of FIG. 2A and / or system memory 104 of FIG. 1), as graphics data to be displayed on one or more display devices 110, or for further processing by one or more processors 102 or one of the parallel processors 112. Raster operations unit 526 may be configured to decompress z or color data being written to memory and to decompress z or color data being read from memory. [Machine Learning Overview]
[0159] The above architectures can be applied to perform training and inference operations with machine learning models. Machine learning has been successful in solving many types of tasks. The computations that occur in training and using machine learning algorithms (e.g., neural networks) are inherently amenable to efficient parallel implementation. Thus, parallel processors, such as general-purpose graphics processing units (GPGPUs), have played an important role in the practical implementation of deep neural networks. Parallel graphics processors using single instruction, multiple threads (SIMT) architectures are designed to maximize the amount of parallelism in the graphics pipeline. In SIMT architectures, groups of parallel threads attempt to synchronously execute program instructions together as often as possible to improve processing efficiency. The efficiency provided by parallel machine learning algorithm implementations allows the use of high-capacity networks, allowing these networks to be trained on larger datasets.
[0160] Machine learning algorithms are algorithms that can learn based on a set of data. For example, machine learning algorithms can be designed to model a high level of abstraction within a data set. For example, image recognition algorithms can be used to determine which of several categories a given input belongs to, regression algorithms may output a numerical value given an input, and pattern recognition algorithms can be used to generate converted text or perform text-to-speech and / or speech recognition.
[0161] An exemplary type of machine learning algorithm is a neural network. There are many types of neural networks, and a simple type of neural network is a feedforward network. A feedforward network may be implemented as an acyclic graph with nodes arranged in layers. Typically, a feedforward network topology includes an input layer and an output layer separated by at least one hidden layer. The hidden layer converts the inputs received by the input layer into a representation useful for generating outputs at the output layer. The network nodes are all connected to nodes in adjacent layers via edges, but there are no edges between nodes within each layer. Data received at nodes in the input layer of a feedforward network is propagated, or "fed forward," to nodes in the output layer via an activation function that calculates the state of the nodes in each successive layer in the network based on coefficients ("weights") associated with each of the edges connecting the layers. Depending on the particular model being represented by the algorithm being executed, the output from a neural network algorithm can take a variety of forms.
[0162] Before a machine learning algorithm can be used to model a particular problem, the algorithm is trained using a training data set. Training a neural network involves selecting a network topology using a set of training data representative of the problem to be modeled by the network, and adjusting the weights until the network model performs with minimal error for every instance of the set of training data. For example, during a supervised learning training process for a neural network, the output generated by the network in response to an input representing an instance in the training data set is compared with the labeled output of the "ground truth" for that instance, an error signal representing the difference between the output and the labeled output is calculated, and the weights associated with these relationships are adjusted to minimize the error as the error signal is propagated back through the layers of the network. The network is considered "trained" when the error for each output generated from an instance of the training data set is minimized.
[0163] The accuracy of machine learning algorithms can be greatly affected by the quality of the data sets used to train the algorithms. The training process can be computationally intensive and can take a significant amount of time on conventional general-purpose processors. Therefore, parallel processing hardware is used to train many types of machine learning algorithms. This is particularly useful for optimizing the training of neural networks, since the calculations performed in adjusting the coefficients in a neural network are inherently suitable for parallel implementation. In particular, many machine learning algorithms and software applications are adapted to take advantage of parallel processing hardware in general-purpose graphics processing devices.
[0164] 6 is a generalized diagram of a machine learning software stack 600. A machine learning application 602 can be configured to train a neural network with a training dataset or to implement machine intelligence using a trained deep neural network. The machine learning application 602 can include training and inference capabilities for the neural network and / or specialized software that may be used to train the neural network prior to deployment. The machine learning application 602 can implement any type of machine intelligence, including, but not limited to, image recognition, mapping and localization, autonomous navigation, speech synthesis, medical imaging, or language conversion.
[0165] Hardware acceleration of the machine learning application 602 can be enabled through the machine learning framework 604. The machine learning framework 604 can provide a library of machine learning primitives. Machine learning primitives are basic operations typically performed by machine learning algorithms. Without the machine learning framework 604, a developer of a machine learning algorithm would be required to create and optimize the main computational logic associated with the machine learning algorithm, and then reoptimize the computational logic when new parallel processors are developed. Instead, a machine learning application can be configured to perform the necessary computations using primitives provided by the machine learning framework 604. Exemplary primitives include tensor convolutions, activation functions, and pooling, which are computational operations performed when training a convolutional neural network (CNN). The machine learning framework 604 can also provide primitives for implementing basic linear algebra subprograms performed by many machine learning algorithms, such as matrix and vector operations.
[0166] The machine learning framework 604 can process input data received from the machine learning application 602 and generate appropriate inputs to the computation framework 606. The computation framework 606 can abstract the underlying instructions provided to the GPGPU driver 608 to enable the machine learning framework 604 to leverage hardware acceleration via the GPGPU hardware 610 without requiring the machine learning framework 604 to have detailed knowledge of the architecture of the GPGPU hardware 610. Furthermore, the computation framework 606 can enable hardware acceleration of the machine learning framework 604 across different types and generations of GPGPU hardware 610. [GPGPU Machine Learning Acceleration]
[0167] Figure 7 shows a general purpose graphics processing unit 700, which may be parallel processor 200 of Figure 2A or parallel processor 112 of Figure 1. General purpose processing unit (GPGPU) 700 can be configured to be particularly efficient at handling computational workloads of the type associated with training deep neural networks. Furthermore, GPGPU 700 can be directly linked to other instances of GPGPU to create a multi-GPU cluster, particularly to improve the training speed of deep neural networks.
[0168] The GPGPU 700 includes a host interface 702 that enables a connection to a host processor. The host interface 702 may be a PCI Express interface. However, the host interface may also be a vendor-specific communication interface or fabric. The GPGPU 700 receives commands from the host processor and distributes execution threads associated with those commands to a set of processing clusters 706A-706H using a global scheduler 704. The processing clusters 706A-706H share a cache memory 708. The cache memory 708 may act as a higher level cache for the cache memories in the processing clusters 706A-706H. The illustrated processing clusters 706A-706H may correspond to the processing clusters 214A-214N in FIG. 2A.
[0169] The GPGPU 700 includes memory 714A-714B coupled to the processing clusters 706A-H via a set of memory controllers 712A-712B. The memory units 714A-714B can include various types of memory devices including dynamic random access memory (DRAM) or graphics random access memory such as synchronous graphics random access memory (SGRAM) including graphics double data rate (GDDR) memory. The memory 714A-714B may include 3D stacked memory including, but not limited to, high bandwidth memory (HBM).
[0170] Each of the processing clusters 706A-706H may include a set of graphics multiprocessors, such as graphics multiprocessor 234 of FIG. 2D, graphics multiprocessor 325 of FIG. 3A, graphics multiprocessor 350 of FIG. 3B, or may include multicore groups 365A-365N of FIG. 3C. The graphics multiprocessors of the computation clusters include multiple types of integer and floating point logic units capable of performing computational operations with a range of precision, including those suitable for machine learning computations. For example, at least a subset of the floating point units in each of the processing clusters 706A-706H may be configured to perform 16-bit or 32-bit floating point operations, while a different subset of the floating point units may be configured to perform 64-bit floating point operations.
[0171] Multiple instances of GPGPU 700 can be configured to operate as a compute cluster. The communication mechanisms used by the compute cluster for synchronization and data exchange vary across embodiments. For example, multiple instances of GPGPU 700 communicate through host interface 702. In one embodiment, GPGPU 700 includes an I / O hub 709 that couples GPGPU 700 with GPU link 710 that allows direct connection to other instances of GPGPU. GPU link 710 may be coupled to a dedicated GPU-to-GPU bridge that allows communication and synchronization between multiple instances of GPGPU 700. Optionally, GPU link 710 couples to a high-speed interconnect to transmit and receive data to other GPGPUs or parallel processors. Multiple instances of GPGPU 700 may be located in separate data processing systems and may communicate through a network device accessible via host interface 702. GPU link 710 may be configured to enable connection to a host processor in addition to or as an alternative to host interface 702.
[0172] The illustrated configuration of GPGPU 700 can be configured to train a neural network, and alternative configurations of GPGPU 700 can be configured for deployment in high performance or low power inference platforms. In the inference configuration, GPGPU 700 includes fewer processing clusters 706A-706H compared to the training configuration. Additionally, the memory technology associated with memories 714A-714B may differ between the inference and training configurations. In one embodiment, the inference configuration of GPGPU 700 can support inference specific instructions. For example, the inference configuration can provide support for one or more 8-bit integer dot product instructions that are commonly used during inference operations for deployed neural networks.
[0173] FIG. 8 illustrates a multi-GPU computing system 800. The multi-GPU computing system 800 can include a processor 802 coupled to multiple GPGPUs 806A-806D via a host interface switch 804. The host interface switch 804 can be a PCI Express switch device that couples the processor 802 to a PCI express bus over which the processor 802 can communicate with the set of GPGPUs 806A-806D. Each of the multiple GPGPUs 806A-806D can be an instance of the GPGPU 700 of FIG. 7. The GPGPUs 806A-806D can be interconnected via a set of high-speed point-to-point inter-GPU links 816. The high-speed inter-GPU links can be connected to each of the GPGPUs 806A-806D via a dedicated GPU link, such as the GPU link 710 of FIG. 7. The P2P GPU link 816 allows direct communication between each of the GPGPUs 806A-806D without requiring communication through the host interface bus to which the processor 802 is connected. With respect to inter-GPU traffic directed to the P2P GPU link, the host interface bus remains available for system memory access or to communicate with other instances of the multi-GPU computing system 800, for example, via one or more network devices. In FIG. 8, the GPGPUs 806A-806D are connected to the processor 802 through the host interface switch 804, while the processor 802 may alternatively include direct support for the P2P GPU link 816 and direct connections to the GPGPUs 806A-806D. [Implementation of machine learning neural networks]
[0174] The computing architecture described herein can be configured to perform a type of parallel processing that is particularly suitable for training and deploying neural networks for machine learning. A neural network can be generalized as a network of functions with graph relationships. As is known, there are various types of implementations of neural networks used in machine learning. As already described, one exemplary type of neural network is a feedforward network.
[0175] A second exemplary type of neural network is a convolutional neural network (CNN). CNNs are feed-forward neural networks dedicated to processing data with a known grid-like topology, such as image data. Thus, CNNs are commonly used in computer vision and image recognition applications, but they may also be used for other types of pattern recognition, such as speech and language processing. Nodes in a CNN input layer are organized into sets of "filters" (feature detection inspired by receptive fields found in the retina), and the output of each set of filters is propagated to nodes in successive layers of the network. CNN computation involves applying a convolution mathematical operation to each filter to generate an output for that filter. Convolution is a special kind of mathematical operation performed by two original functions to generate a third function that is a modified version of one of the two functions. In convolutional network terminology, the first function for the convolution may be referred to as the input, while the second function may be referred to as the convolution kernel. The output may be referred to as a feature map. For example, the input to a convolutional layer may be a multidimensional array of data defining the various color components of the input image, and the convolution kernel may be a multidimensional array of parameters, which are adapted by a training process to a neural network.
[0176] Recurrent neural networks (RNNs) are a family of feed-forward neural networks that contain feedback connections between layers. RNNs allow for the modeling of sequential data by sharing parameter data across different parts of the neural network. The architecture for RNNs includes cycles. At least a portion of the output data from the RNN is used as feedback to process subsequent inputs in the sequence, so that the cycle represents the influence of a variable's current value on its own value at a future time. This feature makes RNNs particularly useful for language processing due to the variability in which language data can be constructed.
[0177] The figures below show example feedforward, CNN and RNN networks and describe general processes for training and deploying each of these types of networks, respectively. It will be understood that these descriptions are exemplary and are not limited to any particular embodiment described herein, and that the illustrated concepts may be applied generally to deep neural networks and machine learning techniques in general.
[0178] The exemplary neural networks described above can be used to perform deep learning. Deep learning is machine learning using deep neural networks. Deep neural networks used in deep learning are artificial neural networks that are composed of multiple hidden layers, as opposed to shallow neural networks that contain only a single hidden layer. Deep neural networks are generally more computationally intensive to train. However, the additional hidden layers of the network allow for multi-step pattern recognition that results in reduced output errors compared to shallow machine learning techniques.
[0179] A deep neural network used in deep learning typically includes a front-end network for performing feature recognition coupled to a back-end network, which represents a mathematical model that can perform processing (e.g., object classification, speech recognition, etc.) based on feature representations provided to the model. Deep learning allows machine learning to be performed without the need for handcrafted feature engineering to be performed on the model. Instead, deep neural networks can learn features based on statistical structures or correlations in the input data. The learned features can be provided to a mathematical model, which can map the detected features to an output. The mathematical model used by the network is generally dedicated to the specific task to be performed, and different models are used to perform different tasks.
[0180] Once a neural network is constructed, a learning model can be applied to the network to train it to perform a particular task. The learning model describes how to adjust the weights in the model to reduce the network's output error. Backpropagation is a common method used to train neural networks. An input vector is presented to the network for processing. The output of the network is compared to the desired output using a loss function, and an error value is calculated for each of the neurons in the output layer. The error values are then backpropagated until each neuron has an associated error value that roughly represents its contribution to the original output. The network can then learn from these errors using algorithms such as the stochastic gradient descent algorithm to update the neural network weights.
[0181] 9A-9B show an exemplary convolutional neural network. FIG. 9A shows various layers within a CNN. As shown in FIG. 9A, an exemplary CNN used to model image processing can receive an input 902 describing the red, green, and blue (RGB) components of an input image. The input 902 can be processed by multiple convolutional layers (e.g., convolutional layer 904, convolutional layer 906). The output from the multiple convolutional layers can optionally be processed by a set of fully connected layers 908. Neurons in a fully connected layer have full connections to all activations in the previous layer, as previously described in feedforward networks. The output from the fully connected layers 908 can be used to generate output results from the network. The activations in the fully connected layers 908 can be calculated using matrix multiplication instead of convolutions. Not all CNN implementations utilize fully connected layers 908. For example, in some implementations, the convolutional layers 906 can generate the output for the CNN.
[0182] Convolutional layers are sparsely connected, which differs from the traditional neural network configuration found in the fully connected layer 908. Traditional neural network layers are all connected such that every output unit interacts with every input unit. However, as shown, convolutional layers are sparsely connected because the output of the convolution of a field is input to the nodes of the subsequent layer (instead of the respective state values of each node in the field). The kernels associated with the convolutional layers perform the convolution operation, and the output is sent to the next layer. The dimensionality reduction performed within the convolutional layers is one aspect that allows CNNs to scale to process large images.
[0183] 9B shows exemplary computational stages within a convolutional layer of a CNN. The input of the convolutional layer 912 of the CNN can be processed in three stages of the convolutional layer 914. The three stages can include a convolution stage 916, a detection stage 918, and a pooling stage 920. The convolutional layer 914 can then output data to a successive convolutional layer. The final convolutional layer of the network can generate output feature map data or provide input to a fully connected layer to generate, for example, a classification value for the input to the CNN.
[0184] The convolution stage 916 performs several convolutions in parallel to generate linear activations. The convolution stage 916 can include an affine transformation, which can be any transformation that can be specified as a linear transformation plus a translation. Affine transformations include rotation, translation, scaling, and combinations of these transformations. The convolution stage calculates the output of a function (e.g., a neuron) connected to a particular region in the input, which can be determined as a local region associated with the neuron. The neuron calculates a dot product between the neuron's weight and the region in the local input to which the neuron is connected. The output from the convolution stage 916 defines a set of linear activations that are processed by successive stages of the convolution layer 914.
[0185] The linear activations can be processed by a detection stage 918. In the detection stage 918, each linear activation is processed by a nonlinear activation function. The nonlinear activation function enhances the nonlinear characteristics of the entire network without affecting the receptive fields of the convolutional layers. Several types of nonlinear activation functions may be used. One particular type is the rectified linear unit (ReLU), which uses an activation function defined as f(x)=max(0,x) such that the activation is thresholded to zero.
[0186] The pooling stage 920 uses a pooling function that replaces the output of the convolutional layer 906 with summary statistics of nearby outputs. Pooling functions can be used to introduce translation invariance into the neural network, so that small translations to the inputs do not change the pooled output. Invariance to local translations can be useful in scenarios where the presence of a feature in the input data is more important than the exact location of the feature. Various types of pooling functions can be used during the pooling stage 920, including max pooling, average pooling, and l2-norm pooling. Furthermore, some CNN implementations do not include a pooling stage. Instead, such implementations are alternative and additional convolutional stages with increased strides compared to the previous convolutional stage.
[0187] The output from the convolutional layer 914 can then be processed by a next layer 922, which can be an additional convolutional layer or one of the fully connected layers 908. For example, the first convolutional layer 904 in FIG. 9A can output to a second convolutional layer 906, which can in turn output to the first of the fully connected layers 908.
[0188] FIG. 10 illustrates an exemplary recurrent neural network 1000. In a recurrent neural network (RNN), the previous state of the network influences the output of the current state of the network. RNNs can be constructed in various ways with various functions. The use of RNNs generally revolves around predicting the future based on a previous series of inputs using mathematical models. For example, RNNs can be used to perform statistical language modeling to predict the next word given a previous series of words. The illustrated RNN 1000 can be described as having an input layer 1002 that receives input vectors, a hidden layer 1004 that implements a recurrent function, a feedback mechanism 1005 that allows a "memory" of the previous state, and an output layer 1006 that outputs the results. The RNN 1000 operates on a time step basis. The state of the RNN at a given time step is influenced based on the previous time step by the feedback mechanism 1005. For a given time step, the state of the hidden layer 1004 is defined by the previous state and the input at the current time step. An initial input (x1) at a first time step may be processed by the hidden layer 1004. A second input (x2) may be processed by the hidden layer 1004 using state information determined during the processing of the initial input (x1). The predetermined state may be s t =f(Ux t +Ws t-1 ), where U and W are parameter matrices. Typically, the function f is nonlinear, such as a variation of the hyperbolic tangent function (Tanh) or the normalization function f(x)=max(0,x). However, the particular mathematical functions used in the hidden layer 1004 may vary depending on the details of the particular implementation of the RNN 1000.
[0189] In addition to the basic CNN and RNN networks described, variations on these networks may be possible. One exemplary RNN variation is the long short-term memory (LSTM) RNN. LSTM RNNs can learn long-term dependencies that may be necessary to process longer sequences of language. A variation of CNN is the convolutional deep belief network, which has a similar structure to CNNs and is trained in a similar manner to deep belief networks. Deep belief networks (DBNs) are generative neural networks that consist of multiple layers of random variables. DBNs can be trained using greedy unsupervised learning for each layer. The learned weights of the DBN can then be used to provide a pre-trained neural network by determining an optimal initial set of weights for the neural network.
[0190] FIG. 11 illustrates the training and deployment of deep neural networks. Once a network is constructed for a given task, the neural network is trained using a training dataset 1102. Various training frameworks 1104 have been developed to enable hardware acceleration of the training process. For example, the machine learning framework 604 of FIG. 6 may be configured as the training framework 604. The training framework 604 may be connected to an untrained neural network 1106, allowing the untrained neural net to be trained using parallel processing resources as described herein to generate a trained neural net 1108.
[0191] To begin the training process, initial weights may be selected randomly or by pre-training with a deep belief network. Training cycles are then performed in either a supervised or unsupervised manner.
[0192] Supervised learning is a learning method in which training is performed as an intermediary operation, for example, when the training data set 1102 includes inputs that are combined with desired outputs for the inputs, or when the training data set includes inputs with known outputs and the neural network's output is manually graded. The network processes the inputs and compares the resulting output against a set of expected or desired outputs. Errors are then propagated to the system. The training framework 1104 can be adjusted to adjust the weights that control the untrained neural network 1106. The training framework 1104 can provide tools to monitor how well the untrained neural network 1106 is converging to a model suitable for generating correct answers based on known input data. The training process is iterative as the network weights are adjusted to refine the outputs generated by the neural network. The training process can be continued until the neural network reaches the statistically desired accuracy associated with the trained neural net 1108. The trained neural network 1108 can then be deployed to implement any number of machine learning operations to generate inference results 1114 based on the input of new data 1112.
[0193] Unsupervised learning is a learning method in which a network attempts to train itself using unlabeled data. Thus, for unsupervised learning, the training dataset 1102 includes input data without any associated output data. The untrained neural network 1106 can learn groups in the unlabeled inputs and determine how each input relates to the entire dataset. Unsupervised training can be used to generate a self-organizing map, which is a type of trained neural network 1108 that can perform operations useful for reducing the dimensionality of data. Unsupervised training can also be used to perform anomaly detection, allowing the identification of data points in the input dataset that deviate from normal patterns in the data.
[0194] Variations of supervised and unsupervised training may also be used. Semi-supervised learning is a technique in which the training data set 1102 contains a mixture of labeled and unlabeled data of the same variance. Incremental learning is a variation of supervised learning in which input data is continually used to further train the model. Incremental learning allows the trained neural network 1108 to adapt to new data 1112 without forgetting the knowledge installed in the network during initial training.
[0195] The training process, especially of deep neural networks, whether supervised or unsupervised, can be too computationally intensive for a single computation node. Instead of using a single computation node, a distributed network of computation nodes can be used to accelerate the training process.
[0196] 12 is a block diagram illustrating distributed learning. Distributed learning is a training model that uses multiple distributed computing nodes to perform supervised or unsupervised training of neural networks. Each distributed computing node may include one or more host processors and one or more general purpose processing nodes, such as the high speed parallel general purpose graphics processing unit 700 of FIG. 7. As shown, distributed learning can be performed using model parallelism 1202, data parallelism 1204, or a combination of model and data parallelism 1204.
[0197] In model parallelism 1202, different computational nodes of a distributed system can perform training computations for different parts of a single network. For example, each layer of a neural network can be trained by a different processing node of the distributed system. Advantages of model parallelism include the ability to scale to particularly large models. Splitting up the computations associated with different layers of a neural network allows for the training of very large neural networks where all the layer weights would not fit into the memory of a single computational node. In some examples, model parallelism can be particularly useful for performing unsupervised training of large neural networks.
[0198] In data parallelism 1204, different nodes of the distributed network have a complete instance of the model, and each node receives a different portion of the data. The results from the different nodes are then combined. While different approaches to data parallelism are possible, all data parallel training approaches require techniques to combine the results and synchronize the model parameters between each node. Exemplary approaches to combining data include parameter averaging and update-based data parallelism. Parameter averaging trains each node on a subset of the training data and sets the global parameters (e.g., weights, biases) to the average of the parameters from each node. Parameter averaging uses a central parameter server that maintains the parameter data. Update-based data parallelism is similar to parameter averaging, except that instead of transferring parameters from the nodes to the parameter server, updates to the model are transferred. Additionally, update-based data parallelism can be performed in a distributed manner, where updates are packed and transferred between nodes.
[0199] The combined model and data parallelism 1206 can be implemented, for example, in a distributed system where each compute node contains multiple GPUs. Each node can have a complete instance of the model with separate GPUs in each node used to train different parts of the model.
[0200] Distributed training incurs increased overhead compared to training on a single machine, however, the parallel processors and GPGPUs described herein each can implement various techniques to reduce the overhead of distributed training, including techniques that enable high-bandwidth inter-GPU data transfers and accelerated remote data synchronization. [Example machine learning application]
[0201] Machine learning can be applied to solve a variety of technical problems, including, but not limited to, computer vision, autonomous driving and navigation, voice recognition, and language processing. Computer vision has been one of the most active research areas for machine learning applications to date. Applications of computer vision range from reproducing human visual capabilities, such as recognizing faces, to creating new categories of visual capabilities. For example, a computer vision application can be configured to recognize sound waves from vibrations induced in visible objects in a video. Machine learning accelerated by parallel processors allows computer vision applications to be trained with much larger training datasets than previously feasible, and allows inference systems to be deployed using low-power parallel processors.
[0202] Parallel processor accelerated machine learning has automated driving applications including lane and road sign recognition, obstacle avoidance, navigation and driving control. Accelerated machine learning techniques can be used to train driving models based on data sets that define appropriate responses to specific training inputs. The parallel processors described herein may enable rapid training of increasingly complex neural networks used in automated driving solutions and enable the deployment of low power inference processors in mobile platforms suitable for integration into autonomous vehicles.
[0203] Parallel processor accelerated deep neural networks have enabled machine learning approaches to automatic speech recognition (ASR). ASR involves creating a function that computes the most likely language sequence given an input acoustic sequence. Accelerated machine learning using deep neural networks has enabled the replacement of previously used Hidden Markov Models (HMMs) and Gaussian Mixture Models (GMMs) for ASR.
[0204] Parallel processor-accelerated machine learning can also be used to accelerate natural language processing. Automated learning procedures can utilize statistical inference algorithms to generate models that are robust to erroneous or unfamiliar input. Exemplary natural language processor applications include automatic machine translation between human languages.
[0205] Parallel processing platforms used for machine learning can be divided into training platforms and deployment platforms. In general, training platforms are highly parallel and include optimizations for accelerating multi-GPU-single node training and multi-node-multi-GPU training. Exemplary parallel processors suitable for training include the general-purpose graphics processing unit 700 of FIG. 7 and the multi-GPU computing system 800 of FIG. 8. Rather, deployed machine learning platforms generally include low-power parallel processors suitable for use in products such as cameras, autonomous robots, and autonomous vehicles.
[0206] FIG. 13 illustrates an exemplary inference system-on-chip (SOC) 1300 suitable for performing inference using a trained model. The SOC 1300 can integrate processing components including a media processor 1302, a vision processor 1304, a GPGPU 1306, and a multi-core processor 1308. The GPGPU 1306 can be a GPGPU as described herein, such as GPGPU 700, and the multi-core processor 1308 can be a multi-core processor as described herein, such as multi-core processors 405-406. The SOC 1300 can further include an on-chip memory 1305 that can enable a shared on-chip data pool accessible by each of the processing components. The processing components can be optimized for low-power operation to enable deployment in a variety of machine learning platforms, including autonomous vehicles and autonomous robots. For example, one implementation of the SOC 1300 can be used as part of a master control system for an autonomous vehicle. When a SOC1300 is configured for use in an autonomous vehicle, the SOC will be designed and configured to comply with the relevant functional safety standards of the deployment jurisdiction.
[0207] In operation, the media processor 1302 and the vision processor 1304 can work in concert to accelerate computer vision operations. The media processor 1302 can enable low latency decoding of multiple high resolution (e.g., 4K, 8K) video streams. The decoded video streams can be written to a buffer in the on-chip memory 1305. The vision processor 1304 can then analyze the decoded video and perform pre-processing operations on frames of the decoded video in preparation for processing the frames with a trained image recognition model. For example, the vision processor 1304 can accelerate convolution operations for a CNN used to perform image recognition on high resolution video data, while back-end model computations are performed by the GPGPU 1306.
[0208] The multi-core processor 1308 may include control logic that assists in sequencing and synchronizing data transfers and shared memory operations performed by the media processor 1302 and the vision processor 1304. The multi-core processor 1308 may also function as an application processor that executes software applications that can utilize the inference computing power of the GPGPU 1306. For example, at least a portion of the navigation and driving logic may be implemented in software that executes on the multi-core processor 1308. Such software may issue computational workloads directly to the GPGPU 1306, or the computational workloads may be issued to the multi-core processor 1308, which can offload at least a portion of these operations to the GPGPU 1306.
[0209] The GPGPU 1306 may include a computational cluster, such as a low-power configuration of the processing clusters 706A-706H in the general-purpose graphics processing unit 700. The computational cluster in the GPGPU 1306 may support instructions that are specifically optimized for performing inference calculations on trained neural networks. For example, the GPGPU 1306 may support instructions for performing low-precision calculations, such as 8-bit integer vector operations and 4-bit integer vector operations. [Summary of additional systems]
[0210] FIG. 14 is a block diagram of a processing system 1400. Elements of FIG. 14 having the same or similar names as elements of any other figures herein are described with respect to the same elements in the other figures, may operate or function similarly as described elsewhere herein, may comprise the same components, and may be linked to other elements, but are not limited to such. The system 1400 may be used in a single processor desktop system, a multiprocessor workstation system, or a server system having multiple processors 1402 or processor cores 1407. The system 1400 may be a processing platform incorporated in a system-on-chip (SoC) integrated circuit for use in mobile, handheld, or embedded devices, such as in Internet of Things (IoT) devices with wired or wireless connections to local or wide area networks.
[0211] System 1400 may be a processing system having components corresponding to those of Figure 1. For example, in a different configuration, processor 1402 or processor core 1407 may correspond to processor 102 of Figure 1. Graphics processor 1408 may correspond to parallel processor 112 of Figure 1. External graphics processor 1418 may be one of add-in devices 120 of Figure 1.
[0212] The system 1400 can include, couple to, or be integrated within a server-based gaming platform, a game console, including a game and media console, a mobile gaming console, a handheld game console, or an online game console. The system 1400 can be part of a mobile Internet-connected device, such as a mobile phone, a smart phone, a tablet computing device, or a laptop with low internal storage capacity. The processing system 1400 can also include, couple to, or be integrated with a wearable device, such as, for example, a smart watch wearable device; smart eyewear or clothing that provides visual, audio, or haptic output to supplement a real-world visual, audio, or haptic experience, or otherwise provides text, audio, graphics, video, holographic images or video, or haptic feedback; other augmented reality (AR) devices; or other virtual reality (VR) devices. The processing system 1400 can include, or be part of, a television or a set-top box device. System 1400 may include, be coupled to, or be integrated into an autonomous vehicle, such as a bus, a tractor trailer, a car, a motorcycle or power cycle, an airplane or glider (or any combination thereof), etc. The autonomous vehicle may use system 1400 to process the sensed environment around the vehicle.
[0213] The one or more processors 1402 may include one or more processor cores 1407 that process instructions that, when executed, perform operations for system or user software. At least one of the one or more processor cores 1407 may be configured to process a particular instruction set 1409. The instruction set 1409 may facilitate complex instruction set computing (CISC), reduced instruction set computing (RISC), or computing via very long instruction words (VLIW). The one or more processor cores 1407 may process different instruction sets 1409, which may include instructions to facilitate emulation of other instruction sets. The processor cores 1407 may also include other processing devices, such as digital signal processors (DSPs).
[0214] The processor 1402 may include cache memory 1404. Depending on the architecture, the processor 1402 may have a single internal cache or multiple levels of internal cache. In some embodiments, the cache memory is shared among various components of the processor 1402. In some embodiments, the processor 1402 also uses an external cache (e.g., a level-3 (L3) cache or a last level cache (LLC)) (not shown), which may be shared among the processor cores 1407 using known cache coherency techniques. A register file 1406 may also be included within the processor 1402 and may include different types of registers (e.g., integer registers, floating point registers, status registers, and instruction pointer registers) for storing different types of data. Some registers may be general purpose registers, while other registers may be specific to the design of the processor 1402.
[0215] The one or more processors 1402 may be coupled to one or more interface buses 1410 to carry communication signals, such as address, data, or control signals, between the processors 1402 and other components in the system 1400. The interface bus 1410, in one of these embodiments, may be a processor bus, such as a version of a Direct Media Interface (DMI) bus. However, the processor bus is not limited to a DMI bus and may include one or more peripheral component interconnect buses (e.g., PCI, PCI Express), a memory bus, or other types of interface buses. For example, the processor 1402 may include a unified memory controller 1416 and a platform controller hub 1430. The memory controller 1416 facilitates communication between memory devices and other components of the system 1400, while the platform controller hub (PCH) 1430 provides connectivity to I / O devices via a local I / O bus.
[0216] The memory device 1420 may be a dynamic random access memory (DRAM) device, a static random access memory (SRAM) device, a flash memory device, a phase change memory device, or some other memory device with suitable performance to function as a process memory. The memory device 1420 may operate as a system memory for the system 1400, for example, storing data 1422 and instructions 1421 for use when the one or more processors 1402 execute applications or processes. The memory controller 1416 may also couple with an optional external graphics processor 1418 and communicate with one or more graphics processors 1408 in the processor 1402 to perform graphics and media operations. In some embodiments, graphics, media and / or computation operations may be assisted by an accelerator 1412, which is a co-processor that may be configured to perform a particular set of graphics, media or computation operations. For example, the accelerator 1412 may be a matrix multiplication accelerator used to optimize machine learning or computation operations. Accelerator 1412 may be a ray tracing accelerator that may be used to perform ray tracing calculations in conjunction with graphics processor 1408. In one embodiment, an external accelerator 1419 may be used instead of or in conjunction with accelerator 1412.
[0217] A display device 1411 may be provided that may be connected to the processor 1402. The display device 1411 may be one or more of an internal display device, such as in a mobile electronic device or laptop device, or an external display device attached via a display interface (e.g., DisplayPort, etc.). The display device 1411 may be a head mounted display (HMD), such as a stereoscopic display device for use in virtual reality (VR) or augmented reality (AR) applications.
[0218] The platform controller hub 1430 may allow peripherals to be connected to the memory device 1420 and the processor 1402 via a high-speed I / O bus. The I / O peripherals include, but are not limited to, an audio controller 1446, a network controller 1434, a firmware interface 1428, a wireless transceiver 1426, a touch sensor 1425, and a data storage device 1424 (e.g., non-volatile memory, volatile memory, hard disk drive, flash memory, NAND, 3D NAND, 3D XPoint / Optane, etc.). The data storage device 1424 may be connected via a storage interface (e.g., SATA) or via a peripheral bus such as a peripheral component interconnect bus (e.g., PCI, PCI Express). The touch sensor 1425 may include a touch screen sensor, a pressure sensor, or a fingerprint sensor. The wireless transceiver 1426 may be a Wi-Fi transceiver, a Bluetooth transceiver, or a mobile network transceiver such as a 3G, 4G, 5G, or Long Term Evolution (LTE) transceiver. The firmware interface 1428 enables communication with system firmware and may be, for example, a Unified Extensible Firmware Interface (UEFI). The network controller 1434 may enable network connectivity to a wired network. In some embodiments, a high performance network controller (not shown) couples to the interface bus 1410. The audio controller 1446 may be a multi-channel high definition audio controller. In some of these embodiments, the system 1400 includes an optional legacy I / O controller 1440 for coupling legacy (e.g., Personal System 2 (PS / 2)) devices to the system. The platform controller hub 1430 may also connect to one or more universal serial bus (USB) controllers 1442 connected input devices, such as a keyboard and mouse 1443 combination, a camera 1444 or other USB input devices.
[0219] It will be understood that the illustrated system 1400 is exemplary and non-limiting, as other types of separately configured data processing systems may also be used. For example, instances of memory controller 1416 and platform controller hub 1430 may be integrated into a separate external graphics processor, such as external graphics processor 1418. Platform controller hub 1430 and / or memory controller 1416 may be external to one or more processors 1402. For example, system 1400 may include external memory controller 1416 and platform controller hub 1430, which may be configured as a memory controller hub and a controller hub for peripherals in a system chipset that communicates with processor 1402.
[0220] For example, circuit boards ("sleds") on which components such as CPUs, memory, and other components are placed can be used and designed for improved thermal performance. Processing components such as processors may be placed on the top surface of the sled, while near memory such as DIMMs may be placed on the bottom surface of the sled. As a result of the improved airflow provided by this design, these components may operate at higher frequencies and power levels than in a typical system, thereby improving performance. Additionally, the sleds are configured to allow for blind connections to power and data communication cables in the rack, thus improving the ability to quickly remove, upgrade, reinstall, and / or replace the sleds. Similarly, individual components located on the sleds, such as processors, accelerators, memory, and data storage drives, are configured to be more easily upgraded due to the increased spacing from each other. In the illustrated embodiment, these components further include hardware authentication features to prove their authenticity.
[0221] A data center may use a single network architecture ("fabric") that supports multiple other network architectures, including Ethernet and Omnipath. The threads may be coupled to switches via optical fiber. Optical fiber provides higher bandwidth and lower latency than typical twisted pair cabling (e.g., Cat 5, Cat 5e, Cat 6, etc.). With a high bandwidth, low latency interconnect and network architecture, a data center may pool resources such as memory, accelerators (e.g., GPUs, graphics accelerators, FPGAs, ASICs, neural networks, and / or artificial intelligence accelerators, etc.), and data storage drives that are physically separate, and provide computational resources (e.g., processors) to these resources as needed, allowing the computational resources to access the pooled resources as if they were local.
[0222] A power supply or source can provide voltage and / or current to system 1400 or any component or system described herein. In one example, the power supply includes an AC-DC (alternating current to direct current) adapter that connects to a wall outlet. Such AC power can be a renewable energy (e.g., solar) source. In one example, the power source includes a DC source, such as an external AC-DC converter. The power source or power supply can also include wireless charging hardware that charges by proximity to a charging field. The power source can include an internal battery, an AC source, a motion-based power source, a solar power source, or a fuel cell source.
[0223] 15A-15C illustrate a computing system and a graphics processor. Elements in FIG. 15A-15C that have the same or similar names as elements in any other figures herein describe the same elements in the other figures, may operate or function similarly to the same elements as described elsewhere herein, may comprise the same components, and may be linked to other elements, but are not limited to such.
[0224] FIG. 15A is a block diagram of a processor 1500, which may be a variation of one of the processors 1402 and may be used in place of one of these. Thus, the disclosure of any feature in combination with the processor 1500 herein also discloses the corresponding combination with the processor 1402, but is not limited to such. The processor 1500 may have one or more processor cores 1502A-1502N, a unified memory controller 1514, and an integrated graphics processor 1508. If the integrated graphics processor 1508 is excluded, the system including the processor includes a graphics processor device in the system chipset or coupled via a system bus. The processor 1500 may include additional cores, including up to an additional core 1502N, represented by a dashed box. Each of the processor cores 1502A-1502N includes one or more internal cache units 1504A-1504N. In some embodiments, each processor core 1502A-1502N also has access to one or more shared cache units 1506. The internal cache units 1504A-1504N and the shared cache unit 1506 represent a cache memory hierarchy within the processor 1500. The cache memory hierarchy may include at least one level of instruction and data cache within each processor core and one or more levels of shared mid-level cache, such as a level 2 (L2), level 3 (L3), level 4 (L4), or other level cache, with the highest level cache before external memory classified as an LLC. In some embodiments, cache coherency logic maintains coherency between the various cache units 1506 and 1504A-1504N.
[0225] Processor 1500 may include a set of one or more bus controller units 1516 and a system agent core 1510. The one or more bus controller units 1516 manage a set of peripheral buses, such as one or more PCI or PCI Express buses. System agent core 1510 provides management functions for various processor components. System agent core 1510 may include one or more unified memory controllers 1514 that manage access to various external memory devices (not shown).
[0226] For example, one or more of the processor cores 1502A-1502N may include support for simultaneous multithreading. The system agent core 1510 includes components for coordinating and operating the cores 1502A-1502N during multithreaded processing. The system agent core 1510 may further include a power control unit (PCU), which includes logic and components for regulating the power state of the processor cores 1502A-1502N and the graphics processor 1508.
[0227] The processor 1500 may further include a graphics processor 1508 that performs graphics processing operations. In some of these embodiments, the graphics processor 1508 couples to a system agent core 1510 that includes a set of shared cache units 1506 and one or more unified memory controllers 1514. The system agent core 1510 may include a display controller 1511 that drives the graphics processor output to one or more coupled displays. The display controller 1511 may be a separate module coupled to the graphics processor via at least one interconnect or may be integrated within the graphics processor 1508.
[0228] A ring-based interconnect unit 1512 may be used to couple the internal components of the processor 1500. However, alternative interconnect units may be used, such as point-to-point interconnects, switched interconnects, or other technologies, including those known in the art. In some of these embodiments that have a ring-based interconnect 1512, the graphics processor 1508 couples to the ring-based interconnect 1512 via an I / O link 1513.
[0229] The exemplary I / O link 1513 represents at least one of a number of different I / O interconnects, including an on-package I / O interconnect that facilitates communication between various processor components and a high-performance embedded memory module 1518, such as an eDRAM module. Optionally, each of the processor cores 1502A-1502N and the graphics processor 1508 can use the embedded memory module 1518 as a shared last-level cache.
[0230] The processor cores 1502A-1502N may be homogenous cores, for example, executing the same instruction set architecture. Alternatively, the processor cores 1502A-1502N may be heterogeneous in terms of instruction set architecture (ISA), where one or more of the processor cores 1502A-1502N execute a first instruction set, while at least one of the other cores executes a subset of the first instruction set or a different instruction set. The processor cores 1502A-1502N may be heterogeneous in terms of microarchitecture, where one or more cores having a relatively higher power consumption are coupled to one or more power cores having a lower power consumption. As another example, the processor cores 1502A-1502N are heterogeneous in terms of computational capabilities. Additionally, the processor 1500 may be implemented on one or more chips or as a SoC integrated circuit having the illustrated components in addition to other components.
[0231] 15B is a block diagram of hardware logic of a graphics processor core 1519 according to some embodiments described herein. The graphics processor core 1519 may be referred to as a core slice and may be one or more graphics cores in a modular graphics processor. The graphics processor core 1519 is an example of a graphics core slice, and a graphics processor as described herein may include multiple graphics core slices based on target power and performance limits. Each graphics processor core 1519 may include a fixed function block 1530 coupled with multiple sub-cores 1521A-1521F, also referred to as sub-slices, that include modular blocks of general purpose and fixed function logic.
[0232] Fixed function block 1530 may include a geometry / fixed function pipeline 1531 that may be shared by all sub-cores within graphics processor core 1519, for example, in a low-performance and / or low-power graphics processor implementation. Geometry / fixed function pipeline 1531 may include a 3D fixed function pipeline (e.g., 3D pipeline 1612 of FIG. 16A described below), a video front-end unit, a thread spawner and thread dispatcher, and a unified return buffer manager that manages a unified return buffer (e.g., unified return buffer 1718 of FIG. 17 described below).
[0233] The fixed function block 1530 may also include a graphics SoC interface 1532, a graphics microcontroller 1533, and a media pipeline 1534. The graphics SoC interface 1532 provides an interface between the graphics processor core 1519 and other processor cores in the system-on-chip integrated circuit. The graphics microcontroller 1533 is a programmable sub-processor that can be configured to manage various functions of the graphics processor core 1519, including thread dispatch, scheduling, and preemption. The media pipeline 1534 (e.g., the media pipeline 1616 of Figures 16A and 17) includes logic that facilitates decoding, encoding, pre-processing, and / or post-processing of multimedia data, including image and video data. The media pipeline 1534 performs media operations via requests to computation or sampling logic in the sub-cores 1521-1521F.
[0234] The SoC interface 1532 may enable the graphics processor core 1519 to communicate with other components in the SoC, including general purpose application processor cores (e.g., CPUs) and / or memory hierarchy elements, such as shared last level cache memory, system RAM, and / or embedded on-chip or on-package DRAM. The SoC interface 1532 may also enable communication with fixed function devices in the SoC, such as a camera imaging pipeline, and enable use of and / or implement global memory atomics that may be shared between the graphics processor core 1519 and CPUs in the SoC. The SoC interface 1532 may also implement power management control of the graphics processor core 1519 and enable interfaces between the clock domain of the graphics core 1519 and other clock domains in the SoC. Optionally, the SoC interface 1532 enables receipt of command buffers from a command streamer and thread dispatcher configured to provide commands and instructions to each of one or more graphics cores in the graphics processor. If media operations are to be performed, commands and instructions may be dispatched to the media pipeline 1534, and if graphics processing operations are to be performed, the geometry and fixed function pipelines (e.g., geometry and fixed function pipelines 1531, geometry and fixed function pipelines 1537) may be dispatched to the media pipeline 1534.
[0235] The graphics microcontroller 1533 can be configured to perform various scheduling and management tasks for the graphics processor core 1519. In one configuration, the graphics microcontroller 1533 can perform graphics and / or computation workload scheduling for various graphics parallel engines, for example in the execution unit (EU) arrays 1522A-1522F, 1524A-1524F in the sub-cores 1521A-1521F. In this workload scheduling, host software executing on a CPU core of the SoC including the graphics processor core 1519 can present a workload to one of the multiple graphics processors and invoke a scheduling operation on the appropriate graphics engine. The scheduling operation includes determining which workload to run next, presenting the workload to a command streamer, preempting existing workloads running on the engines, monitoring the process of the workload, and notifying the host software when the workload is completed. Optionally, graphics microcontroller 1533 can also facilitate low power or idle states for graphics processor core 1519, providing graphics processor core 1519 with the ability to save and restore registers within graphics processor core 1519 across low power state transitions independent of the operating system and / or graphics driver software on the system.
[0236] Graphics processor core 1519 may have up to N more or fewer modular sub-cores than the illustrated sub-cores 1521A-1521F. For each set of N sub-cores, graphics processor core 1519 may also include shared function logic 1535, shared and / or cache memory 1536, geometry / fixed function pipeline 1537, and additional fixed function logic 1538 that accelerates various graphics and computational processing operations. Shared function logic 1535 may include logic units associated with shared function logic 1720 of FIG. 17 (e.g., sampler, math, and / or inter-thread communication logic) that may be shared by each of the N sub-cores in graphics processor core 1519. Shared and / or cache memory 1536 may be a last level cache for the set of N sub-cores 1521A-1521F in graphics processor core 1519 and may also function as a shared memory accessible by multiple sub-cores. Geometry / fixed function pipeline 1537 may be included in place of geometry / fixed function pipeline 1531 in fixed function block 1530 and may include the same or similar logical units.
[0237] Graphics processor core 1519 may include additional fixed function logic 1538 that may include various fixed function acceleration logic for use by graphics processor core 1519. Optionally, additional fixed function logic 1538 includes an additional geometry pipeline for use with position-only shading. In position-only shading, there are two geometry pipelines: a complete geometry pipeline in geometry / fixed function pipeline 1538, 1531, and a culling pipeline, which is an additional geometry pipeline that may be included in additional fixed function logic 1538. For example, the culling pipeline may be a scaled-down version of the complete geometry pipeline. The complete pipeline and the culling pipeline may run different instances of the same application, with each instance having a separate context. Position-only shading may hide lengthy culling runs of discarded triangles, allowing shading to complete sooner in some instances. For example, the culling pipeline logic in the additional fixed function logic 1538 can execute position shaders in parallel with the main application, and because the culling pipeline only fetches and shades position attributes of vertices without rasterizing and rendering pixels in the frame buffer, it generally produces significant results faster than the full pipeline. The culling pipeline can use the significant results produced to calculate visibility information for all triangles, regardless of whether these triangles were culled or not. The full pipeline (which in this example may be called the replay pipeline) can skip culled triangles and consume the visibility information to shade only visible triangles that are eventually sent to the rasterization phase.
[0238] Optionally, the additional fixed function logic 1538 may also include machine learning acceleration logic, such as fixed function matrix multiplication logic for implementations including optimization of machine learning training or inference.
[0239] Within each graphics subcore 1521A-1521F is a set of execution resources that can be used to perform graphics, media, and compute operations in response to requests by the graphics pipeline, media pipeline, or shader programs. The graphics subcores 1521A-1521F include a number of EU arrays 1522A-1522F, 1524A-1524F, thread dispatch and inter-thread communication (TD / IC) logic 1523A-1523F, 3D (e.g., texture) samplers 1525A-1525F, media samplers 1506A-1506F, shader processors 1527A-1527F, and shared local memories (SLMs) 1528A-1528F. Each of the EU arrays 1522A-1522F, 1524A-1524F includes multiple execution units, which are general-purpose graphics processing units capable of performing floating-point and integer / fixed-point logic operations during graphics, media, or compute operations, including graphics, media, or compute shader programs. The TD / IC logic 1523A-1523F performs local thread dispatch and thread control operations for the execution units in the sub-core and facilitates communication between threads executing on the execution units of the sub-core. The 3D samplers 1525A-1525F can read textures or other 3D graphics related data into memory. The 3D samplers can read texture data separately based on the configured sample state and the texture format associated with a given texture. The media samplers 1506A-1506F can perform similar read operations based on the type and format associated with the media data. For example, each graphics sub-core 1521A-1521F can alternatively include an integrated 3D and media sampler. Threads executing on execution units within each of the sub-cores 1521A-1521F can utilize shared local memory 1528A-1528F within each sub-core to enable threads executing within a thread group to execute using a common pool of on-chip memory.
[0240] 15C is a block diagram of a graphics processor, e.g., a general purpose graphics processing unit (GPGPU) 1570 that can be configured as a graphics processor 1508 and / or a computation accelerator, according to embodiments described herein. The GPGPU 1570 can be interconnected with a host processor (e.g., one or more CPUs 1546) and memories 1571, 1572 via one or more system and / or memory buses. The memory 1571 can be a system memory that can be shared by one or more CPUs 1546, while the memory 1572 is a device memory dedicated to the GPGPU 1570. For example, components within the GPGPU 1570 and the device memory 1572 can be mapped to memory addresses accessible to one or more CPUs 1546. Access to the memories 1571 and 1572 can be facilitated via a memory controller 1568. Memory controller 1568 may include an internal direct memory access (DMA) controller 1569 or may include logic to perform operations that would otherwise be performed by a DMA controller.
[0241] The GPGPU 1570 includes a number of cache memories, including an L2 cache 1553, an L1 cache 1554, an instruction cache 1555, and a shared memory 1556, at least some of which may be partitioned as cache memories. The GPGPU 1570 also includes a number of compute units 1560A-1560N. Each compute unit 1560A-1560N includes a set of vector registers 1561, scalar registers 1562, a vector logic unit 1563, and a scalar logic unit 1564. The compute units 1560A-1560N may also include a local shared memory 1565 and a program counter 1566. The compute units 1560A-1560N may be coupled to a constant cache 1567, which may be used to store constant data, which is data that will not change during execution of a kernel or shader program executing on the GPGPU 1570. The constant cache 1567 may be a scalar data cache, where cached data can be fetched directly into the scalar registers 1562.
[0242] During operation, one or more CPUs 1546 can write commands to registers or memory in the GPGPU 1570 that are mapped to an accessible address space. The command processor 1557 can read commands from the registers or memory and determine how these commands are to be processed in the GPGPU 1570. The thread dispatcher 1558 can then be used to dispatch threads to the computation units 1560A-1560N to execute these commands. Each computation unit 1560A-1560N can execute threads independently of the other computation units. Additionally, each computation unit 1560A-1560N can be independently configured for conditional computation and can conditionally output the results of the computation to memory. The command processor 1557 can interrupt one or more CPUs 1546 when a submitted command is completed.
[0243] Figures 16A-16C show block diagrams of additional graphics processor and computation accelerator architectures provided by embodiments described herein, for example, in accordance with Figures 15A-15C. Elements in Figures 16A-16C having the same or similar names as elements in any other figures herein describe the same elements in the other figures, may operate or function similarly to them, may comprise the same components, and may be linked to other elements as described elsewhere herein, but are not limited to such.
[0244] FIG. 16A is a block diagram of a graphics processor 1600, which may be a discrete graphics processing unit, or a graphics processor integrated with multiple processing cores, or other semiconductor devices, such as, but not limited to, a memory device or a network interface. The graphics processor 1600 may be a variation of the graphics processor 1508 and may be used in place of the graphics processor 1508. Thus, the disclosure of any feature in combination with the graphics processor 1508 herein also discloses the corresponding combination with the graphics processor 1600, but is not limited to such. The graphics processor may communicate with registers on the graphics processor via a memory-mapped I / O interface and with commands placed in the processor memory. The graphics processor 1600 may include a memory interface 1614 to access memory. The memory interface 1614 may be an interface to local memory, one or more internal caches, one or more shared external caches, and / or system memory.
[0245] Optionally, the graphics processor 1600 also includes a display controller 1602 that drives a display that outputs data to a display device 1618. The display controller 1602 includes hardware for one or more overlay planes and multiple layers of video or user interface elements. The display device 1618 can be an internal or external display device. In one embodiment, the display device 1618 is a head-mounted display device, such as a virtual reality (VR) display device or an augmented reality (AR) display device. Graphics processor 1600 may include a video codec engine 1606 that encodes, decodes, or transcodes media to, from, or between one or more media encoding formats, including, but not limited to, Moving Picture Experts Group (MPEG) formats such as MPEG-2, Advanced Video Coding (AVC) formats such as H.264 / MPEG-4 AVC, H.265 / HEVC, Alliance for Open Media (AOMedia) VP8, VP9, and Society of Motion Picture and Television Engineers (SMPTE) 421M / VC-1, and Joint Photographic Experts Group (JPEG) formats such as JPEG and Motion JPEG (MJPEG) formats.
[0246] Graphics processor 1600 may include a block image transfer (BLIT) engine 1604 that performs two-dimensional (2D) rasterizer operations, including, for example, bit-boundary block transfers. However, 2D graphics operations may alternatively be performed using one or more components of a graphics processing engine (GPE) 1610. In some embodiments, GPE 1610 is a computation engine for performing graphics operations, including three-dimensional (3D) graphics operations and media operations.
[0247] The GPE 1610 may include a 3D pipeline 1612 for performing 3D operations, such as rendering three-dimensional images and scenes using processing functions that conform to 3D primitive shapes (e.g., rectangles, triangles, etc.). The 3D pipeline 1612 includes programmable and fixed function elements that perform various tasks within the elements and / or spawn execution threads into the 3D / media subsystem 1615. While the 3D pipeline 1612 can be used to perform media operations, embodiments of the GPE 1610 also include a media pipeline 1616 that is used to perform media operations, such as video post-processing and image enhancement, among others.
[0248] The media pipeline 1616 may include fixed function or programmable logic units that perform one or more specialized media operations, such as video decode acceleration, video de-interlacing, video encode acceleration, etc., in place of or on behalf of the video codec engine 1606. The media pipeline 1616 may also include a thread spawning unit that spawns threads for execution on the 3D / media subsystem 1615. The spawned threads perform calculations for the media operations on one or more graphics execution units included in the 3D / media subsystem 1615.
[0249] The 3D / Media subsystem 1615 may include logic for executing threads spawned by the 3D pipeline 1612 and the media pipeline 1616. The pipelines may send thread execution requests to the 3D / Media subsystem 1615, which includes thread dispatch logic for coordinating and dispatching the various requests to available thread execution resources. The execution resources include an array of graphics execution units that process the 3D and media threads. The 3D / Media subsystem 1615 may include one or more internal caches for thread instructions and data. Additionally, the 3D / Media subsystem 1615 may include shared memory, including registers and addressable memory, for sharing data between threads and storing output data.
[0250] FIG. 16B illustrates a graphics processor 1620, which is a variation of graphics processor 1600 and may be used in place of graphics processor 1600, or vice versa. Thus, disclosure of any feature in combination with graphics processor 1600 also discloses the corresponding combination with graphics processor 1620, but is not so limited. Graphics processor 1620 has a tiled architecture according to embodiments described herein. Graphics processor 1620 may include a graphics processing engine cluster 1622 having multiple instances of the graphics processing engine 1610 of FIG. 16A in graphics engine tiles 1610A-1610D. Each graphics engine tile 1610A-1610D may be interconnected via a set of tile interconnects 1623A-1623F. Each graphics engine tile 1610A-1610D may also be connected to a memory module or memory device 1626A-1626D via memory interconnects 1625A-1625D. The memory devices 1626A-1626D can use any graphics memory technology. For example, the memory devices 1626A-1626D can be graphics double data rate (GDDR) memory. The memory devices 1626A-1626D can be high bandwidth memory (HBM) modules that can be on-die with their respective graphics engine tiles 1610A-1610D. The memory devices 1626A-1626D can be stacked memory devices that can be stacked on top of their respective graphics engine tiles 1610A-1610D. Each graphics engine tile 1610A-1610D and associated memory 1626A-1626D can be on a separate chiplet, which is bonded to a base die or base substrate, as described in further detail in Figures 24B-24D.
[0251] The graphics processor 1620 may be configured with a non-uniform memory access (NUMA) system in which memory devices 1626A-1626D are coupled with associated graphics engine tiles 1610A-1610D. A given memory device may be accessed by graphics engine tiles other than the tile to which it is directly connected. However, the latency of accessing memory devices 1626A-1626D may be lowest when accessing the local tile. In one embodiment, when more than one cache stores the same memory location, a cache coherent NUMA (ccNUMA) system is possible using tile interconnects 1623A-1623F that allow communication between cache controllers in the graphics engine tiles 1610A-1610D to maintain a consistent memory image.
[0252] The graphics processing engine cluster 1622 can connect with an on-chip or on-package fabric interconnect 1624. The fabric interconnect 1624 can enable communication between the graphics engine tiles 1610A-1610D and components such as the video codec 1606 and one or more copy engines 1604. The copy engines 1604 can be used to move data out of, into, and between the memory devices 1626A-1626D and memory external to the graphics processor 1620 (e.g., system memory). The fabric interconnect 1624 can also be used to interconnect the graphics engine tiles 1610A-1610D. Optionally, the graphics processor 1620 may include a display controller 1602 that enables connection to an external display device 1618. The graphics processor may be configured as a graphics or computation accelerator. In an accelerator configuration, the display controller 1602 and the display device 1618 may be omitted.
[0253] Graphics processor 1620 may be connected to a host system via host interface 1628. Host interface 1628 may allow communication between graphics processor 1620 and system memory and / or other system components. Host interface 1628 may be, for example, a PCI express bus or another type of host system interface.
[0254] FIG. 16C illustrates a compute accelerator 1630 according to an embodiment described herein. The compute accelerator 1630 may include architectural similarities to the graphics processor 1620 of FIG. 16B and is optimized for compute acceleration. The compute engine cluster 1632 may include a set of compute engine tiles 1640A-1640D that include execution logic optimized for parallel or vector-based general-purpose compute operations. The compute engine tiles 1640A-1640D may not include fixed-function graphics processing logic, although in some embodiments, one or more of the compute engine tiles 1640A-1640D may include logic to perform media acceleration. The compute engine tiles 1640A-1640D may be connected to memory 1626A-1626D via memory interconnects 1625A-1625D. The memories 1626A-1626D and memory interconnects 1625A-1625D may be of similar technology as the graphics processor 1620 or may be different. The graphics compute engine tiles 1640A-1640D may also be interconnected via a set of tile interconnects 1623A-1623F and may be connected to and / or interconnected by the fabric interconnect 1624. In one embodiment, the compute accelerator 1630 includes a large L3 cache 1636 that may be configured as a device-wide cache. The compute accelerator 1630 may also be connected to the host processor and memory via a host interface 1628 in a manner similar to the graphics processor 1620 of FIG. 16B. [Graphics processing engine]
[0255] FIG. 17 is a block diagram of a graphics processing engine 1710 of a graphics processor according to some embodiments. The graphics processing engine (GPE) 1710 may be a version of the GPE 1610 shown in FIG. 16A and may represent the graphics engine tiles 1610A-1610D of FIG. 16B. Elements of FIG. 17 having the same or similar names as elements of any other figures herein may be described for the same elements in the other figures, may operate or function similarly as described elsewhere herein, may comprise the same components, and may be linked to other elements, but are not limited to such. For example, the 3D pipeline 1612 and media pipeline 1616 of FIG. 16A are also shown in FIG. 17. The media pipeline 1616 is optional in some embodiments of the GPE 1710 and may not be explicitly included within the GPE 1710. For example, in at least one embodiment, a separate media and / or image processor is coupled to the GPE 1710.
[0256] The GPE 1710 may be coupled to or may include a command streamer 1703, which provides a command stream to the 3D pipeline 1612 and / or the media pipeline 1616. Alternatively or additionally, the command streamer 1703 may be directly coupled to a unified return buffer 1718. The unified return buffer 1718 may be communicatively coupled to the graphics core array 1714. Optionally, the command streamer 1703 may be coupled to a memory, which may be a system memory or one or more of an internal cache memory and a shared cache memory. The command streamer 1703 may receive commands from the memory and send the commands to the 3D pipeline 1612 and / or the media pipeline 1616. The commands are instructions fetched from a ring buffer, which stores commands for the 3D pipeline 1612 and the media pipeline 1616. Additionally, the ring buffer may include a batch command buffer that stores a batch of multiple commands. Commands for the 3D pipeline 1612 may also include references to data stored in memory, such as, but not limited to, vertex and geometry data for the 3D pipeline 1612 and / or image data and memory objects for the media pipeline 316. The 3D pipeline 1612 and the media pipeline 1616 process the commands and data by executing operations via logic within the respective pipelines or by dispatching one or more execution threads to the graphics core array 1714. The graphics core array 1714 may include one or more blocks of graphics cores (e.g., graphics core 1715A, graphics core 1715B), each block including one or more graphics cores. Each graphics core includes a set of graphics execution resources including general-purpose and graphics-specific execution logic to perform graphics and computation operations, as well as fixed-function texture processing, and / or machine learning and artificial intelligence acceleration logic.
[0257] In various embodiments, the 3D pipeline 1612 may include fixed function and programmable logic to process one or more shader programs, such as vertex shaders, geometry shaders, pixel shaders, fragment shaders, compute shaders, or other shader programs, by processing instructions and dispatching execution threads to the graphics core array 1714. The graphics core array 1714 provides a unified block of execution resources for use in processing these shader programs. General purpose execution logic (e.g., execution units) within the graphics cores 1715A-1714B of the graphics core array 1714 includes support for a variety of 3D API shader languages and can execute multiple concurrent threads of execution associated with multiple shaders.
[0258] Graphics core array 1714 may include execution logic to perform media functions such as video and / or image processing. In addition to graphics processing operations, the execution units may include programmable general purpose logic to perform parallel general purpose computing operations. The general purpose logic can perform processing operations in parallel with or together with the general purpose logic in processor core 1407 of FIG. 14 or cores 1502A-1502N of FIG. 15A.
[0259] Output data generated by threads executing on the graphics core array 1714 can output data to memory in a unified return buffer (URB) 1718. The URB 1718 can store data for multiple threads. The URB 1718 may be used to transmit data between different threads executing on the graphics core array 1714. Additionally, the URB 1718 may be used for synchronization between the threads on the graphics core array 1714 and the fixed function logic in the shared function logic 1720.
[0260] Optionally, graphics core array 1714 may be scalable, including a varying number of graphics cores, each having a varying number of execution units, based on the target power and performance levels of GPE 1710. Execution resources may be dynamically scalable, such that execution resources are enabled or disabled as needed.
[0261] The graphics core array 1714 couples with shared function logic 1720 that includes multiple resources shared among the graphics cores of the graphics core array. The shared functions within the shared function logic 1720 are hardware logic units that provide dedicated supplemental functions to the graphics core array 1714. In various embodiments, the shared function logic 1720 includes, but is not limited to, sampler 1721, math 1722, and inter-thread communication (ITC) 1723 logic. Additionally, one or more caches 1725 may be implemented within the shared function logic 1720.
[0262] Shared functionality is implemented at least when the demand for a given dedicated functionality is insufficient to be included within the graphics core array 1714. Instead, a single instantiation of that dedicated functionality is implemented as a standalone entity in the shared functionality logic 1720 and shared among the execution resources within the graphics core array 1714. The exact set of functionality shared among and included within the graphics core array 1714 varies depending on the embodiment. Certain shared functionality within the shared functionality logic 1720 that is used extensively by the graphics core array 1714 may be included within the shared functionality logic 1716 within the graphics core array 1714. Optionally, the shared functionality logic 1716 within the graphics core array 1714 may include some or all of the logic within the shared functionality logic 1720. All logic elements within the shared functionality logic 1720 may be duplicated within the shared functionality logic 1716 of the graphics core array 1714. Alternatively, the shared functionality logic 1716 within the graphics core array 1714 is given priority and the shared functionality logic 1720 is excluded. [Execution unit]
[0263] 18A-18B illustrate thread execution logic 1800 including an array of processing elements used in a graphics processor core according to embodiments described herein. Elements in FIG. 18A-18B having the same or similar names as elements in any other figures herein describe the same elements in the other figures, may operate or function similarly as described elsewhere herein, may comprise the same components, and may be linked to other elements, but are not limited to such. FIG. 18A-18B provide an overview of thread execution logic 1800, which may represent the hardware logic illustrated in each of sub-cores 1521A-1521F of FIG. 15B. FIG. 18A illustrates an execution unit in a general-purpose graphics processor, while FIG. 18B illustrates an execution unit that may be used in a computational accelerator.
[0264] 18A , the thread execution logic 1800 may include a shader processor 1802, a thread dispatcher 1804, an instruction cache 1806, a scalable execution unit array including multiple execution units 1808A-1808N, a sampler 1810, a shared local memory 1811, a data cache 1812, and a data port 1814. Optionally, the scalable execution unit array may be dynamically scaled by enabling or disabling one or more execution units (e.g., any of execution units 1808A, 1808B, 1808C, 1808D, through 1808N-1 and 1808N) based on the computational requirements of a workload. The included components may be interconnected via an interconnect fabric linking each of the components. The thread execution logic 1800 may include one or more connections to memory, such as system memory or cache memory, through one or more of an instruction cache 1806, a data port 1814, a sampler 1810, and execution units 1808A-1808N. Each execution unit (e.g., 1808A) may be a standalone programmable general-purpose computational unit capable of executing multiple simultaneous hardware threads while processing multiple data elements in parallel for each thread. In various embodiments, the array of execution units 1808A-1808N is scalable to include any number of individual execution units.
[0265] The execution units 1808A-1808N may be primarily used to execute shader programs. The shader processor 1802 may process various shader programs and dispatch execution threads associated with the shader programs via a thread dispatcher 1804. The thread dispatcher may include logic to arbitrate thread start requests from the graphics and media pipelines and instantiate the requested threads on one or more of the execution units 1808A-1808N. For example, the geometry pipeline may dispatch vertex, tessellation, and geometry shaders to thread execution logic for processing. Optionally, the thread dispatcher 1804 may also handle run-time thread spawn requests from running shader programs.
[0266] The execution units 1808A-1808N may support an instruction set that includes native support for many standard 3D graphics shader instructions so that shader programs from graphics libraries (e.g., Direct3D and OpenGL) are executed with minimal translation. The execution units support vertex and geometry processing (e.g., vertex programs, geometry programs, vertex shaders), pixel processing (e.g., pixel shaders, fragment shaders), and general-purpose processing (e.g., compute and media shaders). Each of the execution units 1808A-1808N can execute multi-issue single instruction multiple data (SIMD), a multi-threaded operation that enables an efficient execution environment in the face of higher latency memory accesses. Each hardware thread within each execution unit has a dedicated high-bandwidth register file and associated independent thread state. Execution is multi-issue per clock into a pipeline capable of integer, single and double precision floating point operations, SIMD branch functions, logical operations, transcendental operations, and a variety of other operations. While waiting for data from memory or one of the shared functions, dependency logic in the execution units 1808A-1808N causes the waiting thread to sleep until the requested data is returned. While the waiting thread is sleeping, hardware resources may be dedicated to processing other threads. For example, during a delay associated with a vertex shader operation, the execution unit may execute operations for a pixel shader, fragment shader, or another type of shader program, including a different vertex shader, such as the vertex shader 2107 shown in FIG. 21. Various embodiments may be applicable to employ execution using single instruction multiple threads (SIMT) as an alternative to or in addition to using SIMD. References to SIMD cores or operations may also apply to SIMT, or to SIMD in combination with SIMT.
[0267] Each execution unit in execution units 1808A-1808N operates on an array of data elements. The number of data elements is the "execution size" for the instruction, or the number of channels. An execution channel is a logical unit of execution for data element access, masking, and flow control within an instruction. The number of channels may be independent of the number of physical arithmetic logic units (ALUs), floating point units (FPUs), or other logic units (e.g., tensor cores, ray tracing cores, etc.) for a particular graphics processor. Additionally, execution units 1808A-1808N may support integer and floating point data types.
[0268] The execution unit instruction set includes SIMD instructions. Various data elements may be stored in registers as packed data types, and the execution unit will process the various elements based on the data size of these elements. For example, when operating on a 256-bit wide vector, the 256 bits of the vector are stored in registers, and the execution unit will operate on the vector as four separate 184-bit packed data elements (quadword (QW) sized data elements), eight separate 32-bit packed data elements (doubleword (DW) sized data elements), sixteen separate 16-bit packed data elements (word (W) sized data elements), or thirty-two separate 8-bit data elements (byte (B) sized data elements). However, different vector widths and register sizes are possible.
[0269] Optionally, one or more execution units may be combined with a fused execution unit (EU) 1809A-1809N having thread control logic (1807A-1807N) common to the fused execution units. Multiple EUs may be fused into an EU group. Each EU in a fused EU group may be configured to execute a separate SIMD hardware thread. The number of EUs in a fused EU group may vary depending on the embodiment. Additionally, various SIMD widths may be executed per EU, including but not limited to SIMD8, SIMD16, SIMD32. Each fused graphics execution unit 1809A-1809N includes at least two execution units. For example, the fused execution unit 1809A includes a first EU 1808A, a second EU 1808B, and thread control logic 1807A common to the first EU 1808A and the second EU 1808B. Thread control logic 1807A controls the threads executing on the fused graphics execution unit 1809A and enables each EU in the fused execution units 1809A-1809N to execute using a common instruction pointer register.
[0270] One or more internal instruction caches (e.g., 1806) may be included in the thread execution logic 1800 to cache thread instructions for the execution units. One or more data caches (e.g., 1812) may be included in the thread execution logic 1800 to cache thread data during thread execution. Threads executing in the execution logic 1800 may also store explicitly managed data in a shared local memory 1811. A sampler 1810 may be included to provide texture sampling for 3D operations and media sampling for media operations. The sampler 1810 may include dedicated texture or media sampling functionality to process texture or media data during the sampling process before providing the sampled data to the execution units.
[0271] During execution, the graphics and media pipelines send thread start requests to the thread execution logic 1800 via thread spawning and dispatch logic. Once a group of geometric objects has been processed and rasterized into pixel data, pixel processor logic (e.g., pixel shader logic, fragment shader logic, etc.) in the shader processor 1802 is invoked to further compute output information, causing the results to be written to an output surface (e.g., color buffer, depth buffer, stencil buffer, etc.). The pixel shader or fragment shader may compute values of various vertex attributes to be interpolated across the rasterized object. The pixel processor logic in the shader processor 1802 may then execute pixel or fragment shader programs provided by an application programming interface (API). To execute shader programs, the shader processor 1802 dispatches threads to execution units (e.g., 1808A) via the thread dispatcher 1804. The shader processor 1802 may use texture sampling logic in the sampler 1810 to access texture data in texture maps stored in memory. Arithmetic operations on the texture data and the input geometry data are used to calculate pixel color data for each geometric fragment or to discard one or more pixels from further processing.
[0272] Additionally, data port 1814 provides a memory access mechanism for thread execution logic 1800 to output processed data to memory for further processing to the graphics processor output pipeline. Data port 1814 may include or be coupled to one or more cache memories (e.g., data cache 1812) that cache data for memory access via data port 1814.
[0273] Optionally, the execution logic 1800 can also include a ray tracer 1805 that can provide ray tracing acceleration functionality. The ray tracer 1805 can support a ray tracing instruction set that includes instructions / functions for ray generation. The ray tracing instruction set can be similar to or different from the ray tracing instruction set supported by the ray tracing core 372 in FIG. 3C.
[0274] FIG. 18B illustrates example internal details of an execution unit 1808. The graphics execution unit 1808 may include an instruction fetch unit 1837, a general purpose register file array (GRF) 1824, an architectural register file array (ARF) 1826, a thread arbiter 1822, a send unit 1830, a branch unit 1832, a set of SIMD floating point units (FPUs) 1834, and, optionally, a set of dedicated integer SIMD ALUs 1835. The GRF 1824 and ARF 1826 include a set of general purpose register files and architectural register files associated with each concurrent hardware thread that may be active in the graphics execution unit 1808. Data used during thread execution is stored in the GRF 1824, while per-thread architectural state may be maintained in the ARF 1826. The execution state of each thread, including each thread's instruction pointer, may be kept in thread-specific registers in the ARF 1826.
[0275] The graphics execution units 1808 may have a combined simultaneous multithreading (SMT) and fine-grained interleaved multithreading (IMT) architecture. The architecture may have a modular structure that can be tuned at design time based on the target number of simultaneous threads and the number of registers per execution unit, where the resources of the execution units are partitioned into logic used to execute multiple simultaneous threads. The number of logical threads that can be executed by the graphics execution units 1808 is not limited to the number of hardware threads, and multiple logical threads can be assigned to each hardware thread.
[0276] Optionally, the graphics execution units 1808 can jointly issue multiple instructions, each of which can be a different instruction. The thread arbiter 1822 of a graphics execution unit's thread 1808 can dispatch the instruction to one of the send unit 1830, the branch unit 1832, or the SIMD FPU 1834 for execution. Each execution thread can access 128 general purpose registers in the GRF 1824, each of which can store 32 bytes accessible as a SIMD 8-element vector of 32-bit data elements. Each execution unit's thread can have access to 4K bytes in the GRF 1824, although embodiments are not so limited and other embodiments may provide a greater or lesser number of register resources. The graphics execution units 1808 can be partitioned into seven hardware threads that can independently perform computational operations, although the number of threads per execution unit may vary according to the embodiment, and may support up to 16 hardware threads, for example. In an exemplary embodiment where seven threads may access 4K bytes, GRF 1824 may store a total of 28K bytes. In another exemplary embodiment, sixteen threads may access 4K bytes and GRF 1824 may store a total of 64K bytes. However, the number of threads per execution unit is not limited to these examples and may be more or less than the specified number. Flexible addressing modes may allow multiple registers to be addressed together, effectively building wider registers or representing strided rectangular block data structures.
[0277] Additionally or alternatively, memory operations, sampler operations, and other longer latency system communications may be dispatched via message passing “send” instructions performed by send unit 1830. Branch instructions may be dispatched to a dedicated branch unit 1832 to facilitate SIMD divergence and eventual convergence.
[0278] The graphics execution units 1808 may include one or more SIMD floating point units (FPUs) 1834 that perform floating point operations. The FPUs 1834 may support integer calculations. In some examples, the FPUs 1834 may SIMD execute up to M 32-bit floating point (or integer) operations, or SIMD execute up to 2M 16-bit integer or 16-bit floating point operations. Optionally, at least one of the FPUs provides enhanced math capabilities supporting high throughput, intelligent math functions, and double precision 184-bit floating point. There may also be a set of 8-bit integer SIMD ALUs 1835, which may be specifically optimized for executing operations associated with machine learning calculations.
[0279] Optionally, an array of multiple instances of the graphics execution unit 1808 can be instantiated into graphics subcore groups (e.g., sub-slices). For scalability, product designers can choose the exact number of execution units grouped per subcore. The execution units 1808 may execute instructions across multiple execution channels. Furthermore, each thread executing on the graphics execution unit 1808 may execute on a different channel.
[0280] FIG. 19 further illustrates an exemplary execution unit 1900. Elements of FIG. 19 having the same or similar names as elements of any other figures herein may be described with respect to the same elements in the other figures, may operate or function similarly as described elsewhere herein, may comprise the same components, and may be linked to other elements, but are not limited to such. The execution unit 1900 may be, for example, but not limited to, a computationally optimized execution unit for use in the compute engine tiles 1640A-1640D as in FIG. 16C. The execution unit 1900 may also be used in the graphics engine tiles 1610A-1610D as in FIG. 16B. The execution unit 1900 may include a thread control unit 1901, a thread state unit 1902, an instruction fetch / prefetch unit 1903, and an instruction decode unit 1904. Additionally, the execution unit 1900 may include a register file 1906 that stores registers that may be assigned to hardware threads within the execution unit. Additionally, the execution units 1900 may include a sending unit 1907 and a branching unit 1908. The sending unit 1907 and branching unit 1908 may operate similarly to the sending unit 1830 and branching unit 1832 of the graphics execution unit 1808 in FIG. 18B.
[0281] The execution unit 1900 may also include a computation unit 1910 that includes multiple different types of functional units. The computation unit 1910 may also include an ALU unit 1911 that includes an array of arithmetic logic units. The ALU unit 1911 may be configured to perform 64-bit, 32-bit, and 16-bit integer and floating point operations. The integer and floating point operations may be performed simultaneously. The computation unit 1910 may also include a systolic array 1912 and a math unit 1913. The systolic array 1912 includes a W-wide and D-deep network of data processing units that may be used to perform vector operations or other data parallel operations in a systolic manner. The systolic array 1912 may be configured to perform matrix operations, such as matrix dot product operations. The systolic array 1912 may support 16-bit floating point operations, as well as 8-bit and 4-bit integer operations. The systolic array 1912 may be configured to accelerate machine learning operations. Systolic array 1912 may be configured to support bfloat16, a 16-bit floating point format. A math unit 1913 may be included to perform a particular subset of mathematical operations in a more efficient and lower power manner than ALU unit 1911. Math unit 1913 may include math logic found in the shared functionality logic of the graphics processing engines in other embodiments described, for example, provided by math logic 1722 of shared functionality logic 1720 of FIG. 17. Math unit 1913 may be configured to perform 32-bit and 64-bit floating point operations.
[0282] The thread control unit 1901 includes logic to control the execution of threads in the execution units. The thread control unit 1901 may include thread arbitration logic to start, stop, and preempt the execution of threads in the execution units 1900. The thread state unit 1902 may be used to store thread states of threads assigned to execute on the execution units 1900. Storing the thread states in the execution units 1900 allows for rapid preemption of threads when they become blocked or idle. The instruction fetch / prefetch unit 1903 may fetch instructions from an instruction cache of a higher level execution logic (e.g., instruction cache 1806 of FIG. 18A). The instruction fetch / prefetch unit 1903 may also issue prefetch requests for instructions to be loaded into the instruction cache based on analysis of currently executing threads. The instruction decode unit 1904 may be used to decode instructions to be executed by the computation units. The instruction decode unit 1904 can be used as a secondary decoder to decode compound instructions into their constituent micro-operations.
[0283] Additionally, the execution unit 1900 includes a register file 1906 that can be used by hardware threads executing on the execution unit 1900. The registers in the register file 1906 can be divided across logic used to execute multiple simultaneous threads within the computational units 1910 of the execution unit 1900. The number of logical threads that can be executed by the graphics execution unit 1900 is not limited to the number of hardware threads, and multiple logical threads can be assigned to each hardware thread. The size of the register file 1906 can vary across embodiments based on the number of hardware threads supported. Register renaming may be used to dynamically assign registers to hardware threads.
[0284] 20 is a block diagram illustrating a graphics processor instruction format 2000. The graphics processor execution units support an instruction set having instructions in multiple formats. The solid boxes indicate components that are typically included in the execution unit instructions, while the dashed lines include optional components or components that are included in only a subset of the instructions. The instruction format 2000 described and illustrated is a macro-instruction, in that it is an instruction that is supplied to the execution unit, as opposed to a micro-operation that results from an instruction decode at the time the instruction is processed.
[0285] As described herein, the graphics processor execution units may natively support instructions in a 128-bit instruction format 2010. Based on the selected instruction, instruction options, and number of operands, a 64-bit compressed instruction format 2030 is available for some instructions. While the native 128-bit instruction format 2010 provides access to all instruction options, some options and operations are restricted to the 64-bit format 2030. The native instructions available in the 64-bit format 2030 vary depending on the embodiment. The instruction is partially compressed using a set of index values in the index field 2013. The execution unit hardware looks up a set of compression tables based on the index value and uses the output of the compression tables to reconstruct the native instruction in the 128-bit instruction format 2010. Instructions of other sizes and formats may be used.
[0286] For each format, the instruction opcode 2012 specifies the operation that the execution unit performs. The execution unit executes each instruction in parallel across multiple data elements of each operand. For example, in response to an add instruction, the execution unit performs a simultaneous add operation on each color channel representing a texture or picture element. By default, the execution unit performs each instruction on all data channels of an operand. The instruction control field 2014 may allow control over certain execution options such as channel selection (e.g., predication) and data channel order (e.g., swizzle). For instructions in the 128-bit instruction format 2010, the execution size field 2016 limits the number of data channels that are executed in parallel. The execution size field 2016 may not be available for use with the 64-bit compressed instruction format 2030.
[0287] Some execution unit instructions have up to three operands, including two source operands, src0 2020, src1 2022, and one destination 2018. An execution unit may support dual destination instructions, where one of the destinations is implied. Data manipulation instructions may have a third source operand (e.g., SRC2 2024), where the instruction opcode 2012 determines the number of source operands. The last source operand of an instruction may be a direct (e.g., hard-coded) value sent with the instruction.
[0288] The 128-bit instruction format 2010 may include, for example, an access / address mode field 2026 that specifies whether direct or indirect register addressing mode is used. When direct register addressing mode is used, the register addresses of one or more operands are provided directly by bits in the instruction.
[0289] The 128-bit instruction format 2010 may also include an access / address mode field 2026 that specifies an address mode and / or access mode for the instruction. The access mode may be used to define the data access alignment of the instruction. Access modes including 16-byte aligned and 1-byte aligned access modes may be supported, where the byte alignment of the access mode determines the access alignment of the instruction operands. For example, in a first mode, the instruction may use byte-aligned addressing for source and destination operands, and in a second mode, the instruction may use 16-byte aligned addressing for all source and destination operands.
[0290] The address mode portion of the access / address mode field 2026 may determine whether the instruction uses direct or indirect addressing. If the direct register addressing mode is used, bits in the instruction directly provide the register address of one or more operands. If the indirect register addressing mode is used, the register address of one or more operands may be calculated based on an address register value and an address immediate field in the instruction.
[0291] Instructions may be grouped based on opcode 2012 bit fields to simplify opcode decode 2040. For 8-bit opcodes, bits 4, 5, and 6 allow the execution unit to determine the type of opcode. The exact opcode groupings shown are merely an example. The move and logic opcode group 2042 may include data movement and logic instructions (e.g., move (mov), compare (cmp)). The move and logic group 2042 may share five least significant bits (LSBs), where move (mov) instructions are of the form 0000xxxxb and logic instructions are of the form 0001xxxxb. The flow control instruction group 2044 (e.g., call, jump (jmp)) includes instructions of the form 0010xxxxb (e.g., 0x20). The miscellaneous instruction group 2046 includes a mix of instructions, including synchronization instructions (e.g., wait, send) in the format of 0011xxxxb (e.g., 0x30). The parallel math instruction group 2048 includes component-wise arithmetic instructions (e.g., add, multiply (mul)) in the format of 0100xxxxb (e.g., 0x40). The parallel math group 2048 performs arithmetic operations in parallel on data channels. The vector math group 2050 includes arithmetic instructions (e.g., dp4) in the format of 0101xxxxb (e.g., 0x50). The vector math group performs arithmetic on vector operands, such as a dot product calculation. In one embodiment, the indicated opcode decode 2040 can be used to determine which portion of the execution unit is used to execute the decoded instruction. For example, some instructions may be designated as systolic instructions to be executed by a systolic array. Other instructions, such as ray tracing instructions (not shown), may be sent to a ray tracing core or ray tracing logic within a slice or partition of the execution logic. [Graphics Pipeline]
[0292] Figure 21 is a block diagram of a graphics processor 2100 according to another embodiment. Elements of Figure 21 having the same or similar names as elements of any other figure herein are described with respect to the same elements in the other figures, may operate or function in the same manner as the same elements in the other figures, may comprise the same components, may be linked to other elements as described elsewhere herein, but are not limited to such.
[0293] Graphics processor 2100 may include different types of graphics processing pipelines, such as a geometry pipeline 2120, a media pipeline 2130, a display engine 2140, thread execution logic 2150, and a render output pipeline 2170. Graphics processor 2100 may be a graphics processor in a multi-core processing system that includes one or more general-purpose processing cores. The graphics processor may be controlled by registers written to one or more control registers (not shown) or via commands issued to graphics processor 2100 via a ring interconnect 2102. Ring interconnect 2102 may couple graphics processor 2100 to other processing components, such as other graphics processors or general-purpose processors. Commands from ring interconnect 2102 are interpreted by a command streamer 2103, which provides instructions to individual components of geometry pipeline 2120 or media pipeline 2130.
[0294] The command streamer 2103 may direct the operations of the vertex fetcher 2105, which reads vertex data from memory, and executes the vertex processing commands provided by the command streamer 2103. The vertex fetcher 2105 may provide the vertex data to a vertex shader 2107, which performs coordinate space transformation and lighting operations on each vertex. The vertex fetcher 2105 and vertex shader 2107 may execute the vertex processing instructions by dispatching execution threads to the execution units 2152A-2152B via the thread dispatcher 2131.
[0295] The execution units 2152A-2152B may be an array of vector processors with an instruction set for performing graphics and media operations. The execution units 2152A-2152B may have an associated L1 cache 2151 that is unique to each array or shared between the arrays. The cache can be configured as a data cache, an instruction cache, or a single cache that is partitioned to contain data and instructions in different partitions.
[0296] The geometry pipeline 2120 may include a tessellation component that performs hardware accelerated tessellation of 3D objects. The programmable hull shader 2111 may configure the tessellation operations. The programmable domain shader 2117 may provide back-end evaluation of the tessellation output. The tessellator 2113 may operate at the direction of the hull shader 2111 and may include dedicated logic to generate a set of detailed geometric objects based on a coarse geometric model provided as input to the geometry pipeline 2120. Furthermore, if tessellation is not used, the tessellation components (e.g., the hull shader 2111, the tessellator 2113, and the domain shader 2117) may be bypassed.
[0297] A complete geometric object may be processed by the geometry shader 2119 via one or more threads dispatched to the execution units 2152A-2152B, or may proceed directly to the clipper 2129. The geometry shader may operate on entire geometric objects rather than vertices or patches of vertices as in previous stages of the graphics pipeline. When tessellation is disabled, the geometry shader 2119 receives input from the vertex shader 2107. The geometry shader 2119 may be programmable with a geometry shader program that performs geometry tessellation when the tessellation units are disabled.
[0298] Prior to rasterization, a clipper 2129 processes the vertex data. The clipper 2129 may be a fixed-function clipper or a programmable clipper with clipping and geometry shader functions. A rasterizer and depth test component 2173 in the render output pipeline 2170 may dispatch pixel shaders to convert geometric objects to per pixel representations. The pixel shader logic may be included in the thread execution logic 2150. Optionally, an application can bypass the rasterizer and depth test component 2173 and access un-rasterized vertex data via the stream-out unit 2123.
[0299] The graphics processor 2100 includes an interconnect bus, an interconnect fabric, or some other interconnect mechanism that allows data and message passing between the major components of the processor. In some embodiments, the execution units 2152A-2152B and associated logic units (e.g., L1 cache 2151, sampler 2154, texture cache 2158, etc.) interconnect via data port 2156 to communicate with the processor's render output pipeline components to perform memory accesses. The sampler 2154, caches 2151, 2158, and execution units 2152A-2152B may each have a separate memory access path. Optionally, the texture cache 2158 may also be configured as a sampler cache.
[0300] The render output pipeline 2170 may include a rasterizer and depth test component 2173 that converts vertex-based objects into an associated pixel-based representation. The rasterizer logic may include a windower / masker unit that performs fixed function triangle and line rasterization. An associated render cache 2178 and depth cache 2179 are also available in some embodiments. A pixel operations component 2177 performs pixel-based operations on the data, although in some examples pixel operations associated with 2D operations (e.g. bit block image transfer with blending) are performed by the 2D engine 2141 or are replaced at display time by the display controller 2143 using an overlay display plane. A shared L3 cache 2175 may be available to all graphics components, allowing data to be shared without using main system memory.
[0301] The graphics processor media pipeline 2130 may include a media engine 2137 and a video front end 2134. The video front end 2134 may receive pipeline commands from the command streamer 2103. The media pipeline 2130 may include a separate command streamer. The video front end 2134 may process media commands before sending them to the media engine 2137. The media engine 2137 may include a thread spawning function to spawn threads for dispatch to the thread execution logic 2150 via the thread dispatcher 2131.
[0302] The graphics processor 2100 may include a display engine 2140. The display engine 2140 may be external to the processor 2100 and may couple to the graphics processor via a ring interconnect 2102 or some other interconnect bus or fabric. The display engine 2140 may include a 2D engine 2141 and a display controller 2143. The display engine 2140 may include dedicated logic that can operate independently of the 3D pipeline. The display controller 2143 may couple to a display device (not shown), which may be a system-integrated display device such as found in a laptop computer, or an external display device attached via a display device connector.
[0303] The geometry pipeline 2120 and the media pipeline 2130 may be configurable to perform operations based on multiple graphics and media programming interfaces and are not specific to any one application programming interface (API). Driver software for the graphics processor may translate API calls that are specific to a particular graphics or media library into commands that can be processed by the graphics processor. Support may be provided for the Open Graphics Library (OpenGL), Open Computing Language (OpenCL), and / or Vulkan graphics and compute APIs, all from the Khronos Group. Support may also be provided for the Direct3D library from Microsoft Corporation. Combinations of these libraries may be supported. Support may also be provided for the open source computer vision library (OpenCV). Future APIs that are compatible with the 3D pipeline will also be supported if a mapping can be made from the future API's pipeline to the graphics processor's pipeline. [Graphics Pipeline Programming]
[0304] FIG. 22A is a block diagram illustrating a graphics processor command format 2200 that may be used to program a graphics processing pipeline, such as the pipelines described herein in conjunction with FIGs. 16A, 17, and 21. FIG. 22B is a block diagram illustrating a graphics processor command sequence 2210 according to an embodiment. The solid box in FIG. 22A illustrates components that are typically included in a graphics command, while the dashed box includes components that are optional or that are included in only a subset of the graphics commands. The example graphics processor command format 2200 of FIG. 22A includes data fields that identify a client 2202, a command operation code (opcode) 2204, and data 2206 for the command. A sub-opcode 2205 and a command size 2208 are also included in some commands.
[0305] The client 2202 may specify a client unit of the graphics device that will process the command data. The graphics processor command parser may inspect the client field of each command to condition further processing of the command and route the command data to the appropriate client unit. The graphics processor client units may include a memory interface unit, a render unit, a 2D unit, a 3D unit, and a media unit. Each client unit may have a corresponding processing pipeline that processes the command. When a command is received by a client unit, the client unit reads the opcode 2204 and, if present, the sub-opcode 2205 to determine the operation to perform. The client unit executes the command using the information in the data field 2206. For some commands, an explicit command size 2208 is expected to specify the size of the command. The command parser may automatically determine the size of at least some of the commands based on the command opcode. The commands may be aligned over multiple double words. Other command formats may also be used.
[0306] The flow diagram of Figure 22B illustrates an exemplary graphics processor command sequence 2210. Software or firmware of a data processing system featuring an exemplary graphics processor may use versions of the illustrated command sequences to set up, execute, and terminate a set of graphics operations. For illustrative purposes only, the sample command sequences are shown and described and are not limited to these particular commands or this command sequence. Furthermore, commands may be issued as a batch of commands in a command sequence, such that the graphics processor processes the sequence of commands at least partially concurrently.
[0307] The graphics processor command sequence 2210 may begin with a pipeline flush command 2212 to cause any active graphics pipelines to perform commands currently pending for the pipeline. Optionally, the 3D pipeline 2222 and the media pipeline 2224 may not operate simultaneously. A pipeline flush is performed to cause the active graphics pipelines to perform any pending commands. In response to a pipeline flush, the graphics processor's command parser will pause command processing until the active drawing engines have performed pending operations and the associated read caches are invalidated. Optionally, any data in the rendering cache that is marked as "dirty" may be flushed to memory. The pipeline flush command 2212 may be used for pipeline synchronization or before placing the graphics processor into a low power state.
[0308] A pipeline select command 2213 may be used when a command sequence requires the graphics processor to explicitly switch between pipelines. The pipeline select command 2213 may only be requested once within an execution context prior to issuing a pipeline command, unless the context issues commands to both pipelines. Immediately prior to a pipeline switch via the pipeline select command 2213, a pipeline flush command 2212 may be requested.
[0309] Pipeline control commands 2214 may configure the graphics pipeline for operations and may be used to program the 3D pipeline 2222 and the media pipeline 2224. Pipeline control commands 2214 may configure the pipeline state of an active pipeline. Pipeline control commands 2214 may be used for pipeline synchronization and to clear data from one or more cache memories in an active pipeline before processing a batch of commands.
[0310] Return buffer state commands 2216 may be used to configure a set of return buffers for each pipeline to write data to. Some pipeline operations require the allocation, selection, or configuration of one or more return buffers to which the operation writes intermediate data during processing. The graphics processor may also use one or more return buffers to store output data and perform cross-thread communication. Return buffer state 2216 may include selecting the size and number of return buffers to use for a set of pipeline operations.
[0311] The remaining commands in the command sequence differ based on the pipeline that is active for the operation. Based on the pipeline decision 2220, the command sequence is adjusted to either the 3D pipeline 2222, beginning with a 3D pipeline state 2230, or the media pipeline 2224, beginning with a media pipeline state 2240.
[0312] Commands that configure the 3D pipeline state 2230 include 3D state setting commands for vertex buffer states, vertex element states, certain color states, depth buffer states, and other state variables that should be configured before 3D primitive commands are processed. The values of these commands are determined at least in part based on the particular 3D API being used. The 3D pipeline state 2230 commands may also be able to selectively disable or bypass certain pipeline elements if those elements are not being used.
[0313] The 3D primitive 2232 commands may be used to submit 3D primitives to be processed by the 3D pipeline. Commands and associated parameters passed to the graphics processor via the 3D primitive 2232 commands are forwarded to a vertex fetch function of the graphics pipeline. The vertex fetch function uses the 3D primitive 2232 command data to generate vertex data structures. The vertex data structures are stored in one or more return buffers. The 3D primitive 2232 commands may be used to perform vertex operations on 3D primitives via vertex shaders. To process vertex shaders, the 3D pipeline 2222 dispatches shader execution threads to the graphics processor execution units.
[0314] The 3D pipeline 2222 may be triggered via an execute 2234 command or event. A register may be written to trigger command execution. Execution may be triggered via a "go" or "kick" command in a command sequence. Command execution may be triggered with a pipeline synchronization command that flushes the command sequence through the graphics pipeline. The 3D pipeline performs geometry operations on 3D primitives. Once the operations are complete, the resulting geometric objects are rasterized and the pixel engine colors the resulting pixels. Additional commands may be included for these operations to control pixel shading and pixel backend operations.
[0315] The graphics processor command sequence 2210 may follow the media pipeline 2224 path when performing media operations. In general, the particular use and manner of programming for the media pipeline 2224 depends on the media and computational operations being performed. Certain media decode operations may be offloaded to the media pipeline during media decoding. The media pipeline may also be bypassed, and media decoding may be performed in whole or in part using resources provided by one or more general purpose processing cores. The media pipeline may also include elements for general purpose graphics processor unit (GPGPU) operations, where the graphics processor is used to perform SIMD vector operations using computational shader programs that are not explicitly related to rendering graphics primitives.
[0316] The media pipeline 2224 may be configured in a similar manner to the 3D pipeline 2222. The set of commands that configure the media pipeline state 2240 are dispatched or placed in a command queue before the media object commands 2242. Commands for the media pipeline state 2240 may contain data that configures the media pipeline elements used to process the media objects. This includes data that configures the video decode and video encode logic in the media pipeline, such as encode or decode formats. Commands for the media pipeline state 2240 may also support the use of one or more pointers to "indirect" state elements that contain a batch of state settings.
[0317] A media object command 2242 may provide a pointer to a media object for processing by the media pipeline. A media object includes a memory buffer containing the video data to be processed. Optionally, all media pipeline state must be valid before issuing a media object command 2242. Once the pipeline state is configured and a media object command 2242 is queued, the media pipeline 2224 is triggered via an execute command 2244 or equivalent execute event (e.g., a register write). The output from the media pipeline 2224 may then be post-processed for operations provided by the 3D pipeline 2222 or the media pipeline 2224. GPGPU operations may be configured and executed in a similar manner to media operations. [Graphics Software Architecture]
[0318] FIG. 23 illustrates an exemplary graphics software architecture for a data processing system 2300. Such software architecture may include a 3D graphics application 2310, an operating system 2320, and at least one processor 2330. The processor 2330 may include a graphics processor 2332 and one or more general-purpose processor cores 2334. The processor 2330 may be a variation of the processor 1402 or any other processor described herein. The processor 2330 may be substituted for the processor 1402 or any other processor described herein. Thus, the disclosure of any feature in combination with the processor 1402 or any other processor described herein also discloses the corresponding combination with the graphics processor 2330, although it is not limited to such. Furthermore, elements of FIG. 23 having the same or similar names as elements of any other figures herein may be described with the same elements in the other figures, may operate or function similarly to them, may comprise the same components, may be linked to other elements, as described elsewhere herein, but is not limited to such. The graphics application 2310 and the operating system 2320 each execute in the system memory 2350 of the data processing system.
[0319] The 3D graphics application 2310 may include one or more shader programs that include shader instructions 2312. The shader language instructions may be in a high-level shader language, such as Direct3D High Level Shader Language (HLSL) and OpenGL Shader Language (GLSL). The application may also include executable instructions 2314 in a machine language suitable for execution by a general-purpose processor core 2334. The application may include graphics objects 2316 defined by vertex data.
[0320] In some embodiments, the operating system 2320 may be a Microsoft Windows operating system from Microsoft Corporation, a proprietary UNIX-style operating system, or an open source UNIX-style operating system using a variation of the Linux kernel. The operating system 2320 may support a graphics API 2322, such as the Direct3D API, the OpenGL API, or the Vulkan API. If the Direct3D API is used, the operating system 2320 compiles any shader instructions 2312 in HLSL into a low-level shader language using a front-end shader compiler 2324. The compilation may be a just-in-time (JIT) compilation, or the application may perform shader pre-compilation. High-level shaders may be compiled into low-level shaders during compilation of the 3D graphics application 2310. The shader instructions 2312 may be provided in an intermediate form, such as a version of the Standard Portable Intermediate Representation (SPIR) used by the Vulkan API.
[0321] The user mode graphics driver 2326 may include a back-end shader compiler 2327 that converts the shader instructions 2312 into a hardware-specific representation. If the OpenGL API is used, the shader instructions 2312 in the GLSL high-level language are passed to the user mode graphics driver 2326 for compilation. The user mode graphics driver 2326 may use operating system kernel mode functions 2328 to communicate with a kernel mode graphics driver 2329. The kernel mode graphics driver 2329 may communicate with the graphics processor 2332 to dispatch commands and instructions. [IP core implementation]
[0322] One or more aspects may be implemented by representative code stored on a machine-readable medium that represents and / or defines logic in an integrated circuit, such as a processor. For example, the machine-readable medium may include instructions that represent various logic in a processor. When read by a machine, the instructions may cause the machine to create logic that performs the techniques described herein. Such representations, known as "IP cores," are reusable units of logic for an integrated circuit that may be stored on a tangible machine-readable medium as a hardware model that describes the structure of the integrated circuit. The hardware model may be provided to various customers or manufacturing facilities that load the hardware model into manufacturing machines that produce the integrated circuit. The integrated circuit may be manufactured such that the circuit performs the operations described in connection with any of the embodiments described herein.
[0323] FIG. 24A is a block diagram illustrating an IP core development system 2400 that may be used to fabricate an integrated circuit that performs operations according to an embodiment. The IP core development system 2400 may be used to generate modular, reusable designs that may be incorporated into a larger design, or may be used to build an entire integrated circuit (e.g., an SoC integrated circuit). A design facility 2430 may generate a software simulation 2410 of the IP core design in a high-level programming language (e.g., C / C++). The software simulation 2410 may be used to design, test, and verify the behavior of the IP core using a simulation model 2412. The simulation model 2412 may include functional, behavioral, and / or timing simulation. A register transfer level (RTL) design 2415 may then be created or synthesized from the simulation model 2412. The RTL design 2415 extracts the behavior of the integrated circuit that models the flow of digital signals between hardware registers and includes associated logic that is executed using the modeled digital signals. In addition to the RTL design 2415, low-level designs at the logic level or transistor level may be generated, designed, or synthesized. Thus, the specific details of the initial design and simulations may vary.
[0324] The RTL design 2415 or equivalent may be further synthesized by a design facility into a hardware model 2420, which may be a hardware description language (HDL) or some other representation of the physical design data. The HDL may be further simulated or tested to verify the IP core design. The IP core design may be stored using a non-volatile memory 2440 (e.g., a hard disk, a flash memory, or any non-volatile storage medium) for delivery to a third-party manufacturing facility 2465. Alternatively, the IP core design may be transmitted (e.g., via the Internet) through a wired connection 2450 or a wireless connection 2460. The manufacturing facility 2465 may then manufacture an integrated circuit that is based at least in part on the IP core design. The manufactured integrated circuit may be configured to perform operations according to at least one embodiment described herein.
[0325] 24B illustrates a vertical cross-sectional view of an integrated circuit package assembly 2470. The integrated circuit package assembly 2470 illustrates an implementation of one or more processors or accelerator devices as described herein. The package assembly 2470 includes multiple units of hardware logic 2472, 2474 coupled to a substrate 2480. The logic 2472, 2474 may be at least partially implemented in configurable logic or fixed function logic hardware and may include one or more portions of any of the processor cores, graphics processors or other accelerator devices described herein. Each unit of logic 2472, 2474 may be implemented in a semiconductor die and coupled to the substrate 2480 via an interconnect structure 2473. The interconnect structure 2473 may be configured to route electrical signals between the logic 2472, 2474 and the substrate 2480 and may include interconnects such as, but not limited to, bumps or pillars. The interconnect structure 2473 may be configured to route electrical signals, such as, for example, input / output (I / O) signals and / or power or ground signals associated with the operation of the logic 2472, 2474. Optionally, the substrate 2480 may be an epoxy-based laminate substrate. The substrate 2480 may also include other suitable types of substrates. The package assembly 2470 can be connected to other electrical devices via the package interconnect 2483. The package interconnect 2483 may be coupled to a surface of the substrate 2480 that routes electrical signals to other electrical devices, such as a motherboard, other chipsets, or multi-chip modules.
[0326] The units of logic 2472, 2474 may be electrically coupled with a bridge 2482 configured to route electrical signals between the logic 2472, 2474. The bridge 2482 may be a high density interconnect structure that provides paths for the electrical signals. The bridge 2482 may include a bridge substrate comprised of glass or a suitable semiconductor material. Electrical routing features may be formed on the bridge substrate that provides chip-to-chip connections between the logic 2472, 2474.
[0327] Although two units of logic 2472, 2474 and bridge 2482 are shown, embodiments described herein may include more or fewer logic units on one or more dies. If logic is included on a single die, bridge 2482 may be omitted, and thus one or more dies may be connected by zero or more bridges. Alternatively, multiple dies or units of logic can be connected by one or more bridges. Additionally, multiple logic units, dies, and bridges can be connected together in other possible configurations, including three-dimensional configurations.
[0328] FIG. 24C illustrates a package assembly 2490 including multiple units of hardware logic chiplets connected to a substrate 2480 (e.g., a base die). As described herein, a graphics processing unit, a parallel processor, and / or a computational accelerator may be composed of multiple silicon chiplets that are manufactured separately. In this context, a chiplet is an at least partially packaged integrated circuit that includes separate units of logic that can be assembled with other chiplets into a larger package. A multiple set of chiplets with different IP core logic can be assembled into a single device. Furthermore, chiplets can be integrated into a base die or base chiplet using active interposer technology. The concepts described herein enable interconnect and communication between different types of IP within a GPU. IP cores can be manufactured using different process technologies and configured at manufacturing time, avoiding the complexities of concentrating multiple IPs in the same manufacturing process, especially in a large SoC with several types of IPs. Enabling the use of multiple process technologies improves time to market and provides a cost-effective way to create multiple product SKUs. Additionally, separate IP lends itself to independent power gating, allowing components not used for a given workload to be powered off, reducing overall power consumption.
[0329] The hardware logic chiplets can include dedicated hardware logic chiplets 2472, logic or I / O chiplets 2474, and / or memory chiplets 2475. The hardware logic chiplets 2472 and logic or I / O chiplets 2474 may be at least partially implemented in configurable logic or fixed function logic hardware and can include one or more portions of any of the processor cores, graphics processors, parallel processors, or other accelerator devices described herein. The memory chiplets 2475 can be DRAM (e.g., GDDR, HBM) memory or cache (SRAM) memory.
[0330] Each chiplet can be fabricated as a separate semiconductor die and coupled to the substrate 2480 via interconnect structures 2473. The interconnect structures 2473 can be configured to route electrical signals between the various chiplets and logic in the substrate 2480. The interconnect structures 2473 can include interconnects such as, but not limited to, bumps or pillars. In some embodiments, the interconnect structures 2473 can be configured to route electrical signals, such as, for example, input / output (I / O) signals associated with the operation of the logic, I / O, and memory chiplets, and / or power or ground signals.
[0331] Substrate 2480 may be an epoxy-based laminate substrate, however, substrate 2480 is not limited thereto and may include other suitable types of substrates. Package assembly 2490 can be connected to other electrical devices via package interconnect 2483. Package interconnect 2483 may be coupled to a surface of substrate 2480 to route electrical signals to other electrical devices, such as a motherboard, other chipset, or multi-chip module.
[0332] The logic or I / O chiplets 2474 and the memory chiplets 2475 may be electrically coupled through a bridge 2487 configured to route electrical signals between the logic or I / O chiplets 2474 and the memory chiplets 2475. The bridge 2487 may be a high density interconnect structure that provides a path for electrical signals. The bridge 2487 may include a bridge substrate made of glass or a suitable semiconductor material. Electrical routing features may be formed on the bridge substrate to provide chip-to-chip connections between the logic or I / O chiplets 2474 and the memory chiplets 2475. The bridge 2487 may be referred to as a silicon bridge or an interconnect bridge. For example, the bridge 2487 is an embedded multi-die interconnect bridge (EMIB). Alternatively, the bridge 2487 may simply be a direct connection from one chiplet to another.
[0333] Substrate 2480 can include hardware components for I / O 2491, cache memory 2492, and other hardware logic 2493. Fabric 2485 can be embedded in substrate 2480 to enable communication between various logic chiplets in substrate 2480 and logic 2491, 2493. Optionally, I / O 2491, fabric 2485, cache, bridges, and other hardware logic 2493 can be integrated into a base die that overlies substrate 2480.
[0334] Additionally, package assembly 2490 may include a few or many components and chiplets interconnected by fabric 2485 or one or more bridges 2487. Chiplets in package assembly 2490 may be arranged in a 3D or 2.5D configuration. In general, bridge structures 2487 may be used to facilitate point-to-point interconnects between, for example, logic or I / O chiplets and memory chiplets. Fabric 2485 may be used to interconnect various logic and / or I / O chiplets (e.g., chiplets 2472, 2474, 2491, 2493) with other logic and / or I / O chiplets. Cache memory 2492 within the substrate may serve as a global cache for package assembly 2490, as part of a distributed global cache, or as a dedicated cache for fabric 2485.
[0335] FIG. 24D illustrates a package assembly 2494 including a replaceable chiplet 2495 according to an embodiment. The replaceable chiplet 2495 can be assembled into a standardized slot on one or more base chiplets 2496, 2498. The base chiplets 2496, 2498 can be coupled via a bridge interconnect 2497, which can be similar to other bridge interconnects described herein, for example, an EMIB. Memory chiplets can also be connected to logic or I / O chiplets via the bridge interconnect. The I / O and logic chiplets can communicate via an interconnect fabric. Each base chiplet can support one or more slots in a standardized format for one of logic or I / O, or memory / cache.
[0336] The SRAM and power delivery circuitry may be fabricated within one or more of the base chiplets 2496, 2498 and may be fabricated using a different process technology than the replaceable chiplet 2495 that is stacked on top of the base chiplets. For example, the base chiplets 2496, 2498 may be fabricated using a large scale process technology while the replaceable chiplets may be fabricated using a small scale process technology. One or more of the replaceable chiplets 2495 may be memory (e.g., DRAM) chiplets. Different memory densities may be selected for the package assembly 2494 based on the power and / or performance targeted for the product using the package assembly 2494. Furthermore, logic chiplets having different numbers and types of functional units may be selected at assembly based on the power and / or performance targeted for the product. Furthermore, chiplets containing different types of IP logic cores may be inserted into the replaceable chiplet slots, enabling hybrid processor designs that can mix and match different technology IP blocks. [Exemplary System-on-Chip Integrated Circuit]
[0337] 25-26B illustrate an exemplary integrated circuit and associated graphics processor that may be fabricated using one or more IP cores. In addition to what is shown, other logic and circuitry may be included, including additional graphics processors / cores, peripheral interface controllers, or general-purpose processor cores. Elements in FIGS. 25-26B that have the same or similar names as elements in any other figure herein may be described as the same elements in the other figures, may operate or function similarly, may comprise the same components, and may be linked to other elements as described elsewhere herein, but are not limited to such.
[0338] FIG. 25 is a block diagram illustrating an exemplary system-on-chip integrated circuit 2500 that may be manufactured using one or more IP cores. The exemplary integrated circuit 2500 includes at least one graphics processor 2510, which may be one or more application processors 2505 (e.g., CPUs), variations of graphics processors 1408, 1508, 2510, or any graphics processor described herein, and may be used in place of any graphics processor described. Thus, disclosure of any feature in combination with a graphics processor herein also discloses the corresponding combination with the graphics processor 2510, although not limited to such. The integrated circuit 2500 may further include an image processor 2515 and / or a video processor 2520, any of which may be modular IP cores from the same or multiple different design facilities. The integrated circuit 2500 includes a USB controller 2525, a UART controller 2530, an SPI / SDIO controller 2535, an I / O controller 2536, an I / O controller 2538, an I / O controller 2539, an I / O controller 2540, an I / O controller 2541, an I / O controller 2542, an I / O controller 2543, an I / O controller 2544, an I / O controller 2545, an I / O controller 2546, an I / O controller 2547, an I / O controller 2548, an I / O controller 2549, an I / O controller 2550, an I / O controller 2551, an I / O controller 2552, an I / O controller 2553, an I / O controller 2554, an I / O controller 2555, an I / O controller 2556, an I / O controller 2557, an I / O controller 2558, an I / O controller 2559, an I / O controller 2560, 2 S / I 2 The integrated circuit may include peripheral or bus logic including a digital video interface (DVI) controller 2540. Additionally, the integrated circuit may include a display device 2545 coupled to one or more of a High-Definition Multimedia Interface (HDMI) controller 2550 and a Mobile Industry Processor Interface (MIPI) display interface 2555. Storage may be provided by a flash memory subsystem 2560 including a flash memory and a flash memory controller. A memory interface may be provided via a memory controller 2565 for access to an SDRAM or SRAM memory device. Some integrated circuits further include an embedded security engine 2570.
[0339] 26A-26B are block diagrams illustrating an example graphics processor for use in a SoC according to embodiments described herein. The graphics processor may be a variation of graphics processor 1408, 1508, 2510, or any other graphics processor described herein. The graphics processor may be substituted for graphics processor 1408, 1508, 2510, or any other of the graphics processors described herein. Thus, disclosure of any feature in combination with graphics processor 1408, 1508, 2510, or any other graphics processor described herein also discloses the corresponding combination with the graphics processor of FIG. 26A-26B, although not so limited. FIG. 26A illustrates an example graphics processor 2610 of a system on a chip integrated circuit that may be manufactured using one or more IP cores according to embodiments. FIG. 26B illustrates an additional example graphics processor 2640 of a system on a chip integrated circuit that may be manufactured using one or more IP cores according to embodiments. The graphics processor 2610 of FIG. 26A is an example of a low power graphics processor core. Graphics processor 2640 of Figure 26B is an example of a more powerful graphics processor core. For example, each of graphics processors 2610, 2640 may be a variation of graphics processor 2510 of Figure 25, as mentioned at the beginning of this paragraph.
[0340] As shown in FIG. 26A, the graphics processor 2610 includes a vertex processor 2605 and one or more fragment processors 2615A-2615N (e.g., 2615A, 2615B, 2615C, 2615D through 2615N-1 and 2615N). The graphics processor 2610 can execute different shader programs through separate logic, such that the vertex processor 2605 is optimized to perform operations for vertex shader programs, while one or more fragment processors 2615A-2615N perform fragment (e.g., pixel) shading operations for fragment or pixel shader programs. The vertex processor 2605 executes the vertex processing stage of the 3D graphics pipeline and generates primitive and vertex data. The fragment processors 2615A-2615N use the primitive and vertex data generated by the vertex processor 2605 to generate a frame buffer that is displayed on a display device. The fragment processors 2615A-2615N may be optimized to execute fragment shader programs such as those provided in the OpenGL API, and may be used to perform operations similar to pixel shader programs such as those provided in the Direct3D API.
[0341] The graphics processor 2610 further includes one or more memory management units (MMUs) 2620A-2620B, caches 2625A-2625B, and circuit interconnects 2630A-2630B. The one or more MMUs 2620A-2620B provide virtual-to-physical address mapping for the graphics processor 2610, including for the vertex processor 2605 and / or fragment processors 2615A-2615N, and may reference vertices or image / texture data stored in memory in addition to vertices or image / texture data stored in one or more caches 2625A-2625B. The one or more MMUs 2620A-2620B may be synchronized with other MMUs in the system, including one or more MMUs associated with one or more application processors 2505, image processor 2515, and / or video processor 2520 of FIG. 25, such that each processor 2505-2520 may participate in a shared or unified virtual memory system. Components of the graphics processor 2610 may correspond to components of other graphics processors described herein. The one or more MMUs 2620A-2620B may correspond to MMU 245 of FIG. 2C. The vertex processor 2605 and fragment processors 2615A-2615N may correspond to the graphics multiprocessor 234. One or more circuit interconnects 2630A-B allow the graphics processor 2610 to interface with other IP cores in the SOC, either via an internal bus of the SOC according to an embodiment, or via direct connections. The one or more circuit interconnects 2630A-B may correspond to the data crossbar 240 of FIG. 2C. Further correspondences may be found between similar components of the graphics processor 2610 and the various graphics processor architectures described herein.
[0342] As shown in FIG. 26B, the graphics processor 2640 includes one or more MMUs 2620A-2620B, caches 2625A-2625B, and circuit interconnects 2630A-2630B of the graphics processor 2610 of FIG. 26A. The graphics processor 2640 includes one or more shader cores 2655A-2655N (e.g., 2655A, 2655B, 2655C, 2655D, 2655E, 2655F through 2655N-1 and 2655N) to provide a unified shader core architecture in which a single core or type or cores can execute any type of programmable shader code, including shader program code implementing vertex shaders, fragment shaders, and / or compute shaders. The exact number of shader cores present can vary among embodiments and implementations. Further, the graphics processor 2640 includes an inter-core task manager 2645, which acts as a thread dispatcher to dispatch execution threads to one or more shader cores 2655A-2655N and tiling units 2658 to accelerate tiled operations for tile-based rendering, where rendering operations for a scene are subdivided in image space, for example, to exploit local spatial coherence in the scene or to optimize internal cache usage. The shader cores 2655A-2655N may correspond to, for example, the graphics multiprocessor 234 of FIG. 2D, or each of the graphics multiprocessors 325, 350 of FIG. 3A and FIG. 3B, or the multi-core group 365A of FIG. 3C. [Distributed cache model, software control]
[0343] In some examples, the distributed cache model may be implemented in a graphics architecture using cache chiplets that may be added to a base die in a multi-die architecture. With reference to FIG. 27, in some examples, a graphics processing system may include a base die 2710 and one or more chiplets 2720A, 2720B, 2720C, which may be collectively referred to herein by reference numeral 2720. In the example shown in FIG. 27, one or more of the chiplets 2720 may be cache chiplets 2720C that implement an L3 cache. One or more of the chiplets 2720 may be fused off if the functionality of the chiplet is not required for the processing capabilities of the base die 2710. In another example, the chiplets may be manufactured with a different process geometry than the base die and / or may include storage elements different from SRAM, such as DRAM, ReRAM, 3D crosspoint, FeRAM, etc.
[0344] 28, in some examples, a base die 2710 may include cache control logic 2810 that manages cache operations for a cache on the base die 2710 and manages one or more cache chiplets 2720 via a chiplet interface 2830. In some examples, the cache management scheme for the cache chiplets 2720 (i.e., cache tags 2820, state protocols, etc.) is identical to the cache management scheme for the cache on the base die 2710, such that cache memory can be added to the base die 2710 by coupling one or more cache chiplets 2720 onto the base die 2710.
[0345] Because the cache control logic 2810 resides on the base die 2710, the cache data pipeline for the cache chiplet 2720 does not have direct access to the data ports of the chiplet 2720. Furthermore, in some examples, the chiplet interface 2830 may be an asynchronous interface, so that the return of data from a read operation to the cache chiplet 2720 is not predictable. This may be managed by using a credit-based mechanism and accumulating commands and data returns using first-in-first-out (FIFO) storage.
[0346] In some examples, data pipeline operations may be split into two-stage operations. In the first stage, cache access (i.e., read / write) operations are sent to the chiplet interface. Hits and fills from the TAG block 2820 enter the in-order FIFO queue 2822 and commands are scheduled. In some examples, credit checks may be performed on the data buffer (i.e., the transport layer data return interface) to avoid any overflow. Storage may be provided for CMD data (i.e., types Rdinv, Atomics, Direct data return), read / write data, and SRC data to facilitate atomic operations. In some examples, fills may be aligned and issued from the same stage of the pipeline operation to avoid collisions.
[0347] In some examples, separate interfaces may be provided for command data and for read / write data to save power and unnecessary data storage. For every read operation, only the command interface needs to be updated and sent to the data array. For every write operation, both the command and data interfaces need to be updated. Since the interfaces are asynchronous, in some examples, the transport link layer ensures that any commands proceed in order and only sends data for write commands. After crossing the clocking domain, data can be read from the storage only if a write command is available.
[0348] In the second stage, the atomic operation requires the old destination and SRC data stored in memory. To reduce complexity and to have the same design for both banks, the old destination data is received from the first stage read pipeline operation along with the SRC data from memory into the in-order data return structure and stored in a separate FIFO. Once all data is ready to be transferred into the pipeline, the atomic operation is then scheduled from the in-order pipeline. After the atomic operation is completed, the new atomic data is written to memory. [Accelerating IMDB Query Evaluation with Atomic ALUs]
[0349] In some examples, the shader core and atomic arithmetic logic unit (ALU) may be used to accelerate in-memory database (IMDB) query evaluation. FIG. 29 is a schematic diagram of a processing environment in which an atomic ALU is implemented to accelerate in-memory database (IMDB) queries, according to an embodiment. Referring to FIG. 29, in some examples, the processing environment includes a shader core 2910 communicatively coupled to a memory side cache 2915 that is communicatively coupled to an arithmetic logic unit (ALU) 2920. In some examples, the shader core 2910 may be implemented as described above with reference to the shader cores 2655A-2655N. The cache 2915 may also be communicatively coupled to a high bandwidth memory 2925. In some examples, at least a portion of the memory side cache 2915 may include all or a portion of the in-memory database.
[0350] The in-memory database may have data compressed to a bit length that does not correspond to an even byte length. Referring to FIG. 30, in step 3010, shader core 2910 may be used to decompress data in the in-memory database from its compressed bit length to a bit length that corresponds to the next natural bit size, i.e., the next even byte length size. For example, a data element compressed to fit into a 5-bit field may be decompressed into an 8-bit field, a data element compressed to fit into a 13-bit field may be decompressed into a 16-bit field, a data element compressed to fit into a 17-bit field may be decompressed into a 32-bit field, etc.
[0351] In step 3015, a vector comparison is performed by ALU 2920. For example, ALU 2915 may compare the decompressed value produced in step 3010 to one or more target values provided in a query of a database to extract one or more database entries. In step 3020, the results of the comparison performed in step 3015 are written as a bit vector. [L3 Cache-Aware Kernel Dispatch (1A-15) (PROV1-4 JWC)]
[0352] In some examples, kernels may be dispatched for execution in a manner designed to optimize or at least ameliorate cross-kernel workgroup dependencies. FIGS. 31A-31B are schematic block diagrams of a processing environment adapted to implement L3 cache-aware dispatching, and FIG. 32 is a flow chart illustrating steps in a method of implementing cache L3 cache-aware kernel dispatching, according to an embodiment. Referring to FIG. 31A, in some examples, a first kernel (K1) 3100 may have 256 workgroups (i.e., WG0 3112, WG1 3114, . . . WG255 3116) and a second kernel (K2) may also have 256 workgroups (i.e., WG0 3122, WG1 3124, . . . WG255 3126). As shown in FIG. 31A, dependencies between workgroups can cause delays because one or more of the workgroups in the first kernel (K1) 3110 may need to be completed before a corresponding workgroup in the second kernel (K2) 3120 can be started.
[0353] With reference to Figures 31B and 32, in some examples this may be addressed by tracking dependencies using a hardware scorecard. As shown in Figure 32, in step 3210, small batches may be used to match kernels in the L3 cache. A short kernel may be used to prefetch (step 3215) the next kernel. In step 3220, a partial fill may be performed where there may be cross-kernel workgroup dependencies, so the next kernel cannot start until the current kernel is filled. This can be emulated in software by using atomic operations.
[0354] Illustrative examples of the technology disclosed herein are provided below. Embodiments of the technology may include any one or more of the examples described below, and any combination of the examples.
[0355] Example 1 includes an apparatus comprising: a cache memory; a high bandwidth memory; a shader core communicatively coupled to the cache memory, the shader core having a processing element retrieved from an in-memory database in the cache memory and configured to decompress a first data element having a first bit length to generate a second data element having a second bit length greater than the first bit length; and an arithmetic logic unit (ALU) configured to compare the data element to a target value provided in a query of the in-memory database.
[0356] Example 2 includes the subject matter of example 1, where the shader core decompresses the first data element from a bit length of less than 8 bits to a bit length of 8 bits.
[0357] Example 3 includes the subject matter of any of Examples 1-2, wherein the shader core decompresses the first data element from a bit length between 9 bits and 15 bits to a bit length of 16 bits.
[0358] Example 4 includes the subject matter of any of examples 1-3, wherein the shader core decompresses the first data element from a bit length between 17 bits and 31 bits to a bit length of 32 bits.
[0359] Example 5 includes the subject matter of any of examples 1-4, wherein the shader core decompresses the first data element from a bit length between 33 bits and 63 bits to a bit length of 64 bits.
[0360] Example 6 includes the subject matter of any of Examples 1-5, wherein the arithmetic logic unit (ALU) performs a vector comparison operation with a second bit length.
[0361] Example 7 includes the subject matter of any of examples 1-6, wherein the arithmetic logic unit (ALU) writes the result of the vector comparison operation as a bit vector.
[0362] Example 8 includes a method, comprising: in a processing element of a shader core communicatively coupled to a cache memory, decompressing a first data element retrieved from an in-memory database in the cache memory and having a first bit length to generate a second data element having a second bit length greater than the first bit length; and forwarding the second data element to an arithmetic logic unit (ALU) for comparison to a target value provided in a query of the in-memory database.
[0363] Example 9 includes the subject matter of example 8, wherein the shader core decompresses the first data element from a bit length of less than 8 bits to a bit length of 8 bits.
[0364] Example 10 includes the subject matter of any of Examples 8-9, wherein the shader core decompresses the first data element from a bit length between 9 bits and 15 bits to a bit length of 16 bits.
[0365] Example 11 includes the subject matter of any of Examples 8-10, wherein the shader core decompresses the first data element from a bit length between 17 bits and 31 bits to a bit length of 32 bits.
[0366] Example 12 includes the subject matter of any of examples 8-11, wherein the shader core decompresses the first data element from a bit length between 33 bits and 63 bits to a bit length of 64 bits.
[0367] Example 13 includes the subject matter of any of Examples 8-12, wherein the arithmetic logic unit (ALU) performs a vector comparison operation with a second bit length.
[0368] Example 14 includes the subject matter of any of examples 8-13, wherein the arithmetic logic unit (ALU) writes the result of the vector comparison operation as a bit vector.
[0369] Example 15 includes a non-transitory computer-readable medium comprising one or more instructions that, when executed on at least one processor, configure the at least one processor to perform one or more steps in a processing element of a shader core communicatively coupled to a cache memory, extracting a first data element from an in-memory database in the cache memory and having a first bit length, decompressing a first data element having a second bit length greater than the first bit length, and forwarding the second data element to an arithmetic logic unit (ALU) for comparison to a target value provided in a query of the in-memory database.
[0370] Example 16 includes the subject matter of example 15, wherein the shader core decompresses the first data element from a bit length less than 8 bits to a bit length of 8 bits.
[0371] Example 17 includes the subject matter of any of Examples 15-16, wherein the shader core decompresses the first data element from a bit length between 9 bits and 15 bits to a bit length of 16 bits.
[0372] Example 18 includes the subject matter of any of Examples 15-17, wherein the shader core decompresses the first data element from a bit length between 17 bits and 31 bits to a bit length of 32 bits.
[0373] Example 19 includes the subject matter of any of Examples 15-18, wherein the shader core decompresses the first data element from a bit length between 33 bits and 63 bits to a bit length of 64 bits.
[0374] Example 20 includes the subject matter of any of Examples 15-19, wherein the arithmetic logic unit (ALU) performs a vector comparison operation with a second bit length.
[0375] Example 21 includes the subject matter of any of Examples 15-20, wherein the arithmetic logic unit (ALU) writes the result of the vector comparison operation as a bit vector.
[0376] The above detailed description includes references to the accompanying drawings, which form a part of the detailed description. The drawings show, for illustrative purposes, specific embodiments that may be practiced. These embodiments are also referred to herein as "examples." Such examples may include elements in addition to those shown or described. However, examples that include the elements shown or described are also contemplated. Furthermore, any combination or permutation of these elements (or one or more aspects thereof) as shown or described, examples relating to the specific example (one or more aspects thereof) or with any of the other examples (or one or more aspects thereof) shown or described herein are also contemplated.
[0377] The publications, patents, and patent documents referenced herein are hereby incorporated by reference in their entirety as if each were individually incorporated by reference. In the event of inconsistent usage between this specification and those documents incorporated by reference, the usage in the incorporated references is supplemental to that of this specification, and to the extent of any conflicting discrepancies, the usage in this specification will control.
[0378] In this document, the terms "a" or "an" are used as is common in patent documents to include one or more than one, independent of any other instances or uses of "at least one" or "one or more." Furthermore, a "set" includes one or more elements. In this document, the term "or" is used to refer to a non-exclusive or, such that "A or B" includes "A but not B," "B but not A," and "A and B," unless otherwise indicated. In the appended claims, the terms "including" and "in which" are used as the plain English equivalents of the terms "comprising" and "wherein," respectively. Also, in the following claims, the terms "including" and "comprising" are open ended, i.e., a system, device, article, or process that includes an element is still considered to be within the scope of the claim in addition to those recited after such term in the claim. Moreover, in the claims which follow, the terms "first," "second," "third," etc. are used merely as labels and are not intended to suggest a numerical ordering of their objects.
[0379] The term "logic instructions" as used herein relates to expressions that can be understood by one or more machines to perform one or more logical operations. For example, logic instructions may include instructions that are interpretable by a processor compiler to perform one or more operations on one or more data objects. However, this is merely one example of machine-readable instructions and the example is not limited in this respect.
[0380] The term "computer-readable medium" as used herein relates to a medium capable of maintaining an expression perceivable by one or more machines. For example, a computer-readable medium may comprise one or more storage devices for storing computer-readable instructions or data. Such a storage device may comprise, for example, a storage medium such as an optical, magnetic, or semiconductor storage medium. However, this is merely one example of a computer-readable medium and the example is not limited in this respect.
[0381] The term "logic" as used herein refers to structures for performing one or more logical operations. For example, logic may comprise circuitry that provides one or more output signals based on one or more input signals. Such circuitry may comprise a finite state machine that receives digital inputs and provides digital outputs, or circuitry that provides one or more analog output signals in response to one or more analog input signals. Such circuitry may be provided in an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA). Logic may also include machine-readable instructions stored in a memory in combination with processing circuitry that executes the machine-readable instructions. However, these are merely examples of structures that may provide logic, and examples are not limited in this respect.
[0382] Some of the methods described herein may be embodied as logic instructions on a computer-readable medium. When executed on a processor, the logic instructions cause the processor to be programmed as a dedicated machine to perform the methods described herein. When the processor is configured by the logic instructions to perform the methods described herein, it constitutes a structure for performing the methods described herein. Alternatively, the methods described herein may be reduced to logic, for example, on a field programmable gate array (FPGA), application specific integrated circuit (ASIC), etc.
[0383] In the description and claims, the terms "coupled" and "connected," along with their derivatives, may be used. In specific examples, "coupled" may be used to indicate that two or more elements are in direct physical or electrical contact with each other. "Coupled" may mean that two or more elements are in direct physical or electrical contact. However, "coupled" can also mean that two or more elements may not be in direct contact with each other, but still may cooperate or interact with each other.
[0384] References in the specification to "one example" or "some examples" mean that implementations include at least the particular feature, structure, or characteristic described in connection with the example. Appearances of the phrase "in one example" in various places in the specification may or may not all refer to the same example.
[0385] The above description is for illustrative purposes only and not limiting. For example, the above examples (or one or more aspects thereof) may be used in combination with others. Other embodiments may be used by those skilled in the art upon reviewing the above description, for example. The Abstract allows the reader to quickly ascertain the nature of the technical disclosure. The Abstract is submitted with the understanding that it will not be used to interpret or limit the scope or meaning of the claims. Also, in the above Detailed Description, various features may be grouped together to streamline the disclosure. However, a claim that is not recited for every feature disclosed herein as an embodiment may characterize a subset of the features. Moreover, an embodiment may include fewer features than those disclosed in the specific examples. Accordingly, the following claims are hereby incorporated into the Detailed Description, with each claim standing on its own as a separate embodiment. The scope of the embodiments disclosed herein should be determined with reference to the appended claims, along with the full scope of equivalents to which such claims are entitled.
[0386] Although examples have been described with specific descriptions of structural features and / or methodological operations, it should be understood that the claimed subject matter may not be limited to the specific features or operations described. Rather, the specific features and operations are disclosed as example forms of implementing the claimed subject matter. The above description and drawings should be considered in an illustrative rather than a limiting sense. Those skilled in the art will appreciate that various modifications and changes may be made to the embodiments described herein without departing from the broader spirit and scope of the present invention, as set forth in the appended claims. (Item 1) A cache memory; High bandwidth memory; a shader core communicatively coupled to the cache memory, the shader core having a processing element retrieved from an in-memory database in the cache memory and configured to decompress a first data element having a first bit length to generate a second data element having a second bit length greater than the first bit length; an arithmetic logic unit (ALU) for comparing the second data element with a target value provided in a query to the in-memory database; An apparatus comprising: (Item 2) 2. The apparatus of claim 1, wherein the shader core decompresses the first data element from a bit length of less than 8 bits to a bit length of 8 bits. (Item 3) 2. The apparatus of claim 1, wherein the shader core decompresses the first data element from a bit length between 9 bits and 15 bits to a bit length of 16 bits. (Item 4) 2. The apparatus of claim 1, wherein the shader core decompresses the first data element from a bit length between 17 bits and 31 bits to a bit length of 32 bits. (Item 5) 2. The apparatus of claim 1, wherein the shader core decompresses the first data element from a bit length between 33 bits and 63 bits to a bit length of 64 bits. (Item 6) 6. The apparatus of claim 1, wherein the arithmetic logic unit (ALU) performs a vector comparison operation at the second bit length. (Item 7) 7. The apparatus of claim 6, wherein the arithmetic logic unit (ALU) writes the result of the vector comparison operation as a bit vector. (Item 8) a processing element of a shader core communicatively coupled to a cache memory, the processing element extracting a first data element from an in-memory database in the cache memory and having a first bit length, the first data element being decompressed to generate a second data element having a second bit length greater than the first bit length; forwarding the second data element to an arithmetic logic unit (ALU) for comparison to a target value provided in a query of the in-memory database; A method for providing the above. (Item 9) 9. The method of claim 8, wherein the shader core decompresses the first data element from a bit length of less than 8 bits to a bit length of 8 bits. (Item 10) 9. The method of claim 8, wherein the shader core decompresses the first data element from a bit length between 9 bits and 15 bits to a bit length of 16 bits. (Item 11) 9. The method of claim 8, wherein the shader core decompresses the first data element from a bit length between 17 bits and 31 bits to a bit length of 32 bits. (Item 12) 9. The method of claim 8, wherein the shader core decompresses the first data element from a bit length between 33 bits and 63 bits to a bit length of 64 bits. (Item 13) 13. The method of any one of items 8 to 12, wherein the arithmetic logic unit (ALU) performs a vector comparison operation in the second bit length. (Item 14) Item 14. The method of item 13, wherein the arithmetic logic unit (ALU) writes the result of the vector comparison operation as a bit vector. (Item 15) The processor: a processing element of a shader core communicatively coupled to a cache memory, the processing element extracting a first data element from an in-memory database in the cache memory and having a first bit length, the first data element being decompressed to generate a second data element having a second bit length greater than the first bit length; forwarding the second data element to an arithmetic logic unit (ALU) for comparison to a target value provided in a query of the in-memory database; A program for executing the above. (Item 16) Item 16. The program of item 15, wherein the shader core decompresses the first data element from a bit length of less than 8 bits to a bit length of 8 bits. (Item 17) Item 16. The program of item 15, wherein the shader core decompresses the first data element from a bit length between 9 bits and 15 bits to a bit length of 16 bits. (Item 18) Item 16. The program of item 15, wherein the shader core decompresses the first data element from a bit length between 17 bits and 31 bits to a bit length of 32 bits. (Item 19) Item 16. The program of item 15, wherein the shader core decompresses the first data element from a bit length between 33 bits and 63 bits to a bit length of 64 bits. (Item 20) 20. The program of claim 15, wherein the arithmetic logic unit (ALU) performs a vector comparison operation in the second bit length. (Item 21) 21. The program of claim 20, wherein the arithmetic logic unit (ALU) writes the result of the vector comparison operation as a bit vector. (Item 22) 22. A computer-readable storage medium storing a program according to any one of items 15 to 21.
Claims
1. 1. A graphics processor, comprising: An interposer; a first chiplet coupled to the interposer, the first chiplet including a graphics processing resource and an interconnect network coupled to the graphics processing resource; a cache circuit coupled to the graphics processing resource via the interconnect network; a second chiplet coupled to the first chiplet via the interposer, the second chiplet including a memory side cache and a memory controller coupled to the memory side cache; Equipped with the memory controller is configured to enable access to a high bandwidth memory (HBM) device; the memory-side cache is configured to cache data associated with memory accesses performed via the memory controller; the cache circuit is logically located between the graphics processing resource and a chiplet interface. Graphics processor.
2. The graphics processor of claim 1 , wherein the cache circuitry includes a level 2 (L2) cache.
3. 3. The graphics processor of claim 2, wherein the level 2 cache is a distributed cache having nodes interconnected via the interconnect network.
4. The graphics processor of claim 1 , wherein the memory-side cache comprises a level 3 (L3) cache.
5. The graphics processor of claim 1 , wherein the interposer, the first chiplet, and the second chiplet have a two-and-a-half dimensional (2.5D) configuration.
6. The graphics processor of claim 5 , wherein the interposer is an active interposer.
7. 7. The graphics processor of claim 1, wherein the graphics processing resources include multiple functional units having a single instruction multiple thread (SIMT) architecture.
8. The graphics processor of claim 7 , wherein the plurality of functional units includes a general purpose graphics processor core and a tensor core.
9. The graphics processor of claim 7 or 8, wherein the plurality of functional units includes a ray tracing core.
10. 7. The graphics processor of claim 1, wherein the graphics processing resources include multiple functional units having a single instruction, multiple data (SIMD) architecture.
11. Interconnect to system interface; a multi-die graphics processor coupled to the interconnect; A system comprising: The multi-die graphics processor includes: An interposer; a first chiplet coupled to the interposer, the first chiplet including a graphics processing resource and an interconnect network coupled to the graphics processing resource; a cache circuit coupled to the graphics processing resource via the interconnect network; a second chiplet coupled to the first chiplet via the interposer, the second chiplet including a memory side cache and a memory controller coupled to the memory side cache; having the memory controller is configured to enable access to a high bandwidth memory (HBM) device; the memory-side cache is configured to cache data associated with memory accesses performed via the memory controller; the cache circuit is logically located between the graphics processing resource and a chiplet interface. system.
12. 12. The system of claim 11, wherein the cache circuitry comprises a level 2 (L2) cache.
13. 13. The system of claim 12, wherein the level two cache is a distributed cache having nodes interconnected via the interconnect network.
14. The system of claim 11 , wherein the memory-side cache comprises a level 3 (L3) cache.
15. 15. The system of claim 11, wherein the interposer, the first chiplet, and the second chiplet have a two-and-a-half dimensional (2.5D) configuration.
16. The system of claim 15 , wherein the interposer is an active interposer.
17. 17. The system of claim 11, wherein the graphics processing resource includes multiple functional units having a single instruction multiple thread (SIMT) architecture.
18. 20. The system of claim 17, wherein the plurality of functional units comprises a general purpose system core and a tensor core.
19. The system of claim 17 or 18, wherein the plurality of functional units includes a ray tracing core.
20. 17. The system of claim 11, wherein the graphics processing resource includes multiple functional units having a single instruction, multiple data (SIMD) architecture.
Citation Information
Patent Citations
Ray tracing core and ray tracing chip including the same
JP2012528377A
Improving waveform data exchange in multiprocessor systems using compression and decompression.
JP2013506917A
Apparatus and method for decoding using coefficient compression
JP2017184250A
Multi-chip package link
JP2017506010A
Parallel processing scheduler, parallel processing scheduling method and parallel processing scheduling program
JP2019008444A
Cited By
Sparse optimizations for a matrix accelerator architecture
US12293431B2
Implicit fence for write messages
US12321310B2
Systolic arithmetic on sparse data
US12361600B2
Dynamic memory reconfiguration
US12386779B2
Multicore processor with each core having independent floating point datapath and integer datapath
US12411695B2
