Affinity-based graphics scheduling
Abstract
Techniques are disclosed relating to affinity-based scheduling of graphics work. In disclosed embodiments, first and second groups of graphics processor sub-units may share respective first and second caches. Distribution circuitry may receive a software-specified set of graphics work and a software-indicated mapping of portions of the set of graphics work to groups of graphics processor sub-units. The distribution circuitry may assign subsets of the set of graphics work based on the mapping. This may improve cache efficiency, in some embodiments, by allowing graphics work that accesses the same memory areas to be assigned to the same group of sub-units that share a cache.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 80 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
An apparatus, comprising: first and second groups of graphics processor sub-units, wherein the first group of sub-units shares a first cache and the second group of sub-units shares a second cache; distribution circuitry configured to: receive a software-specified set of graphics work and a software-indicated mapping of portions of the set of graphics work to groups of graphics processor sub-units; and assign, based on the mapping, a first subset of the set of graphics work to the first group of graphics sub-units and a second subset of the set of graphics work to the second group of graphics sub-units; and work sharing control circuitry configured to: determine that another group of sub-units that share a cache have dispatched all of their assigned portion for the set of graphics work; update a hardware-implemented finite state machine based on the determination, wherein the hardware finite state machine is implemented using sequential circuitry and combinational circuitry; and overri
- Claim 2Depends on #1
The apparatus of claim 1, wherein the apparatus includes control circuitry configured to store, in configuration registers, multiple mappings of portions of sets of graphics work to groups of graphics processor sub-units.
- Claim 3Depends on #1
The apparatus of claim 1, wherein the set of graphics work is a compute kernel.
- Claim 4Depends on #3
The apparatus of claim 3, wherein the distribution circuitry includes: primary kernel walker circuitry configured to determine the portions of the compute kernel; first group walker circuitry configured to iterate portions of the compute kernel assigned to the first group of graphics sub-units to determine batches of workgroups; and second group walker circuitry configured to iterate portions of the compute kernel assigned to the second group of graphics sub-units to determine batches of workgroups.
- Claim 5Depends on #4
The apparatus of claim 4, wherein the distribution circuitry further includes: group walker arbitration circuitry configured to select from among batches of workgroups determined by the first and second group walker circuitry; and sub-unit assign circuitry configured to assign batches selected by the group walker arbitration circuitry to one or more graphics sub-units in the group of sub-units corresponding to the selected group walker circuitry.
- Claim 6Depends on #1
The apparatus of claim 1, wherein the apparatus supports mappings of portions of sets of graphics work to groups of graphics processor sub-units for multiple dimensionalities including single-dimension, two-dimensional, and three-dimensional.
- Claim 7Depends on #1
The apparatus of claim 1, further comprising: circuitry that implements a plurality of logical slots, wherein a set of sub-units in the first and second groups each implement multiple distributed hardware slots; and control circuitry configured to: assign the set of graphics work to a first logical slot; determine a distribution rule for the set of graphics work that indicates to whether distribute to all of the graphics processor sub-units in the set or to distribute to only a portion of the graphics processor sub-units; and determine mappings between the first logical slot and respective sets of one or more distributed hardware slots based on the distribution rule and based on the mappings of portions of the set of graphics work to groups of graphics processor sub-units.
- Claim 8Independent Claim
A non-transitory computer-readable storage medium having stored thereon design information that specifies a design of at least a portion of a hardware integrated circuit in a format recognized by a semiconductor fabrication system that is configured to use the design information to produce the circuit according to the design, wherein the design information specifies that the circuit includes: first and second groups of graphics processor sub-units, wherein the first group of sub-units shares a first cache and the second group of sub-units shares a second cache; distribution circuitry configured to: receive a software-specified set of graphics work and a software-indicated mapping of portions of the set of graphics work to groups of graphics processor sub-units; and assign, based on the mapping, a first subset of the set of graphics work to the first group of graphics sub-units and a second subset of the set of graphics work to the second group of graphics sub-units; and work sharing co
Technical Overview & Description
BACKGROUND Technical Field This disclosure relates generally to graphics processors and more particularly to techniques for distributing graphics work in graphics processors with multiple replicated processing elements. Description of the Related Art Given their growing compute capabilities, graphics processing units (GPUs) are now being used extensively for large-scale workloads. Workloads may include vertex shader, fragment shader, and compute tasks, for example. APIs such as Metal and OpenCL give software developers an interface to access the compute power of the GPU for their applications. In recent times, software developers have been moving substantial portions of their applications to using the GPU. As process technologies shrink and GPUs become more powerful, they may contain large numbers of shader cores. Software or firmware may provide units of work to be performed, referred to as “ kicks. ” Data master circuitry (e.g., a compute data master, vertex data master, and pixel data master) may distribute work from these kicks to multiple replicated shader cores, e.g., over a communications fabric. As the number of shaders scales, work distribution and scheduling techniques may substantially affect performance and power consumption. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 A is a diagram illustrating an overview of example graphics processing operations, according to some embodiments. FIG. 1 B is a block diagram illustrating an example graphics unit, according to some embodiments. FIG. 2 is a block diagram illustrating example primary control circuitry configured to map logical slots to distributed hardware slots, according to some embodiments. FIG. 3 is a block diagram illustrating primary control circuitry and example groups of GPU hardware sub-units, according to some embodiments. FIG. 4 is a diagram illustrating three example distribution modes for mapping logical slots to distributed hardware slots, according to some embodiments. FIG. 5 is a diagram illust
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (80)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Zahaf et al.;
- “
- Contention-Aware GPU Partitioning and Task-to-Partition Allocation for Real-TimeWorkloads
- ”
- ; Apr. 9, 2021, Association for Computing Machinery; https://doi.org/10.1145/3453417.3453439; (Zahaf_2021.pdf; pp. 226-236) (Year: 2021).
- Jain et al.;
- “
- Fractional GPUs: Software-based Compute and Memory Bandwidth Reservation for GPUs
- ”
- ; Carnegie Mellon University; 2019 IEEE Real-Time and Embedded Technology and Applications Symposium (RTAS); (Jain_2019.pdf; pp. 29-41) (Year: 2019).