Hybrid low-power homogeneous graphics processing unit

By designing a hybrid low-power isomer graphics processing unit, using the combination of parallel processors and graphics multiprocessors, the problem of low power management efficiency of graphics processors in the prior art is solved, and efficient graphics data processing and power management are achieved. Extend the use of the device.

CN108694686BActive Publication Date: 2025-02-18INTEL CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201810293657.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2017-04-01
Filing Date
2018-03-30
Publication Date
2025-02-18
Estimated Expiration
2038-03-30

AI Technical Summary

Technical Problem

Existing graphics processors have challenges in achieving efficient power management, especially in multifunctional integrated circuits, where added components lead to increased signal switching, heat generation and power consumption, limiting the use location and model of the device.

Method used

By designing a hybrid low-power isomorphic graphics processing unit, efficient graphics data processing and power management are achieved using a combination of parallel processors and graphics multiprocessors. The system includes a parallel processing unit and a graphical multiprocessor, enabling efficient data processing and storage through a scheduler and memory cross-switch.

Benefits of technology

It realizes efficient graphical data processing and power management, reduces heat generation and power consumption, expands the use position and model of the equipment, and improves the efficiency and life of electronic equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN108694686B_ABST
    Figure CN108694686B_ABST
Patent Text Reader

Abstract

The present invention relates to hybrid low-power homogeneous graphics processing units. In an example, an apparatus includes a plurality of execution units, the plurality of execution units including at least a first type of execution unit and a second type of execution unit, and logic, at least in part, hardware logic to analyze a workload and assign the workload to one of the first type of execution unit or the second type of execution unit. 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 specifically, some embodiments relate to techniques for implementing a hybrid low-power homogeneous graphics processing unit. Background Art

[0002] As integrated circuit manufacturing technology improves, manufacturers are able to integrate additional functions 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. And, 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 may have a direct impact on the efficiency, lifespan, and use model of the electronic device.

[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] To further increase performance, graphics processors often implement processing techniques such as pipelining, which attempts 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 a SIMT architecture, groups of parallel threads attempt to execute program instructions together synchronously as often as possible to increase processing efficiency. This can be seen in Shane Cook's CUDA Programming ( CUDA Programming ) Chapter 3 pp. 37-51 (2013) and / or Nicholas Wilt's CUDA manual - A comprehensive guide to GPU programming (CUDA Handbook, A Comprehensive Guide to GPU Programming A general overview of the software and hardware used for the SIMT architecture can be found in sections 2.6.2 to 3.1.2 of ) (June 2013). BRIEF DESCRIPTION OF THE DRAWINGS

[0005] In order to enable the above-recorded features of the embodiments of the present invention to be understood in detail, the embodiments briefly summarized above can 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 therefore not 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] Figures 6A-6F 7A-7B are schematic illustrations of various architectures according to embodiments.

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

[0013] Fig. 9 is a block diagram of a system including a streaming multiprocessor in accordance with one or more embodiments.

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

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

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

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

[0018] Fig.14 is a block diagram of a graphics processing engine of a graphics processor in accordance with some embodiments.

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

[0020] Fig.16Thread execution logic is illustrated, which includes an array of processing elements employed in some embodiments.

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

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

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

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

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

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

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

[0028] Fig.24 is a block diagram illustrating an additional exemplary graphics processor of a system-on-chip integrated circuit according to an embodiment. DETAILED DESCRIPTION

[0029] In the following description, many specific details are set forth in order to provide a thorough understanding of the various embodiments. However, various embodiments may be practiced without the specific details. In other instances, well-known methods, processes, components, and circuits are not described in detail so as not to obscure the particular embodiments. Further, 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 some combination of hardware and software. For purposes of this disclosure, references to "logic" shall mean hardware, software, firmware, or some combination thereof.

[0030] 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. Further, 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, and the like.TM Computing devices, wearable devices (such as smart watches or smart glasses), etc.

[0031] 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 assign work to the GPU in the form of a sequence of commands / instructions contained in a work descriptor. The GPU then uses dedicated circuits / logic to efficiently process these commands / instructions.

[0032] 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.

[0033] System Overview

[0034] Figure 1 1 is a block diagram illustrating a computing system 100 configured to implement one or more aspects of the embodiments described herein. The computing system 100 includes a processing subsystem 101 having one or more processors 102 and a system memory 104 communicating via an interconnect path, which 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, which may enable the computing system 100 to receive input from one or more input devices 108. In addition, the I / O hub 107 may enable a display controller to provide output to one or more display devices 110A, which may be included in the one or more processors 102. In one embodiment, the one or more display devices 110A coupled to the I / O hub 107 may include local, internal, or embedded display devices.

[0035] 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 may be one of any number of standard-based communication link technologies or protocols (such as but not limited to PCI Express), or may 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 an integrated many-core (MIC) processor. 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 may also include a display controller and display interface (not shown) to enable direct connection to one or more display devices 110B.

[0036] Within the I / O subsystem 111, a system storage unit 114 may be connected to the I / O hub 107 to provide a storage mechanism for the computing system 100. An I / O switch 116 may be used to provide an interface mechanism to enable connection between the I / O hub 107 and other components that may be integrated into the platform, such as a network adapter 118 and / or a wireless network adapter 119, and various other devices that may be added via one or more plug-in devices 120. The network adapter 118 may be an Ethernet adapter or another wired network adapter. The wireless network adapter 119 may include one or more of the following: Wi-Fi, Bluetooth, near field communication (NFC), or other network devices including one or more radio devices.

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

[0038] In one embodiment, the one or more parallel processors 112 are combined with circuits optimized for graphics and video processing, including, for example, video output circuits, and constitute a graphics processing unit (GPU). In another embodiment, the one or more parallel processors 112 are combined with circuits optimized for general processing while maintaining the basic computing architecture described in more detail herein. In yet another embodiment, the components of the computing system 100 can be integrated with one or more other system elements on a single integrated circuit. For example, the one or more parallel processors 112, the memory hub 105, (multiple) processors 102, and the I / O hub 107 can be integrated into a system-on-chip (SoC) integrated circuit. Alternatively, the components of the computing system 100 can 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 can be integrated into a multi-chip module (MCM), which can be interconnected with other multi-chip modules to form a modular computing system.

[0039] It should be understood 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 (multiple) processors 102, and the number of (multiple) parallel processors 112, can be modified as desired. For example, in some embodiments, the system memory 104 is directly connected to the (multiple) processors 102 rather than through a bridge, and other devices communicate with the system memory 104 via the memory hub 105 and the (multiple) processors 102. In other alternative topologies, the (multiple) parallel processors 112 are connected to the I / O hub 107 or directly to one of the one or more processors 102, rather than to the memory hub 105. In other embodiments, the I / O hub 107 and the memory hub 105 can be integrated into a single chip. Some embodiments may include two or more sets of (multiple) processors 102 attached via multiple sockets, which can be coupled to two or more instances of (multiple) parallel processors 112.

[0040] 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 peripherals 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.

[0041] Figure 2AThe 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 FIG.

[0042] In one embodiment, parallel processor 200 includes parallel processing unit 202. The parallel processing unit includes an I / O unit 204 that 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 cross switch 216, wherein host interface 206 receives commands related to performing processing operations and memory cross switch 216 receives commands related to performing memory operations.

[0043] When host interface 206 receives command buffers via I / O unit 204, host interface 206 may direct work operations for executing those commands to front end 208. In one embodiment, front end 208 is coupled with scheduler 210, which is configured to dispatch 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 dispatching tasks to processing clusters of processing cluster array 212.

