Adaptive compute sizing per workload

CN108733486BActive Publication Date: 2024-09-24INTEL CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201810343695.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2017-04-17
Filing Date
2018-04-17
Publication Date
2024-09-24
Estimated Expiration
2038-04-17

Smart Images

  • Figure CN108733486B_ABST
    Figure CN108733486B_ABST
Patent Text Reader

Abstract

Methods and apparatus related to techniques for power management. In an example, an apparatus includes logic, at least in part including hardware logic, to receive one or more frames for a workload, determine one or more computing resource parameters for the workload, and store the one or more computing resource parameters for the workload in association with workload context data for the workload in a memory. Other embodiments are also disclosed and claimed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates generally to the field of electronics. More particularly, some embodiments relate to techniques for implementing adaptive compute sizing on a per-workload basis in a data processing system, such as a graphics processor. Background Art

[0002] As integrated circuit manufacturing technology improves, manufacturers are able to integrate additional functionality onto a single silicon substrate. As the number of functions increases, the number of components on a single integrated circuit (IC) chip also increases. The additional components add additional signal switching, which in turn generates more heat and / or consumes more power. The additional heat may damage the components on the chip through, for example, thermal expansion. Moreover, for such devices, for example, especially for devices that rely on battery power to function, the additional power consumption may limit the use location and / or use model. Therefore, efficient power management can have a direct impact on the efficiency, lifespan, and use model of electronic devices.

[0003] Furthermore, current 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 have used fixed-function compute units to process graphics data; however, recently, portions of graphics processors have been made programmable, enabling such processors to support a wider variety of operations for processing vertex and fragment data.

[0004] In order to further increase performance, graphics processors generally implement processing techniques such as pipelining, which attempt to process as much graphics data as possible in parallel throughout different parts of the graphics pipeline. Parallel graphics processors with a single instruction multiple thread (SIMT) architecture are designed to maximize the amount of parallel processing in the graphics pipeline. In the SIMT architecture, groups of parallel threads attempt to execute program instructions together synchronously as often as possible to increase processing efficiency. A general overview of software and hardware for the SIMT architecture can be found in Shane Cook's CUDA Programming, Chapter 3, Pages 37-51 (2013) and / or Nicholas Wilt's CUDA Handbook, A Comprehensive Guide to GPU Programming, Chapters 2.6.2 to 3.1.2 (June 2013). BRIEF DESCRIPTION OF THE DRAWINGS

[0005] In order that the above described features of the embodiments of the present invention may be understood in detail, the embodiments briefly summarized above may be described in more detail with reference to the embodiments, some of which are illustrated in the accompanying drawings. It should be noted, however, that the drawings illustrate only typical embodiments and are not therefore to be considered as limiting the scope thereof.

[0006] Figure 1 is a block diagram illustrating a computer system configured to implement one or more aspects of the embodiments described herein.

[0007] Figures 2A-2D A parallel processor component according to an embodiment is illustrated.

[0008] Figure 3A-3B is a block diagram of a graphics multiprocessor according to an embodiment.

[0009] Figures 4A-4F An exemplary architecture is illustrated in which multiple GPUs are communicatively coupled to multiple multi-core processors.

[0010] Figure 5 A graphics processing pipeline according to an embodiment is illustrated.

[0011] Figure 6 and 7C is a schematic illustration of an architecture for implementing adaptive compute sizing per workload, according to an embodiment.

[0012] Figure 7A-7B is a flow diagram illustrating operations in a method to implement adaptive compute sizing per workload, in accordance with an embodiment.

[0013] Figure 8 A block diagram of a switching regulator according to an embodiment is illustrated.

[0014] Fig. 9 is a block diagram of a system including a streaming multiprocessor according to one or more embodiments.

[0015] Fig.10 A block diagram of a parallel processing system according to one embodiment is illustrated.

[0016] Fig.11 is a block diagram of a processing system according to an embodiment.

[0017] Fig.12 is a block diagram of a processor according to an embodiment.

[0018] Fig.13 is a block diagram of a graphics processor according to an embodiment.

[0019] Fig.14is a block diagram of a graphics processing engine of a graphics processor according to some embodiments.

[0020] Fig.15 is a block diagram of a graphics processor provided by an additional embodiment.

[0021] Fig.16 The diagram illustrates thread execution logic including an array of processing elements employed in some embodiments.

[0022] Fig.17 is a block diagram illustrating a graphics processor instruction format according to some embodiments.

[0023] Fig.18 is a block diagram of a graphics processor according to another embodiment.

[0024] Figures 19A-19B A graphics processor command format and command sequence are illustrated in accordance with some embodiments.

[0025] Fig. 20 An exemplary graphics software architecture for a data processing system is illustrated in accordance with some embodiments.

[0026] Fig.21 is a block diagram illustrating an IP core development system according to an embodiment.

[0027] Fig. 22 is a block diagram illustrating an exemplary system on a chip integrated circuit according to an embodiment.

[0028] Fig.23 is a block diagram illustrating additional exemplary graphics processors.

[0029] Fig.24 is a block diagram illustrating an additional exemplary graphics processor of a system on a chip integrated circuit in accordance with an embodiment. DETAILED DESCRIPTION

[0030] In the following description, many specific details are set forth in order to provide a thorough understanding of various embodiments. However, various embodiments may be practiced without the specific details. In other instances, well-known methods, procedures, components, and circuits are not described in detail so as not to obscure specific embodiments. In addition, various aspects of the embodiments may be performed using various means, such as integrated semiconductor circuits ("hardware"), computer-readable instructions organized into one or more programs ("software"), or a combination of hardware and software. For purposes of this disclosure, reference to "logic" shall mean hardware, software, firmware, or a combination thereof.

[0031] Some embodiments discussed herein may be applied in any processor (such as a GPCPU, CPU, GPU, etc.), graphics controller, etc. Other embodiments are also disclosed and claimed. In addition, some embodiments may be applied in computing systems including one or more processors (e.g., having one or more processor cores), such as those discussed herein, including, for example, mobile computing devices, such as smartphones, tablets, UMPCs (Ultra Mobile Personal Computers), laptops, Ultrabooks, etc. TM Computing devices, wearable devices (such as smart watches or smart glasses), etc.

[0032] In some embodiments, a graphics processing unit (GPU) is communicatively coupled to a host / processor core to accelerate graphics operations, machine learning operations, pattern analysis operations, and various general-purpose GPU (GPGPU) functions. The GPU may be communicatively coupled to the host processor / core via a bus or another interconnect (e.g., a high-speed interconnect such as PCIe or NVLink). In other embodiments, the GPU may be integrated on the same package or chip as the core and communicatively coupled to the core via an internal processor bus / interconnect (i.e., inside the package or chip). Regardless of the manner in which the GPU is connected, the processor core may take the form of a sequence of commands / instructions contained in a work descriptor to assign work to the GPU. The GPU then uses a dedicated circuit system / logic to efficiently process these commands / instructions.

[0033] In the following description, many specific details are set forth to provide a more thorough understanding. However, it will be apparent to those skilled in the art that the embodiments described herein may be practiced without one or more of these specific details. In other instances, well-known features are not described to avoid obscuring the details of embodiments of the invention.

[0034] System Overview

[0035] Figure 11 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, the one or more processors 102 communicating with the system memory 104 via 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 is coupled to 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. In addition, 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 to the I / O hub 107 can include local, internal, or embedded display devices.

[0036] In one embodiment, the processing subsystem 101 includes one or more parallel processors 112, which are coupled to the memory hub 105 via a bus or other communication link 113. The communication link 113 can be one of any number of standard-based communication link technologies or protocols (such as, but not limited to, PCI Express), or can be a vendor-specific communication interface or communication structure. In one embodiment, the one or more parallel processors 112 form a computationally focused parallel or vector processing system that includes a large number of processing cores and / or processing clusters (such as, integrated many-core (MIC) processors). In one embodiment, the one or more parallel processors 112 form a graphics processing subsystem that can output pixels to one of the one or more display devices 110A coupled via the I / O hub 107. The one or more parallel processors 112 can also include a display controller and display interface (not shown) to enable direct connection to one or more display devices 110B.

[0037] Within the I / O subsystem 111, a system storage unit 114 can be connected to the I / O hub 107 to provide a storage mechanism for the computing system 100. An I / O switch 116 can be used to provide an interface mechanism to enable connection between the I / O hub 107 and other components, such as a network adapter 118 and / or a wireless network adapter 119 that can be integrated into the platform, as well as various other devices that can be added via one or more plug-in devices 120. 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 the following: Wi-Fi, Bluetooth, near field communication (NFC), or other network devices including one or more wireless radios.

[0038] The computing system 100 may include other components not explicitly shown, including USB or other port connections, optical storage drives, video capture devices, and the like, which may also be connected to the I / O hub 107. Figure 1 The communication paths interconnecting the various components in the system may be implemented using any suitable protocol such as a PCI (Peripheral Component Interconnect) based protocol (e.g., PCI Express) or any other bus or point-to-point communication interface and / or protocol (such as, NV-Link high-speed interconnect, or interconnect protocols known in the art).

[0039] In one embodiment, the one or more parallel processors 112 incorporate circuit systems optimized for graphics and video processing (including, for example, video output circuit systems) and constitute a graphics processing unit (GPU). In another embodiment, the one or more parallel processors 112 incorporate circuit systems optimized for general processing while maintaining the underlying computing architecture described in more detail herein. In yet another embodiment, the components of the computing system 100 may be integrated on a single integrated circuit along with one or more other system elements. For example, the one or more parallel processors 112, the memory hub 105, the processor 102, and the I / O hub 107 may be integrated into a system on a chip (SoC) integrated circuit. Alternatively, the components of the computing system 100 may be integrated into a single package to form a system in package (SIP) configuration. In one embodiment, at least a portion of the components of the computing system 100 may be integrated into a multi-chip module (MCM), which may be interconnected with other multi-chip modules into a modular computing system.

[0040] It will be appreciated that the computing system 100 shown herein is illustrative, and variations and modifications are possible. The connection topology, including the number and arrangement of bridges, the number of processor(s) 102, and the number of parallel processor(s) 112, may be modified as desired. For example, in some embodiments, the system memory 104 is connected to the processor(s) 102 directly rather than through a bridge, while other devices communicate with the system memory 104 via the memory hub 105 and the processor(s) 102. In other alternative topologies, the parallel processor(s) 112 are connected to the I / O hub 107 or directly to one of the processor(s) 102, rather than to the memory hub 105. In other embodiments, the I / O hub 107 and the memory hub 105 may be integrated into a single chip. Some embodiments may include two or more groups of processors 102 attached via multiple sockets, which may be coupled to two or more instances of the parallel processor(s) 112.

[0041] Some of the specific components shown herein are optional and may not be included in all implementations of computing system 100. For example, any number of plug-in cards or peripheral devices may be supported, or some components may be eliminated. In addition, some architectures may use different terminology for components related to the computing system 100. Figure 1 For example, in some architectures, memory hub 105 may be referred to as a north bridge, while I / O hub 107 may be referred to as a south bridge.

[0042] Figure 2A The parallel processor 200 according to an embodiment is illustrated. The 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). According to an embodiment, the illustrated parallel processor 200 is Figure 1 A variation of one or more parallel processors 112 is shown in .

[0043] In one embodiment, parallel processor 200 includes parallel processing unit 202. The parallel processing unit includes an I / O unit 204, which enables communication with other devices (including other instances of parallel processing unit 202). I / O unit 204 can be directly connected to other devices. In one embodiment, I / O unit 204 is connected to other devices via the use of a hub or switch interface (such as memory hub 105). The connection between memory hub 105 and I / O unit 204 forms communication link 113. Within parallel processing unit 202, I / O unit 204 is connected to host interface 206 and memory crossbar 216, wherein host interface 206 receives commands for performing processing operations and memory crossbar 216 receives commands for performing memory operations.

[0044] When host interface 206 receives command buffers via I / O unit 204, host interface 206 may direct work operations to execute those commands to front end 208. In one embodiment, front end 208 is coupled to scheduler 210, which is configured to distribute commands or other work items to processing cluster array 212. In one embodiment, scheduler 210 ensures that processing cluster array 212 is properly configured and in a valid state before tasks are distributed to processing clusters of processing cluster array 212.

[0045] The processing cluster array 212 may include up to "N" processing clusters (e.g., cluster 214A, cluster 214B, up to cluster 214N). Each cluster 214A-214N of the processing cluster array 212 may execute a large number of concurrent threads. The scheduler 210 may use various scheduling and / or work distribution algorithms to assign work to the clusters 214A-214N of the processing cluster array 212, which may vary depending on the workload that occurs for each type of program or calculation. 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. In one embodiment, 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 calculations.

[0046] Processing cluster array 212 may be configured to perform various types of parallel processing operations. In one embodiment, processing cluster array 212 is configured to perform general-purpose parallel computing operations. For example, processing cluster array 212 may include logic for performing processing tasks including filtering of video and / or audio data, performing modeling operations including physical operations, and performing data transformations.

[0047] In one embodiment, processing cluster array 212 is configured to perform parallel graphics processing operations. In embodiments where parallel processor 200 is configured to perform graphics processing operations, 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 for performing texture operations and tessellation logic and other vertex processing logic. In addition, processing cluster array 212 may be configured to execute graphics processing related shader programs, such as but not limited to vertex shaders, tessellation shaders, geometry shaders, and pixel shaders. Parallel processing unit 202 may transmit data from system memory via I / O unit 204 for processing. During processing, the transmitted data may be stored to on-chip memory (e.g., parallel processor memory 222) during processing and then written back to system memory.

[0048] In one embodiment, when parallel processing unit 202 is used to perform graphics processing, scheduler 210 can be configured to divide the processing workload into tasks of approximately equal size to better enable the distribution of graphics processing operations to multiple clusters 214A-214N of processing cluster array 212. In some embodiments, portions of processing cluster array 212 can be configured to perform different types of processing. For example, a first portion can be configured to perform vertex shading and topology generation, a second portion can be configured to perform tessellation and geometry shading, and a third portion can be configured to perform pixel shading or other screen space operations to produce a rendered image for display. Intermediate data generated by one or more of clusters 214A-214N can be stored in a buffer to allow the intermediate data to be transferred between clusters 214A-214N for further processing.

[0049] 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, the processing tasks may include data to be processed, such as surface (patch) data, primitive data, vertex data, and / or pixel data, and state parameters and commands that define how the data is to be processed (e.g., which program to execute). The scheduler 210 may be configured to obtain an index corresponding to a task or may receive an index from the front end 208. The front end 208 may be configured to ensure that the processing cluster array 212 is configured to a valid state before a workload specified by an incoming command buffer (e.g., a batch buffer, a push buffer, etc.) is initiated.

[0050] 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 switch 216, which can receive memory requests from the processing cluster array 212 and the I / O unit 204. The memory crossbar switch 216 can access the parallel processor memory 222 via a memory interface 218. The memory interface 218 can include a plurality of partition units (e.g., partition unit 220A, partition unit 220B, up to partition unit 220N), which can each be coupled to a portion of the parallel processor memory 222 (e.g., memory cells). In one implementation, the number of partition units 220A-220N is configured to be equal to the number of memory cells, such that the first partition unit 220A has a corresponding first memory cell 224A, the second partition unit 220B has a corresponding memory cell 224B, and the Nth partition unit 220N has a corresponding Nth memory cell 224N. In other embodiments, the number of partition units 220A-220N may not be equal to the number of memory devices.

[0051] In various embodiments, 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. In one embodiment, the memory units 224A-224N may also include 3D stacked memory, including but not limited to high bandwidth memory (HBM). It will be appreciated by those skilled in the art that the specific implementation of the memory units 224A-224N may vary and may be selected from one of a variety of conventional designs. Rendering 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 multiple portions of each rendering 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 excluded in favor of utilizing a unified memory design of the system memory along with the local cache memory.

[0052] In one embodiment, any of the clusters 214A-214N of the processing cluster array 212 can process data to be written to any of the memory units 224A-224N within the parallel processor memory 222. The memory crossbar 216 can be configured to transmit the output of each cluster 214A-214N to any partition unit 220A-220N or another cluster 214A-214N, which can perform additional processing operations on the output. Each cluster 214A-214N can communicate with the memory interface 218 through the memory crossbar 216 to read from or write to various external memory devices. In one embodiment, the memory crossbar 216 has a connection to the memory interface 218 to communicate with the I / O unit 204, as well as a connection to a local instance of the parallel processor memory 222, thereby enabling the processing units within different processing clusters 214A-214N to communicate with the system memory or other memory that is not local to the parallel processing unit 202. In one embodiment, the memory crossbar switch 216 may use virtual channels to separate traffic flows between the clusters 214A-214N and the partition units 220A-220N.

[0053] Although 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 plug-in card, or multiple plug-in cards may be interconnected. Different instances of parallel processing unit 202 may be configured to interoperate even if the different instances have different numbers of processing cores, different amounts of local parallel processor memory, and / or other configuration differences. For example and in one embodiment, some instances of parallel processing unit 202 may include higher precision floating point units relative 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.

[0054] Figure 2B is a block diagram of a partition unit 220 according to an embodiment. In one embodiment, the partition unit 220 is Figure 2AAn example of one of the partition units 220A - 220N. As illustrated, the partition unit 220 includes an L2 cache 221, a frame buffer interface 225, and a ROP 226 (raster operation unit). The L2 cache 221 is a read / write cache configured to perform load and store operations received from the memory crossbar 216 and the ROP 226. Read misses and urgent writeback requests are output from the L2 cache 221 to the frame buffer interface 225 for processing. Dirty updates can also be sent to the frame buffer via the frame buffer interface 225 for opportunistic processing. In one embodiment, the frame buffer interface 225 interfaces with one of the memory units in the parallel processor memory (such as, for example, the memory units 224A - 224N of FIG. 2 (e.g., within the parallel processor memory 222)).

[0055] In a graphics application, the ROP 226 is a processing unit that performs raster operations such as stencil, z-test, blending, and the like. Subsequently, the ROP 226 outputs the processed graphics data stored in the graphics memory. In some embodiments, the ROP 226 includes compression logic that is used to compress z or color data written to the memory and decompress z or color data read from the memory. In some embodiments, the ROP 226 is included within each processing cluster (e.g., clusters 214A - 214N of FIG. 2) rather than within the partition unit 220. In such an embodiment, read and write requests for pixel data are transmitted through the memory crossbar 216, rather than pixel fragment data. The processed graphics data can be displayed on a display device (such as Figure 1 one of the one or more display devices 110), be routed for further processing by the (one or more) processors 102, or be routed for further processing by Figure 2A one of the processing entities within the parallel processor 200.

[0056] Figure 2CIt is a block diagram of a processing cluster 214 in a parallel processing unit according to an embodiment. In one embodiment, the processing cluster is an instance of one of the processing clusters 214A-214N of Figure 2. The processing cluster 214 can be configured to execute many threads in parallel, wherein the term "thread" refers to an instance of a specific program executed on a specific set of input data. In some embodiments, without providing multiple independent instruction units, a single instruction multiple data (SIMD) instruction issuance technology is used to support the parallel execution of a large number of threads. In other embodiments, a public instruction unit configured to issue instructions to a group of processing engines in each of the processing clusters is used, and a single instruction multiple thread (SIMT) technology is used to support the parallel execution of a large number of generally synchronized threads. Different from the SIMD execution regime (wherein, all processing engines usually execute the same instruction), SIMT execution allows different threads to more easily follow the divergent execution paths through a given thread program. It will be appreciated by those skilled in the art that the SIMD processing regime represents a functional subset of the SIMT processing regime.

[0057] The operation of the processing cluster 214 can be controlled via a pipeline manager 232, which distributes processing tasks to SIMT parallel processors. The pipeline manager 232 receives instructions from the scheduler 210 of Figure 2, and manages the execution of those instructions via a graphics multiprocessor 234 and / or a 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 in the processing cluster 214. One or more instances of the graphics multiprocessor 234 may be included in the processing cluster 214. The graphics multiprocessor 234 may process data, and a data crossbar 240 may be used to distribute the processed data to one of a plurality of possible destinations (including other shader units). The pipeline manager 232 may facilitate the distribution of the processed data by specifying the destination of the processed data to be distributed via the data crossbar 240.

[0058] Each graphics multiprocessor 234 within 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 in which new instructions may be issued before previous instructions are completed. The function execution logic supports a wide variety of operations including integer and floating point arithmetic, comparison operations, Boolean operations, bit-shifting, and calculation of various algebraic functions. In one embodiment, the same functional unit hardware may be utilized to perform different operations, and any combination of functional units may be present.

[0059] The instructions transmitted to the processing cluster 214 constitute threads. A group of threads executed across a group 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 can be assigned to a different processing engine in the graphics multiprocessor 234. A thread group may contain fewer threads than the number of processing engines in the graphics multiprocessor 234. When a thread group contains fewer threads than the number of processing engines, one or more of the processing engines may be idle during the cycle in which that thread group is being processed. A thread group may also contain more threads than the number of processing engines in the graphics multiprocessor 234. When a thread group contains more threads than the number of processing engines in the graphics multiprocessor 234, processing may be performed in consecutive clock cycles. In one embodiment, multiple thread groups may be executed concurrently on the graphics multiprocessor 234.

[0060] In one embodiment, the graphics multiprocessor 234 includes an internal cache memory for performing load and store operations. In one embodiment, the graphics multiprocessor 234 can abandon the internal cache and use the cache memory (e.g., L1 cache 308) within the processing cluster 214. Each graphics multiprocessor 234 also has access to the L2 cache in the partition unit (e.g., partition unit 220A-220N of Figure 2) shared in all processing clusters 214 and can be used to transfer data between threads. The graphics multiprocessor 234 can also access the off-chip global memory, which can include one or more of the local parallel processor memory and / or system memory. Any memory outside the parallel processing unit 202 can be used as global memory. Embodiments (wherein the processing cluster 214 includes multiple instances of the graphics multiprocessor 234) can share common instructions and data, which can be stored in the L1 cache 308.

[0061] Each processing cluster 214 may include an MMU 245 (memory management unit) configured to map virtual addresses into physical addresses. In other embodiments, one or more instances of the MMU 245 may reside within the memory interface 218 of FIG. 2 . The MMU 245 includes: a set of page table entries (PTEs) for mapping virtual addresses of tiles (more on tiling) into physical addresses; and optionally a cache line index. The MMU 245 may include an address translation lookaside buffer (TLB) or cache that may reside within the graphics multiprocessor 234 or L1 cache or processing cluster 214. Physical addresses are processed to distribute surface data access locality, thereby allowing efficient request interleaving among partition units. The cache line index may be used to determine whether a request for a cache line is a hit or a miss.

[0062] 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 for performing texture mapping operations, such as determining texture sample locations, reading texture data, and filtering 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 retrieved from an L2 cache, local parallel processor memory, or system memory, as needed. Each graphics multiprocessor 234 outputs a processed task to a data crossbar 240 to provide the processed task to another processing cluster 214 for further processing or to store the processed task in an L2 cache, local parallel processor memory, or system memory via a memory crossbar 216. A preROP 242 (e.g., a pre-raster operation unit) is configured to receive data from the graphics multiprocessor 234, direct the data to a ROP unit, which may be located with a partition unit (e.g., partition units 220A-220N of FIG. 2 ) as described herein. The preROP 242 unit may perform optimizations for color blending, organize pixel color data, and perform address translations.

[0063] It will be appreciated that the core architecture described herein is illustrative, and 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 a processing cluster 214. Furthermore, while only one processing cluster 214 is shown, a parallel processing unit as described herein may include any number of instances of a processing cluster 214. In one embodiment, each processing cluster 214 may be configured to operate independently of other processing clusters 214 using separate and distinct processing units, L1 caches, etc.

[0064] Figure 2D A graphics multiprocessor 234 is shown according to one embodiment. In such an embodiment, the graphics multiprocessor 234 is coupled to a pipeline manager 232 of a processing cluster 214. The graphics multiprocessor 234 has an execution pipeline that includes, but is 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.

[0065] In one embodiment, the instruction cache 252 receives a stream of instructions to be executed from the pipeline manager 232. The instructions are cached in the instruction cache 252 and dispatched by the instruction unit 254 for execution. The instruction unit 254 can dispatch instructions into thread groups (e.g., warps), where each thread of the thread group is assigned to a different execution unit within the GPGPU core 262. Instructions can access any of the local, shared, or global address spaces by specifying an address within the unified address space. The address mapping unit 256 can be used to convert addresses in the unified address space into distinct memory addresses that can be accessed by the load / store unit 266.

[0066] The register file 258 provides a set of registers for the functional units of the graphics multiprocessor 324. The register file 258 provides temporary storage for operands for the data paths of the functional units (e.g., GPGPU core 262, load / store unit 266) connected to the graphics multiprocessor 324. In one embodiment, the register file 258 is divided between each of the functional units so that each functional unit is allocated a dedicated portion of the register file 258. In one embodiment, the register file 258 is divided between different warps executed by the graphics multiprocessor 324.

[0067] The GPGPU cores 262 may each include a floating point unit (FPU) and / or an integer arithmetic logic unit (ALU), which are used to execute instructions of the graphics multiprocessor 324. Depending on the embodiment, the GPGPU cores 262 may be similar in architecture, or may be different in architecture. For example and in one embodiment, the first portion of the GPGPU core 262 includes a single-precision FPU and an integer ALU, while the second portion of the GPGPU core includes a double-precision FPU. In one embodiment, the FPU may implement the IEEE 754-2008 standard for floating-point arithmetic, or may be capable of variable-precision floating-point arithmetic. The graphics multiprocessor 324 may additionally include one or more fixed-function or special-function units to perform specific functions (such as copying rectangles or pixel blending operations). In one embodiment, one or more of the GPGPU cores may also include fixed or special-function logic.

[0068] The memory and cache interconnect 268 is an interconnect network that connects each of the functional units of the graphics multiprocessor 324 to the register file 258 and to the shared memory 270. In one embodiment, the memory and cache interconnect 268 is a crossbar interconnect that allows the load / store unit 266 to implement load and store operations between the shared memory 270 and the register file 258. The register file 258 can operate at the same frequency as the GPGPU core 262, so data transfer between the GPGPU core 262 and the register file 258 is very low latency. The shared memory 270 can be used to enable communication between threads executing on the functional units within the graphics multiprocessor 324. The cache memory 272 can be used, for example, as a data cache to cache texture data communicated between the functional units and the texture unit 236. The shared memory 270 can also be used as a cached managed program. In addition to the automatically cached data stored in the cache memory 272, threads executing on the GPGPU core 262 can also programmatically store data in the shared memory.

[0069] Figure 3A-3B Additional graphics multiprocessors are illustrated according to an embodiment. The illustrated graphics multiprocessors 325, 350 are Figure 2C The illustrated graphics multiprocessors 325, 350 may be configured as streaming multiprocessors (SMs) capable of executing a large number of execution threads simultaneously.

[0070] Figure 3A A graphics multiprocessor 325 is shown according to an additional embodiment. The graphics multiprocessor 325 is Figure 2D The graphics multiprocessor 234 includes multiple additional instances of execution resource units. For example, the graphics multiprocessor 325 may include multiple instances of instruction units 332A-332B, register files 334A-334B, and one or more texture units 344A-344B. The graphics multiprocessor 325 also includes multiple groups of graphics or computing execution units (e.g., GPGPU cores 336A-336B, GPGPU cores 337A-337B, GPGPU cores 338A-338B) and multiple groups of load / store units 340A-340B. In one embodiment, the execution resource unit has a common instruction cache 330, texture and / or data cache memory 342, and shared memory 346. Various components can communicate via an interconnect structure 327. In one embodiment, the interconnect structure 327 includes one or more crossbar switches to enable communication between various components of the graphics multiprocessor 325.

[0071] Figure 3BFIG. 3 shows a graphics multiprocessor 350 according to an additional embodiment. The graphics processor includes multiple sets of execution resources 356A-356D, wherein each set of execution resources includes multiple instruction units, register files, GPGPU cores, and load storage units, such as Figure 2D and Figure 3A Execution resources 356A-356D may work in concert with one or more texture units 360A-360D for texture operations while sharing instruction cache 354 and shared memory 362. In one embodiment, execution resources 356A-356D may share instruction cache 354 and shared memory 362 as well as multiple instances of texture and / or data cache memory 358A-358B. The various components may be communicated to one another via a communication channel similar to Figure 3A The interconnect structure 327 and the interconnect structure 352 communicate with each other.

[0072] Those skilled in the art will understand that Figure 1 , 2A The architectures described in Figures 2-2D and 3A-3B are illustrative and non-limiting with respect to the scope of the present embodiments. Thus, without departing from the scope of the embodiments described herein, the techniques described herein may be implemented on any properly 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 2), and one or more graphics processors or special purpose processing units.

[0073] In some embodiments, a parallel processor or GPGPU as described herein is communicatively coupled to a host / processor core to accelerate graphics operations, machine learning operations, pattern analysis operations, and various general-purpose GPU (GPGPU) functions. The GPU may be communicatively coupled to the host processor / core via a bus or other interconnect (e.g., a high-speed interconnect such as PCIe or NVLink). In other embodiments, the GPU may be integrated on the same package or chip as the core and communicatively coupled to the core via an internal processor bus / interconnect (i.e., inside the package or chip). Regardless of the manner in which the GPU is connected, the processor core may assign work to the GPU in the form of a sequence of commands / instructions contained in a work descriptor. The GPU then uses a dedicated circuit system / logic to efficiently process these commands / instructions.

[0074] Technologies for GPU to host processor interconnect

[0075] Figure 4AAn exemplary architecture is illustrated in which multiple GPUs 410-413 are communicatively coupled to multiple multi-core processors 405-406 via high-speed links 440-443 (e.g., buses, point-to-point interconnects, etc.). In one embodiment, the high-speed links 440-443 support 4GB / s, 30GB / s, 80GB / s, or higher communication throughputs, depending on the implementation. 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 of the invention are not limited to any particular communication protocol or throughput.

[0076] Additionally, in one embodiment, two or more of the GPUs 410-413 are interconnected via high-speed links 444-445, which may be implemented using the same or different protocols / links as used for high-speed links 440-443. Similarly, two or more of the multi-core processors 405-406 may be connected via high-speed link 433, which may be a symmetric multiprocessor (SMP) bus operating at 20 GB / s, 30 GB / s, 120 GB / s, or higher. Alternatively, Figure 4A All communications between the various system components shown in can be achieved using the same protocol / links (eg, through a common interconnect structure). However, as mentioned, the underlying principles of the invention are not limited to any particular type of interconnect technology.

[0077] In one embodiment, each multi-core processor 405-406 is communicatively coupled to processor memory 401-402 via memory interconnects 430-431, respectively, and each GPU 410-413 is communicatively coupled to GPU memory 420-423 via GPU memory interconnects 450-453, respectively. Memory interconnects 430-431 and 450-453 may utilize the same or different memory access technologies. By way of example and not limitation, processor memory 401-402 and 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 or Nano-Ram. In one embodiment, a portion of the memory may be volatile memory and another portion may be non-volatile memory (e.g., using two-level memory (2LM) hierarchy).

[0078] As described below, although the various processors 405-406 and GPUs 410-413 may be physically coupled to specific memories 401-402, 420-423, respectively, a unified memory architecture may be implemented in which the same virtual system address space (also referred to as an "effective address" space) is distributed among all of the various physical memories. For example, the processor memories 401-402 may each include 64GB of system memory address space, and the GPU memories 420-423 may each include 32GB of system memory address space (yielding a total of 256GB of addressable memory in this example).

[0079] Figure 4B The diagram shows additional details of the interconnection between the multi-core processor 407 and the graphics acceleration module 446 according to one embodiment. The graphics acceleration module 446 may include one or more GPU chips integrated on a line card that is coupled to the processor 407 via the high-speed link 440. Alternatively, the graphics acceleration module 446 may be integrated on the same package or chip as the processor 407.

[0080] The illustrated processor 407 includes a plurality of cores 460A-460D, each of which has a translation lookaside buffer 461A-461D and one or more caches 462A-462D. The core may include various other components for executing instructions and processing data (e.g., instruction fetch unit, branch prediction unit, decoder, execution unit, reorder buffer, etc.), which are not illustrated to avoid obscuring the basic principles of the present invention. Caches 462A-462D may include level 1 (L1) and level 2 (L2) caches. In addition, one or more shared caches 426 may be included in the cache hierarchy and shared by multiple groups of cores 460A-460D. For example, one embodiment of the processor 407 includes 24 cores, each of which has its own L1 cache, twelve shared L2 caches, and twelve 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 connected to the system memory 441, which may include the processor memories 401-402.

[0081] The coherence of data and instructions stored in the various caches 462A-462D, 456 and the system memory 441 is maintained via inter-core communications over the coherence bus 464. For example, each cache may have cache coherence logic / circuitry associated therewith to communicate over the coherence bus 464 in response to a detected read or write to a particular cache line. In one implementation, a cache snooping protocol is implemented over the coherence bus 464 to snoop cache accesses. Cache snooping / coherence techniques are well understood by those skilled in the art and will not be described in detail herein to avoid obscuring the underlying principles of the present invention.

[0082] In one embodiment, the proxy circuit 425 communicatively couples the graphics acceleration module 446 to the coherence bus 464, thereby allowing the graphics acceleration module 446 to participate in the cache coherence protocol as a peer of the core. In particular, the interface 435 provides connectivity to the proxy circuit 425 via a high-speed link 440 (e.g., a PCIe bus, NVLink, etc.), and the interface 437 connects the graphics acceleration module 446 to the link 440.

[0083] 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 include a separate graphics processing unit (GPU). Alternatively, the graphics processing engines 431, 432, N may include different types of graphics processing engines within the GPU, such as a graphics execution unit, a media processing engine (e.g., a video encoder / decoder), a sampler, and a blit engine. In other words, the graphics acceleration module may be a GPU with 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.

[0084] In one embodiment, the accelerator integrated circuit 436 includes a memory management unit (MMU) 439 for performing various memory management functions, such as virtual to physical memory translation (also known as effective to real memory translation) and memory access protocols for accessing system memory 441. The MMU 439 may also 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. In one embodiment, the data stored in the cache 438 and graphics memory 433-434, N is kept consistent with the core caches 462A-462D, 456 and the system memory 411. As mentioned, this may be achieved via proxy circuitry 425, which participates in cache coherence mechanisms on behalf of cache 438 and memories 433-434, N (e.g., sending updates relating to modifications / accesses of cache lines on processor caches 462A-462D, 456 to cache 438, and receiving updates from cache 438).

[0085] A set of registers 445 stores context data for threads executed by the graphics processing engines 431-432, N, and context management circuitry 448 manages thread contexts. For example, context management circuitry 448 may perform save and restore operations during context switching to save and restore contexts of various threads (e.g., where a first thread is saved and a second thread is stored so that the second thread can be executed by the graphics processing engine). For example, upon context switching, context management circuitry 448 may store current register values ​​to a designated area in memory (e.g., identified by a context pointer). It may then restore the register values ​​upon returning to the context. In one embodiment, interrupt management circuitry 447 receives and processes interrupts received from system devices.

[0086] In one implementation, virtual / effective addresses from the graphics processing engine 431 are converted to real / physical addresses in the system memory 411 by the MMU 439. One embodiment of the accelerator integrated circuit 436 supports multiple (e.g., 4, 8, 16) graphics accelerator modules 446 and / or other accelerator devices. The graphics accelerator module 446 may be dedicated to a single application executed on the processor 407, or may be shared between multiple applications. In one embodiment, a virtualized graphics execution environment is presented in which the resources of the graphics processing engines 431-432, N are shared with multiple applications or virtual machines (VMs). The resources may be subdivided into "slices" that are allocated to the VMs and / or applications based on the processing requirements and priorities associated with the different VMs and / or applications.