[0044] The processing cluster array 212 may include up to "N" processing clusters (e.g., cluster 214A, cluster 214B 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 allocate work to the clusters 214A-214N of the processing cluster array 212, which may vary depending on the workload that occurs due to each type of program or calculation. Scheduling may be handled dynamically by the scheduler 210, or may be partially assisted by compiler logic during the compilation of program logic that is configured to be executed by the processing cluster array 212. In one embodiment, different clusters 214A-214N of the processing cluster array 212 may be allocated to process different types of programs or to perform different types of calculations.

[0045] 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.

[0046] 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 for supporting 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 in on-chip memory (e.g., parallel processor memory 222) during processing and then written back to system memory.

[0047] 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.

[0048] During operation, the processing cluster array 212 may receive processing tasks to be executed via the scheduler 210, which receives commands defining the processing tasks from the front end 208. For graphics processing operations, a processing task may include data to be processed, 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.

[0049] Each of the one or more instances of the parallel processing unit 202 may be coupled to a parallel processor memory 222. The parallel processor memory 222 may be accessed via a memory crossbar 216, which may receive memory requests from the processing cluster array 212 and the I / O unit 204. The memory crossbar 216 may access the parallel processor memory 222 via a memory interface 218. The memory interface 218 may include a plurality of partition units (e.g., partition unit 220A, partition unit 220B to partition unit 220N), which may each be coupled to a portion (e.g., memory unit) of the parallel processor memory 222. In one implementation, the number of partition units 220A-220N is configured to be equal to the number of memory units, such that the first partition unit 220A has a corresponding first memory unit 224A, the second partition unit 220B has a corresponding memory unit 224B, and the Nth partition unit 220N has a corresponding Nth memory unit 224N. In other embodiments, the number of partition units 220A-220N may not be equal to the number of memory devices.

[0050] 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). Those skilled in the art will appreciate that the specific implementation of the memory units 224A-224N may vary and may be selected from one of a variety of conventional designs. 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 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 to facilitate a unified memory design that utilizes system memory together with local cache memory.

[0051] 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 for communicating with the I / O unit 204, as well as a connection to a local instance of the parallel processor memory 222, so that the processing units within different processing clusters 214A-214N can 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.

[0052] Although a single instance of parallel processing unit 202 is illustrated in 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 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 floating point units with higher precision 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 computers, laptop computers or handheld personal computers, servers, workstations, game consoles, and / or embedded systems.

[0053] Figure 2B is a block diagram of a partition unit 220 according to an embodiment. In one embodiment, the partition unit 220 is Figure 2A 2 is an example of one of the partition units 220A-220N of the memory crossbar 216. As illustrated, the partition unit 220 includes an L2 cache 221, a frame buffer interface 225, and an 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. The L2 cache 221 outputs read misses and urgent write-back requests to the frame buffer interface 225 for processing. Dirty updates may 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 the memory units 224A-224N of FIG. 2 (e.g., within the parallel processor memory 222).

[0054] In graphics applications, ROP 226 is a processing unit that performs raster operations such as stenciling, z-checking, blending, etc. ROP 226 then outputs processed graphics data that is stored in graphics memory. In some embodiments, ROP 226 includes compression logic to compress z or color data written to memory and decompress z or color data read from memory. In some embodiments, ROP 226 is included within each processing cluster (e.g., clusters 214A-214N of FIG. 2 ) rather than within partition unit 220. In such embodiments, read and write requests for pixel data, rather than pixel fragment data, are transmitted through memory crossbar 216. The processed graphics data may be displayed on a display device such as a Figure 1100 ), routed for further processing by the processor(s) 102 , or routed for processing by the processor(s) 102 . Figure 2A The processing is further processed by one of the processing entities within parallel processor 200.

[0055] Figure 2C 2 is a block diagram of a processing cluster 214 within 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 FIG. 2. The processing cluster 214 can be configured to execute multiple threads in parallel, wherein the term "thread" refers to an instance of a specific program executed on a set of specific input data. In some embodiments, single instruction multiple data (SIMD) instruction issuance technology is used to support the parallel execution of a large number of threads without providing multiple independent instruction units. In other embodiments, single instruction multiple thread (SIMT) technology is used to support the parallel execution of a large number of generally synchronized threads using a common instruction unit, and the common instruction unit is configured to issue instructions to a group of processing engines in each of the processing clusters. Unlike the SIMD execution regime in which all processing engines generally execute the same instruction, SIMT execution allows different threads to more easily follow divergent execution paths through a given thread program. It will be understood by those skilled in the art that the SIMD processing regime represents a functional subset of the SIMT processing regime.

[0056] The operation of the processing cluster 214 can be controlled via a pipeline manager 232 that distributes processing tasks to the SIMT parallel processors. The pipeline manager 232 receives instructions from the scheduler 210 of Figure 2 and manages the execution of those instructions via the graphics multiprocessor 234 and / or the texture unit 236. The illustrated graphics multiprocessor 234 is an exemplary instance of a SIMT parallel processor. However, various types of SIMT parallel processors of different architectures can be included in the processing cluster 214. One or more instances of the graphics multiprocessor 234 can be included in the processing cluster 214. The graphics multiprocessor 234 can process data, and the data crossbar 240 can be used to distribute the processed data to one of multiple possible destinations including other shader units. The pipeline manager 232 can promote the distribution of processed data by specifying a destination for the processed data to be distributed via the data crossbar 240.

[0057] Each graphics multiprocessor 234 within a processing cluster 214 may include a set of identical function execution logic (e.g., arithmetic logic units, load-store units, etc.). The function execution logic may be configured in a pipelined manner, where a new instruction may be issued before a previous instruction is completed. The function execution logic supports a variety of operations, including integer and floating point arithmetic, comparison operations, Boolean operations, shifts, and calculations 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.

[0058] 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 within a thread group can be assigned to a different processing engine within the graphics multiprocessor 234. A thread group can include fewer threads than the number of processing engines within the graphics multiprocessor 234. When a thread group includes fewer threads than the number of processing engines, one or more of the processing engines may be idle during the cycle in which the thread group is processed. A thread group can also include more threads than the number of processing engines within the graphics multiprocessor 234. When a thread group includes more threads than the number of processing engines within the graphics multiprocessor 234, processing can be performed in consecutive clock cycles. In one embodiment, multiple thread groups can be executed simultaneously on the graphics multiprocessor 234.

[0059] 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 is also able to access the L2 cache within the partition unit (e.g., partition unit 220A-220N of Figure 2) that is shared between all processing clusters 214 and can be used to transfer data between threads. The graphics multiprocessor 234 can also access off-chip global memory, which can include one or more of the local parallel processor memory and / or system memory. Any memory external to the parallel processing unit 202 can be used as global memory. In which the processing cluster 214 includes multiple instances of the graphics multiprocessor 234, embodiments can share common instructions and data that can be stored in the L1 cache 308.

[0060] Each processing cluster 214 may include an MMU 245 (memory management unit) configured to map virtual addresses to 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 to physical addresses of tiles (discussing blocking more) and optionally to cache line indexes. 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 to allow efficient request interleaving between partition units. The cache line index may be used to determine whether a request for a cache line is a hit or a miss.

[0061] In graphics and computing applications, the processing clusters 214 can 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 (pre-raster operation unit) is configured to receive data from the graphics multiprocessor 234, directing 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.

[0062] It will be appreciated that the core architecture described herein is illustrative and variations and modifications are possible. Any number of processing units, such as graphics multiprocessors 234, texture units 236, preROPs 242, etc., may be included within a processing cluster 214. Further, 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.

[0063] Figure 2DA graphics multiprocessor 234 is shown according to one embodiment. In such embodiments, 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.

[0064] In one embodiment, the instruction cache 252 receives an instruction stream to be executed from the pipeline manager 232. The instructions are cached in the instruction cache 252 and dispatched for execution by the instruction unit 254. The instruction unit 254 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 address space in the local, shared, or global address space 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 different memory addresses that can be accessed by the load / store unit 266.

[0065] 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 assigned a dedicated portion of the register file 258. In one embodiment, the register file 258 is divided between different warps being executed by the graphics multiprocessor 324.

[0066] The GPGPU cores 262 may each include a floating point unit (FPU) and / or an integer arithmetic logic unit (ALU) for executing 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 enable 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.

[0067] 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 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 transfers between the GPGPU core 262 and the register file 258 have very low latency. The shared memory 270 can be used to enable communication between threads executing on the functional units within the graphics multiprocessor 234. For example, the cache memory 272 can be used as a data cache to cache texture data transferred 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.

[0068] Figure 3A-3B Additional graphics multiprocessors are shown 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.

[0069] Figure 3A A graphics multiprocessor 325 is shown according to an additional embodiment. The graphics multiprocessor 325 includes Figure 2DThe graphics multiprocessor 325 may include multiple additional instances of execution resource units associated with the graphics multiprocessor 234. For example, the graphics multiprocessor 325 may include multiple instances of instruction units 332A-332B, register files 334A-334B, and (multiple) 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. The various components can communicate via the interconnect structure 327. In one embodiment, the interconnect structure 327 includes one or more crossbar switches to enable communication between the various components of the graphics multiprocessor 325.

[0070] Figure 3B A graphics multiprocessor 350 according to an additional embodiment is shown. The graphics processor includes multiple sets of execution resources 356A-356D, where each set of execution resources includes multiple instruction units, register files, GPGPU cores, and load storage units, such as Figure 2D and Figure 3A 356A-356D can work in cooperation with texture unit(s) 360A-360D for texture operations while sharing instruction cache 354 and shared memory 362. In one embodiment, execution resources 356A-356D can share instruction cache 354 and shared memory 362 as well as multiple instances of texture and / or data caches 358A-358B. Various components can be communicated with via Figure 3A The interconnect structure 327 communicates with a similar interconnect structure 352 .

[0071] 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 embodiments of the present invention. Thus, the techniques described herein may be implemented on any appropriately configured processing unit, including but not limited to one or more mobile application processors, one or more desktop computer 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, without departing from the scope of the embodiments described herein.

[0072] 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 can 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 can 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 can assign work to the GPU in the form of a sequence of commands / instructions contained in a work descriptor. The GPU then uses dedicated circuits / logic to efficiently process these commands / instructions.

[0073] Technologies for GPU to host processor interconnect

[0074] Figure 4A An 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 throughput, 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.

[0075] Furthermore, 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 those 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 accomplished 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.

[0076] 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, while another portion may be non-volatile memory (e.g., using a two-level memory (2LM) hierarchy).

[0077] 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 (resulting in a total of 256GB of addressable memory in this example).

[0078] Figure 4B Additional details of the interconnection between the multi-core processor 407 and the graphics acceleration module 446 according to one embodiment are illustrated. The graphics acceleration module 446 may include one or more GPU chips integrated on a line card 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.

[0079] 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 (e.g., instruction fetch unit, branch prediction unit, decoder, execution unit, reorder buffer, etc.) for executing instructions and processing data, 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 a collection of cores 460A-460D. For example, one embodiment of the processor 407 includes 24 cores, each with its own L1 cache, 12 shared L2 caches, and 12 shared L3 caches. In this embodiment, one of the L2 cache and the L3 cache 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.

[0080] Coherence is maintained for data and instructions stored in the various caches 462A-462D, 456, and the system memory 441 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 on cache accesses. Cache snooping / coherence techniques are well understood by those skilled in the art and will not be described in detail here to avoid obscuring the underlying principles of the present invention.

[0081] 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. Specifically, 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.

[0082] 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 bit block transfer engine. In other words, the graphics acceleration module may be a GPU having multiple graphics processing engines 431-432, N, or the graphics processing engines 431-432, N may be separate GPUs integrated on a common package, line card, or chip.

[0083] 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 the 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 the 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 accomplished via proxy circuitry 425, which participates in cache coherence mechanisms on behalf of cache 438 and memories 433-434, N (e.g., sending updates to cache 438 related to modifications / accesses of cache lines on processor caches 462A-462D, 456 and receiving updates from cache 438).

[0084] 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 to save and restore contexts of various threads during context switches (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 specified area in memory (e.g., identified by a context pointer). It may then restore the register values ​​upon returning to that context. In one embodiment, interrupt management circuitry 447 receives and processes interrupts received from system devices.

[0085] In one implementation, the virtual / effective address from the graphics processing engine 431 is converted to an actual / physical address 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 can be dedicated to a single application executed on the processor 407, or can 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). Resources can be subdivided into "slices", which are allocated to different VMs and / or applications based on the processing requirements and priorities associated with the VMs and / or applications.

[0086] Thus, the accelerator integrated circuit acts as a bridge to the system of 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 virtualization of the graphics processing engine, interrupts, and memory management.

[0087] Because the hardware resources of the graphics processing engines 431-432, N are explicitly mapped to the actual 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.

[0088] 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.

[0089] 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 the core's cache 462A-462D, 456 and system memory 411.

[0090] 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 with the accelerator integrated circuit 436 via the interface 437 and the interface 435 (again, which may utilize any form of bus or interface protocol) over a high-speed link 440. The accelerator integrated circuit 436 may perform operations related to Figure 4B The same operations as those described, but given their close proximity to the coherency bus 462 and caches 462A-462D, 426, may operate at a higher throughput.

[0091] 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 shared programming model may include a programming model controlled by accelerator integrated circuit 436 and a programming model controlled by graphics acceleration module 446.

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

[0093] 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.

[0094] For the shared programming model, the graphics acceleration module 446 or the separate graphics processing engines 431-432, N use the process handle to select a process element. In one embodiment, the process element is stored in the system memory 411 and can be addressed using the effective address to real address conversion technology 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 a 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.

[0095] 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 a process state for the corresponding application 480. The work descriptor (WD) 484 contained in the process element 483 may be a single job requested by the 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.

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

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

[0098] In operation, the WD acquisition unit 491 in the accelerator integrated slice 490 acquires the next WD 484, which includes an indication of the 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 446 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 process 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 into an actual address by the MMU 439.

[0099] 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. Exemplary registers that can be initialized by a hypervisor are shown in Table 1.

[0100] Table 1 - Registers initialized by the hypervisor

[0101] 1 Slice Control Register 2 Real Address (RA) dispatched process area pointer 3 Permission shield 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) Manager Accelerator Utilizes Record Pointers 9 Storage Description Register

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

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

[0104] 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 shielding 6 Job Descriptor

[0105] 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 do 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.

[0106] 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.

[0107] The shared programming model allows all or a subset of processes from all or a subset 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-sliced ​​sharing and graphics-directed sharing.