[0087] Thus, the accelerator integrated circuit acts as a bridge to the system of the graphics acceleration module 446 and provides address translation and system memory cache services. In addition, the accelerator integrated circuit 436 can provide virtualization facilities for the host processor to manage interrupts and memory management, virtualization of the graphics processing engine.

[0088] Since the hardware resources of the graphics processing engines 431-432, N are explicitly mapped to the real address space seen by the host processor 407, any host processor can directly address these resources using effective address values. In one embodiment, one function of the accelerator integrated circuit 436 is the physical separation of the graphics processing engines 431-432, N so that they appear as independent units to the system.

[0089] As mentioned, in the illustrated embodiment, one or more graphics memories 433-434, M are respectively coupled to each of the graphics processing engines 431-432, N. The graphics memories 433-434, M store instructions and data being 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 or Nano-Ram.

[0090] In one embodiment, to reduce data traffic on link 440, biasing techniques are used to ensure that the data stored in graphics memory 433-434, M is data that will be used most frequently by graphics processing engines 431-432, N and preferably not used (at least not frequently) by cores 460A-460D. Similarly, the biasing mechanism attempts to keep data needed by a core (and preferably not graphics processing engines 431-432, N) within system memory 411 and the core's cache 462A-462D, 456.

[0091] Figure 4C Another embodiment is illustrated in which an accelerator integrated circuit 436 is integrated within the processor 407. In this embodiment, the graphics processing engines 431-432, N communicate directly to the accelerator integrated circuit 436 via the interface 437 and the interface 435 (again, which may utilize any form of bus or interface protocol) through the high-speed link 440. The accelerator integrated circuit 436 may perform operations related to Figure 4B The same operations as those described, but at potentially higher throughput given their close proximity to the coherency bus 462 and caches 462A-462D, 426.

[0092] One embodiment supports different programming models, including a dedicated process programming model (without graphics acceleration module virtualization) and a shared programming model (with virtualization). The latter may include a programming model controlled by accelerator integrated circuit 436 and a programming model controlled by graphics acceleration module 446.

[0093] In one embodiment of a dedicated process model, the graphics processing engines 431-432, N are dedicated to a single application or process under a single operating system. A single application can funnel other application requests to the graphics engines 431-432, N, thereby providing virtualization within a VM / partition.

[0094] In a dedicated process programming model, graphics processing engines 431-432, N can be shared by multiple VM / application partitions. The shared model requires a hypervisor to virtualize graphics processing engines 431-432, N to allow access by each operating system. For a single partition system without a hypervisor, graphics processing engines 431-432, N are owned by the operating system. In both cases, the operating system can virtualize graphics processing engines 431-432, N to provide access to each process or application.

[0095] For the shared programming model, the graphics acceleration module 446 or individual graphics processing engines 431-432, N use process handles to select process elements. In one embodiment, process elements are stored in the system memory 411 and can be addressed using the effective address to real address translation techniques described herein. The process handle can be an implementation-specific value provided to the host process when registering its context with the graphics processing engine 431-432, N (i.e., calling the system software to add the process element to the process element linked list). The lower 16 bits of the process handle can be the offset of the process element within the process element linked list.

[0096] Figure 4D An exemplary accelerator integrated slice 490 is illustrated. As used herein, a "slice" includes a specified portion of the processing resources of an accelerator integrated circuit 436. An application effective address space 482 within the system memory 411 stores process elements 483. In one embodiment, process elements 483 are stored in response to a GPU call 481 from an application 480 executed on a processor 407. Process elements 483 contain the process state of the corresponding application 480. A work descriptor (WD) 484 contained in process element 483 may be a single job requested by an application, or may contain a pointer to a job queue. In the latter case, WD 484 is a pointer to a job request queue in the address space 482 of the application.

[0097] Graphics acceleration module 446 and / or individual graphics processing engines 431-432, N may be shared by all processes or a subset of processes in the system. Embodiments of the present invention include infrastructure for setting process state and sending WD 484 to graphics acceleration module 446 to start a job in a virtualized environment.

[0098] In one implementation, the dedicated process programming model is implementation specific. In this model, a single process owns the graphics acceleration module 446 or individual graphics processing engine 431. Since the graphics acceleration module 446 is owned by a single process, when the graphics acceleration module 446 is assigned, the hypervisor initializes the accelerator integrated circuit 436 for the owning partition and the operating system initializes the accelerator integrated circuit 436 for the owning process.

[0099] In operation, the WD acquisition unit 491 in the accelerator integrated slice 490 acquires the next WD 484, which contains an indication of work to be completed by one of the graphics processing engines of the graphics acceleration module 446. The data from the WD 484 can be stored in the register 445 and used by the MMU 439, the interrupt management circuit 447 and / or the context management circuit 448 as shown. For example, one embodiment of the MMU 439 includes a segment / page walk circuitry for accessing the segment / page table 486 within the OS virtual address space 485. The interrupt management circuit 447 can handle the interrupt event 492 received from the graphics acceleration module 446. When performing graphics operations, the effective address 493 generated by the graphics processing engine 431-432, N is converted to a real address by the MMU 439.

[0100] In one embodiment, the same set of registers 445 is replicated for each graphics processing engine 431-432, N and / or graphics acceleration module 446 and can be initialized by a hypervisor or operating system. Each of these replicated registers can be included in an accelerator integrated slice 490. Table 1 shows exemplary registers that can be initialized by a hypervisor.

[0101] Table 1 - Registers initialized by the hypervisor

[0102] 1 Slice Control Register 2 Real address (RA) dispatched process area pointer 3 Permission Mask Override Register 4 Interrupt vector table entry offset 5 Interrupt Vector Table Entry Limits 6 Status Register 7 Logical Partition ID 8 Real Address (RA) Hypervisor Accelerator Utilizing Record Pointers 9 Storage Description Register

[0103] Example registers that may be initialized by the operating system are shown in Table 2.

[0104] Table 2 - Registers initialized by the operating system

[0105] 1 Process and thread identities 2 Effective Address (EA) context save / restore pointer 3 Virtual Address (VA) Accelerator Utilizes Record Pointers 4 Virtual Address (VA) Segment Table Pointer 5 Permission masking 6 Job Descriptor

[0106] In one embodiment, each WD 484 is specific to a particular graphics acceleration module 446 and / or graphics processing engine 431-432, N. It contains all the information needed for the graphics processing engine 431-432, N to complete its work, or it may be a pointer to a memory location of a command queue where the application has set up work to be done.

[0107] Figure 4E Additional details of one embodiment of the sharing model are illustrated. This embodiment includes 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 that virtualizes a graphics acceleration module engine for an operating system 495.

[0108] The shared programming model allows all processes or subsets of processes from all partitions or subsets of partitions in the system to use the graphics acceleration module 446. There are two programming models where the graphics acceleration module 446 is shared by multiple processes and partitions: time-slice shared and graphics directed shared.

[0109] In this model, the hypervisor 496 owns the graphics acceleration module 446 and makes its functionality available to all operating systems 495. In order for the graphics acceleration module 446 to support virtualization by the hypervisor 496, the graphics acceleration module 446 may comply with the following requirements: 1) The application's job requests must be autonomous (i.e., no state needs 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 are guaranteed to be completed within a specified amount of time by the graphics acceleration module 446 (including any transition failures), or the graphics acceleration module 446 provides the ability to preempt the processing of a job. 3) When operating in a directed sharing programming model, the graphics acceleration module 446 must be guaranteed fairness between processes.

[0110] In one embodiment, for the shared model, the application 480 is required to use the graphics acceleration module 446 type, work descriptor (WD), permission mask register (AMR) value and context save / restore region pointer (CSRP) to make an operating system 495 system call. The graphics acceleration module 446 type describes the acceleration function targeted for the system call. The graphics acceleration module 446 type can be a system-specific value. The WD is formatted specifically for the graphics acceleration module 446 and can take the form of a graphics acceleration module 446 command, an effective address pointer to a user-defined structure, an effective address pointer to a command queue, or any other data structure used to describe the work to be completed by the graphics acceleration module 446. In one embodiment, the AMR value is used for the AMR state of the current process. The value passed to the operating system is similar to the application of setting the AMR. If the accelerator integrated circuit 436 and the graphics acceleration module 446 implementation do not support the user permission mask override register (UAMOR), the operating system can apply the current UAMOR value to the AMR value before passing the AMR in the hypervisor call. Optionally, the hypervisor 496 may apply the current permission mask override register (AMOR) value before placing the AMR into the process element 483. In one embodiment, the CSRP is one of the registers 445 that contains the effective address of an area in the application's address space 482 for the graphics acceleration module 446 to save and restore context state. This pointer is optional if state does not need to be saved between jobs or when a job is preempted. The context save / restore area may be pinned system memory.

[0111] Upon receiving the system call, the operating system 495 may verify that the application 480 has been registered and has been given permission to use the graphics acceleration module 446. The operating system 495 then calls the hypervisor 496 with the information shown in Table 3.

[0112] Table 3 – OS to Hypervisor call parameters

[0113] 1 Work Descriptor (WD) 2 Authority Mask Register (AMR) value (potentially masked) 3 Effective Address (EA) Context Save / Restore Region Pointer (CSRP) 4 Process ID (PID) and optional thread ID (TID) 5 Virtual Address (VA) Accelerator Utilization Record Pointer (AURP) 6 Virtual address of the storage segment table pointer (SSTP) 7 Logical Interrupt Service Number (LISN)

[0114] Upon receiving the hypervisor call, the hypervisor 496 verifies that the operating system 495 has registered and has been given permission to use the graphics acceleration module 446. The hypervisor 496 then places the process element 483 into a linked list of process elements of the corresponding graphics acceleration module 446 type. The process element may contain the information shown in Table 4.

[0115] Table 4 - Process element information

[0116]

[0117]

[0118] In one embodiment, the hypervisor initializes the plurality of accelerator integrated slice 490 registers 445 .

[0119] like Figure 4F As shown in FIG, one embodiment of the present invention employs a unified memory addressable via a common virtual memory address space, which is used to access physical processor memory 401-402 and GPU memory 420-423. In this implementation, operations executed on GPUs 410-413 utilize the same virtual / effective memory address space to access processor memory 401-402 and vice versa, thereby simplifying programmability. In one embodiment, a first portion of the virtual / effective address space is allocated to processor memory 401, a second portion is allocated to second processor memory 402, a third portion is allocated to GPU memory 420, and so on. The entire virtual / effective memory space (sometimes referred to as the effective address space) is thereby distributed across each of processor memory 401-402 and GPU memory 420-423, thereby allowing any processor or GPU to access any physical memory (with a virtual address mapped to that memory).

[0120] In one embodiment, biasing / coherency management circuitry 494A-494E within one or more of MMUs 439A-439E ensures cache coherency between the caches of the host processor (e.g., 405) and GPUs 410-413 and implements biasing techniques that indicate physical memory where certain types of data should be stored. Figure 4F 4. Multiple instances of bias / coherence management circuitry 494A-494E are illustrated in , but bias / coherence circuitry may be implemented within an MMU of one or more host processors 405 and / or within an accelerator integrated circuit 436.

[0121] One embodiment allows the use of shared virtual memory (SVM) technology to access GPU-attached memory 420-423 and map it as part of system memory without suffering the typical performance drawbacks associated with full system cache coherence. The ability to access GPU-attached memory 420-423 as system memory without heavy cache coherence overhead provides a beneficial operating environment for GPU offloading. This arrangement allows host processor 405 software to set 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, all of which are inefficient relative to simple memory accesses. At the same time, the ability to access GPU-attached memory 420-423 without cache coherence overhead can be critical to the runtime of offloaded computations. In the case of substantial streaming write memory traffic, for example, cache coherence overhead can significantly reduce the effective write bandwidth seen by GPUs 410-413. The efficiency of operand setup, the efficiency of result access, and the efficiency of GPU computation all play a role in determining the effectiveness of GPU offloading.

[0122] In one implementation, the selection between GPU bias and host processor bias is driven by a bias tracker data structure. A bias table may be used, which may be, for example, a page granular structure containing 1 or 2 bits per GPU attached memory page (i.e., controlled at the granularity of a memory page). The bias table may be implemented in a stolen memory range of one or more GPU attached memories 420-423, with or without a bias cache in the GPUs 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.

[0123] In one implementation, the bias table entry associated with each access to GPU-attached memory 420-423 is accessed before actually accessing the GPU memory, resulting in the following operations. First, local requests from GPUs 410-413 whose pages are found in the GPU bias are forwarded directly to the corresponding GPU memory 420-423. Local requests from the GPUs whose pages are found in the host bias are forwarded to the processor 405 (e.g., via a high-speed link as discussed above). In one embodiment, requests from processor 405 to find the requested page in the host processor bias complete the request like a normal memory read. Alternatively, requests involving GPU bias pages can be forwarded to GPUs 410-413. If the GPU is not currently using the page, the GPU can then convert the page to the host processor bias.

[0124] The bias state of a page may be changed by a software-based mechanism, a hardware-assisted software-based mechanism, or a purely hardware-based mechanism for a limited set of situations.

[0125] One mechanism for changing the bias state employs an API call (e.g., OpenCL), which in turn calls the GPU's device driver, which in turn sends a message (or queues a command descriptor) to the GPU, instructing it to change the bias state and perform a cache flush operation in the host for some transitions. The cache flush operation is required for transitions from host processor 405 bias to GPU bias, but not for the reverse transition.

[0126] In one embodiment, cache coherency is maintained by temporarily rendering GPU bias pages that are not cacheable by host processor 405. To access these pages, processor 405 may request access from GPU 410, which may or may not be granted immediately depending on the implementation. Therefore, to reduce communication between processor 405 and GPU 410, it is ensured that GPU bias pages are those pages that are needed by the GPU but not by host processor 405 and vice versa.

[0127] Graphics processing pipeline

[0128] Figure 5 2. A graphics processing pipeline 500 is illustrated in accordance with an embodiment. In one embodiment, a graphics processor may implement the illustrated graphics processing pipeline 500. The graphics processor may be included in a parallel processing subsystem as described herein (such as parallel processor 200 of FIG. 2), which in one embodiment is Figure 12 . Various parallel processing systems may implement the graphics processing pipeline 500 via one or more instances of a parallel processing unit (e.g., parallel processing unit 202 of FIG. 2 ) as described herein. For example, a shader unit (e.g., graphics multiprocessor 234 of FIG. 3 ) may be configured to perform the functions of one or more of a vertex processing unit 504, a tessellation control processing unit 508, a tessellation evaluation processing unit 512, a geometry processing unit 516, and a fragment / pixel processing unit 524. The functions of the data assembler 502, primitive assemblers 506, 514, 518, tessellation unit 510, rasterizer 522, and raster operation unit 526 may also be performed by other processing engines within a processing cluster (e.g., processing cluster 214 of FIG. 3 ) and corresponding partition units (e.g., partition units 220A-220N of FIG. 2 ). The graphics processing pipeline 500 may also be implemented using dedicated processing units for one or more functions. In one embodiment, one or more portions of the graphics processing pipeline 500 may be executed by parallel processing logic within a general purpose processor (e.g., a CPU). In one embodiment, one or more portions of the graphics processing pipeline 500 may access on-chip memory (e.g., such as parallel processor memory 222 in FIG. 2 ) via a memory interface 528, which may be an example of the memory interface 218 of FIG. 2 .

[0129] In one embodiment, data assembler 502 is a processing unit that collects 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 executes vertex shader programs to lighten and transform vertex data as specified by the vertex shader programs. Vertex processing unit 504 reads data stored in cache, local or system memory for use in processing vertex data, and vertex processing unit 504 can be programmed to transform vertex data from an object-based coordinate representation to a world space coordinate space or a normalized device coordinate space.

[0130] A first instance of primitive assembler 506 receives vertex attributes from vertex processing unit 504. Primitive assembler 506 reads the stored vertex attributes as needed and builds graphics primitives for processing by tessellation control processing unit 508. Graphics primitives include triangles, line segments, points, patches, etc. as supported by various graphics processing application programming interfaces (APIs).

[0131] The tessellation control processing unit 508 treats the input vertices as control points for the geometric patch. The control points are transformed from an input representation from a patch (e.g., a basis for the patch) to a representation suitable for use in surface evaluation by the tessellation evaluation processing unit 512. The tessellation control processing unit 508 may also calculate tessellation factors for the edges of the geometric patch. The tessellation factors are applied to a single edge and quantize the view-dependent level of detail associated with the edge. The tessellation unit 510 is configured to receive the tessellation factors for the edges of the patch and tessellate the patch into a plurality of geometric primitives such as lines, triangles, or 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 and vertex attributes for each vertex associated with the geometric primitive.

[0132] A second instance of primitive assembler 514 receives vertex attributes from tessellation evaluation processing unit 512, reads stored vertex attributes as needed, and builds graphics primitives for processing by geometry processing unit 516. Geometry processing unit 516 is a programmable execution unit that executes geometry shader programs to transform graphics primitives received from primitive assembler 514 as specified by the geometry shader programs. In one embodiment, geometry processing unit 516 is programmed to subdivide a graphics primitive into one or more new graphics primitives and to compute parameters used to rasterize the new graphics primitives.

[0133] In some embodiments, the geometry processing unit 516 may add or delete elements in the geometry stream. The geometry processing unit 516 outputs parameters and vertices specifying new graphics primitives to the primitive assembler 518. The primitive assembler 518 receives the parameters and vertices from the geometry processing unit 516 and constructs the graphics primitives for processing by the viewport scaling, picking, and clipping unit 520. The geometry processing unit 516 reads data stored in the parallel processor memory or the system memory for use in processing the geometry data. The viewport scaling, picking, and clipping unit 520 performs clipping, picking, and viewport scaling, and outputs the processed graphics primitives to the rasterizer 522.

[0134] The rasterizer 522 may perform depth sorting and other depth-based optimizations. The rasterizer 522 also performs scan conversion on new graphics primitives to generate fragments, and outputs those fragments and associated coverage data to the fragment / pixel processing unit 524. The fragment / pixel processing unit 524 is a programmable execution unit configured to execute a fragment shader program or a pixel shader program. The fragment / pixel processing unit 524 transforms fragments or pixels received from the rasterizer 522 as specified by the fragment or pixel shader program. For example, the fragment / pixel processing unit 524 may be programmed to perform operations including but not limited to texture mapping, shading, blending, texture correction, and perspective correction to produce shaded fragments or pixels output to the raster operation unit 526. The fragment / pixel processing unit 524 may read data stored in a parallel processor memory or system memory for use in processing fragment data. The fragment or pixel shader program may be configured to shade at a sample, pixel, tile, or other granularity (depending on the sampling rate configured for the processing unit).

[0135] Raster operations unit 526 is a processing unit that performs raster operations including, but not limited to, stenciling, z-testing, blending, and the like, and outputs pixel data as processed graphics data for storage in graphics memory (e.g., parallel processor memory 222 in FIG. 2 and / or as shown in FIG. 3 ). Figure 1 The raster operations unit 526 may be configured to compress the z or color data written to the memory and to decompress the z or color data read from the memory.

[0136] As described above, many existing graphics systems only maintain architectural state data for use in scheduling resources for workloads, which can limit the system's ability to dynamically adjust the size of computing resources for a given workload. To address these and other issues, the techniques described herein enable a processing system, such as a graphics system, to implement adaptive computing resource sizing on a per-workload basis.

[0137] Figure 6 is a block diagram of an architecture that may implement techniques for implementing efficient multi-context thread distribution according to an example. Figure 6 In some examples, the graphics processing unit 600 architecture 610 is coupled to a plurality of streaming microprocessors (SMs) SM0, SM1, through SM N, indicated by reference numerals 620A, 620B, through 620N. The streaming microprocessors (SMs) may be collectively represented by reference numeral 620.

[0138] The streaming microprocessor (SM) 620 includes a plurality of execution units (EUs), also referred to as cores, identified by reference numeral 622. Figure 6 In the example depicted in , each streaming microprocessor (SM) includes 6 EUs, but it will be appreciated that each streaming microprocessor (SM) 620 may include more or fewer EUs 622. In addition, each streaming microprocessor (SM) 620 may include at least one cache 624.

[0139] According to an embodiment, Fig. 7A and 7B is a flow chart illustrating operations in a method for implementing adaptive compute sizing on a per-workload basis in a data processing system, and Figure 7C is a schematic block diagram of a data set in a method for implementing adaptive computation size on a per-workload basis in a data processing system. In some examples, Figure 7A-7B The operations depicted in the can be implemented as logic executable in one or more controllers. In various examples, the logic can be implemented as logic instructions stored in a memory and executable on a processor (i.e., software). In other examples, the logic can be reduced to programmable circuitry such as in a field programmable gate array (FPGA), or reduced to fixed circuitry in hardware, or a combination thereof.

[0140] See also Figures 7A-7C At operation 710, one or more frames for a workload are received. For example, the one or more frames may be received in GPU 600 for processing and assigned to one or more SMs 620. At operation 715, compute resource parameters for the workload are determined. In some examples, logic executed on GPU 600 may determine a number of execution units 622 to assign to the workload. Alternatively, or in addition, the logic may determine at least one of an operational state (e.g., idle, active) of one or more of the execution units assigned to the workload.

[0141] At operation 720, the computing resource parameters determined in operation 715 are stored in association with context data for the workload. Figure 7C In some examples, computing resource parameters from various EUs 760 are stored in association with workload context data in workload context memory 765. In some examples, workload context memory 765 may be implemented in a local cache, such as cache 624 on SM 620.

[0142] The computing resource parameters stored in a workload can be used to schedule resources for subsequent operations on the workload. Figure 7BAt operation 730, one or more frames for the workload are received. For example, one or more subsequent frames may be received for processing in GPU 600. At operation 735, computing resource parameters for the workload determined in operation 715 and stored in memory in operation 720 are retrieved from workload context memory 765.

[0143] At operation 740, the computing resource parameters retrieved from the workload context memory are used to power up and schedule computing resources for the frame received in operation 730. Figure 7C In some examples, the computing resource parameters retrieved from workload context memory 765 are forwarded to scheduler 770 , which may use the computing resource parameters to schedule computing resources for the frame received in operation 730 .

[0144] At operation 745 , the computing resource parameters stored in the memory may be updated. For example, the computing resource parameters in the workload context memory 765 may be updated to reflect the current state of the computing resource parameters assigned in operation 740 .

[0145] This may be repeated for each new frame received for processing Figure 8 In this way, the computing resource parameters stored in the workload context memory 765 can be dynamically modified to reflect the current resource allocation conditions for the workload. When the workload is completed, the computing resource parameters in the workload context memory 765 can be deleted.

[0146] Thus, the subject matter described herein allows the hardware in a graphics processing system to self-tune resource allocation on a per-workload basis. For example, if a particular workload reflects increased resource consumption over a certain period of time, the scheduler may gradually increase the amount of computing resources dedicated to incoming frames on a real-time basis. The scheduler may monitor one or more performance parameters of frames processed by the graphics processing system. If the performance parameters indicate that too many resources are dedicated to a frame, the scheduler may reduce the resources for the next frame used for the workload. Conversely, if the performance parameters indicate that insufficient resources are dedicated to a frame, the scheduler may increase the resources for the next frame used for the workload.

[0147] Power components

[0148] Figure 8 FIG. 1 is a block diagram of a switching regulator according to an embodiment. Figure 8 One or more switching regulators shown in FIG. 1 may be incorporated into various systems discussed herein to provide power to one or more integrated circuit (IC) chips. Figure 8A single phase of a current-parking switching regulator with a single inductor is discussed, but one or more of the multiple phases of the current-parking switching regulator may be implemented with a split inductor. In addition, a combination of one or more current-parking switching regulators (with or without a split inductor) may be used with one or more conventional power conversion devices to provide power to a load (e.g., logic circuitry 814).

[0149] More specifically, Figure 8 A system 800 is illustrated, which includes a switching regulator (sometimes referred to as a current parking switching regulator). In various embodiments, the current parking switching regulator can be a multi-phase switching regulator. A multi-phase control unit 802 is coupled to a plurality of phases, wherein each phase can include one or more upstream phases 804 and one or more downstream phases 806. As shown, a power supply 808 is coupled to an upstream control logic 810 (which provides a current control mechanism in each upstream phase). More than one upstream control logic can be used in various implementations. Each upstream phase can include an inductor (not shown) that is coupled to a corresponding downstream phase. In an embodiment, the upstream phase can each include one or more inductors. The multi-phase control unit 802 can configure any active upstream control logic 810, for example, to generate current by an inductor coupled between an upstream phase and a downstream phase. The downstream control logic 812 can be configured by the multi-phase control unit 802 to be on, off, or switched to adjust the voltage level at the load (e.g., logic circuit system 814). In turn, downstream control logic 812 may be configured by multi-phase control unit 802 to maintain the voltage level at the load within a range based at least in part on the Vmin (minimum voltage) and Vmax (maximum voltage) values.

[0150] In one embodiment, an inductor (coupled between the downstream phase and the corresponding upstream phase) can be disposed outside of a semiconductor package 816 containing the load 814. Another inductor (not shown) can be disposed inside the package 816, for example, to reduce parasitic capacitance. In one embodiment, the inductor inside the package 816 can be a planar air core inductor coupled to the logic circuit system 814 via one or more switching logics, wherein the one or more switching logics include planar metal-oxide semiconductor field effect transistors (MOSFETs). In addition, in various embodiments, one or more of the components discussed herein (e.g., reference 814) can be disposed inside the package 816. Figure 8 , 9 and / or 10, including, for example, an L3 cache, upstream control logic, and / or downstream control logic) may be provided in a substrate layer (e.g., between semiconductor packages), on an integrated circuit die, or outside of a semiconductor package (e.g., on a printed circuit board (PCB)).

[0151] Fig. 9 is a block diagram of a system 900 including a streaming multiprocessor 902 according to one or more embodiments. The streaming multiprocessor may include 32 single instruction, multithread (SIMT) lanes 904 capable of collectively issuing up to 32 instructions per clock cycle, e.g., one instruction from each of the 32 threads. Depending on the implementation, there may be more or fewer lanes, such as 64, 128, 256, etc. The SIMT lanes 904 may in turn include one or more of: an arithmetic logic unit (ALU) 906, a special function unit (SFU) 908, a memory unit (MEM) 910, and / or a texture unit (TEX) 912.

[0152] In some embodiments, one or more of the ALUs 906 and / or TEX units 912 may be low energy or high capacity, e.g., such as discussed with reference items 920 and 922. For example, the system may map 100% of the register addresses of threads 0-30 to the low energy portion, and 100% of the register addresses of threads 31-127 to the high capacity portion. As another example, the system may map 20% of the registers of each thread to the low energy portion, and 80% of the registers of each thread to the high capacity portion. In addition, the system may determine the number of entries allocated to each thread based on runtime information.

[0153] like Fig. 9 , the streaming multiprocessor 902 also includes a register file 914, a scheduler logic 916 (e.g., for scheduling threads or thread groups, or both), and a shared memory 918, such as a local scratch storage device. As discussed herein, a "thread group" refers to a plurality of threads grouped in an ordered (e.g., sequential or continuous) thread index. In general, a register file refers to an array of registers accessed by components of a processor (including a graphics processor) such as those discussed herein. The register file 914 includes a low-energy portion or structure 920 and a high-capacity portion or structure 922. The streaming multiprocessor 902 can be configured to address the register file 914 using a single logical namespace for both the low-energy portion and the high-capacity portion.

[0154] In some embodiments, the system may include multiple physical registers that can be shared by threads running simultaneously on the system. This allows the system to use a single namespace to implement a flexible register mapping scheme. The compiler can then assign register live ranges to register addresses, and the compiler can use a register allocation mechanism to minimize or reduce the number of registers used by each thread. In an embodiment, multiple live ranges can be assigned to the same register address as long as the live ranges do not overlap. This allows, for example, to determine how many entries each thread will be allocated in the low-energy part and the high-capacity part at runtime and after the instruction has been compiled. For example, the system may map 100% of the register addresses of threads 0-30 to the low-energy part, and 100% of the register addresses of threads 31-127 to the high-capacity part. As another example, the system may map 20% of the registers of each thread to the low-energy part, and map 80% of the registers of each thread to the high-capacity part. The system may determine the number of entries allocated to each thread based on runtime information, such as the number of thread groups being executed, and the marginal benefits of starting more thread groups or allocating more space in the low-energy part to a smaller number of thread groups.

[0155] Fig.10 A block diagram of a parallel processing system 1000 is illustrated according to one embodiment. The system 1000 includes a parallel processing (previously presented) subsystem 1002, which in turn includes one or more parallel processing units (PPUs) PPU-0 through PPU-P. Each PPU is coupled to a local parallel processing (PP) memory (e.g., coupled to MEM-0 through MEM-P, respectively). In some embodiments, the PP subsystem system 1002 may include P number of PPUs. PPU-0 1004 and parallel processing memory 1006 may be implemented using one or more integrated circuit devices such as programmable processors, application specific integrated circuits (ASICs), or memory devices.

[0156] refer to Fig.10 , several optional switches or connections 1007 that can be used to manage power in system 1000 are shown. Although several switches 1007 are shown, embodiments are not limited to the switches specifically shown, and more or fewer switches may be utilized depending on the implementation. These connections / switches 1007 can be used for clock gating or general power gating. Thus, item 1007 can include one or more of power transistors, on-die switches, power plane connections, etc. In an embodiment, before power is turned off to a portion of system 1000 via switch / connection 1007, logic (e.g., a microcontroller, a digital signal processor, firmware, etc.) can ensure that the results of the operation are committed (e.g., to memory) or completed to maintain correctness.

[0157] In addition, in some embodiments, one or more of the PPUs in the parallel processing subsystem 1002 is a graphics processor with a rendering pipeline that can be configured to perform various tasks, such as those discussed in other figures herein. Graphics information / data can be communicated with other components of the computing system (including components of the system 1000) via a memory bridge 1008. Data can be transmitted via a shared bus and / or one or more interconnects 1010 (including, for example, one or more direct or point-to-point links). PPU-0 1004 can access its local parallel processing memory 1014 (which can be used as a graphics memory including, for example, a frame buffer) to store and update pixel data, deliver pixel data to a display device (such as those discussed herein), etc. In some embodiments, the parallel processing subsystem 1002 can include one or more PPUs operating as graphics processors, and one or more other PPUs operating to perform general-purpose calculations. The PPUs can be the same or different, and each PPU can have access to its own dedicated parallel processing memory device, a non-dedicated parallel processing memory device, or a shared memory device or cache.

[0158] In an embodiment, the operations performed by the PPUs may be controlled by another processor (or one of the PPUs), generally referred to as a main processor or processor core. In one embodiment, the main processor / core may write a command stream for each PPU to a push buffer in various locations, such as main system memory, cache, or other memory such as those discussed with reference to other figures herein. The written commands may then be read by each PPU and executed asynchronously with respect to the operations of the main processor / core.

[0159] In addition, if Fig.10 As shown in FIG. 1 , PPU-0 includes front-end logic 1020, which may include an input / output (I / O or IO) unit (e.g., to communicate with other components of system 1000 through memory bridge 1008) and / or a host interface (e.g., which receives commands associated with processing tasks). Front-end 1020 may receive commands read by the host interface (e.g., from a push buffer). Front-end 1020 then provides the command to a work scheduling unit 1022, which schedules and distributes the operation / task associated with the command to a processing cluster array or arithmetic subsystem 1024 for execution.

[0160] like Fig.10As shown in , the processing cluster array 1024 may include one or more general processing cluster (GPC) units (e.g., GPC-0 1026, GPC-1 1028 to GPC-M 1030). Each GPC may be capable of executing a large number (e.g., hundreds or thousands) of threads simultaneously, where each thread is an instance of a program. In various applications, different GPCs may be allocated for processing different types of programs or for performing different types of calculations. For example, in a graphics application, a first group of GPCs (e.g., including one or more GPC units) may be allocated to perform tessellation operations and generate primitive topology for patches, and a second group of GPCs (e.g., including one or more GPC units) may be allocated to perform tessellation shading to evaluate patch parameters of primitive topology and determine vertex positions and other per-vertex attributes. The allocation of GPCs may vary depending on the workload that occurs due to each type of program or calculation.

[0161] In addition, the processing tasks assigned by the work scheduling unit 1022 may contain indices of data to be processed, such as surface / patch data, primitive data, vertex data, pixel data, and / or state parameters and commands defining how the data is to be processed (e.g., what program to execute). The work scheduling unit 1022 may be configured to obtain an index corresponding to the task, or may receive the index from the front end 1020. The front end 1020 may also ensure that the GPC is configured to a valid state before initiating the processing specified by the push buffer.

[0162] In one embodiment, communication path 1012 is a peripheral component interface (PCI) Express (or PCI-e) link in which a dedicated lane can be allocated to each PPU. Other communication paths may also be used. For example, commands related to processing tasks may be directed to host interface 1018, while commands related to memory operations (e.g., reading from or writing to parallel processing memory 1014) may be directed to memory crossbar unit 1032.

[0163] In some embodiments, parallel processing subsystem 1002 may be implemented as a plug-in card that plugs into an expansion slot of a computer system or server (such as a blade server). In other embodiments, the PPU may be integrated on a single chip with a bus bridge such as memory bridge 1008, an I / O bridge, etc. In still other embodiments, some or all components of the PPU may be integrated on a single integrated circuit chip with one or more other processor cores, memory devices, caches, etc.

[0164] Furthermore, one of the main issues with today's modern processors is that they have reached their clock rate limits at around 4GHz. At this point, they simply generate too much heat for current technology and require special and expensive cooling solutions. This is because as we increase the clock rate, the power consumption goes up. In fact, if you fix the voltage, the power consumption of a CPU is approximately the cube of its clock rate. To make this even worse, as you increase the heat generated by the CPU, for the same clock rate, the power consumption also increases due to the properties of silicon. This conversion of power to heat is a complete waste of energy. This increasingly inefficient use of power eventually means that you are not able to adequately power or cool the processor, and you reach the thermal limit of the device or its housing, the so-called power wall.

[0165] Faced with the inability to increase clock rates, processor manufacturers have had to come up with another strategy in order to make ever faster processors. Rather than continually trying to increase CPU clock rates and / or extract more instructions per clock through instruction-level parallelism, they have been forced to take the route of adding more cores to the processor.

[0166] Furthermore, power usage is an important consideration when designing a machine that is constantly running. Often, the cost of operating a supercomputer in just a few years can equal the cost of installing it in the first place. Of course, the cost of operating such a machine over the life of such a machine will easily exceed the original installation cost. Power usage comes from the components themselves, but also from the cooling necessary to allow such a computer to operate. Even a high-end workstation with four GPUs requires some planning on how to keep it cool. Unless you live in a cold climate and can banish your computer to the cold, it will do a good job of heating up your office. Put multiple of these machines into a room, and the air temperature in that room will very quickly begin to rise to rather unacceptable levels.

[0167] Therefore, a lot of power is spent on installing air conditioning systems to ensure that the computers stay cool and can run without errors. This is especially true in the summer when temperatures can reach 85F / 30C or higher. Running air conditioning is expensive. Significant thought should be given to how to best cool such systems and whether the heat energy can be reused in some way. In this way, liquid cooling systems are very effective because the liquid can be circulated through the heat exchanger and into the conventional heating system without any chance of the two liquids ever mixing. With the ever-increasing cost of natural resources, and the increasing pressure on companies to be seen as green, it is no longer economically or socially acceptable to simply pump heat out of the windows.