[0108] 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 adhere to the following requirements: 1) The application's job request 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 request is 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 processing of jobs. 3) When operating in a directed sharing programming model, fairness of the graphics acceleration module 446 must be guaranteed between processes.

[0109] In one embodiment, for the shared model, the application 480 is required to make an operating system 495 system call using a graphics acceleration module 446 type, a work descriptor (WD), an authority mask register (AMR) value, and a context save / restore region pointer (CSRP). The graphics acceleration module 446 type describes the target acceleration function 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 following forms: 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 done by the graphics acceleration module 446. In one embodiment, the AMR value is the AMR state for the current process. The value passed to the operating system is similar to the application that sets the AMR. If the implementation of the accelerator integrated circuit 436 and the graphics acceleration module 446 does not support the user authority 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. The hypervisor 496 may optionally apply the current privilege mask override register (AMOR) value before placing the AMR in 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 is not required to be saved between jobs or when a job is preempted. The context save / restore area may be pinned system memory.

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

[0111] Table 3 - OS to hypervisor call parameters

[0112] 1 Job Descriptor (WD) 2 The (possibly masked) permission mask register (AMR) value 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)

[0113] Upon receiving the hypervisor call, the hypervisor 496 verifies that the operating system 495 has registered and 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 for the corresponding type of graphics acceleration module 446. The process element may include the information shown in Table 4.

[0114] Table 4 - Process element information

[0115] 1 Job Descriptor (WD) 2 The (possibly masked) permission mask register (AMR) value 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) 8 Interrupt vector table derived from hypervisor call parameters 9 Status Register (SR) Value 10 Logical Partition ID (LPID) 11 Real Address (RA) Manager Accelerator Utilizes Record Pointers 12 Storage Descriptor Register (SDR)

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

[0117] like Figure 4F As illustrated in , one embodiment of the present invention employs a unified memory addressable via a common virtual memory address space for accessing 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 thus distributed across each of processor memory 401-402 and GPU memory 420-423, thereby allowing any processor or GPU to access any physical memory (using a virtual address mapped to that memory).

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

[0119] One embodiment allows the GPU-attached memory 420-423 to be mapped as part of the system memory and accessed using shared virtual memory (SVM) technology, but without suffering from the typical performance drawbacks associated with full system cache coherence. The ability to access the GPU-attached memory 420-423 as system memory without heavy cache coherence overhead provides a favorable operating environment for GPU offloading. This arrangement allows the host processor 405 software to set operands and access calculation results without the overhead of traditional I / O DMA data copying. Such traditional copies involve driver calls, interrupts, and memory mapped I / O (MMIO) accesses, which are all inefficient relative to simple memory accesses. At the same time, the ability to access the GPU-attached memory 420-423 without cache coherence overhead may be critical to the execution time of the offloaded calculation. For example, in the case of a large number of streaming write memory services, the cache coherence overhead can significantly reduce the effective write bandwidth seen by the GPU 410-413. The efficiency of operand setup, the efficiency of result access, and the efficiency of GPU calculation all play a role in determining the effectiveness of GPU offloading.

[0120] In one implementation, the selection between GPU bias and host processor bias is driven by a bias tracker data structure. For example, a bias table may be used, which may be a page granular structure that includes 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 the 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.

[0121] In one implementation, the bias table entry associated with each access to the GPU attached memory 420-423 is accessed before the GPU memory is actually accessed, 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 GPUs whose pages are found in the host bias are forwarded to 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.

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

[0123] 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 directing it to change the bias state and, for certain transitions, performs a cache flush operation in the host. The cache flush operation is required for transitions from host processor 405 bias to GPU bias, but not the other way around.

[0124] In one embodiment, cache coherency is maintained by temporarily revealing 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 immediately grant access, depending on the implementation. Therefore, to reduce communication between processor 405 and GPU 410, it is advantageous to ensure that GPU bias pages are those pages that are needed by the GPU but not by the host processor 405, and vice versa.

[0125] Graphics processing pipeline

[0126] 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 1A variation of the parallel processor(s) 112 of FIG. 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 .

[0127] 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, thereby performing lighting and transformation on 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 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.

[0128] 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 constructs 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).

[0129] The tessellation control processing unit 508 treats the input vertices as control points for a geometric patch. The control points are transformed from an input representation from the patch (e.g., a basis for the patch) into a representation suitable for use in a surface evaluation performed 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 apply to a single edge and quantify 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 tessellated patch to generate vertex attributes and a surface representation for each vertex associated with the geometric primitive.

[0130] A second instance of primitive assembler 514 receives vertex attributes from tessellation evaluation processing unit 512, reads stored vertex attributes as needed, and constructs 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 tessellate the graphics primitives into one or more new graphics primitives and to compute parameters for rasterizing the new graphics primitives.

[0131] In some embodiments, the geometry processing unit 516 can 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 graphics primitives for processing by the viewport scaling, cull, and clip unit 520. The geometry processing unit 516 reads data stored in the parallel processor memory or system memory for use in processing geometry data. The viewport scaling, cull, and clip unit 520 performs clipping, cull, and viewport scaling, and outputs processed graphics primitives to the rasterizer 522.

[0132] The rasterizer 522 can perform depth sorting and other depth-based optimizations. The rasterizer 522 also performs scan conversion on new graphics primitives to generate fragments and output 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 the 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 can be programmed to perform operations including but not limited to texture mapping, shading, blending, texture correction, and perspective correction to generate shaded fragments or pixels output to the raster operation unit 526. The fragment / pixel processing unit 524 can read data stored in a parallel processor memory or system memory for use in processing fragment data. The fragment or pixel shader program can be configured to color with samples, pixels, tiles, or other granularity according to the sampling rate configured for the processing unit.

[0133] Raster operations unit 526 is a processing unit that performs raster operations including, but not limited to, stenciling, z-checking, blending, etc., 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 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.

[0134] Many existing graphics processing unit (GPU) designs utilize a single processing core, also known as an execution unit (EU), and replicate this EU many times in the GPU. All EU resources and / or design parameters (e.g., number of registers, threads / EU, FLOPS (floating point operations per second)) are fixed to a single design. A single EU design for all workloads may result in suboptimal performance, since different workloads require different types of resources from the graphics processor.

[0135] In the subject matter described herein, several categories of EUs are designed with different parameters and resources. Based on workload analysis performed by the compiler and / or clues from the programmer, a workload can be mapped on one / more specific types of EUs.

[0136] In some examples, the graphics application programming interface(s) (APIs) may optionally be enhanced to allow application programmers to pass "clues" about the resource requirements of a workload core. For example, the API may be used to look at a cache wordline to provide information about what types of resources (e.g., GRF, FPU, TP, etc.) may be needed to process the wordline, and then map the wordline to the selected core that most closely matches the resources.

[0137] The compiler performs workload analysis to infer the EU resource requirements of the workload. This information is passed to the GPU hardware as part of the kernel metadata. The driver stores the kernel resource requirement data in the command buffer as kernel thread metadata. Several categories of GPU execution units (EUs) with different resources and design parameters can be designed in the GPU. The thread scheduler will look at the resource requirements of the workload kernel and will do its best to dispatch threads to specific EUs that meet the requirements.

[0138] Therefore, in contrast to existing GPU designs that have only one type of EU and replicate it many times, the subject matter described herein implements multiple classes of EU designs in a GPU. In some examples, the number of classes can vary between two and four. Each EU class has different resources and design parameters.