[0168] Liquid cooling systems offer interesting options in terms of recycling waste heat energy. While air cooling systems can only be used to heat the immediate area where it is located, the heat from the liquid-based coolant can be pumped elsewhere. By using a heat exchanger, conventional water can be used to cool the coolant. This can then be pumped into a heating system or even used to heat an outdoor swimming pool or other large body of water. In situations where multiple such systems are installed (such as in a corporate or university computer center), it can make sense to use this waste heat energy to reduce heating bills elsewhere in the organization.

[0169] Many supercomputer installations site themselves precisely next to major rivers because they require a ready supply of cold water. Others use large cooling towers to dissipate the waste heat energy. Neither solution is particularly environmentally friendly. Having already paid for the energy, there is no point in simply throwing it away when it can so easily be used for heating. When considering power usage, we must also remember that programming actually plays a very important role in power consumption. In terms of power, the most expensive operations are moving data onto and off the chip. Therefore, simply making efficient use of registers and shared memory within the device greatly reduces power usage. If you also consider that the total execution time of a well-written program is much less than that of a poorly written program, you can see that rewriting old programs to take advantage of new features such as larger shared memory can reduce operating costs even in large data centers.

[0170] refer to Fig.10 , the memory interface 1014 includes N partition units (e.g., unit-0 1034, unit-1 1036 to unit-N 1038), each of which is directly coupled to a corresponding portion of the parallel processing memory 1006 (e.g., Mem-0 1040, Mem-1 1042 to Mem-N 1044). The number of partition units can generally be equal to the number of previously presented memories (or N as shown). The previously presented memories can be implemented using volatile memories such as dynamic random access memories (DRAM) or other types of volatile memories such as those discussed herein. In other embodiments, the number of partition units may not be equal to the number of memory devices. Graphics data (such as render targets, frame buffers, or texture maps) can be stored across previously presented memory devices, allowing partition units to write portions of the graphics data in parallel to efficiently use the available bandwidth of the parallel processing memory 1006.

[0171] In addition, any of the GPCs can process data to be written to any partition unit within the parallel processing memory. The crossbar unit 1032 can be implemented as an interconnect that is configured to route the output of each GPC to the input of any partition unit or to another GPC for further processing. Therefore, GPCs 1026 to 1030 can communicate with the memory interface 1014 through the crossbar unit 1032 to read from or write to various other (or external) memory devices. As shown, the crossbar unit 1032 can communicate directly with the front end 1020, and has a coupling (direct or indirect) to the local memory 1006 to allow processing cores within different GPCs to communicate with system memory and / or other memories that are not local to the PPU. In addition, the crossbar unit 1032 can utilize virtual channels to organize traffic flows between GPCs and partition units.

[0172] System Overview

[0173] Fig.11 1 is a block diagram of a processing system 1100 according to an embodiment. In various embodiments, the system 1100 includes one or more processors 1102 and one or more graphics processors 1108, and may be a single processor desktop system, a multi-processor workstation system, or a server system with a large number of processors 1102 or processor cores 1107. In one embodiment, the system 1100 is a processing platform incorporated within a system-on-chip (SoC) integrated circuit for use in a mobile device, a handheld device, or an embedded device.

[0174] Embodiments of system 1100 may include a server-based game platform, a game console, including a game and media console, a mobile game console, a handheld game console or an online game console, or be incorporated into them. In some embodiments, system 1100 is a mobile phone, a smart phone, a tablet computing device or a mobile Internet device. Data processing system 1100 may also include a wearable device (such as a smart watch wearable device, a smart glasses device, an augmented reality device or a virtual reality device), coupled with the wearable device, or integrated into the wearable device. In some embodiments, data processing system 1100 is a television or set-top box device having one or more processors 1102 and a graphical interface generated by one or more graphics processors 1108.

[0175] In some embodiments, each of the one or more processors 1102 includes one or more processor cores 1107 for processing instructions, which, when executed, perform operations for system and user software. In some embodiments, each of the one or more processor cores 1107 is configured to process a specific instruction set 1109. In some embodiments, the instruction set 1109 can facilitate complex instruction set computing (CISC), reduced instruction set computing (RISC), or computing via very long instruction words (VLIW). Multiple processor cores 1107 can each process different instruction sets 1109, and the instruction set 1109 can include instructions for facilitating the simulation of other instruction sets. The processor core 1107 can also include other processing devices, such as a digital signal processor (DSP).

[0176] In some embodiments, the processor 1102 includes a cache memory 1104. Depending on the architecture, the processor 1102 may have a single internal cache or multiple internal cache levels. In some embodiments, the cache memory is shared between various components of the processor 1102. In some embodiments, the processor 1102 also uses an external cache (e.g., a level 3 (L3) cache or a last level cache (LLC)) (not shown), which can be shared between the processor cores 1107 using known cache coherence techniques. A register file 1106 is additionally included in the processor 1102, which 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 1102.

[0177] In some embodiments, the processor 1102 is coupled to a processor bus 1110 to transmit communication signals, such as address, data, or control signals, between the processor 1102 and other components in the system 1100. In one embodiment, the system 1100 uses an exemplary 'hub' system architecture, including a memory controller hub 1116 and an input-output (I / O) controller hub 1130. The memory controller hub 1116 facilitates communication between memory devices and other components of the system 1100, while the I / O controller hub (ICH) 1130 provides connections to I / O devices via a local I / O bus. In one embodiment, the logic of the memory controller hub 1116 is integrated within the processor.

[0178] The memory device 1120 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 having suitable properties for use as process memory. In one embodiment, the memory device 1120 may operate as system memory for the system 1100 to store data 1122 and instructions 1121 for use when the one or more processors 1102 execute applications or processes. The memory controller hub 1116 is also coupled to an optional external graphics processor 1112, which may communicate with the one or more graphics processors 1108 in the processor 1102 to perform graphics and media operations.

[0179] In some embodiments, the ICH 1130 enables peripheral devices to connect to the memory device 1120 and the processor 1102 via a high-speed I / O bus. The I / O peripheral devices include, but are not limited to, an audio controller 1146, a firmware interface 1128, a wireless transceiver 1126 (e.g., Wi-Fi, Bluetooth), a data storage device 1124 (e.g., a hard drive, flash memory, etc.), and a traditional I / O controller 1140 for coupling traditional (e.g., Personal System 2 (PS / 2)) devices to the system. One or more Universal Serial Bus (USB) controllers 1142 connect input devices, such as a keyboard and mouse 1144 combination. A network controller 1134 may also be coupled to the ICH 1130. In some embodiments, a high-performance network controller (not shown) is coupled to the processor bus 1110. It will be appreciated that the illustrated system 1100 is exemplary and not limiting, as other types of data processing systems configured differently may also be used. For example, the I / O controller hub 1130 may be integrated within the one or more processors 1102 , or the memory controller hub 1116 and the I / O controller hub 1130 may be integrated into a discrete external graphics processor (such as the external graphics processor 1112 ).

[0180] Fig.12 is a block diagram of an embodiment of a processor 1200 having one or more processor cores 1202A- 1202N, an integrated memory controller 1214 , and an integrated graphics processor 1208 . Fig.12Those elements having the same reference numbers (or names) as elements of any other figure in this document may operate or function in any manner similar to that described elsewhere in this document, but are not limited to such. The processor 1200 may include additional cores up to and including the additional core 1202N represented by the dashed box. Each of the processor cores 1202A-1202N includes one or more internal cache units 1204A-1204N. In some embodiments, each processor core also has access to one or more shared cache units 1206.

[0181] Internal cache units 1204A-1204N and shared cache unit 1206 represent a cache memory hierarchy within processor 1200. 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 level 2 (L2), level 3 (L3), level 4 (L4), or other levels of cache, where the highest level of cache before external memory is classified as LLC. In some embodiments, cache coherency logic maintains coherency between the various cache units 1206 and 1204A-1204N.

[0182] In some embodiments, the processor 1200 may also include a set of one or more bus controller units 1216 and a system agent core 1210. The one or more bus controller units 1216 manage a set of peripheral buses, such as one or more peripheral component interconnect buses (e.g., PCI, PCI Express). The system agent core 1210 provides management functionality for various processor components. In some embodiments, the system agent core 1210 includes one or more integrated memory controllers 1214, which are used to manage access to various external memory devices (not shown).

[0183] In some embodiments, one or more of the processor cores 1202A-1202N include support for simultaneous multithreading. In such embodiments, the system agent core 1210 includes components for coordinating and operating the cores 1202A-1202N during multithreaded processing. The system agent core 1210 may additionally include a power control unit (PCU) that includes logic and components for regulating the power state of the processor cores 1202A-1202N and the graphics processor 1208.

[0184] In some embodiments, the processor 1200 further includes a graphics processor 1208 for performing graphics processing operations. In some embodiments, the graphics processor 1208 is coupled to a set of shared cache units 1206 and a system agent core 1210, the system agent core 1210 including the one or more integrated memory controllers 1214. In some embodiments, a display controller 1211 is coupled to the graphics processor 1208 to drive the graphics processor output to one or more coupled displays. In some embodiments, the display controller 1211 can be a separate module coupled to the graphics processor via at least one interconnect, or can be integrated within the graphics processor 1208 or the system agent core 1210.

[0185] In some embodiments, a ring-based interconnect unit 1212 is used to couple the internal components of the processor 1200. However, alternative interconnect units may be used, such as point-to-point interconnects, switched interconnects, or other technologies, including those well known in the art. In some embodiments, the graphics processor 1208 is coupled to the ring interconnect 1212 via an I / O link 1213.

[0186] Exemplary I / O links 1213 represent at least one of a variety of I / O interconnects, including an on-package I / O interconnect that facilitates communication between various processor components and a high-performance embedded memory module 1218, such as an eDRAM module. In some embodiments, each of processor cores 1202A-1202N and graphics processor 1208 use embedded memory module 1218 as a shared last-level cache.

[0187] In some embodiments, the processor cores 1202A-1202N are homogeneous cores that execute the same instruction set architecture. In another embodiment, the processor cores 1202A-1202N are heterogeneous in terms of instruction set architecture (ISA), wherein one or more of the processor cores 1202A-1202N execute a first instruction set, and at least one of the other cores executes a different instruction set or a subset of the first instruction set. In one embodiment, the processor cores 1202A-1202N are homogeneous in terms of microarchitecture, wherein one or more cores with relatively high power consumption are coupled with one or more power cores with lower power consumption. In addition, the processor 1200 may be implemented on one or more chips or as a SoC integrated circuit having the illustrated components in addition to other components.

[0188] Fig.131 is a block diagram of a graphics processor 1300, which may be a discrete graphics processing unit or may be a graphics processor integrated with multiple processing cores. In some embodiments, the graphics processor communicates via a memory-mapped I / O interface to registers on the graphics processor and using commands placed into processor memory. In some embodiments, the graphics processor 1300 includes a memory interface 1314 for accessing memory. The memory interface 1314 may be an interface to local memory, one or more internal caches, one or more shared external caches, and / or to system memory.

[0189] In some embodiments, the graphics processor 1300 also includes a display controller 1302, which is used to drive display output data to a display device 1320. The display controller 1302 includes hardware for one or more overlapping planes of the display and the composition of multiple layers of video or user interface elements. In some embodiments, the graphics processor 1300 includes a video codec engine 1306 for encoding, decoding, or transcoding 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), and Society of Motion Picture & Television Engineers (SMPTE) 421M / VC-1 and Joint Photographic Experts Group (JPEG) formats (such as JPEG, and Motion JPEG (MJPEG) formats).

[0190] In some embodiments, graphics processor 1300 includes a block image transfer (BLIT) engine 1304 for performing two-dimensional (2D) rasterizer operations including, for example, bit boundary block transfers. However, in one embodiment, 2D graphics operations are performed using one or more components of a graphics processing engine (GPE) 1310. In some embodiments, GPE 1310 is a compute engine for performing graphics operations including three-dimensional (3D) graphics operations and media operations.

[0191] In some embodiments, GPE 1310 includes a 3D pipeline 1312 for performing 3D operations, such as rendering three-dimensional images and scenes using processing functions that operate on 3D primitive shapes (e.g., rectangles, triangles, etc.). 3D pipeline 1312 includes programmable and fixed functional elements that perform various tasks within the elements and / or spawn execution threads to 3D / media subsystem 1315. While 3D pipeline 1312 can be used to perform media operations, embodiments of GPE 1310 also include a media pipeline 1316 that is particularly used to perform media operations, such as video post-processing and image enhancement.

[0192] In some embodiments, the media pipeline 1316 includes fixed-function or programmable logic units to perform one or more specialized media operations, such as video decoding acceleration, video deinterlacing, and video encoding acceleration, instead of, or on behalf of the video codec engine 1306. In some embodiments, the media pipeline 1316 additionally includes a thread spawning unit to spawn threads for execution on the 3D / media subsystem 1315. The spawned threads perform calculations for the media operations on one or more graphics execution units included in the 3D / media subsystem 1315.

[0193] In some embodiments, the 3D / media subsystem 1315 includes logic for executing threads spawned by the 3D pipeline 1312 and the media pipeline 1316. In one embodiment, the pipeline sends thread execution requests to the 3D / media subsystem 1315, which includes thread dispatch logic for arbitrating the various requests and dispatching the various requests to available thread execution resources. The execution resources include an array of graphics execution units used to process 3D and media threads. In some embodiments, the 3D / media subsystem 1315 includes one or more internal caches for thread instructions and data. In some embodiments, the subsystem also includes shared memory (including registers and addressable memory) to share data between threads and store output data.

[0194] Graphics processing engine

[0195] Fig.14 is a block diagram of a graphics processing engine 1410 of a graphics processor in accordance with some embodiments. In one embodiment, the graphics processing engine (GPE) 1410 is Fig.13 One version of the GPE 1310 is shown. Fig.14Elements having the same reference number (or name) as elements of any other figure in this document may operate or function in any manner similar to that described elsewhere in this document, but are not limited to such. Fig.13 1410. The 3D pipeline 1312 and the media pipeline 1316 of the GPE 1410. The media pipeline 1316 is optional in some embodiments of the GPE 1410 and may not be explicitly included in the GPE 1410. For example and in at least one embodiment, separate media and / or image processors are coupled to the GPE 1410.

[0196] In some embodiments, GPE 1410 is coupled to or includes a command stream transmitter 1403, which provides a command stream to 3D pipeline 1312 and / or media pipeline 1316. In some embodiments, command stream transmitter 1403 is coupled to a memory, which may be a system memory, or one or more of an internal cache memory and a shared cache memory. In some embodiments, command stream transmitter 1403 receives commands from the memory and sends the commands to 3D pipeline 1312 and / or media pipeline 1316. The commands are instructions obtained from a ring buffer storing commands for 3D pipeline 1312 and media pipeline 1316. In one embodiment, the ring buffer may further include a batch command buffer storing multiple batches of multiple commands. Commands for 3D pipeline 1312 may also include references to data stored in memory, such as, but not limited to, vertex and geometry data for 3D pipeline 1312 and / or image data and memory objects for media pipeline 1316. The 3D pipeline 1312 and the media pipeline 1316 process commands and data by performing operations via logic within the respective pipelines or by dispatching one or more execution threads to the graphics core array 1414 .

[0197] In various embodiments, the 3D pipeline 1312 can execute 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 1414. The graphics core array 1414 provides a unified execution resource block. The multi-purpose execution logic (e.g., execution unit) within the graphics core array 1414 includes support for various 3D API shader languages ​​and can execute multiple simultaneous execution threads associated with multiple shaders.

[0198] In some embodiments, graphics core array 1414 also includes execution logic for performing media functions such as video and / or image processing. In one embodiment, in addition to graphics processing operations, the execution unit also includes general logic that can be programmed to perform parallel general computing operations. The general logic can be connected to Fig.11 Processor core 1107 or Fig.12 The general logic within cores 1202A-1202N in the performs processing operations in parallel or in combination.

[0199] Output data generated by threads executing on graphics core array 1414 can output data to memory in unified return buffer (URB) 1418. URB 1418 can store data for multiple threads. In some embodiments, URB 1418 can be used to send data between different threads executing on graphics core array 1414. In some embodiments, URB 1418 can also be used for synchronization between threads on the graphics core array and fixed function logic within shared function logic 1420.

[0200] In some embodiments, graphics core array 1414 is scalable such that the array contains a variable number of graphics cores, each with a variable number of execution units based on the target power and performance level of GPE 1410. In one embodiment, execution resources are dynamically scalable such that execution resources can be enabled or disabled as needed.

[0201] The graphics core array 1414 is coupled to shared function logic 1420, which includes a plurality of resources shared between the graphics cores in the graphics core array. The shared functions within the shared function logic 1420 are hardware logic units that provide specialized supplemental functionality to the graphics core array 1414. In various embodiments, the shared function logic 1420 includes, but is not limited to, sampler 1421, math 1422, and inter-thread communication (ITC) 1423 logic. In addition, some embodiments implement one or more caches 1425 within the shared function logic 1420. The shared functions are implemented in situations where the demand for a given specialized function is insufficient to be included within the graphics core array 1414. Instead, a single instantiation of that specialized function is implemented as an independent entity in the shared function logic 1420 and shared between execution resources within the graphics core array 1414. The exact set of functions shared between and included within the graphics core array 1414 varies between embodiments.

[0202] Fig.15 is a block diagram of another embodiment of a graphics processor 1500 . Fig.15Elements having the same reference number (or name) as elements of any other figure herein may operate or function in any manner similar to that described elsewhere herein, but are not limited to such.

[0203] In some embodiments, graphics processor 1500 includes ring interconnect 1502, pipeline front end 1504, media engine 1537, and graphics cores 1580A-1580N. In some embodiments, ring interconnect 1502 couples the graphics processor to other processing units, including other graphics processors or one or more general-purpose processor cores. In some embodiments, the graphics processor is one of many processors integrated into a multi-core processing system.