[0139] In one example, a list of resources and design parameters that vary by EU category is given below:

[0140] 1. Number of registers per thread per EU

[0141] 2. Number of threads per EU

[0142] 3. Number of floating point units

[0143] 4. Support for double-precision FP operations

[0144] 5. Maximum supported operating frequency

[0145] 6. Support for complex mathematical inline functions

[0146] A GPU may have several EUs from each category.

[0147] Fig. 6A An example of a data flow that can be used to map workload threads to EU categories is shown. Fig. 6A, at 610, a three-dimensional (3D) or compute application kernel initiates access to an application programming interface (API). At 612, the existing API may optionally be enhanced for programmers to pass clues about resource requirements and workload characteristics (e.g., required FLOPS, threads / EU, compute vs. memory boundedness, etc.). At 614, in addition, the compiler will analyze the kernel based on the generated code and determine certain resource requirements - such as the number of registers used by each thread, the use of double-precision math, etc. The compiler passes this information to the driver. At 616, the driver will pass this information to the hardware as part of the kernel metadata via a table in system memory.

[0148] At 618, the thread scheduler unit in the GPU hardware will parse the EU resource requirement data from the command queue and dispatch the thread to the EU that matches the requirement as best as possible.

[0149] Figure 6B An example GPU 620 is shown with 2 EU classes, one with 4 threads / 32 registers per EU 622, and another with 8 threads / 16 registers per EU 720. Assume that 2 types of workload kernels are running on the GPU 620 at a given time (possibly from two different contexts), one with higher thread requirements and lower register requirements, and the other with lower thread requirements but higher register / thread requirements. The thread scheduler logic in the GPU 620 will utilize the EU classes to match kernel threads, thus running all threads efficiently. In existing designs, since there is only 1 type of EU, threads from one of the kernels will run inefficiently. This idea can be extended to other resource types, such as double precision floating point units, maximum frequency supported, etc.

[0150] As multi-core GPUs execute multiple contexts and applications, one challenge to address is load balancing between cores while optimizing power. The subject matter described herein implements techniques for collecting threads for a particular context via thread and thread group hopping. Figure 6C As illustrated in , in some examples, power consumption can be reduced by having a scheduler use software input to distribute processes for different workloads to various cores in a GPU.

[0151] Many highly parallel GPUs enable different applications to execute simultaneously. The method is designed to efficiently load the GPU and ensure that the GPU is properly utilized. However, without any consideration of physical proximity, this brings the complexity of a given workload can be spread to various computing clusters of GPUs. This may cause problems when one or more of the contexts that are completing but already executing cannot be merged for their distributed threads. This causes large parts of the GPU to be powered on, even if they are not being efficiently utilized.

[0152] refer to Figure 6C The subject matter described herein enables a GPU to switch threads or workgroups between different compute blocks 632 in order to unify the working sets with physical proximity to each other. In doing so, workgroup boundaries (i.e., boundaries) are defined. Once the boundary is reached, the context for that compute block 632 is saved and later restored to a different compute block. The thread dispatcher 630 can manage switching between compute blocks 632 that can occur at the thread level if the machine supports thread level preemption capabilities.

[0153] Once contexts are grouped together, unused portions of the GPU can be powered down to achieve power savings.

[0154] In another example, work may be dispatched based on applications in heterogeneous processor cores of a processor (such as a GPCPU, CPU, GPU, etc.), a graphics controller, etc. Fig.6D As shown in , different types of processor cores, a first type of core 642 illustrated as type A and a second type of core 644 illustrated as type B, may be present in processor 630. Each processor core 644 type may be configured for a given application, such as a different cache size, number of shaders, etc. One or more embodiments may dispatch work based on the application of heterogeneous processor cores of a processor (such as a GPCPU, CPU, GPU, etc.), a graphics controller, etc.

[0155] In another example, power consumption can be reduced by implementing power efficient rendering in heterogeneous GPUs. Taking a graphics system as an example, power may be wasted when the same type of GPU is used to perform different types of work / applications. Such systems generally consume the same power level regardless of the task because the same type of GPU is used for different tasks.

[0156] In one or more examples, power efficient rendering operations are performed on heterogeneous GPUs. Fig. 6E, different types of GPUs may be used (e.g., two are shown as a high performance (HP) GPU 654 and a low performance (LP) GPU 656). Each GPU type may be configured for a given application, such as a different cache size, number of shaders, etc.

[0157] For example, DX9 class GPUs may be a very small portion of the area of ​​DX12-capable GPUs; for example, if a user primarily has office or productivity apps (i.e., no 3D rendering with DX12-level computational requirements) or casual gaming, a lower-level DX9, i.e., LP GPU 656 may be used. In operation, GPU type selection logic 650 may select a GPU type (e.g., HP or LP) based on application-level settings (such as minimum API support), user CUI selections, and / or OS input. Thus, work may be selectively assigned to a particular type of GPU 654 / 656 according to command queue 652 (e.g., pursuant to determinations made by logic 650) and then organized / stored in memory hierarchy 658. In some examples, each command may embed parameters that cause the task to be directed to a particular core in the GPU (i.e., accomplished by the programmer via an API).

[0158] Currently, the same EU is used for all workloads, even high-latency (stall) workloads. In contrast, one or more embodiments reduce power consumption and / or use available resources more efficiently by providing one or more dedicated EUs. One or more embodiments described herein relate to dedicated high-efficiency execution units (EUs) for high-latency workloads provided in processors (such as GPCPUs, CPUs, GPUs, etc.), graphics controllers, etc.

[0159] refer to Fig. 6F In one or more embodiments, processor 660 may include multiple dedicated high-efficiency EUs 662 (e.g., with slower clock speeds and / or lower thread / resource counts) that are built for workloads with high latency potential. This allows for more efficient resource utilization and lower power consumption. In some examples, dedicated high-efficiency (HE) execution units (EUs) 662 are used for high-latency workloads.

[0160] In addition, different types of EUs are provided in a processor (such as a GPCPU, CPU, GPU, graphics controller, etc.), including high-efficiency (HE) EUs (e.g., having a slower clock speed (e.g., half the clock speed of other EUs), a lower thread resource count, etc.).

[0161] The scheduling logic 666 then steers / schedules the high latency workload based on the application 668 and / or workload type and / or based on the frame latency and / or idle count 670 .

[0162] One or more embodiments relate to a reconfigurable architecture provided in a processor (such as a GPCPU, CPU, GPU, etc.), a graphics controller, etc. In one or more examples, another pipeline such as a CPP stitches the stages of the pipeline.

[0163] like Figure 7A-7B As shown in, one or more embodiments relate to a reconfigurable architecture provided in a processor (such as a GPCPU, CPU, GPU, etc.), a graphics controller, etc. The reconfigurable GPU architecture can allow a reconfigurable rendering pipeline. PoSh, multiple contexts, overlapping of frames, etc. are very useful. All FF stages are accessed via GU compute using an ISA level offload / coprocessor model. The control plane processor allows management of the rendering graph.

[0164] Power components

[0165] 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 8 A 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 circuit 814).

[0166] More specifically, Figure 8A 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 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.

[0167] In one embodiment, an inductor (coupled between the downstream phase and the corresponding upstream phase) can be disposed outside of the semiconductor package 816 including 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 814 via one or more switching logics, wherein the one or more switching logics include a planar metal-oxide semiconductor field effect transistor (MOSFET). 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 (multiple) substrate layers (e.g., between semiconductor packages), on an integrated circuit die, or external to a semiconductor package (e.g., on a printed circuit board (PCB)).

[0168] Fig. 9900 is a block diagram of a system 900 including a streaming multiprocessor 902 in accordance with 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.

[0169] In some embodiments, one or more of the ALU(s) 906 and / or TEX unit(s) 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 per thread based on runtime information.

[0170] 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. As discussed herein, a "thread group" refers to a plurality of threads grouped in an ordered (e.g., sequential or continuous) thread index. Typically, a register file refers to an array of registers accessed by components of a processor such as those discussed herein (including a graphics processor). 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.

[0171] In some embodiments, the system may include several 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.

[0172] Fig.10 A block diagram of a parallel processing system 1000 according to one embodiment is illustrated. 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 a number P of PPUs. PPU-0 1004 and parallel processing memory 1006 may be implemented using one or more integrated circuit devices such as a programmable processor, an application specific integrated circuit (ASIC), or a memory device.

[0173] 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 specific switches 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.

[0174] Further, 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 relation to 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 be able to access its own (multiple) dedicated parallel processing memory devices, (multiple) non-dedicated parallel processing memory devices, or shared memory devices or caches.

[0175] 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.

[0176] In addition, if Fig.10 As shown in , 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 related to processing tasks). The front end 1020 can receive commands read by the host interface (e.g., from a push buffer). The front end 1020 then provides the command to a work scheduling unit 1022, which schedules and distributes the (multiple) operations / (multiple) tasks associated with the command to a processing cluster array or arithmetic subsystem 1024 for execution.

[0177] 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.

[0178] In addition, the processing tasks assigned by the work scheduling unit 1022 may include an index 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.

[0179] 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 switch unit 1032.

[0180] 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 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.

[0181] Furthermore, one of the main issues about 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.

[0182] 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.

[0183] Additionally, 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 its lifetime will easily exceed the original installation cost. Power usage comes from the components themselves, but also from the cooling that is 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 several of these machines in a room, and the air temperature in that room will very quickly begin to rise to fairly unacceptable levels.

[0184] Therefore, a lot of power is spent on installing air conditioning systems to ensure that the computers remain cool and can run without errors. This is especially true in the summer when temperatures can reach 85 / 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 enter the conventional heating system without any chance of the two liquids 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.

[0185] 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. When several such systems are installed (such as in a company or university computer center), it can make sense to use this waste heat energy to reduce heating bills elsewhere in the organization.

[0186] Many supercomputer installations locate themselves precisely next to major rivers because they require a ready supply of chilled 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 program design actually plays a very important role in power consumption. The most expensive operation in terms of power is 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 smaller than that of a poorly written program, you can see that rewriting old programs to take advantage of new features such as larger shared memories can reduce operating costs even in large data centers.

[0187] 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.

[0188] 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 also 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.

[0189] System Overview

[0190] 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, handheld device, or embedded device.

[0191] 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 to 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.

[0192] 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).

[0193] 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 may 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.

[0194] 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.

[0195] 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 of 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.

[0196] 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 .

[0197] 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 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. 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 is also able to access one or more shared cache units 1206.

[0198] 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.

[0199] 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 functions for various processor components. In some embodiments, the system agent core 1210 includes one or more integrated memory controllers 1214 for managing access to various external memory devices (not shown).

[0200] 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.

[0201] In some embodiments, the processor 1200 additionally 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 may be a separate module coupled to the graphics processor via at least one interconnect, or may be integrated within the graphics processor 1208 or the system agent core 1210.

[0202] 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 known in the art. In some embodiments, the graphics processor 1208 is coupled to the ring interconnect 1212 via an I / O link 1213.

[0203] 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.

[0204] 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, while at least one of the other cores executes a subset of the first instruction set or a different 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.

[0205] 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.

[0206] In some embodiments, the graphics processor 1300 also includes a display controller 1302 for driving display output data to a display device 1320. The display controller 1302 includes hardware for one or more overlapping planes of the display and 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) (such as MPEG-2), Advanced Video Coding (AVC) formats (such as H.264 / MPEG-4 AVC), and Society of Motion Picture & Television Engineers (SMPTE) 421 M / VC-1 and Joint Photographic Experts Group (JPEG) formats (such as JPEG, and Motion JPEG (MJPEG) formats).

[0207] 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.

[0208] 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. Although 3D pipeline 1312 can be used to perform media operations, embodiments of GPE 1310 also include a media pipeline 1316 that is specifically used to perform media operations, such as video post-processing and image enhancement.

[0209] 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 media operations on one or more graphics execution units included in the 3D / media subsystem 1315.

[0210] 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 for processing 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.

[0211] Graphics processing engine

[0212] 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.

[0213] In some embodiments, GPE 1410 is coupled to or includes a command streamer 1403 that provides a command stream to 3D pipeline 1312 and / or media pipeline 1316. In some embodiments, command streamer 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 streamer 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 .

[0214] 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.

[0215] 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 Figure 1 (multiple) processor cores 107 or Fig.12 The general logic within cores 1202A-1202N in the process performs processing operations in parallel or in combination.

[0216] Output data generated by threads executing on the graphics core array 1414 can output data to memory in a 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 the 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.

[0217] In some embodiments, graphics core array 1414 is scalable such that the array includes 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.

[0218] The graphics core array 1414 is coupled to a 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 supplementary functions to the graphics core array 1414. In various embodiments, the shared function logic 1420 includes, but is not limited to, a 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 the case where the demand for a given specialized function is insufficient to be included in the graphics core array 1414. Instead, a single instantiation of the 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 precise set of functions shared between and included within the graphics core array 1414 varies between embodiments.

[0219] 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.

[0220] 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.

[0221] 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 (multiple) 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, geometry pipeline 1536 and media engine 1537 each generate execution threads for thread execution resources provided by at least one graphics core 1580A.

[0222] 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.

[0223] Execution Unit

[0224] 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.

[0225] 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 separate execution units.

[0226] 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.

[0227] In some embodiments, execution units 1608A-1608N support instruction sets (the instruction set includes native support for many standard 3D graphics shader instructions) so that shader programs from graphics libraries (e.g., Direct 3D and OpenGL) are 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 the capability of multi-issue single instruction multiple data (SIMD) execution, and multi-threaded operation enables an efficient execution environment in the face of high latency memory access. Each hardware thread within each execution unit has a dedicated high-bandwidth register file and associated independent thread state. For pipelines with integer, single and double precision floating point operations, SIMD branching capabilities, logical operations, transcendental operations, and other miscellaneous operations, execution is multiple issues per clock. While waiting for data from memory or one of the shared functions, dependency logic within execution units 1608A-1608N causes 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 including a different vertex shader.

[0228] 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.

[0229] 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.

[0230] 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 functions to process texture or media data during the sampling process before providing the sampled data to the execution unit.

[0231] 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.

[0232] 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) for caching data via the data port for memory access.

[0233] 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 described and illustrated instruction format 1700 are macroinstructions in that they are instructions supplied to the execution unit, as opposed to micro-operations caused by instruction decoding once the instruction is processed.

[0234] 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 from embodiment to 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.

[0235] 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 enables 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 the 64-bit compressed instruction format 1730.

[0236] 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.

[0237] 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.

[0238] 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 including 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.

[0239] 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.

[0240] In some embodiments, instructions are grouped based on the opcode 1712 bit field to simplify opcode decoding 1740. For 8-bit opcodes, bits 4, 5, and 6 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.