[0204] In some embodiments, the graphics processor 1500 receives batches of commands via a ring interconnect 1502. Incoming commands are interpreted by a command streamer 1503 in a pipeline front end 1504. In some embodiments, the graphics processor 1500 includes scalable execution logic for performing 3D geometry processing and media processing via graphics cores 1580A-1580N. For 3D geometry processing commands, the command streamer 1503 supplies the commands to a geometry pipeline 1536. For at least some media processing commands, the command streamer 1503 supplies the commands to a video front end 1534, which is coupled to a media engine 1537. In some embodiments, the media engine 1537 includes a video quality engine (VQE) 1530 for video and image post-processing and a multi-format encoding / decoding (MFX) 1533 engine for providing hardware accelerated media data encoding and decoding. In some embodiments, the geometry pipeline 1536 and the media engine 1537 each generate execution threads for thread execution resources provided by at least one graphics core 1580A.

[0205] In some embodiments, the graphics processor 1500 includes scalable thread execution resources featuring modular cores 1580A-1580N (sometimes referred to as core slices), each of which has multiple sub-cores 1550A-550N, 1560A-1560N (sometimes referred to as core sub-slices). In some embodiments, the graphics processor 1500 can have any number of graphics cores 1580A to 1580N. In some embodiments, the graphics processor 1500 includes a graphics core 1580A, which has at least a first sub-core 1550A and a second sub-core 1560A. In other embodiments, the graphics processor is a low-power processor with a single sub-core (e.g., 1550A). In some embodiments, the graphics processor 1500 includes multiple graphics cores 1580A-1580N, each of which includes a group of first sub-cores 1550A-1550N and a group of second sub-cores 1560A-1560N. Each of the first sub-cores 1550A-1550N includes at least a first group of execution units 1552A-1552N and a media / texture sampler 1554A-1554N. Each of the second sub-cores 1560A-1560N includes at least a second group of execution units 1562A-1562N and a sampler 1564A-1564N. In some embodiments, each sub-core 1550A-1550N, 1560A-1560N shares a group of shared resources 1570A-1570N. In some embodiments, the shared resources include a shared cache memory and a pixel operation logic. Other shared resources may also be included in various embodiments of the graphics processor.

[0206] Execution Unit

[0207] Fig.16 Illustrated is thread execution logic 1600 comprising an array of processing elements employed in some embodiments of a GPE. Fig.16 Elements having the same reference number (or name) as elements of any other figure herein may operate or function in any manner similar to that described elsewhere herein, but are not limited to such.

[0208] In some embodiments, thread execution logic 1600 includes a shader processor 1602, a thread dispatcher 1604, an instruction cache 1606, a scalable execution unit array including a plurality of execution units 1608A-1608N, a sampler 1610, a data cache 1612, and a data port 1614. In one embodiment, the scalable execution unit array can be dynamically scaled by enabling or disabling one or more execution units (e.g., any of execution units 1608A, 1608B, 1608C, 1608D to 1608N-1 and 1608N) based on the computational requirements of the workload. In one embodiment, the included components are interconnected via an interconnect structure that links to each of the components. In some embodiments, thread execution logic 1600 includes one or more connections to a memory (such as a system memory or cache memory) through one or more of the instruction cache 1606, the data port 1614, the sampler 1610, and the execution units 1608A-1608N. In some embodiments, each execution unit (e.g., 1608A) is an independently programmable general-purpose computing 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 1608A-1608N is scalable to include any number of individual execution units.

[0209] In some embodiments, execution units 1608A-1608N are primarily used to execute shader programs. Shader processor 1602 can process various shader programs and dispatch execution threads associated with the shader programs via thread dispatcher 1604. In one embodiment, thread dispatcher includes logic for arbitrating thread initiation requests from graphics and media pipelines and instantiating the requested threads on one or more execution units in execution units 1608A-1608N. For example, the geometry pipeline (e.g., Fig.15 1536) can dispatch vertex, tessellation or geometry shaders to thread execution logic 1600 ( Fig.16 ) for processing. In some embodiments, thread dispatcher 1604 may also handle runtime thread spawning requests from executing shader programs.

[0210] In some embodiments, execution units 1608A-1608N support an instruction set that includes native support for many standard 3D graphics shader instructions, allowing shader programs from graphics libraries (e.g., Direct 3D and OpenGL) to be executed with minimal conversion. 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 processing (e.g., compute and media shaders). Each of the execution units 1608A-1608N has multi-issue single instruction multiple data (SIMD) execution capabilities, and multi-threaded operations enable an efficient execution environment in the face of high latency memory accesses. Each hardware thread within each execution unit has a dedicated high-bandwidth register file and associated independent thread state. Execution is multiple-issue per clock for pipelines with integer, single and double precision floating point operations, SIMD branching capabilities, logical operations, transcendental operations, and other miscellaneous operations capabilities. While waiting for data from memory or one of the shared functions, dependency logic within execution units 1608A-1608N puts the waiting thread to sleep until the requested data has 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, an execution unit may execute operations of a pixel shader, a fragment shader, or another type of shader program that includes a different vertex shader.

[0211] Each of the execution units 1608A-1608N operates on an array of data elements. The number of data elements is the "execution size," or number of lanes for an instruction. An execution lane is a logical unit that performs operations for data element access, masking, and flow control within an instruction. The number of lanes may be independent of the number of physical arithmetic logic units (ALUs) or floating point units (FPUs) for a particular graphics processor. In some embodiments, the execution units 1608A-1608N support integer and floating point data types.

[0212] The execution unit instruction set includes SIMD instructions. Various data elements can be stored in registers as compressed data types, and the execution unit will process various elements based on the data size of the element. For example, when a 256-bit wide vector is operated, the 256-bit vector is stored in a register and the execution unit operates on the vector according to four separate 64-bit compressed data elements (data elements of quadruple word length (QW) size), eight separate 32-bit compressed data elements (data elements of double word (DW) size), sixteen separate 16-bit compressed data elements (data elements of word (W) size), or thirty-two separate 8-bit data elements (data elements of byte (B) size). However, different vector widths and register sizes are possible.

[0213] One or more internal instruction caches (e.g., 1606) are included in thread execution logic 1600 to cache thread instructions for execution units. In some embodiments, one or more data caches (e.g., 1612) are included to cache thread data during thread execution. In some embodiments, sampler 1610 is included to provide texture sampling for 3D operations and media sampling for media operations. In some embodiments, sampler 1610 includes specialized texture or media sampling functionality to process texture or media data during the sampling process before providing the sampled data to the execution unit.

[0214] During execution, the graphics and media pipeline sends thread initiation requests to the thread execution logic 1600 via thread mass generation and dispatch logic. Once a set of geometric objects has been processed and rasterized into pixel data, the pixel processor logic (e.g., pixel shader logic, fragment shader logic, etc.) within the shader processor 1602 is called to further calculate output information and cause the results to be written to the output surface (e.g., color buffer, depth buffer, stencil printing buffer, etc.). In some embodiments, the pixel shader or fragment shader calculates the values ​​of various vertex attributes to be interpolated across the rasterized objects. In some embodiments, the pixel processor logic within the shader processor 1602 then executes the pixel or fragment shader program supplied by the application programming interface (API). In order to execute the shader program, the shader processor 1602 dispatches the thread to the execution unit (e.g., 1608A) via the thread dispatcher 1604. In some embodiments, the pixel shader 1602 uses the texture sampling logic in the sampler 1610 to access the texture data in the texture map stored in the memory. Arithmetic operations on texture data and input geometry data compute pixel color data for each geometry fragment, or discard one or more pixels from further processing.

[0215] In some embodiments, data port 1614 provides a memory access mechanism for thread execution logic 1600 to output processed data to memory for processing on the graphics processor output pipeline. In some embodiments, data port 1614 includes or is coupled to one or more cache memories (e.g., data cache 1612) that are used to cache data via the data port for memory access.

[0216] Fig.171 is a block diagram illustrating a graphics processor instruction format 1700 according to some embodiments. In one or more embodiments, a graphics processor execution unit supports an instruction set having instructions in multiple formats. Solid line boxes illustrate components that are generally included in execution unit instructions, while dashed lines include components that are optional or included only in a subset of instructions. In some embodiments, the instruction format 1700 described and illustrated are macroinstructions in that they are instructions supplied to the execution unit, as opposed to micro-operations that result from instruction decoding once the instruction is processed.

[0217] In some embodiments, the graphics processor execution unit natively supports instructions in 128-bit instruction format 1710. A 64-bit compressed instruction format 1730 may be used for some instructions based on the selected instruction, instruction options, and number of operands. The native 128-bit instruction format 710 provides access to all instruction options, while some options and operations are restricted to 64-bit format 1730. The native instructions available in 64-bit format 1730 vary by embodiment. In some embodiments, instructions are partially compressed using a set of index values ​​in index field 1713. The execution unit hardware references a set of compression tables based on the index values ​​and uses the compression table output to reconstruct native instructions in 128-bit instruction format 1710.

[0218] For each format, the instruction opcode 1712 defines the operation to be performed by the execution unit. 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 across each color channel, each color channel representing a texture element or a picture element. By default, the execution unit executes each instruction across all data channels of the operand. In some embodiments, the instruction control field 1714 implements control of certain execution options, such as channel selection (e.g., prediction) and data channel sorting (e.g., mixing). For instructions using the 128-bit instruction format 1710, the execution size field 1716 limits the number of data channels that will be executed in parallel. In some embodiments, the execution size field 1716 is not available for use in a 64-bit compressed instruction format 1730.

[0219] Some execution unit instructions have up to three operands, including two source operands - src0 1720, src1 1722 and a destination 1718. In some embodiments, the execution unit supports dual destination instructions, where one of the destinations is implicit. Data manipulation instructions may have a third source operand (e.g., SRC2 1724), where the instruction opcode 1712 determines the number of source operands. The last source operand of an instruction may be an immediate (e.g., hard-coded) value passed with the instruction.

[0220] In some embodiments, the 128-bit instruction format 1710 includes an access / addressing mode field 1726 that specifies, for example, whether direct register addressing mode or indirect register addressing mode is used. When direct register addressing mode is used, the register address of one or more operands is provided directly by bits in the instruction.

[0221] In some embodiments, the 128-bit instruction format 1710 includes an access / addressing mode field 1726, which specifies the addressing mode and / or access mode of the instruction. In one embodiment, the access mode is used to define the data access alignment for the instruction. Some embodiments support access modes that include 16-byte aligned access modes and 1-byte aligned access modes, wherein the byte alignment of the access mode determines the access alignment of the instruction operands. For example, when in the first mode, the instruction can use byte-aligned addressing for source operands and destination operands, and when in the second mode, the instruction can use 16-byte aligned addressing for all source operands and destination operands.

[0222] In one embodiment, the addressing mode portion of the access / addressing mode field 1726 determines whether the instruction uses direct addressing or indirect addressing. When direct register addressing mode is used, the bits in the instruction directly provide the register address of one or more operands. When indirect register addressing mode is used, the register address of one or more operands can be calculated based on the address register value and the address immediate field in the instruction.

[0223] In some embodiments, instructions are grouped based on the opcode 1712 bit field to simplify opcode decoding 1740. For 8-bit opcodes, the 4th, 5th and 6th bits allow the execution unit to determine the type of opcode. The precise opcode grouping shown is exemplary only. In some embodiments, the move and logic opcode group 1742 includes data movement and logic instructions (e.g., move (mov), compare (cmp)). In some embodiments, the move and logic group 1742 shares five most significant bits (MSBs), where the move (mov) instruction takes the form of 0000xxxxb and the logic instruction takes the form of 0001xxxxb. The flow control instruction group 1744 (e.g., call (call), jump (jmp)) includes instructions in the form of 0010xxxxb (e.g., 0x20). The miscellaneous instruction group 1746 includes a mixture of instructions, including synchronization instructions (e.g., wait (wait), send (send)) in the form of 0011xxxxb (e.g., 0x30). The parallel math instruction group 1748 includes component-wise arithmetic instructions (e.g., add, mul) in the form of 0100xxxxb (e.g., 0x40). The parallel math group 1748 performs arithmetic operations in parallel across data lanes. The vector math group 1750 includes arithmetic instructions (e.g., dp4) in the form of 0101xxxxb (e.g., 0x50). The vector math group performs arithmetic on vector operands, such as dot product operations.

[0224] Graphics Pipeline

[0225] Fig.18 is a block diagram of another embodiment of a graphics processor 1800 . Fig.18 Elements having the same reference number (or name) as elements of any other figure herein may operate or function in any manner similar to that described elsewhere herein, but are not limited to such.

[0226] In some embodiments, graphics processor 1800 includes graphics pipeline 1820, media pipeline 1830, display engine 1840, thread execution logic 1850, and rendering output pipeline 1870. In some embodiments, graphics processor 1800 is a graphics processor within a multi-core processing system that includes one or more general-purpose processing cores. The graphics processor is controlled by register writes to one or more control registers (not shown) or via commands issued to graphics processor 1800 through ring interconnect 1802. In some embodiments, ring interconnect 1802 couples graphics processor 1800 to other processing components, such as other graphics processors or general-purpose processors. Commands from ring interconnect 1802 are interpreted by command stream transmitter 1803, which supplies instructions to individual components of graphics pipeline 1820 or media pipeline 1830.

[0227] In some embodiments, command streamer 1803 directs the operation of vertex fetcher 1805, which reads vertex data from memory and executes vertex processing commands provided by command streamer 1803. In some embodiments, vertex fetcher 1805 provides vertex data to vertex shader 1807, which performs coordinate space transformation and lighting operations on each vertex. In some embodiments, vertex fetcher 1805 and vertex shader 1807 execute vertex processing instructions by dispatching execution threads to execution units 1852A-1852B via thread dispatcher 1831.

[0228] In some embodiments, execution units 1852A-1852B are arrays of vector processors with instruction sets for performing graphics and media operations. In some embodiments, execution units 1852A-1852B have an attached L1 cache 1851 that is specific to each array or shared between 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.

[0229] In some embodiments, the graphics pipeline 1820 includes a tessellation component for performing hardware-accelerated tessellation of 3D objects. In some embodiments, the programmable hull shader 811 configures the tessellation operation. The programmable domain shader 817 provides back-end evaluation of the tessellation output. The tessellation 1813 operates at the direction of the hull shader 1811 and includes dedicated logic for generating a set of detailed geometric objects based on a coarse geometric model, which are provided as input to the graphics pipeline 1820. In some embodiments, if tessellation is not used, the tessellation components (e.g., hull shader 1811, tessellation 1813, domain shader 1817) can be bypassed.

[0230] In some embodiments, the complete geometric object may be processed by a geometry shader 1819 via one or more threads dispatched to execution units 1852A-1852B, or may proceed directly to a clipper 1829. In some embodiments, the geometry shader operates on entire geometric objects rather than on vertices or vertex patches as in previous stages of the graphics pipeline. If tessellation is disabled, the geometry shader 1819 receives input from the vertex shader 1807. In some embodiments, the geometry shader 1819 may be programmed by a geometry shader program to perform geometry tessellation when the tessellation unit is disabled.

[0231] Before rasterization, the clipper 1829 processes the vertex data. The clipper 1829 can be a fixed function clipper or a programmable clipper with clipping and geometry shader functions. In some embodiments, the rasterizer and depth test component 1873 in the render output pipeline 1870 dispatches a pixel shader to convert the geometric object into its per-pixel representation. In some embodiments, the pixel shader logic is included in the thread execution logic 1850. In some embodiments, the application can bypass the rasterizer and depth test component 1873 and access the unrasterized vertex data via the stream out unit 1823.

[0232] Graphics processor 1800 has an interconnect bus, interconnect structure, or some other interconnect mechanism that allows data and messages to be passed between the main components of the processor. In some embodiments, execution units 1852A-1852B and associated caches 1851, texture and media samplers 1854, and texture / sampler caches 1858 are interconnected via data ports 1856 to perform memory accesses and communicate with the rendering output pipeline components of the processor. In some embodiments, samplers 1854, caches 1851, 1858, and execution units 1852A-1852B each have a separate memory access path.

[0233] In some embodiments, the rendering output pipeline 1870 includes a rasterizer and depth test component 1873, which converts vertex-based objects into associated pixel-based representations. In some embodiments, the rasterizer logic includes a windower / masker unit for performing fixed-function triangle and line rasterization. An associated rendering cache 1878 and depth cache 1879 are also available in some embodiments. A pixel operation component 1877 performs pixel-based operations on data, however, in some instances, pixel operations associated with 2D operations (e.g., using mixed bit block image transfer) are performed by the 2D engine 1841, or replaced by the display controller 1843 using overlapping display planes at display time. In some embodiments, a shared L3 cache 1875 can be used for all graphics components, allowing data to be shared without using main system memory.

[0234] In some embodiments, the graphics processor media pipeline 1830 includes a media engine 1837 and a video front end 1834. In some embodiments, the video front end 1834 receives pipeline commands from the command streamer 1803. In some embodiments, the media pipeline 1830 includes a separate command streamer. In some embodiments, the video front end 1834 processes the media commands before sending them to the media engine 1837. In some embodiments, the media engine 1837 includes thread spawning functionality for spawning threads for dispatching to the thread execution logic 1850 via the thread dispatcher 1831.

[0235] In some embodiments, the graphics processor 1800 includes a display engine 1840. In some embodiments, the display engine 1840 is external to the processor 1800 and is coupled to the graphics processor via the ring interconnect 1802 or some other interconnect bus or structure. In some embodiments, the display engine 1840 includes a 2D engine 1841 and a display controller 1843. In some embodiments, the display engine 1840 includes dedicated logic that can operate independently of the 3D pipeline. In some embodiments, the display controller 1843 is coupled to a display device (not shown), which can be a system integrated display device (such as in a laptop computer), or an external display device attached via a display device connector.