[0241] Graphics Pipeline

[0242] 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.

[0243] In some embodiments, the graphics processor 1800 includes a graphics pipeline 1820, a media pipeline 1830, a display engine 1840, a thread execution logic 1850, and a rendering output pipeline 1870. In some embodiments, the 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 the graphics processor 1800 through a ring interconnect 1802. In some embodiments, the ring interconnect 1802 couples the graphics processor 1800 to other processing components, such as other graphics processors or general-purpose processors. Commands from the ring interconnect 1802 are interpreted by a command streamer 1803, which supplies instructions to separate components of the graphics pipeline 1820 or the media pipeline 1830.

[0244] 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.

[0245] 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.

[0246] 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 contains 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.

[0247] 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.

[0248] 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 outflow unit 1823.

[0249] 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 cache(s) 1851, texture and media samplers 1854, and texture / sampler cache 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 separate memory access paths.

[0250] 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. The 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.

[0251] 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 a thread spawning function for spawning threads for dispatching to the thread execution logic 1850 via the thread dispatcher 1831.

[0252] 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 contains 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.

[0253] 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, 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 APIs all from Khronos Group. In some embodiments, support can also be provided for Direct3D library from Microsoft. In some embodiments, a combination of these libraries can be supported. Support can also be provided for open source computer vision library (OpenCV). If a mapping from the pipeline of a future API to the pipeline of a graphics processor can be made, future APIs with compatible 3D pipelines will also be supported.

[0254] Graphics Pipeline Programming

[0255] 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 associated data 1906 of the command. Some commands also include a sub-opcode 1905 and a command size 1908.

[0256] In some embodiments, client 1902 specifies a client unit of a graphics device that processes command data. In some embodiments, a graphics processor command parser checks the client field of each command to adjust further processing of the command and routes the command data to the appropriate client unit. In some embodiments, a 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 for processing 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 based on the command opcode. In some embodiments, the commands are aligned via multiples of double words.

[0257] 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. Moreover, 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.

[0258] 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 into 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.

[0259] 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.

[0260] 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 for clearing data from one or more cache memories within the active pipeline before processing a batch of commands.

[0261] In some embodiments, return buffer state command 1916 is used to configure a set of return buffers for corresponding pipelines 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.

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

[0263] The commands for configuring the 3D pipeline state 1930 include 3D state setting 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.

[0264] 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.

[0265] 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 flush the command sequence through the graphics pipeline. The 3D pipeline will perform geometry processing for 3D primitives. Once the operation is completed, the resulting geometric objects are rasterized and the pixel engine shades the resulting pixels. Additional commands for controlling pixel shading and pixel backend operations may also be included for those operations.

[0266] 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 the media decoding can be performed in whole or in part using resources provided by one or more general processing cores. 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.

[0267] In some embodiments, the media pipeline 1924 is configured in a similar manner to the 3D pipeline 1922. A set of commands for configuring the media pipeline state 1940 are dispatched or placed into the command queue, before the media object commands 1942. In some embodiments, the media pipeline state commands 1940 include data for configuring the media pipeline elements that will be used to process the media objects. This includes data for configuring 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.

[0268] In some embodiments, media object commands 1942 supply pointers to media objects for processing by the media pipeline. The media object includes 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 states are configured and media object commands 1942 are queued, media pipeline 1924 is triggered via an execute command 1944 or an equivalent execute 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.

[0269] Graphics software architecture

[0270] 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.

[0271] 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.

[0272] In some embodiments, the operating system 2020 is a Microsoft® Windows® operating system from Microsoft Corporation, a proprietary UNIX-like operating system, or an open source UNIX-like operating system using a variant of the Linux kernel. The operating system 2020 can support a graphics API 2022, such as a Direct3D API, an OpenGL API, or a Vulkan API. When the Direct3D API is in use, the operating system 2020 uses a front-end shader compiler 2024 to compile any shader instructions 2012 in HLSL into a lower-level shader language. The compilation can be a just-in-time (JIT) compilation, or the application can perform shader precompilation. In some embodiments, during the compilation of the 3D graphics application 2010, a high-level shader is compiled into a low-level shader. 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 the Vulkan API.

[0273] In some embodiments, the user mode graphics driver 2026 includes a backend shader compiler 2027 for converting 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.

[0274] IP Core Implementation

[0275] 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 logic within a processor. When read by a machine, the instructions may cause 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 that 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. The integrated circuit may be manufactured so that the circuit performs the operations described in association with any of the embodiments described herein.

[0276] Fig.212 is a block diagram illustrating an IP core development system 2100 that can be used to manufacture an integrated circuit to perform an operation 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 generate a software simulation 2110 of the IP core design in a high-level programming language (e.g., C / C++). 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, including associated logic that is executed using the modeled digital signals. In addition to the RTL design 2115, a lower level design at the logic level or transistor level can also be created, designed, or synthesized. Therefore, the specific details of the initial design and simulation may vary.

[0277] The RTL design 2115 or equivalent can be further synthesized by the design facility into a hardware model 2120, which can be in 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, 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.

[0278] Exemplary System-on-Chip Integrated Circuit

[0279] 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.

[0280] 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, including a USB controller 2225, a UART controller 2230, an SPI / SDIO controller 2235, and an I 2 S / I 2 C controller 2240. In addition, 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 subsystem 2260 including flash memory and a flash 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.

[0281] 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. (Multiple) 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 processor(s) 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.

[0282] The graphics processor 2310 additionally includes one or more memory management units (MMUs) 2320A-2320B, cache(s) 2325A-2325B, and circuit interconnect(s) 2330A-2330B. The one or more MMUs 2320A-2320B are integrated circuits 2310 and include providing virtual to physical address mappings for the vertex processor 2305 and / or fragment processor(s) 2315A-2315N, which may reference vertex or image / texture data stored in memory in addition to 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 with 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.

[0283] 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 variation of the graphics processor 2210 of FIG. 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.