[0236] In some embodiments, graphics pipeline 1820 and media pipeline 1830 can be configured to perform operations based on multiple graphics and media programming interfaces and are not specific to any application programming interface (API). In some embodiments, the driver software for graphics processor converts API calls specific to specific graphics or media libraries into commands that can be processed by graphics processor. In some embodiments, support is provided for Open Graphics Library (OpenGL), Open Computing Language (OpenCL) and / or Vulkan graphics and computing API all from Khronos Group. In some embodiments, support can also be provided for Direct3D library from Microsoft. In some embodiments, the combination of these libraries can be supported. Support can also be provided for open source computer vision library (OpenCV). If the mapping from the pipeline of future API to the pipeline of graphics processor can be made, the future API with compatible 3D pipeline will also be supported.

[0237] Graphics pipeline programming

[0238] Fig.19A is a block diagram illustrating a graphics processor command format 1900 according to some embodiments. Fig.19B is a block diagram illustrating a graphics processor command sequence 1910 according to an embodiment. Fig.19A The solid-line boxes in illustrate components that are generally included in a graphics command, while the dashed lines include optional components or components that are included only in a subset of the graphics command. Fig.19A The exemplary graphics processor command format 1900 includes a data field for identifying the target client 1902 of the command, a command operation code (opcode) 1904, and command related data 1906. Some commands also include a sub-opcode 1905 and a command size 1908.

[0239] In some embodiments, client 1902 specifies the client unit of the graphics device that processes the command data. In some embodiments, the graphics processor command parser checks the client field of each command to adjust the further processing of the command and routes the command data to the appropriate client unit. In some embodiments, the graphics processor client unit includes a memory interface unit, a rendering unit, a 2D unit, a 3D unit, and a media unit. Each client unit has a corresponding processing pipeline that processes the command. Once the command is received by the client unit, the client unit reads the opcode 1904 and the sub-opcode 1905 (if present) to determine the operation to be performed. The client unit uses the information in the data field 1906 to execute the command. For some commands, an explicit command size 1908 is expected to specify the size of the command. In some embodiments, the command parser automatically determines the size of at least some of the commands in the command based on the command opcode. In some embodiments, the command is aligned via a multiple of a double word.

[0240] Fig.19B An exemplary graphics processor command sequence 1910 is shown in the flowchart in FIG. In some embodiments, software or firmware of a data processing system featuring an embodiment of a graphics processor uses a version of the command sequence shown to establish, execute, and terminate a set of graphics operations. The sample command sequence is shown and described for purposes of example only, as embodiments are not limited to these particular commands or this command sequence. In addition, the commands may be issued as a batch of commands in a command sequence so that the graphics processor will process the sequence of commands at least partially simultaneously.

[0241] In some embodiments, the graphics processor command sequence 1910 may begin with a pipeline dump clear command 1912 to cause any active graphics pipeline to complete currently pending commands for that pipeline. In some embodiments, the 3D pipeline 1922 and the media pipeline 1924 do not operate simultaneously. The pipeline dump clear is performed to cause the active graphics pipeline to complete any pending commands. In response to the pipeline dump clear, the command parser for the graphics processor will suspend command processing until the active drawing engine completes pending operations and the associated read cache is invalid. Optionally, any data marked as 'dirty' in the rendering cache can be dumped to memory. In some embodiments, the pipeline dump clear command 1912 can be used for pipeline synchronization or before placing the graphics processor in a low power state.

[0242] In some embodiments, when a command sequence requires the graphics processor to explicitly switch between pipelines, pipeline select command 1913 is used. In some embodiments, pipeline select command 1913 is only required once within an execution context before issuing pipeline commands, unless the context is to issue commands for both pipelines. In some embodiments, pipeline flush command 1912 is required immediately prior to a pipeline switch via pipeline select command 1913.

[0243] In some embodiments, pipeline control commands 1914 configure the graphics pipeline for operation and are used to program the 3D pipeline 1922 and the media pipeline 124. In some embodiments, pipeline control commands 1914 configure pipeline states for the active pipeline. In one embodiment, pipeline control commands 1914 are used for pipeline synchronization and are used to clear data from one or more cache memories within the active pipeline before processing a batch of commands.

[0244] In some embodiments, return buffer state command 1916 is used to configure a set of return buffers for the corresponding pipeline to write data. Some pipeline operations require the allocation, selection or configuration of one or more return buffers to which the operation writes intermediate data during processing. In some embodiments, the graphics processor also uses one or more return buffers to store output data and perform cross-thread communication. In some embodiments, return buffer state 1916 includes selecting the size and number of return buffers to be used for a set of pipeline operations.

[0245] The remaining commands in the command sequence differ based on the active pipeline for operation. Based on pipeline determination 1920 , the command sequence is suitable for either a 3D pipeline 1922 started with a 3D pipeline state 1930 or a media pipeline 1924 started in a media pipeline state 1940 .

[0246] The commands used to configure the 3D pipeline state 1930 include 3D state setup commands for vertex buffer state, vertex element state, constant color state, depth buffer state, and other state variables to be configured before processing 3D primitive commands. The values ​​of these commands are determined at least in part based on the specific 3D API in use. In some embodiments, the 3D pipeline state 1930 commands can also selectively disable or bypass certain pipeline elements if those elements are not to be used.

[0247] In some embodiments, the 3D primitive 1932 command is used to submit the 3D primitive to be processed by the 3D pipeline. The command and associated parameters passed to the graphics processor via the 3D primitive 1932 command are forwarded to the vertex acquisition function in the graphics pipeline. The vertex acquisition function uses the 3D primitive 1932 command data to generate a vertex data structure. The vertex data structure is stored in one or more return buffers. In some embodiments, the 3D primitive 1932 command is used to perform vertex operations on the 3D primitive via a vertex shader. In order to process the vertex shader, the 3D pipeline 1922 dispatches the shader execution thread to the graphics processor execution unit.

[0248] In some embodiments, the 3D pipeline 1922 is triggered via an execute 1934 command or event. In some embodiments, a register write triggers the command execution. In some embodiments, the execution is triggered via a 'go' or 'kick' command in a command sequence. In one embodiment, a pipeline synchronization command is used to trigger the command execution to clear the command sequence through the graphics pipeline dump. The 3D pipeline will perform geometry processing for 3D primitives. Once the operation is completed, the generated geometric objects are rasterized and the pixel engine shades the generated pixels. For those operations, additional commands for controlling pixel shading and pixel backend operations may also be included.

[0249] In some embodiments, when performing media operations, the graphics processor command sequence 1910 follows the media pipeline 1924 path. Generally, the specific purpose and manner of programming for the media pipeline 1924 depends on the media or computing operations to be performed. During media decoding, specific media decoding operations can be offloaded to the media pipeline. In some embodiments, the media pipeline can also be bypassed, and resources provided by one or more general processing cores can be used to perform media decoding in whole or in part. In one embodiment, the media pipeline also includes elements for general purpose graphics processor unit (GPGPU) operations, where the graphics processor is used to perform SIMD vector operations using compute shader programs that are not explicitly related to rendering graphics primitives.

[0250] In some embodiments, the media pipeline 1924 is configured in a similar manner to the 3D pipeline 1922. A set of commands used to configure the media pipeline state 1940 are dispatched or placed into a command queue prior to the media object commands 1942. In some embodiments, the media pipeline state commands 1940 contain data used to configure the media pipeline elements that will be used to process the media objects. This includes data used to configure the video decoding and video encoding logic within the media pipeline, such as encoding or decoding formats. In some embodiments, the media pipeline state commands 1940 also support the use of one or more pointers to "indirect" state elements that contain a batch of state settings.

[0251] In some embodiments, media object commands 1942 supply pointers to media objects for processing by the media pipeline. The media object contains a memory buffer that contains video data to be processed. In some embodiments, all media pipeline states must be valid before issuing media object commands 1942. Once the pipeline state is configured and media object commands 1942 are queued, media pipeline 1924 is triggered via an execution command 1944 or an equivalent execution event (e.g., a register write). The output from media pipeline 1924 can then be post-processed by operations provided by 3D pipeline 1922 or media pipeline 1924. In some embodiments, GPGPU operations are configured and executed in a manner similar to media operations.

[0252] Graphics software architecture

[0253] Fig. 20 An exemplary graphics software architecture of a data processing system 2000 according to some embodiments is illustrated. In some embodiments, the software architecture includes a 3D graphics application 2010, an operating system 2020, and at least one processor 2030. In some embodiments, processor 2030 includes a graphics processor 2032 and one or more general purpose processor cores 2034. Graphics application 2010 and operating system 2020 are each executed in a system memory 2050 of the data processing system.

[0254] In some embodiments, the 3D graphics application 2010 includes one or more shader programs including shader instructions 2012. The shader language instructions may be in a high-level shader language, such as High Level Shader Language (HLSL) or OpenGL Shader Language (GLSL). The application also includes executable instructions 2014 in a machine language suitable for execution by the general purpose processor core 2034. The application also includes graphics objects 2016 defined by vertex data.

[0255] In some embodiments, operating system 2020 is from Microsoft Corporation Operating system, proprietary UNIX-like operating system, or an open source UNIX-like operating system using a variant of the Linux kernel. Operating system 2020 can support graphics API 2022, such as Direct3D API, OpenGL API or Vulkan API. When Direct3D API is in use, operating system 2020 uses front-end shader compiler 2024 to compile any shader instruction 2012 using HLSL into a lower-level shader language. The compilation can be just-in-time (JIT) compilation, or the application can perform shader precompilation. In some embodiments, during the compilation of 3D graphics application 2010, high-level shaders are compiled into low-level shaders. In some embodiments, shader instructions 2012 are provided in an intermediate form, such as a version of the standard portable intermediate representation (SPIR) used by Vulkan API.

[0256] In some embodiments, the user mode graphics driver 2026 includes a backend shader compiler 2027 to convert shader instructions 2012 into hardware specific representations. When the OpenGL API is in use, the shader instructions 2012 in the GLSL high level language are passed to the user mode graphics driver 2026 for compilation. In some embodiments, the user mode graphics driver 2026 uses the operating system kernel mode functions 2028 to communicate with the kernel mode graphics driver 2029. In some embodiments, the kernel mode graphics driver 2029 communicates with the graphics processor 2032 to dispatch commands and instructions.

[0257] IP Core Implementation

[0258] One or more aspects of at least one embodiment may be implemented by representative code stored on a machine-readable medium, which represents and / or defines logic within an integrated circuit such as a processor. For example, a machine-readable medium may include instructions representing various logics within a processor. When read by a machine, the instructions may enable the machine to manufacture logic for performing the techniques described herein. Such representations (referred to as "IP cores") are reusable units of logic for an integrated circuit, which may be stored on a tangible, machine-readable medium as a hardware model describing the structure of the integrated circuit. The hardware model may be supplied to various consumers or manufacturing facilities that load the hardware model on a manufacturing machine that manufactures the integrated circuit. An integrated circuit may be manufactured so that the circuit performs the operations described in association with any of the embodiments described herein.

[0259] Fig.2121 is a block diagram illustrating an IP core development system 2100 that can be used to manufacture an integrated circuit to perform operations according to an embodiment. The IP core development system 2100 can be used to generate a modular, reusable design that can be incorporated into a larger design or used to build an entire integrated circuit (e.g., a SOC integrated circuit). The design facility 2130 can use a high-level programming language (e.g., C / C++) to generate a software simulation 2110 of the IP core design. The software simulation 2110 can be used to design, test, and verify the behavior of the IP core using a simulation model 2112. The simulation model 2112 can include functional, behavioral, and / or timing simulations. A register transfer level (RTL) design 2115 can then be created or synthesized from the simulation model 2112. The RTL design 2115 is an abstraction of the behavior of an integrated circuit that models the flow of digital signals between hardware registers, which includes associated logic executed using the modeled digital signals. In addition to the RTL design 2115, a lower level design at a logic level or transistor level can also be created, designed, or synthesized. Therefore, the specific details of the initial design and simulation may vary.

[0260] The RTL design 2115 or equivalent can be further synthesized into a hardware model 2120 by the design facility, which can adopt a hardware description language (HDL) or some other representation of physical design data. The HDL can be further simulated or tested to verify the IP core design. The IP core design can be stored using a non-volatile memory 2140 (e.g., a hard disk, a flash memory, or any non-volatile storage medium) for delivery to a third-party manufacturing facility 2165. Alternatively, the IP core design can be transmitted (e.g., via the Internet) via a wired connection 2150 or a wireless connection 2160. The manufacturing facility 2165 can then manufacture an integrated circuit based at least in part on the IP core design. The manufactured integrated circuit can be configured to perform operations in accordance with at least one embodiment described herein.

[0261] Exemplary System-on-Chip Integrated Circuit

[0262] Figure 22-24 An exemplary integrated circuit and associated graphics processor that can be manufactured using one or more IP cores according to various embodiments described herein are illustrated. In addition to what is illustrated, other logic and circuits may also be included, including additional graphics processors / cores, peripheral interface controllers, or general purpose processor cores.

[0263] Fig. 222200, which may be manufactured using one or more IP cores according to an embodiment. The exemplary integrated circuit 2200 includes one or more application processors 2205 (e.g., CPUs), at least one graphics processor 2210, and may additionally include an image processor 2215 and / or a video processor 2220, any of which may be modular IP cores from the same or multiple different design facilities. The integrated circuit 2200 includes peripheral or bus logic, which includes a USB controller 2225, a UART controller 2230, an SPI / SDIO controller 2235, and an I 2 S / I 2 The integrated circuit may include a display device 2245 coupled to one or more of a High Definition Multimedia Interface (HDMI) controller 2250 and a Mobile Industry Processor Interface (MIPI) display interface 2255. Storage may be provided by a flash memory subsystem 2260 including flash memory and a flash memory controller. A memory interface may be provided via a memory controller 2265 for access to SDRAM or SRAM memory devices. Some integrated circuits additionally include an embedded security engine 2270.

[0264] Fig.23 is a block diagram illustrating an exemplary graphics processor 2310 of a system-on-chip integrated circuit that may be manufactured using one or more IP cores according to an embodiment. The graphics processor 2310 may be Fig. 22 A variation of the graphics processor 2210 of FIG. The graphics processor 2310 includes a vertex processor 2305 and one or more fragment processors 2315A-2315N (e.g., 2315A, 2315B, 2315C, 2315D to 2315N-1 and 2315N). The graphics processor 2310 can execute different shader programs via separate logic, so that the vertex processor 2305 is optimized to perform operations for vertex shader programs, while the one or more fragment processors 2315A-2315N perform fragment (e.g., pixel) shading operations for fragment or pixel shader programs. The vertex processor 2305 performs the vertex processing stage of the 3D graphics pipeline and generates primitives and vertex data. The fragment processors 2315A-2315N use the primitives and vertex data generated by the vertex processor 2305 to generate a frame buffer displayed on a display device. In one embodiment, the fragment processors 2315A-2315N are optimized to execute fragment shader programs as provided in the OpenGL API, which can be used to perform similar operations as pixel shader programs as provided in the Direct 3D API.

[0265] The graphics processor 2310 additionally includes one or more memory management units (MMUs) 2320A-2320B, caches 2325A-2325B, and circuit interconnects 2330A-2330B. The one or more MMUs 2320A-2320B are integrated circuits 2310 that include providing virtual to physical address mappings for the vertex processor 2305 and / or the fragment processors 2315A-2315N, which may reference vertex or image / texture data stored in memory in addition to the vertex or image / texture data stored in the one or more caches 2325A-2325B. In one embodiment, the one or more MMUs 2325A-2325B may be synchronized with other MMUs within the system, including those associated with the graphics processor 2310. Fig. 22 One or more MMUs associated with the one or more application processors 2205, image processors 2215, and / or video processors 2220 enable each processor 2205-2220 to participate in a shared or unified virtual memory system. According to an embodiment, the one or more circuit interconnects 2330A-2330B enable the graphics processor 2310 to interface with other IP cores within the SoC via an internal bus of the SoC or via a direct connection.

[0266] Fig.24 is a block diagram illustrating an additional exemplary graphics processor 2410 of a system-on-chip integrated circuit that may be fabricated using one or more IP cores in accordance with an embodiment. The graphics processor 2410 may be Fig. 22 A variant of the graphics processor 2210. The graphics processor 2410 includes Fig.23 The one or more MMUs 2320A-2320B, caches 2325A-2325B, and circuit interconnects 2330A-2330B of the integrated circuit 2300.

[0267] The graphics processor 2410 includes one or more shader cores 2415A-2415N (e.g., 2415A, 2415B, 2415C, 2415D, 2415E, 2415F to 2415N-1 and 2415N) that provide a unified shader core architecture in which a single core or type or core can execute all types of programmable shader code, including shader program code to implement vertex shaders, fragment shaders, and / or compute shaders. The exact number of shader cores present may vary among embodiments and implementations. In addition, the graphics processor 2410 includes an inter-core task manager 2405, which acts as a thread dispatcher for dispatching execution threads to one or more shader cores 2415A-2415N, and a tile unit 2418 for accelerating tile operations for tile-based rendering, in which rendering operations of a scene are subdivided in image space, for example to exploit local spatial consistency within a scene or to optimize use of internal caches.

[0268] This application provides a set of technical solutions, as follows.

[0269] 1. A device comprising:

[0270] Logic comprising at least in part hardware logic to:

[0271] receiving one or more frames for a workload;

[0272] determining one or more computing resource parameters for the workload; and

[0273] The one or more computing resource parameters for the workload are stored in memory in association with workload context data for the workload.

[0274] 2. The apparatus according to technical solution 1, wherein the computing resource parameter comprises at least one of the following: an operating state of one or more execution units assigned to the workload; and

[0275] A power state of one or more execution units assigned to the workload.

[0276] 3. The device according to technical solution 2 further includes logic at least partially including hardware logic, which is used to:

[0277] receiving additional one or more frames for the workload;

[0278] retrieving the one or more computing resource parameters from the memory; and

[0279] A computing resource is scheduled using the computing resource parameters to process the additional one or more frames for the workload.

[0280] 4. The device according to technical solution 4 further includes logic at least partially including hardware logic, which is used to:

[0281] The computing resource parameters in the memory are updated.

[0282] 5. The device according to technical solution 4, wherein the computing resource parameters define a computing resource parameter usage profile for a workload within a predetermined time frame.

[0283] 6. An apparatus according to technical solution 4, wherein the computing resource parameters define a computing resource parameter usage profile for a workload within a predetermined number of workload cycles.

[0284] 7. The device according to technical solution 7 further includes logic at least partially including hardware logic, which is used to:

[0285] The computing resource parameters in memory are deleted upon completion of the workload.

[0286] 8. An electronic device comprising:

[0287] a processor having one or more processor cores;

[0288] Logic comprising at least in part hardware logic to:

[0289] receiving one or more frames for a workload;

[0290] determining one or more computing resource parameters for the workload; and

[0291] The one or more computing resource parameters for the workload are stored in memory in association with workload context data for the workload.

[0292] 9. The electronic device according to technical solution 8, wherein the computing resource parameter includes at least one of the following:

[0293] an operational state of one or more execution units assigned to the workload;

[0294] A power state of one or more execution units assigned to the workload.

[0295] 10. The electronic device according to technical solution 9 further includes logic at least partially including hardware logic, which is used to:

[0296] receiving additional one or more frames for the workload;

[0297] retrieving the one or more computing resource parameters from the memory; and

[0298] A computing resource is scheduled using the computing resource parameters to process the additional one or more frames for the workload.

[0299] 11. The electronic device according to technical solution 10 further comprises logic at least partially comprising hardware logic, which is used to:

[0300] The computing resource parameters in the memory are updated.

[0301] 12. An electronic device according to technical solution 11, wherein the computing resource parameters define a computing resource parameter usage profile for a workload within a predetermined time frame.

[0302] 13. An electronic device according to technical solution 11, wherein the computing resource parameters define a computing resource parameter usage profile for a workload within a predetermined number of workload cycles.

[0303] 14. The electronic device according to technical solution 11 further includes logic that at least partially includes hardware logic, which is used to:

[0304] The computing resource parameters in memory are deleted upon completion of the workload.

[0305] 15. A method comprising:

[0306] receiving, in a processing device, one or more frames for a workload;

[0307] determining one or more computing resource parameters for the workload; and

[0308] The one or more computing resource parameters for the workload are stored in memory in association with workload context data for the workload.

[0309] 16. The method according to technical solution 15, wherein the computing resource parameters include at least one of the following:

[0310] an operational state of one or more execution units assigned to the workload;

[0311] A power state of one or more execution units assigned to the workload.

[0312] 17. The method according to technical solution 16 further comprises:

[0313] receiving additional one or more frames for the workload;

[0314] retrieving the one or more computing resource parameters from the memory; and

[0315] A computing resource is scheduled using the computing resource parameters to process the additional one or more frames for the workload.

[0316] 18. The method according to technical solution 17 further comprises:

[0317] The computing resource parameters in the memory are updated.

[0318] 19. A method according to technical solution 18, wherein the computing resource parameters define a computing resource parameter usage profile for a workload within a predetermined time frame.

[0319] 20. A method according to technical solution 18, wherein the computing resource parameters define a computing resource parameter usage profile for a workload within a predetermined number of workload cycles.

[0320] 21. The method according to technical solution 18 further comprises:

[0321] The computing resource parameters in memory are deleted upon completion of the workload.

[0322] 22. One or more computer-readable media comprising one or more instructions that, when executed on at least one processor, configure the at least one processor to perform one or more operations to:

[0323] receiving one or more frames for a workload;

[0324] determining one or more computing resource parameters for the workload; and

[0325] The one or more computing resource parameters for the workload are stored in memory in association with workload context data for the workload.

[0326] 23. The computer-readable medium according to technical solution 22, wherein the computing resource parameter includes at least one of the following:

[0327] an operational state of one or more execution units assigned to the workload;

[0328] A power state of one or more execution units assigned to the workload.

[0329] 24. The computer-readable medium according to technical solution 23 comprises one or more instructions, which, when executed on the at least one processor, configure the at least one processor to:

[0330] receiving additional one or more frames for the workload;

[0331] retrieving the one or more computing resource parameters from the memory; and

[0332] Computing resources are scheduled using the computing resource parameters to process the additional one or more frames for the workload.

[0333] 25. The computer-readable medium according to technical solution 24 comprises one or more instructions, which, when executed on the at least one processor, configure the at least one processor to:

[0334] The computing resource parameters in the memory are updated.

[0335] 26. A computer-readable medium according to technical solution 25, wherein the computing resource parameters define a computing resource parameter usage profile for a workload within a predetermined time frame.

[0336] 27. A computer-readable medium according to technical solution 25, wherein the computing resource parameters define a computing resource parameter usage profile for a workload within a predetermined number of workload cycles.

[0337] 28. The computer-readable medium according to technical solution 25 comprises one or more instructions, which, when executed on the at least one processor, configure the at least one processor to:

[0338] The computing resource parameters in memory are deleted upon completion of the workload.

[0339] Additional examples are discussed below.

[0340] Example 1 may optionally include a device comprising logic, at least in part comprising hardware logic, to: receive one or more frames for a workload; determine one or more computing resource parameters for the workload; and store the one or more computing resource parameters for the workload in a memory in association with workload context data for the workload.

[0341] Example 2 may optionally include the subject matter of Example 1, wherein the computing resource parameter comprises at least one of: an operating state of one or more execution units assigned to the workload and a power state of one or more execution units assigned to the workload.

[0342] Example 3 may optionally include the subject matter of any of Examples 1-2, further including logic, at least partially including hardware logic, that is used to: receive one or more additional frames for the workload; retrieve one or more computing resource parameters from a memory; and use the computing resource parameters to schedule computing resources to process the additional one or more frames for the workload.

[0343] Example 4 may optionally include the subject matter of any of Examples 1-3, further comprising logic, at least partially comprising hardware logic, to update computing resource parameters in the memory.

[0344] Example 5 may optionally include the subject matter of any of Examples 1-4, wherein the computing resource parameter defines a computing resource parameter usage profile for the workload within a predetermined time frame.

[0345] Example 6 may optionally include the subject matter of any of Examples 1-5, wherein the computing resource parameter defines a computing resource parameter usage profile for the workload over a predetermined number of workload cycles.

[0346] Example 7 may optionally include the subject matter of any of Examples 1-6, further comprising logic, at least partially comprising hardware logic, to delete the computing resource parameters in the memory upon completion of the workload.

[0347] Example 8 is an electronic device comprising a processor having one or more processor cores, logic, and at least partially hardware logic, which is used to: receive one or more frames for a workload; determine one or more computing resource parameters for the workload; and store one or more computing resource parameters for the workload in a memory in association with workload context data for the workload.

[0348] Example 9 may optionally include the subject matter of Example 8, wherein the computing resource parameter comprises at least one of: an operating state of one or more execution units assigned to the workload; and a power state of one or more execution units assigned to the workload.

[0349] Example 10 may optionally include the subject matter of any of Examples 8-9, further including logic, at least partially including hardware logic, that is used to: receive one or more additional frames for the workload; retrieve one or more computing resource parameters from a memory; and use the computing resource parameters to schedule computing resources to process the additional one or more frames for the workload.

[0350] Example 11 may optionally include the subject matter of any of Examples 8-10, further comprising logic, at least partially comprising hardware logic, to update computing resource parameters in the memory.

[0351] Example 12 may optionally include the subject matter of any of Examples 8-11, wherein the computing resource parameter defines a computing resource parameter usage profile for the workload within a predetermined time frame.

[0352] Example 13 may optionally include the subject matter of any of Examples 8-12, wherein the computing resource parameter defines a computing resource parameter usage profile for the workload over a predetermined number of workload cycles.

[0353] Example 14 may optionally include the subject matter of any of Examples 8-13, further comprising logic, at least partially comprising hardware logic, to delete the computing resource parameters in the memory upon completion of the workload.

[0354] Example 15 is a method comprising: receiving one or more frames for a workload in a processing device; determining one or more computing resource parameters for the workload; and storing the one or more computing resource parameters for the workload in a memory in association with workload context data for the workload.

[0355] Example 16 may optionally include the subject matter of Example 15, wherein the computing resource parameter comprises at least one of: an operating state of one or more execution units assigned to the workload; and a power state of one or more execution units assigned to the workload.

[0356] Example 17 may optionally include the subject matter of any of Examples 15-16, further comprising: receiving one or more additional frames for the workload; retrieving one or more computing resource parameters from a memory; and scheduling computing resources using the computing resource parameters to process the additional one or more frames for the workload.

[0357] Example 18 may optionally include the subject matter of any of Examples 15-17, further comprising updating the computing resource parameters in the memory.

[0358] Example 19 may optionally include the subject matter of any of Examples 15-18, wherein the computing resource parameter defines a computing resource parameter usage profile for the workload within a predetermined time frame.

[0359] Example 20 may optionally include the subject matter of any of Examples 15-19, wherein the computing resource parameter defines a computing resource parameter usage profile for the workload over a predetermined number of workload cycles.

[0360] Example 21 may optionally include the subject matter of any of Examples 15-20, further comprising deleting the computing resource parameters in the memory when the workload is completed.

[0361] Example 22 is one or more computer-readable media comprising one or more instructions that, when executed on at least one processor, configure the at least one processor to perform one or more operations to: receive one or more frames for a workload; determine one or more computing resource parameters for the workload; and store the one or more computing resource parameters for the workload in a memory in association with workload context data for the workload.

[0362] Example 23 may optionally include the subject matter of Example 22, wherein the computing resource parameter comprises at least one of: an operating state of one or more execution units assigned to the workload; and a power state of one or more execution units assigned to the workload.

[0363] Example 24 may optionally include the subject matter of any of Examples 22-23, further comprising one or more instructions that, when executed on at least one processor, configure at least one processor to: receive one or more additional frames for the workload; retrieve one or more computing resource parameters from a memory; and use the computing resource parameters to schedule computing resources to process the additional one or more frames for the workload.

[0364] Example 25 may optionally include the subject matter of any of Examples 22-24, further comprising logic, at least partially comprising hardware logic, to update computing resource parameters in the memory.

[0365] Example 26 may optionally include the subject matter of any of Examples 22-25, wherein the computing resource parameter defines a computing resource parameter usage profile for the workload within a predetermined time frame.

[0366] Example 27 may optionally include the subject matter of any of Examples 22-26, wherein the computing resource parameter defines a computing resource parameter usage profile for the workload over a predetermined number of workload cycles.

[0367] Example 28 may optionally include the subject matter of any of Examples 22-27, further comprising logic, at least partially comprising hardware logic, to delete the computing resource parameters in the memory when the workload is completed.

[0368] In various embodiments, the operations discussed herein may be implemented as hardware (e.g., logic circuitry), software, firmware, or a combination thereof, which may be provided as a computer program product, for example, comprising a tangible (e.g., non-transitory) machine-readable or computer-readable medium having stored thereon instructions (or software procedures) for programming a computer to perform the processes discussed herein. The machine-readable medium may include an information storage device.

[0369] In addition, such computer-readable media may be downloaded as a computer program product, wherein the program may be transmitted from a remote computer (e.g., a server) to a requesting computer (e.g., a client) via a communication link (e.g., a bus, a modem, or a network connection) by way of a data signal provided in a carrier wave or other propagation medium.

[0370] References in this specification to "one embodiment" or "an embodiment" mean that a particular feature, structure, and / or characteristic described in connection with the embodiment may be included in at least an implementation. The appearances of the phrase "in one embodiment" in various places in this specification may or may not all refer to the same embodiment.

[0371] Moreover, in the specification and claims, the terms "coupled" and "connected" together with their derivatives may be used. In some embodiments, "connected" 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" may also mean that two or more elements may not be in direct contact with each other, but may still cooperate or interact with each other.

[0372] Therefore, although the embodiments have been described in language specific to structural features and / or methodological actions, it is to be understood that the subject matter claimed may not be limited to the specific features or actions described. Instead, the specific features and actions are disclosed as sample forms of implementing the subject matter claimed.

Claims

1. A device for implementing adaptive computing size per workload, comprising: Thread scheduler; a general purpose graphics processing unit comprising a plurality of streaming microprocessors communicatively coupled to the thread scheduler and comprising a plurality of execution units and a local cache memory, the general purpose graphics processing unit being configured to: receiving one or more frames for a workload; determining one or more computing resource parameters of the plurality of streaming microprocessors for the workload; as well as The one or more computing resource parameters for the workload are stored in the local cache memory of at least one streaming microprocessor of the plurality of streaming microprocessors in association with workload context data for the workload.

2. The apparatus of claim 1, wherein the computing resource parameters include at least one of the following: an operational state of one or more execution units assigned to the workload; and A power state of one or more execution units assigned to the workload.

3. The device according to claim 2, wherein the general purpose graphics processing unit is used to: receiving additional one or more frames for the workload; retrieving the one or more computing resource parameters from the local cache; and A computing resource is scheduled using the computing resource parameters to process the additional one or more frames for the workload.

4. The device according to claim 3, wherein the general purpose graphics processing unit is used to: The computing resource parameters in the local cache are updated.

5. The apparatus of claim 4, wherein the computing resource parameters define a computing resource parameter usage profile for a workload within a predetermined time frame.

6. The apparatus of claim 4, wherein the computing resource parameters define a computing resource parameter usage profile for a workload over a predetermined number of workload cycles.

7. The device according to claim 4, wherein the general purpose graphics processing unit is used to: The computing resource parameters in the local cache are deleted upon completion of the workload.

8. An electronic device comprising: Thread scheduler; a general purpose graphics processing unit comprising a plurality of streaming microprocessors communicatively coupled to the thread scheduler and comprising a plurality of execution units and a local cache memory, the general purpose graphics processing unit being configured to: receiving one or more frames for a workload; determining one or more computing resource parameters of the plurality of streaming microprocessors for the workload; as well as storing the one or more computing resource parameters for the workload in association with workload context data for the workload in the local cache memory of at least one streaming microprocessor of the plurality of streaming microprocessors; as well as A display device is communicatively coupled to the general purpose graphics processing unit.

9. The electronic device of claim 8, wherein the computing resource parameter comprises at least one of the following: an operational state of one or more execution units assigned to the workload; and A power state of one or more execution units assigned to the workload.

10. The electronic device according to claim 9, wherein the general purpose graphics processing unit is used to: receiving additional one or more frames for the workload; retrieving the one or more computing resource parameters from the local cache; and A computing resource is scheduled using the computing resource parameters to process the additional one or more frames for the workload.

11. The electronic device according to claim 10, wherein the general purpose graphics processing unit is used to: The computing resource parameters in the local cache are updated.

12. The electronic device of claim 10, wherein the computing resource parameters define a computing resource parameter usage profile for a workload within a predetermined time frame.

13. The electronic device of claim 11, wherein the computing resource parameters define a computing resource parameter usage profile for a workload over a predetermined number of workload cycles.

14. The electronic device according to claim 11, wherein the general purpose graphics processing unit is used to: The computing resource parameters in the local cache are deleted upon completion of the workload.

15. A method for implementing adaptive computing size per workload, comprising: receiving one or more frames for a workload in a general purpose graphics processing unit including a plurality of streaming microprocessors communicatively coupled to a thread scheduler and including a plurality of execution units and a local cache memory; determining one or more computing resource parameters of the plurality of streaming microprocessors for the workload; as well as The one or more computing resource parameters for the workload are stored in the local cache memory of at least one streaming microprocessor of the plurality of streaming microprocessors in association with workload context data for the workload.

16. The method of claim 15, wherein the computing resource parameters include at least one of the following: an operational state of one or more execution units assigned to the workload; A power state of one or more execution units assigned to the workload.

17. The method according to claim 16, further comprising: receiving additional one or more frames for the workload; retrieving the one or more computing resource parameters from the local cache; as well as A computing resource is scheduled using the computing resource parameters to process the additional one or more frames for the workload.

18. The method according to claim 17, further comprising: The computing resource parameters in the local cache are updated.

19. The method of claim 18, wherein the computing resource parameters define a computing resource parameter usage profile for a workload within a predetermined time frame.

20. The method of claim 18, wherein the computing resource parameters define a computing resource parameter usage profile for a workload over a predetermined number of workload cycles.

21. An apparatus for implementing adaptive computing size per workload, comprising: means for receiving one or more frames for a workload in a general purpose graphics processing unit including a plurality of streaming microprocessors communicatively coupled to a thread scheduler and including a plurality of execution units and a local cache memory; means for determining one or more computing resource parameters of the plurality of streaming microprocessors for the workload; as well as Means for storing the one or more computing resource parameters for the workload in association with workload context data for the workload in the local cache memory of at least one streaming microprocessor of the plurality of streaming microprocessors.

22. The apparatus of claim 21, wherein the computing resource parameters include at least one of the following: an operational state of one or more execution units assigned to the workload; A power state of one or more execution units assigned to the workload.

23. The apparatus of claim 22, further comprising: means for receiving additional one or more frames for said workload; means for retrieving said one or more computing resource parameters from said local cache; as well as Means for scheduling computing resources using the computing resource parameters to process the additional one or more frames for the workload.

24. The apparatus of claim 23, further comprising: Means for updating the computing resource parameters in the local cache.

25. The apparatus of claim 24, wherein the computing resource parameters define a computing resource parameter usage profile for a workload within a predetermined time frame.

26. The apparatus of claim 24, wherein the computing resource parameters define a computing resource parameter usage profile for a workload over a predetermined number of workload cycles.

27. A computer readable medium having stored thereon instructions which, when executed, cause a computing system to perform the method of any one of claims 15-20.