[0284] Graphics processor 2410 includes one or more shader cores 2415A-2415N (e.g., 2415A, 2415B, 2415C, 2415D, 2415E, 2415F through 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 in 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 tiling unit 2418 for accelerating tiling operations for tile-based rendering, in which rendering operations of a scene are subdivided in image space, for example to exploit local spatial coherence within the scene or to optimize use of internal caches.

[0285] Further examples follow.

[0286] Example 1 may optionally include a device comprising a plurality of execution units, the plurality of execution units including at least a first type of execution unit and a second type of execution unit; and logic, the logic at least partially including hardware logic, for analyzing a workload and assigning the workload to one of the first type of execution unit or the second type of execution unit.

[0287] Example 2 may optionally include the subject matter of Example 1, wherein the first type of execution unit is a low performance execution unit; and the second type of execution unit is a high performance execution unit.

[0288] Example 3 may optionally include the subject matter of any of Examples 1-2, wherein the first type of execution unit and the second type of execution unit reside on a common processor.

[0289] Example 4 may optionally include the subject matter of any of Examples 1-3, wherein the first GRF and the second GRF are separate processing structures.

[0290] Example 5 may optionally include the subject matter of any of Examples 1-4, wherein the first GRF and the second GRF are communicatively coupled to a common memory structure.

[0291] Example 6 may optionally include the subject matter of any of Examples 1-5, further comprising an application programming interface that allows a programmer to pass clues about one or more characteristics of the workload to the logic.

[0292] Example 7 may optionally include the apparatus of any of Examples 1-6, further comprising a compiler comprising logic, at least in part including hardware logic, to determine execution resource requirements based on the one or more characteristics of the workload.

[0293] Example 8 may optionally include the subject matter of any of Examples 1-7, further comprising a driver comprising logic, including at least in part hardware logic, to store execution resource requirements as kernel thread metadata.

[0294] Example 9 may optionally include the subject matter of any of Examples 1-8, further including a thread scheduler, the thread scheduler comprising logic, at least in part including hardware logic, to parse kernel thread metadata; and dispatching threads to the multiple execution units based at least in part on the kernel thread metadata.

[0295] Example 10 may optionally include the subject matter of any of Examples 1-9, wherein the plurality of execution units are on a single integrated circuit.

[0296] Example 11 may optionally include an electronic device comprising a processor having multiple execution units, the multiple execution units including at least a first type of execution unit and a second type of execution unit; and logic, the logic at least partially comprising hardware logic, for analyzing a workload and assigning the workload to one of the first type of execution unit or the second type of execution unit.

[0297] Example 12 may optionally include the subject matter of Example 11, wherein the first type of execution units are low performance execution units; and the second type of execution units are high performance execution units.

[0298] Example 13 may optionally include the subject matter of any of Examples 11-12, wherein the first type of execution unit and the second type of execution unit reside on a common processor.

[0299] Example 14 may optionally include the subject matter of any of Examples 11-13, wherein the first GRF and the second GRF are separate processing structures.

[0300] Example 15 may optionally include the subject matter of any of Examples 11-14, wherein the first GRF and the second GRF are communicatively coupled to a common memory structure.

[0301] Example 16 may optionally include the subject matter of any of Examples 11-15, further comprising an application programming interface that allows a programmer to pass clues about one or more characteristics of the workload to the logic.

[0302] Example 17 may optionally include the subject matter of any of Examples 11-16, further comprising a compiler comprising logic, at least in part including hardware logic, to determine execution resource requirements based on the one or more characteristics of the workload.

[0303] Example 18 may optionally include the subject matter of any of Examples 11-17, further comprising a driver comprising logic, including at least in part hardware logic, to store execution resource requirements as kernel thread metadata.

[0304] Example 19 may optionally include the subject matter of any of Examples 11-18, further including a thread scheduler, the thread scheduler comprising logic, at least in part including hardware logic, to parse kernel thread metadata; and dispatching threads to the multiple execution units based at least in part on the kernel thread metadata.

[0305] Example 20 may optionally include the subject matter of any of Examples 11-19, wherein the plurality of execution units are on a single integrated circuit.

[0306] In various embodiments, the operations discussed herein, for example with reference to the figures herein, may be implemented as hardware (e.g., logic circuits), software, firmware, or a combination thereof, which may be provided as, for example, a computer program product comprising one or more tangible (e.g., non-transitory) machine-readable or computer-readable media having instructions (or software procedures) stored thereon for programming a computer to perform the processes discussed herein. The machine-readable medium may include storage devices, such as those discussed with respect to the figures herein.

[0307] 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.

[0308] 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 one 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.

[0309] Also, in the specification and claims, the terms "coupled" and "connected," along 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.

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

[0311] Furthermore, the foregoing description and drawings are to be regarded in an illustrative rather than a restrictive sense. It will be understood by those skilled in the art that various modifications and changes may be made to the embodiments described herein without departing from the broader spirit and scope of the invention as set forth in the appended claims.

Claims

1. A device for implementing a hybrid low-power homogeneous graphics processing unit, comprising: a plurality of execution units, comprising at least a first type of execution unit and a second type of execution unit; as well as Logic, comprising at least in part hardware logic, to: Analyze workload; assigning the workload to one of a first type of execution unit or a second type of execution unit; Define work group boundaries; as well as Once a boundary is reached, the context for a computation block is saved and later restored to a different computation block, where switching threads or workgroups between different computation blocks unifies the working sets with physical proximity to each other; as well as A thread dispatcher manages the switching between computation blocks that occurs at the thread level and redistributes the workload to different execution units.

2. The device according to claim 1, wherein: The first type of execution unit is a low performance execution unit; and The second type of execution units are high performance execution units.

3. The device according to claim 2, wherein: The first type of execution unit and the second type of execution unit reside on a common processor.

4. The apparatus of claim 2, further comprising logic, wherein: The first type of execution unit and the second type of execution unit are separate processing structures.

5. The device according to claim 2, wherein: The first type of execution unit and the second type of execution unit are communicatively coupled to a common memory structure.

6. The apparatus of claim 1, further comprising an application programming interface that allows a programmer to pass clues about one or more characteristics of a workload to the logic.

7. The apparatus of claim 6, further comprising a compiler, the compiler comprising logic, at least in part comprising hardware logic, to: Execution resource requirements are determined based on the one or more characteristics of the workload.

8. The apparatus of claim 7, further comprising a driver, the driver comprising logic, at least in part comprising hardware logic, to: Stores execution resource requirements as kernel thread metadata.

9. The apparatus of claim 8, further comprising a thread scheduler, the thread scheduler comprising logic, at least in part comprising hardware logic, to: Parsing kernel thread metadata; and Threads are dispatched to the plurality of execution units based at least in part on kernel thread metadata.

10. The apparatus of claim 1, wherein the plurality of execution units are on a single integrated circuit.

11. An electronic device for implementing a hybrid low-power homogeneous graphics processing unit, comprising: a processor having a plurality of execution units including at least a first type of execution unit and a second type of execution unit; as well as Logic, comprising at least in part hardware logic, to: Analyze workload; assigning the workload to one of a first type of execution unit or a second type of execution unit; Define work group boundaries; as well as Once a boundary is reached, the context for a computation block is saved and later restored to a different computation block, where switching threads or workgroups between different computation blocks unifies the working sets with physical proximity to each other; as well as A thread dispatcher manages the switching between computation blocks that occurs at the thread level and redistributes the workload to different execution units.

12. The electronic device according to claim 11, wherein: The first type of execution unit is a low performance execution unit; and The second type of execution units are high performance execution units.

13. The electronic device according to claim 12, wherein: The first type of execution unit and the second type of execution unit reside on a common processor.

14. The electronic device of claim 12, further comprising logic, wherein: The first type of execution unit and the second type of execution unit are separate processing structures.

15. The electronic device according to claim 12, wherein: The first type of execution unit and the second type of execution unit are communicatively coupled to a common memory structure.

16. The electronic device of claim 11, further comprising an application programming interface that allows a programmer to pass clues to the logic regarding one or more characteristics of a workload.

17. The electronic device of claim 16, further comprising a compiler, the compiler comprising logic, at least in part comprising hardware logic, to: Execution resource requirements are determined based on the one or more characteristics of the workload.

18. The electronic device of claim 17, further comprising a driver, the driver comprising logic, at least in part comprising hardware logic, to: Stores execution resource requirements as kernel thread metadata.

19. The electronic device of claim 18, further comprising a thread scheduler, the thread scheduler comprising logic, at least in part comprising hardware logic, to: Parsing kernel thread metadata; and Threads are dispatched to the plurality of execution units based at least in part on kernel thread metadata.

20. The electronic device of claim 11, wherein the plurality of execution units are on a single integrated circuit.

Citation Information

Patent Citations

  • Structural Power Reduction in Multithreaded Processor

    US20090293061A1

  • Apparatus and method for pattern driven self-adaptive virtual graphics processor units

    WO2017049538A1