Hardware processing resources in virtualized processors

By introducing CGA and vGPC technologies, the production loss and migration compatibility issues caused by GPU chip manufacturing defects have been resolved, enabling compatibility and flexible migration of chips with different TPC/GPC profiles, and improving resource utilization efficiency in cloud computing environments.

CN116774000BActive Publication Date: 2026-11-20NVIDIA CORP
View PDF 22 Cites 0 Cited by

Patent Information

Application Number
CN202211253938.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2022-03-10
Filing Date
2022-10-13
Publication Date
2026-11-20
Estimated Expiration
2042-10-13

AI Technical Summary

Technical Problem

In the existing technology, GPU chips suffer from severe production losses due to manufacturing defects, and the migration and compatibility issues between chips in cloud computing and high-performance computing are difficult to solve, especially when there are differences in the internal structure of the chips.

Method used

By introducing Collaborative Group Array (CGA) and Virtual GPU Processing Cluster (vGPC) technologies, and through flexible TPC and GPC migration mechanisms, chips with different TPC/GPC profiles are allowed to be compatible within the same product SKU. The virtual GPC provides a consistent view and supports flexible migration and dynamic resource management across GPU chips.

Benefits of technology

It improves GPU chip yield and migration compatibility in cloud computing environments, ensures consistency of the programmer's view, and reduces resource waste and power consumption caused by manufacturing defects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116774000B_ABST
    Figure CN116774000B_ABST
Patent Text Reader

Abstract

Hardware processing resources in virtualized processors are disclosed. Processing hardware of a processor is virtualized to provide an appearance between a consistent programming interface and a particular hardware instance. Hardware processor components can be permanently or temporarily disabled when support for the consistent programming interface is not needed and / or when balancing hardware processing across hardware arrangements, such as integrated circuits, is not needed. Executing software can be migrated from one hardware arrangement to another without needing to reset the hardware.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Cross-references to related applications This application relates to the following jointly assigned, jointly pending U.S. patent applications, the entire contents of each of which are incorporated herein by reference: • U.S. Patent Application No. 17 / 691,276, filed on March 10, 2022, entitled “Method and Apparatus For Efficient Access To Multidimensional Data Structures And / or Other Large Data Blocks”; • U.S. Application No. 17 / 691,621, entitled “Cooperative Group Arrays,” filed on March 10, 2022; • U.S. Patent Application No. 17 / 691,690, entitled "Distributed Shared Memory," filed on March 10, 2022; • U.S. Patent Application No. 17 / 691,288, filed on March 10, 2022, entitled “Programmatically Controlled Data Multicasting Across Multiple ComputeEngines”; • U.S. Application No. 17 / 691,296, filed on March 10, 2022, entitled “Hardware-Accelerated Synchronization with Asynchronous Transaction Support”; • U.S. Application No. 17 / 691,303, filed on March 10, 2022, entitled "Fast Data Synchronization In Processors And Memory"; • U.S. Application No. 17 / 691,406, filed on March 10, 2022, entitled “Efficient Matrix Multiply and Add with a Group of Warps”; • U.S. Patent Application No. 17 / 691,872, filed on March 10, 2022, entitled "Techniques for Scalable Load Balancing of Thread Groups in a Processor"; • U.S. Patent Application No. 17 / 691,808, filed on March 10, 2022, entitled "Flexible Migration of Executing Software Between Processing Components Without Need For Hardware Reset"; and • U.S. Patent Application No. 17 / 691,422, filed on March 10, 2022, entitled “Method and Apparatus For Efficient Access To Multidimensional Data Structures And / Or Other Large Data Blocks”. Technical Field

[0002] This paper relates to the technology of integrated circuit design, and more specifically, to addressing problems related to manufacturing defects in complex chips, including but not limited to graphics processing units (GPUs). The technology further relates to defining virtual GPU processing clusters, which are abstractions of logical or physical circuitry, for providing compatibility between chips with different structured architectures; flexible migration between GPU processing clusters and their processing components; balancing floorswept / disabled / non-functional and full-functional hardware across integrated circuit substrates; and dynamic disabling of processing resources that allows hardware to be selectively shut down when not needed. Background Technology

[0003] The overall goal of GPU integrated circuit or chip design is to deliver maximum performance and maximum chip manufacturing yield. Larger chips have more circuitry, thus achieving higher performance. However, larger chips tend to have lower yields due to the higher probability of manufacturing defects, as the number of manufacturing defects on a chip is roughly proportional to its area.

[0004] Due to the high tolerances required in manufacturing complex chips, such as GPUs, it is not uncommon for some circuits or operations on a particular chip to be defective. Sometimes, these defects are so critical to the chip's operation that the chip needs to be scrapped. However, because modern GPUs are designed for massive parallelism, in many cases, defects only affect one or some of the parallel functional blocks, leaving the other parallel functional blocks fully operational.

[0005] One technique used to increase semiconductor manufacturing yield is called "floorsweeping." To overcome reduced yield on larger chips, defective circuitry can be turned off, disabled, or made inaccessible, creating a fully functional chip with fewer total functional circuitry compared to a defect-free chip. Therefore, "floorsweeping" is a process or technique by which manufacturing defects or other errors present in an integrated circuit can be disabled and / or bypassed or otherwise made inaccessible (e.g., by opening internal wiring through a fuse), allowing the integrated circuit to retain some or all of its designed functions. Each chip may also include on-chip programmable floorweeping circuitry capable of performing floorweeping on the chip in response to commands imposed externally by chip testing / programming equipment. This floorweeping can enable integrated circuits such as GPUs or CPUs to maintain consistent operation despite the presence of one or more manufacturing defects. See, for example, US20150149713A1. Occasionally, for consistency across multiple chips, floorweeping is also used to permanently disable unwanted full-featured portions of a superchip, for example, to reduce power consumption and heat generation. This is sometimes accomplished in the prior art, such that all chips in a given stock unit (“SKU”) product identifier have the same number of accessible / operable TPCs.

[0006] Figure 1 This illustrates an example GPU chip die manufactured on a semiconductor wafer or substrate. The chip die comprises truly billions of circuits that work together to deliver high-performance computing and 3D graphics. From Figure 1 This provides an idea of ​​the complexity of the chip design. For example, the particular chip shown includes 8 Graphics Processing Clusters (GPCs), each GPC has 8 TPCs (TPC = Texture Processing Cluster), each TPC has 2 SMs (SM = Streaming Multiprocessors), each GPC has 16 SMs, each full GPU has 128 SMs, each SM has 64 FP32 CUDA cores, each full GPU has 8192 FP32 CUDA cores, each SM has 4 Tensor Cores, each full GPU has 512 Tensor Cores, 6 HBM2 stacks, and is located at 628.4mm. 2The die size includes twelve 512-bit memory controllers with over 28 billion transistors. In this particular chip, two SMs together comprise texture processor clusters, or TPCs. Eight of these TPCs (and therefore sixteen of these SMs) comprise higher-level blocks known as GPU processing clusters (“GPCs”), and eight of these GPCs constitute the full GPU. There are also eight multi-instance GPUs, or MIG slices, which can be used independently as virtual inference engines and virtual GPUs for desktop infrastructure. See, for example: https: / / docs.nvidia.com / pdf / Ampere_Tuning_Guide.pdf; https: / / developer.nvidia.com / blog / nvidia-ampere-architecture-in-depth / ; NVIDIA A100 Tensor Core GPU Architecture v1.0 (NVIDIA 2020); and Figure 29 .

[0007] Manufacturing defects are statistically likely to occur on dies of this complexity. If any chip found to have any defects were discarded, most chips would be discarded and yields would be very low. For example, a GPU design with 72 physically parallel processing blocks, called texture processing clusters or “TPCs,” would have very low yields if the shipping product SKU for that part required all 72 TPCs to be functional. However, just like “baker’s dozen,” which is more than 12, only in the case of some baked goods being underweight, let’s assume the product SKU for a chip assumes 4 TPCs are defective. Then, a chip with 68 or more working TPCs can be included in the product SKU. This means that chips with 72, 71, 70, 69, or 68 good TPCs can be sold as a 68-TPC GPU under the product SKU.

[0008] Some chip manufacturers routinely have multiple product SKUs from a single chip design, where each SKU has a different number of functional circuit blocks. For example, in many cases, each GPU chip family has multiple physically different chip designs, primarily distinguished by the number of GPCs and TPCs. For each chip design, manufacturers can trade off yield (more underlying clear means higher throughput) and performance (more underlying clear means lower performance). Often, especially for large chips, manufacturers may have multiple SKUs for a given chip design, where they have fundamentally different underlying clears, resulting in performance differences that are not subtle. Therefore, there are important scenarios where all chips designated by a particular product SKU are required to have a consistent capability profile.

[0009] In particular, as mentioned above, Figure 1 The chips shown are organized with a certain number of GPCs, each GPC having a certain number of TPCs, and each TPC having a certain number of SM processor cores. For example, suppose... Figure 1 The physical chip layout is designed with 8 GPCs, each with 9 TPCs. Then, in the event that 4 TPCs are shut down, for example due to defects, the product SKU may have 4 GPCs with 8 TPCs each and 4 GPCs with 9 TPCs each. An example naming for this "configuration" is 8 / 8 / 8 / 8 / 9 / 9 / 9 / 9. In this naming convention, GPCs are sorted from the fewest TPCs to the most. After sorting, GPCs are numbered logically from 0 to 7. Specifically, a TPC can have a physical TPC ID (e.g., a consecutive number of physical TPCs laid out on the GPC substrate) and a logical TPC ID (e.g., a consecutive number assigned to TPCs within the GPC after determining the above configuration). The logical TPC ID numbering can follow a uniform pattern; for example, it can start from 0 for the first operating TPC in each GPC.

[0010] For the chips to be included in a product SKU, it doesn't matter which GPCs have 8 TPCs, because in the example GPU design, the boot-time logical GPC numbering process can sort physical GPCs from fewest to most TPCs by assigning logical GPC IDs. Thus, even if different physical TPCs may have failed in different chips, these differences can be hidden using logical TPC IDs and / or logical GPC IDs to provide consistency across product SKUs by: (a) normalizing the SKU to use fewer than the maximum number of physical TPCs, (b) testing and binning these parts so that parts with too many failed TPCs are not included in the SKU, and (c) dynamically assigning logical GPC IDs at power-on / reboot. Such consistency is useful, for example, when the use of GPUs in high-performance computing (HPC) and cloud computing requires migrating context from one GPU to another, as migration often requires matching profiles between GPUs within the same product SKU. See above-identified U.S. Application No. 17 / 691,808, filed on March 10, 2022, entitled "Flexible migration of execution software between processing components without hardware reset".

[0011] Figure 2A , Figure 2B , Figure 2C The figure graphically illustrates three different configurations of a GPU designed and manufactured with eight logical GPCs (labeled 0-7), each GPC having nine TPCs. In this figure, each cell in each configuration represents a TPC. The x-axis is labeled with "logical" GPC IDs as discussed above, and the blocks in the vertical column above each logical GPC ID reflect the number of TPCs in each GPC. The figure also shows some of the less desirable TPCs. Specifically, these blocks, indicated by dark cross lines, are "dead" and unusable for processing.

[0012] As an example, Figure 2A , Figure 2B , Figure 2CEach of the three GPU configurations shown has 68 fully functional TPCs, with 4 failed TPCs indicated by cross lines. There may be a rule that any chip with more than 4 failed TPCs cannot be included in a particular product SKU. The difference between the three example configurations shown is how the failed TPCs are distributed across the chip's GPCs. In the left-hand configuration, GPCs 0, 1, 2, and 3 each have a single failed TPC (8 / 8 / 8 / 8 / 9 / 9 / 9 / 9) – that is, the failed TPCs are distributed, so no GPC has more than one failed TPC. However, since manufacturing defects occur essentially randomly, many other distributions are possible. For example, in the right-hand configuration, GPC0 has three failed TPCs and GPC1 has a single failed TPC (6 / 8 / 9 / 9 / 9 / 9 / 9 / 9). In the intermediate configuration, GPC0 has two failed TPCs, and GPC1 and GPC2 each have one failed TPC (7 / 8 / 8 / 9 / 9 / 9 / 9 / 9). It's also possible to have two failed TPCs in each of two GPCs, and four failed TPCs in the same GPC. Note that because these diagrams reflect logical GPC IDs, they are pre-ordered, so all failed TPCs appear on the left side of the diagram; however, if we look at the physical GPC IDs, failed TPCs can be anywhere on the chip.

[0013] The goal is to make these three different chips appear "identical" to software and human programmers, even though they are quite different internally. One criterion for this arrangement is the number of failed TPCs within each GPC. Rules can be established that are acceptable for a specific product SKU, allowing a GPC to have no more than one failed TPC. Under this profile matching strategy, 7 / 8 / 8 / 9 / 9 / 9 / 9 / 9 ( Figure 2B Chips with the configuration of 8 / 8 / 8 / 8 / 9 / 9 / 9 / 9 / 9 cannot be included. Figure 2A In product SKUs, even if the total number of functional TPCs matches, the TPCs per GPC profile do not match. That is, logical GPCs are not matched one-to-one in their TPC counts. Specifically, a product SKU with a configuration of 8 / 8 / 8 / 8 / 9 / 9 / 9 / 9 will require at least 8 functional TPCs per GPC, so a chip with a configuration of 7 / 8 / 8 / 9 / 9 / 9 / 9 / 9 will not meet this requirement.

[0014] However, disallowing 7 / 8 / 8 / 9 / 9 / 9 / 9 / 9 chips from a product SKU can significantly reduce available yield. Discarding 7 / 8 / 8 / 9 / 9 / 9 / 9 / 9 chips with 68 fully functional TPCs simply because the four non-functional TPCs, which happen to be distributed differently, is potentially quite wasteful. This problem becomes even more severe as more hardware units become defective—for example, Figure 2C The diagram shows a 6 / 8 / 9 / 9 / 9 / 9 / 9 / 9 / 9 configuration for a CPU chip that again has 68 fully functional TPCs, but this time one of its GPCs only has 6 fully functional TPCs. Or consider an example such as 5 / 9 / 9 / 9 / 9 / 9 / 9 / 9 / 9, which once again has 68 fully functional TPCs, but all four of its faulty TPCs are in the same GPC.

[0015] Of course, several different product SKUs could be created, and chips could be "warehousing" into those different SKUs depending on how many TPCs fail per GPC. This is like buying apples or tomatoes from a "seconds" warehouse at a farmers' market—consumers might pay less for a lower-capacity chip. However, a proliferation of product SKUs is often not a solution to the problem because it causes consumer confusion and logistical complexity, and also because applications written for modern GPUs demand more than ever before in terms of requiring a minimum level of parallelism and performance across various contexts. Specifically, while the market for lower-capacity GPU chips may be limited, many applications now require the ability to migrate execution software from one chip in the data center to another. Therefore, a better solution is needed.

[0016] Example hardware background With further information, Figure 3 and Figure 4 This illustrates the various hardware partitions and tiers that modern GPUs can offer. In these examples, the SMs (Structured Modules) within the GPU can be divided into larger functional units. For instance, a GPU's Graphics Processing Cluster (GPC) may include multiple Texture Processing Clusters (TPCs) (each of which may include one or more SMs) and additional arrays of SMs (e.g., for computational power) as well as other supporting hardware, such as ray tracing units for real-time ray tracing acceleration.

[0017] Figure 3 The illustration shows GPU hardware partitioned into multiple GPU processing clusters (“GPCs”), each GPC comprising multiple texture processing clusters (“TPCs”), each texture processing cluster comprising one or more (e.g., two) streaming multiprocessors (SMs), each streaming multiprocessor further comprising multiple processing cores. A GPC may also include additional SM groups not assigned to a TPC. Figure 4This is a block diagram illustrating how the array 230 of the GPC 208 is supported by I / O units 205, host interface 206, front end 212, task / work units 207 which may include a compute work distributor (CWD), crossbar switch 210, memory interface partitioning unit 215, and associated on-chip memory 220. Figure 4 It is also shown that the entire system may include any number of such multi-GPC processing units 202 and associated memory 204 coupled to the host CPU via memory bridge 105.

[0018] Each SM can be further partitioned into multiple independent processing blocks. Each processing block has one or more different types of kernels (e.g., FP32, INT32, tensor, etc.), a thread bundle scheduler, a dispatch unit, and a local register file, such as... Figure 5 This is reflected in the text. Figure 5 The example architecture diagram of a modern SM includes advanced computing hardware capabilities, including numerous parallel mathematical cores such as multiple tensor cores in addition to texture processing units. For example, the 2017 NVIDIA Volta GV100 SM is currently partitioned into four processing blocks, each with 16 FP32 cores, 8 FP64 cores, 16 INT32 cores, two mixed-precision tensor cores for deep learning matrix arithmetic, an L0 instruction cache, a thread bundle scheduler, a dispatch unit, and a 64KB register file—and future GPU designs are likely to continue this trend. This increased computational parallelism enables significant reductions in computation time. As discussed above, each TPC may include one or more SMs. For example, in one embodiment, each TPC includes a pair of SMs, but other embodiments may have different arrangements.

[0019] Figure 5A and Figure 5B This illustrates how some GPU implementations (e.g., NVIDIA Ampere) can enable multiple partitions operating as “microGPUs” (such as µGPU0 and µGPU1), where each microGPU comprises a portion of the processing resources of the entire GPU. When the GPU is partitioned into two or more separate, smaller µGPUs for access by different clients, resources (including physical memory devices 165, such as local L2 cache memory) are typically also partitioned. For example, in one design, a first half-physical memory device 165 coupled to µGPU0 may correspond to a first set of memory partition locations, and a second half-physical memory device 165 coupled to µGPU1 may correspond to a second set of memory partition locations. Performance resources within the GPU are also partitioned according to these two or more separate, smaller processor partitions. Resources may include L2 cache resources 170 and processing resources 160.

[0020] In addition, there is a Multi-Instance GPU (“MIG”) feature (which differs from “Micro GPU”), which allows GPUs to be securely partitioned for CUDA. TM (“Unified Compute Device Architecture”) applications utilize multiple separate GPU instances, providing individual GPU resources to multiple users to accelerate their respective applications. For example, MIG partitions GPUs into N partitions at GPC boundaries, typically 8, 4, 2, or 1 GPC per partition. For cloud service providers (CSPs) with multi-tenant use cases, in addition to providing enhanced isolation to customers, MIG ensures that one client cannot affect the work or scheduling of other clients. Using MIG, each instance’s processors have an independent and isolated path across the entire memory system—on-chip crossbar switches, L2 cache libraries, memory controllers, and DRAM address buses are all uniquely assigned to the individual instance. This ensures that individual user workloads can run with predictable throughput and latency, with the same L2 cache allocation and DRAM bandwidth, even if other tasks are thrash their own caches or saturate their DRAM interfaces. MIG can partition available GPU compute resources, including streaming multiprocessors or SMs, and GPU engines such as replication engines or decoders, to provide defined Quality of Service (QoS) with fault isolation for different clients such as VMs, containers, or processes. MIG thus enables multiple GPU instances to run in parallel on a single physical GPU. See, for example... https: / / www.nvidia.com / en-us / technologies / multi-instance-gpu / ; and https: / / docs.nvidia.com / datacenter / tesla / mig-user-guide / ; and Figure 29 .

[0021] Figure 5C This illustrates how multithreaded software can be organized into cooperative thread groups or CTAs capable of running concurrently on different hardware partitions. For example, each CTA can run on a different SM, where all threads of the CTA run concurrently on the same SM. However, in existing designs, programmers often want different CTAs launched simultaneously to finish running on different SMs at different times. Similarly, the aforementioned MIG feature allows different programs from the same or different users to run concurrently on the same GPU hardware without interference.

[0022] For more information on such existing GPU hardware architectures and arrangements, see, for example, USP8,112,614; USP7,506,134; USP7,836,118; USP7,788,468; US10909033; US20140122809; Linholm et al., “NVIDIA Tesla: A Unified Graphics and Computing Architecture,” IEEE Micro (2008). https: / / docs.nvidia.com / cuda / parallel-thread-execution / index.html (retrieved in 2021); Xiao Kai et al., “Volta: Performance and Programmability”, IEEE Micro (Vol. 38, No. 2, March / April 2018), DOI: 10.1109 / MM.2018.022071134.

[0023] Migration Challenges Enterprises are increasingly turning to cloud-based solutions. For example, cloud-based solutions offer the flexibility and simplified management needed to support new jobs from anywhere. With the cloud adoption of NVIDIA GPUs and software, the possibilities are endless. Modern workloads, including artificial intelligence (AI), high-performance computing (HPC), data science, and graphics workstations, can leverage the performance of physical systems to be supported by the cloud.

[0024] High-performance computing (HPC) cloud installations frequently leverage the virtualization of computing resources. In a virtualized environment powered by NVIDIA Virtual GPUs, NVIDIA Virtual GPU (vGPU) software, along with the hypervisor, is installed at the virtualization layer. This software creates a virtual GPU that allows each virtual machine (VM) to share the power of a physical GPU mounted on the server. For more demanding workflows, a single VM can utilize the power of multiple physical GPUs. For example, an installation may include many nodes, each of which may include several CPUs and several GPUs. Each node may support multiple virtual machines (VMs), each running its own instance of an operating system (OS). This GPU sharing relies on VDI software to provide an abstraction layer that allows client applications to behave as if they have their own physical, dedicated GPU, while the server's GPU (and drivers) can perceive itself as responding to a primary host. The VDI hypervisor running on the server intercepts API calls and translates commands, drawing contexts, and process-specific address spaces before passing them to the graphics driver. The software may include a graphics or compute driver for each VM. Users experience a significantly improved experience because tasks typically performed by the CPU in existing cloud-based solutions are now offloaded to the GPU. See, for example, Herrera, “Nvidia Grid: Graphics Accelerated VDI With The Visual Performance of A Workstation” (NVIDIA May 2014); US20150067672; US20150009222; and Li Shi et al., “vCUDA: GPU-Accelerated High-Performance Computing in Virtual Machines”, IEEE Transactions on Computers, Vol. 61, No. 6, pp. 804-816, June 2012, doi: 10.1109 / TC.2011.112.

[0025] HPC installations should be able to migrate VMs from one part of the installation to another. For example, when a node is removed for maintenance, all VMs on that node are migrated to a different node. As another example, an entire rack can be powered down, but only after all active VMs have been migrated to a different rack. During migration, programs running on the migrated VMs are preemptively moved from one or more CPUs and one or more GPUs, memory images, and context save buffers to a different location within the HPC installation, where the VMs can resume running.

[0026] At a more fundamental level, some forms of migration involve taking all the work running on one GPU chip and moving it to another. This type of migration typically requires a uniform TPC profile per GPC across the source and target GPU chips. However, in the cloud, there may be hundreds or even thousands of GPU chips that could constitute the target GPU chip. This is why, in some implementations, uniformity of the TPC per GPC profile is desired across the entire GPU product SKU. In this way, uniformity will exist across any GPU chip with the same SKU.

[0027] Previously, to allow VMs to migrate between GPUs, the TPC profile for each GPC was required to be consistent across all chips in a product SKU. For example, if a chip layout has 8 GPCs, each with 9 TPCs, and 4 TPCs are shut down due to defects, a product SKU could have 4 GPCs each with 8 TPCs and 4 GPCs each with 9 TPCs. Our naming convention for this "configuration" is 8 / 8 / 8 / 8 / 9 / 9 / 9 / 9. Note that in this naming convention, GPCs are sorted from the fewest to the most TPCs. After sorting, GPCs are numbered logically from 0 to 7. For the chips to be included in the product SKU, it doesn't matter which GPCs have 8 TPCs, because the boot-time logical GPC numbering process can sort physical GPCs from the fewest to the most TPCs by assigning logical GPC IDs. However, in previous designs, chips with configurations of 7 / 8 / 8 / 9 / 9 / 9 / 9 could not be included in product SKUs with configurations of 8 / 8 / 8 / 8 / 9 / 9 / 9 / 9, even if the total number of TPCs matched, because the TPCs per GPC profile did not match. That is, logical GPCs were not matched one-to-one in their TPC counts. The same TPC per GPC profile makes migration possible because preempted programs on the GPC at the migration source have a one-to-one TPC correspondence with the GPC at the migration destination. Therefore, in the past, it was required that GPUs in the same product SKU have the same TPC per GPC profile. Previously, in order to include both chips with configurations of 7 / 8 / 8 / 9 / 9 / 9 / 9 / 9 and 8 / 8 / 8 / 8 / 9 / 9 / 9 / 9 / 9 (both with 68 total TPCs), it was necessary to downgrade both chips to the "worst" common TPC per GPC profile, namely 7 / 8 / 8 / 8 / 9 / 9 / 9 / 9 (with 67 total TPCs). The problem worsened as more hardware units were shut down due to defects.

[0028] Using the MIG features referenced above, GPU instances are required to be migration-enabled, just as full GPUs have migration requirements. For example, a 2-GPC GPU instance with a configuration of 7 / 9 needs to migrate to or from a 2-GPC GPU instance with a configuration of 8 / 8. This is another example of migration, except that it applies to GPU instances instead of full GPUs.

[0029] For MIG, additional complexity arises when partitioning GPUs into GPU instances. For example, when 6 / 7 / 8 / 9 / 9 / 9 / 9 / 9 GPUs (a total of 66 TPCs) are partitioned into four 2-GPC GPU instances, each with 16 TPCs, the number of TPCs in use decreases from 66 to 64. In the existing design, changing the number of TPCs in use means performing a full reset. A full reset is possible if the GPUs are not running anything at the time (e.g., no VMs exist on the GPU instance), but when multiple GPUs exist in a node, the entire node is likely to need to be reset. This is potentially a major problem that must be addressed. Furthermore, if a GPU has already been partitioned into two 4-GPC GPU instances, and the second of these two GPU instances is no longer in use, then the second GPU instance can be further partitioned into two 2-GPC GPU instances. However, if the total number of TPCs in use needs to be changed, there is a problem because a full reset will destroy the work running on the first of the two 4-GPC GPU instances.

[0030] An additional issue with MIG is that sometimes it's necessary to repackage GPU instances. Essentially, this involves migration within a single GPU. For example, if a GPU is partitioned into four 2-GPC GPU instances, numbered 0 (using GPCs 0 and 1), 1 (using GPCs 2 and 3), 2 (using GPCs 4 and 5), and 3 (using GPCs 6 and 7), for use by four VMs. Then, the VMs using GPU instances 1 and 3 are shut down, leaving 0 and 2 running. The system administrator then wants to create 4-GPC GPU instances, which should be possible since four GPCs are unused. Therefore, further improvements are needed. Attached Figure Description

[0031] Figure 1 An example GPU chip layout is shown.

[0032] Figure 2A , Figure 2B and Figure 2C Three different example GPU chip configurations are shown.

[0033] Figure 3An example of existing technology, GPU Graphics Processing Cluster (GPC), is shown.

[0034] Figure 4 An example of existing technology GPU hardware with a graphics processing cluster array is shown.

[0035] Figure 5 An example streaming multiprocessor is shown.

[0036] Figure 5A An example of existing technology µGPU partitioning is shown.

[0037] Figure 5B An example of existing technology µGPU partitioning is shown.

[0038] Figure 5C An example existing technology hierarchy mapped onto GPC is shown.

[0039] Figure 6A , Figure 6B and Figure 6C This section shows an example set of multiple chip configurations in a common product SKU.

[0040] Figure 7A , Figure 7B and Figure 7C It shows Figure 6A , Figure 6B and Figure 6C The "Singleton" pattern appears in the configuration.

[0041] Figure 8 An example virtual GPC Skyline with two TPCs is shown, each TPC being used as a singleton.

[0042] Figure 9 Showing to Figure 8 Example CGA mapping on the skyline.

[0043] Figures 10A and 10B illustrate the migration of example failures in the prior art.

[0044] Figure 11 An example of a successful migration using virtual GPC is shown.

[0045] Figure 12 An example GPU configuration is shown.

[0046] Figure 13 This demonstrates how to collect multiple GPU configurations into the same product SKU.

[0047] Figure 13A Example skylines for various GPU configurations are shown.

[0048] Figure 14 An example of dynamic reconfiguration of multiple GPU instances is shown.

[0049] Figure 14A , Figure 14B and Figure 14C An example of dynamically disabling TPC is shown.

[0050] Figure 15 The singleton pattern and skyline supporting CSM maps are shown.

[0051] Figure 16 This demonstrates how the Singleton pattern and Skyline pattern, which support CSM, can be combined together.

[0052] Figure 17 An example singleton pattern numbering scheme is shown.

[0053] Figure 18 An example of merging the singleton pattern into Skyline is shown.

[0054] Figure 18A An example singleton pattern mask is shown.

[0055] Figure 19 An example GPU tester / programmer is shown.

[0056] Figure 20 An example GPU testing / programming process is shown.

[0057] Figure 21A An example overall block diagram of a system including a CPU and a GPU with a computing job distributor is shown.

[0058] Figure 21B A sample block diagram of a work assigner is shown.

[0059] Figure 21C-1 It is by Figure 21A A flowchart of the example startup command generated by the CPU.

[0060] Figure 21C-2 This is a flowchart of an example startup process executed by the computational job assigner.

[0061] Figure 22 An example skyline division with multiple GPU instances is shown.

[0062] Figure 23 This is a diagram illustrating example transformations to and from a virtual GPC ID.

[0063] Figure 24 This demonstrates flexible TPC migration.

[0064] Figure 25A , Figure 25B and Figure 25C An example of a multi-instance GPU is shown.

[0065] Figure 26 An example multi-instance GPU with migration is shown.

[0066] Figures 26A-26D An example of flexible migration is shown.

[0067] Figure 27 Further examples of flexible migration are shown.

[0068] Figure 28 An example barrier table organization is shown.

[0069] Figure 29 An example multi-instance GPU architecture is shown. Detailed Implementation

[0070] The aim is to include all chips with at least the same number of TPCs in a given product SKU, regardless of how defective TPCs are distributed across individual chips. Example non-limiting embodiments of this technology allow different TPCs per GPC profile to be included in the same product SKU to provide specific technical and compatibility goals, such as inter-chip software migration, thereby increasing yield. This technology provides improvements to chip circuitry and functionality to provide these and other advantages.

[0071] This specification describes product SKU selection (GPU chips can be internally constructed or configured differently at the circuit / physical silicon level and still presented as "the same" to programmers and applications); flexible TPC migration (so jobs in a TPC can be migrated across GPCs); flexible GPC migration (allowing migration between GPUs with different numbers of GPCs); Collaborative Group Array (CGA); Skyline; Virtual GPCs (vGPCs) with Virtual GPC IDs; product SKU configuration (more configurations can now be included in the same SKU); permutation (in addition to configuration) that provides a balance of underlying purge / disable / non-functional hardware and full-functional hardware across GPU chips; permutation-culling underlying purge rules to reduce imbalances between multi-µ GPUs; and dynamic TPC disabling, which provides migration compatibility between GPU instances with different numbers of TPCs and allows for larger GPC MIG instances, and also allows for selective shutdown of hardware when not needed to reduce power consumption and heat generation.

[0072] Some technological advancements include: Chips with different TPC profiles per GPC can be included in the same product SKU, but they will appear identical to programmers using CGA. • New Virtual GPC (vGPC) • Programmers see a number of GPCs that is different from the number of physical GPCs (i.e., vGPCs).

[0073] • Example implementations distinguish between TPCs located in a multi-TPC CGA region (i.e., capable of running software that requires multiple TPCs) and TPCs used as singletons.

[0074] New design requirements for CGA and Figure 5C As shown in the diagram, in the new GPU chip design, we introduce a new feature called Cooperative Group Arrays (CGA), which guarantees that a group of execution thread blocks or CTAs that cannot be “fitted” onto a single SM will still run concurrently within a GPC or other hardware partition. Using CGA, CTAs running concurrently across multiple SMs can be programmatically and more efficiently shared in terms of data and computation, allowing more threads across multiple SMs to work together, thereby increasing throughput. See U.S. Application No. 17 / 691,621, filed March 10, 2022, entitled “Cooperative Group Arrays.” GPUs configured to run GPC CGAs provide a hardware guarantee that all CTAs in a GPC CGA will run concurrently on the same GPC.

[0075] A CGA has a “size” expressed as the number of its CTAs. If each CTA consumes a significant portion of a specific resource in an SM, the CGA “size” can be considered the number of streaming multiprocessors (SMs) it uses. For example, some example embodiments have a specific number of SMs per TPC (e.g., two), so the CGA “size” can also be considered the number of TPCs it uses. The number of TPCs used by a CGA can be any number between one and all TPCs in a GPC. This presents a challenge in ensuring that a CGA capable of running on one GPU chip can also run on different (non-identical) GPU chips.

[0076] CGA and Product SKU In the new chip family, we want to allow different TPCs per GPC profile, as shown in Figure 2, within the same product SKU. For example, we expect to include different GPC configurations within the same product SKU, such as 7 / 9 (i.e., one GPC with 7 TPCs and another with 9 TPCs) and 8 / 8 (i.e., two GPCs each with 8 TPCs). However, if we consider a CGA with 8 TPCs, 8 / 8 can execute two 8-TPC CGAs, while 7 / 9 can only execute one 8-TPC CGA. This is important because all CTAs for a given GPC CGA running on the source GPU need to remain together on the same GPC when migrating to different GPUs or different physical locations within the same GPU. That is, the CGA needs to remain together when migrating from one GPC to another. Migration and compatibility that may have been working for previous contexts (e.g., where CTAs executing on different SMs were not guaranteed to run concurrently) will no longer need to work with the new CGA programming model.

[0077] Furthermore, the new CGA programming model exposes the availability of CGAs of different sizes to programmers. For various reasons, the programmer's view of the GPU should be consistent for each chip within the same product SKU. For example, requiring a CGA-based programmer designing software to worry about the possibility that different configurations of different GPU chips across a specific SKU might not be reasonable. However, without this technology, the different TPCs per GPC profile, as shown in Figure 2, provide programmers with an inconsistent view.

[0078] This technology solves these problems. The example non-limiting techniques in this paper address this inconsistency problem. For example, it allows... Figure 6A , Figure 6B , Figure 6C The three example configurations appear identical in the on-chip work allocator, ensuring that work is launched identically on any of the three represented GPUs; and these three configurations also appear identical to the programmer, ensuring that GPU-filling optimizations are the same for all chips in the SKU.

[0079] In short, the exemplary non-limiting embodiments in this document provide solutions that include the following: (1) Increase chip yield by allowing chips with different TPC / GPC profiles in the same product SKU and thus by applications requiring consistent TPC / GPC profiles across several (or all) chips having that product SKU; and (2) Provide a consistent view to programmers and programs that will run on the GPU, despite the different TPC / GPC profiles.

[0080] The aforementioned problems are addressed, for example, by innovating "virtual GPCs" (vGPCs), where a chip can provide a greater number of vGPCs than (different from) the number of logical GPCs within the chip or the number of physical GPCs placed on silicon as part of the chip's design and manufacturing. This vGPC configuration allows the set of all GPCs in a GPU chip to "look the same" to the compute work allocator (CWD) responsible for initiating the thread block (CTA) of the GPC CGA, and also to the programmer and to the application running on the GPU, even if the internal structures of individual chips within a product SKU may be very different.

[0081] Flexible TPC and GPC migration This article also provides the following flexible migration solutions: (1) Flexible TPC migration (FTM) and flexible GPC migration (FGM) increase chip yield and total TPC count by allowing migration between (and within) chips with different TPC / GPC profiles, thereby allowing them to be within the same product SKU, resulting in increased yield; and (2) Dynamic TPC Disabling (DTD) allows the GPU to be reconfigured without a full reset, thus avoiding disruption of other running jobs on the GPU. In addition, DTD avoids having to downgrade all GPCs to the minimum GPC size, thereby maximizing the use of available TPCs and providing a larger and greater number of GPU instances.

[0082] Example of a non-restrictive virtual GPC representation Reference Figure 6A , Figure 6B , Figure 6C Example GPUs Figure 8 (New) It means that the x-axis is now relabeled as "virtual GPCID" and has more virtual GPCs (e.g., ten) than the original (e.g., eight) logical or physical GPCs the chip was designed to have. Therefore, the x-axis is relabeled as vGPC0-vGPC9. In this example, the hardware-based job allocator on the chip will now "see" 10 GPCs instead of 8. These 10 GPCs are called "virtual GPCs" because they are an abstraction of the facade of the underlying technology that forms part of the logical / physical GPC reality as part of the chip design. Virtual GPCs are an abstraction of the physical chip structure—organizing the chip's processing resources for interaction with software and software developers in ways that may be very different from how those processing resources are patterned and arranged on the chip's semiconductor substrate.

[0083] The hardware of each chip is modified to keep track of more GPCs than actually exist on that chip (e.g., a fixed number, such as 24, even though only 8 physical GPCs actually exist). And for a virtual GPCID starting with, for example, 8, the chip hardware “knows” that the virtual GPC can contain only 1 TPC, i.e., a “singleton” TPC.

[0084] This "singleton pattern" in Figure 7A , 7B As shown in 7C, TPCs are denoted by the letters "A" or "B". These "singleton patterns" are full-featured TPCs that are typically tightly connected to and associated with a physical GPC, which includes multiple such TPCs within the chip hardware. In other words, the underlying physical chip design does not need to be manufactured as separate TPCs not interconnected to other TPCs. Instead, these "singleton patterns" are typically selected from a group of full-featured TPCs that are fully interconnected with other TPCs that are part of a GPC, and thus can participate in, for example, concurrent startup of CTAs across GPCs to multiple TPCs. However, in the example embodiment, the "singleton patterns" are abstracted so that they become "free agents" and can therefore be used independently as their own virtual GPCs. This "free agent" capability provides significant advantages in terms of software compatibility, footprint, and flexibility, which has direct consequences for warehousing and product SKU classification.

[0085] The term "singleton pattern" means a collection containing a single element—in this case, a single TPC within its own virtual GPC. In one embodiment, each TPC contains two SMs, and therefore a singleton pattern TPC includes multiple processors (each SM itself can contain multiple processors), but in some embodiments, the TPC is considered a processing "unit." In other embodiments, a singleton pattern may include a single SM, four SMs, etc. In some embodiments, the processing "unit" of a singleton pattern may be the same processing "unit" that is tested and cleared at the underlying level and the same processing "unit" that is dynamically enabled / disabled (see below).

[0086] Where do these singleton patterns come from? Consider a GPU designed with 72 TPCs organized in 8 physical GPC clusters. For any given chip, some of these TPCs will be good, and some of them may be bad. Suppose 68 TPCs are good, and four TPCs are bad. As a result of testing, the four bad TPCs can be permanently disabled and inaccessible as part of a “low-level cleanup” as discussed in this paper. Where are those four bad TPCs located? They can be anywhere on the chip substrate. Sometimes, due to defects on the substrate, they will be grouped together and physically close to each other, but in general, they can be randomly distributed on the chip substrate.

[0087] Low-level purge rules can simultaneously impose constraints on where bad TPCs are allowed to be (e.g., a physical GPC can have up to three bad TPCs, and all other GPCs can have at most one bad TPC), such that chips that do not meet this constraint will not be included in the product SKU (they can be included in a different product SKU, or they can be discarded). However, low-level purge will generally affect each chip differently, so that any given population of GPU chips designed and manufactured to be identical to each other will be physically quite different from one another due to the low-level purge process and the low-level manufacturing defects contained in each chip. Some may be fully functional, but many will have manufacturing defects that require discarding circuitry on them and rendering that circuitry inaccessible. Despite these significant differences in hardware and physical architecture, the goal is to make all chips in a given population “look the same” (i.e., present the same technical interface) in terms of the applications written to run on them and the programmers who write those applications. This has nothing to do with appearance or aesthetics—it means, for example, that all these chips present a common technical interface to the CGA-based applications written for them, so that technically compatible CGA-based software within one chip in the group is technically compatible with all other chips in the group; in a sense, any application that can run on one chip can run on any other chip. Similarly, the internal scheduler within the chip of a given product SKU should be able to successfully schedule the same work regardless of hardware differences between chips.

[0088] In terms of hardware-level technical improvements, in the example embodiment, a full crossover switch exists between the "system pipeline" communication link from the compute job distributor and the GPC within the chip. Therefore, the chip can mix and match which GPCs are paired with which system pipelines. A full crossover switch also exists between the compute job distributor and the TPC, allowing for any mapping between the (virtual) TPC ID and the (physical) TPC ID used by the CWD (in one embodiment, the conversion between different ID conventions can be performed by a component called the M-Pipeline Controller ("MPC") present in each GPC). This hardware-based mapping effectively hides or masks the complexity and chip defects of low-level cleanup from applications and application programmers, thus presenting an interface based on virtual GPCs that can be uniform and consistent across a group of chips that are substantially different from each other in terms of architecture, functionality, and operational capabilities.

[0089] Therefore, the chip's hardware can now create virtual GPCs from any of the 72 TPCs. This allows the configurator to select "singleton patterns" and seed those singleton patterns into virtual GPCs, which are then mapped to physical GPCs, so that the resulting array defining TPCs for each virtual GPC of one underlying cleanup chip is identical to the resulting array for another underlying cleanup chip—even if the two underlying cleanup chips actually contain very different internal circuitry and associated processing capabilities due to reasons including, for example, manufacturing defects and responding to underlying cleanup. In an example embodiment, such an array is a measure of chip processing power and specifically defines the ratio of processing cores or other processing hardware per virtual hardware partition / group. Thus, in general, these two chips can be completely different internally, and this technology allows these two completely different chips to appear technically "identical" to programmers and applications in terms of the technical interfaces and compatibility they present to applications intended to run on.

[0090] In one embodiment, ignoring graphics-capable GPCs and focusing on compute capabilities is why virtual GPC IDs can be introduced. However, in some embodiments, if not all TPCs are graphics-capable, a virtual TPC mask with graphics capabilities is also provided. Such a mask can be used for the migration of graphics applications.

[0091] Simultaneously, vGPC0-vGPC7 together define the multi-TPC CGA region 5000, which has a TPC per GPC profile shared by all chips in the product SKU. (Comparison) Figure 8 and Figure 6A , Figure 6B , Figure 6C It can be seen that, Figure 8 The multi-TPC CGA region 5000 defined for vGPC0-vGPC7 is for all Figure 6A , Figure 6B , Figure 6C The configuration is common, meaning it will be common to all chips within the same product SKU. Meanwhile, vGPC8 and vGPC9 each contain a "singleton pattern" (i.e., a set of exactly one TPC elements) that can be logically associated with any logical GPC, but is now abstracted into its own virtual GPC, allowing it to run a CGA that requires only two SMs.

[0092] In more detail, we will reconsider the GPU design with 8 GPCs, each GPC having 9 TPCs. Figure 6A , Figure 6B , Figure 6C A single product SKU is shown, comprising three different chip configurations, each with 68 TPCs: (1) 8 / 8 / 8 / 8 / 9 / 9 / 9 / 9 ( Figure 6A (2) 7 / 8 / 8 / 9 / 9 / 9 / 9 / 9 ( Figure 6B ); and (3) 6 / 8 / 9 / 9 / 9 / 9 / 9 / 9 ( Figure 6C GPCs are represented by vertical columns of squares, where each square represents a TPC (which in turn includes one or more SMs – and in one example, exactly two SMs). Non-crossing (white) squares are defect-free TPCs, and crossing squares are defective TPCs closed due to manufacturing defects. GPCs are ordered from fewest to most defect-free TPCs, with each GPC numbered by its logical GPC ID (see numbers along the x-axis). The example techniques in this document allow… Figure 6A , Figure 6B , Figure 6C All three GPUs are configured in the same product SKU, thereby increasing chip production.

[0093] Figure 6A , Figure 6B , Figure 6C The non-cross-line squares in the diagram represent TPCs that are good in all three configurations. That is, of these 68 good TPCs, 66 are good in all three configurations. The union of these 66 non-cross-line TPCs is a set of TPCs where a CGA using more than one TPC is operational. We refer to this as the "Multi-TPC GCA Region" 5000. This set does not include the dashed cross-line TPCs described below.

[0094] For each of the three configurations Figure 7A , Figure 7B , Figure 7C The diagram shows two dashed, intersecting squares labeled "A" and "B" representing "Singleton Pattern" TPCs. These "Singleton Patterns" are defect-free TPCs. However, as... Figure 7A , Figure 7B and Figure 7C As shown, the Singleton pattern is not in the same location across different configurations. For example, in Figure 7A In the code, both the "A" and "B" singleton patterns are found in logic GPC 0; Figure 7B In the diagram, singleton pattern "A" is in logical GPC3 and singleton pattern "B" is in logical GPC0; and... Figure 7C In the code, the "A" singleton pattern is in logical GPC 3 and the "B" singleton pattern is in logical GPC 2. Furthermore, Figure 7A , Figure 7B , Figure 7C The diagram of the logic-oriented GPC itself hides the additional complexity of the underlying physical reality, where each of those singleton patterns can be anywhere on the chip substrate within its respective physical GPC.

[0095] Singleton mode can run a CGA small enough to run on a single TPC (e.g., two SMs), but cannot be used to run a GPC-CGA that requires multiple TPCs (i.e., more than two SMs). It is generally not guaranteed that a singleton mode TPC (across product SKUs) is located in the same GPC as any other TPC, and therefore not guaranteed that a singleton mode TPC can communicate and interconnect with other TPCs in the way that a CGA might require (although, as stated above, this technique does include the ability to utilize the features of such grouping / interconnection when such grouping / interconnection exists). In short, it is guaranteed that TPCs within the same GPC within a multi-TPC CGA region 5000 will always be together in the GPC, but it is not guaranteed that a singleton mode TPC will be in the same GPC as any other TPC. Regarding migration between GPUs, the introduction of CGA dictates that TPCs that are part of a CGA region 5000 in a source GPC should migrate together and perform work within the CGA region in the destination. On the other hand, a singleton mode TPC in that source GPC may or may not move to the same destination GPC as the CGA region TPC, and in particular, it is not guaranteed that a singleton mode TPC will do so. Therefore, in some cases described herein, embodiments provide an interface with each singleton pattern as its own virtual GPC capable of performing work that is sized to suit the processing power of a single TPC.

[0096] Skyline As discussed above, Figure 8 The layout or representation of the TPC for each virtual GPC originates from across three different Figure 6A , Figure 6B , Figure 6C The combination of all "good" TPCs in the chip configuration. Specifically, these three... Figure 6A , Figure 6B , Figure 6C The "lowest common denomiator" among the configurations is that vGPC0 has 6 functional TPCs, vGPCs 1-3 each have 8 functional TPCs, and vGPCs 4-7 each have 9 functional TPCs. Due to its vague similarity to city skylines, we will... Figure 8 This layout or representation of the set of vGPCs shown is called a “skyline.” A “skyline” is a representation declaring the processing power (such as concurrent processing power) of a processor, processing chip, or other processing arrangement, including (a) the declared number of virtual processing clusters and (b) the declared number of processors for each declared virtual processing cluster, wherein different virtual processing clusters declared for the same processor, processing chip, or other processing arrangement may have the same or different declared numbers of processors. Thus, in one embodiment, a skyline may represent a set of groups of parallel processors, wherein each group may have a different number of parallel processors (e.g., each vGPC may have a different number of TPCs). In one embodiment, a skyline thus declares a number of virtual processing clusters including (i) virtual processing clusters comprising more than one processor “unit” and (ii) virtual processing clusters having singleton-mode processor units (wherein a processor “unit” in some embodiments may include one or more hardware processors, such as a pair of hardware processors configured as, for example, TPCs). In one embodiment, a skyline identifies one or more hardware processors as being within a virtual GPC identified by a virtual GPC identifier (ID). In one embodiment, a "skyline" can be graphically represented as a two-dimensional arrangement of rows and columns, such as... Figure 8 As shown in the diagram, each column represents a declared virtual processing cluster, each row represents a given number of processors or processing units, and the declared virtual processing clusters are ordered from left to right, assigning virtual IDs to the virtual processing clusters. Therefore, Figure 8 The number of columns in the skyline represents the number of declared virtual processing clusters. The "height" of each column indicates the number of processors or processing units declared within the corresponding virtual processing cluster (much like the height of a skyscraper representing the number of floors in a building). The total number of blocks in the skyline indicates the total number of processors, processing chips, or other processing arrangements declared. Also note that in... Figure 8In one embodiment shown, the skyline follows a convention where declared virtual processing clusters with fewer declared processor units are to the left of declared virtual processing clusters with more declared processor units, except that declared virtual processing clusters including singleton patterns are on the far right. Many other ways of expressing this same skyline information are possible, such as, for example, in Figure 8 The top non-graphical symbolic string "6 / 8 / 8 / 8 / 9 / 9 / 9 / 9 / 1x2" (or, for example, "6888999911" in decimal, hexadecimal, or other numbering bases) encodes the declared number of virtual processing clusters (string length) and the declared number of processor units (value) within each processing cluster. The virtual processing cluster ID can be inferred for each declared set based on the order of the processor unit sets within the symbolic string. In one embodiment, this "skyline" defines a virtual interface used by software and software developers to define the work allocation for groups of chips within a product SKU. In one embodiment, it is expected that all chips in a product SKU have the same skyline. Therefore, in one embodiment, the skyline declaration assigned to a particular processor, processing chip, or other processing arrangement is less than or equal to the actual hardware capability of the processor, processing chip, or other processing arrangement.

[0097] In previous chips, the compute work allocator (CWD) within each chip sent jobs to the compute work distribution network (TPC) based on the logical GPU computational process (GPC). To allow programmers to see a consistent model of the GPU, the CWD in the new example chip design now spans across... Figure 6A , Figure 6B , Figure 6C All configurations within the same set of TPCs / GPCs are provided. This can be accomplished by CWD treating all configurations as 6 / 8 / 8 / 8 / 9 / 9 / 9 / 1 / 1, where 6 / 8 / 8 / 8 / 9 / 9 / 1 / 1 is a set of 10 virtual GPCs instead of 8 logical GPCs (e.g., ...). Figure 6A , Figure 6B , Figure 6C (Those shown).

[0098] In the naming above, the last two ("1") entries represent singleton patterns. Instead of ending the configuration with the string " / 1 / 1 / 1..." to indicate a singleton pattern, we can abbreviate it to 1xN, where N is the number of singleton patterns (in one embodiment, each virtual GPC containing a singleton pattern has only one singleton pattern, and therefore the number of additional GPCs attributable to singleton patterns will be the number of singleton patterns). For example, in Figure 8 The configuration or skyline shown in the example, 6 / 8 / 8 / 8 / 9 / 9 / 9 / 1x2, has two singleton patterns. Figure 8In the example, CWD “sees” 10 GPCs instead of the 8 GPCs of the multi-TPC CGA region TPCs that are shared by all chips in the product SKU. The singleton patterns each reside in their own vGPC, where “1xN” at the right end of the horizon indicates N singleton patterns.

[0099] Figure 8 The skyline shown is the same for all chips in the product SKU—meaning that this or any set or combination of CGAs that can run on one chip in the product SKU can run on any other chip in the product SKU. Specifically, for the configuration in the SKU: • Multiple TPC CGA regions always have the same shape and size; The number of singleton patterns is always the same; Therefore, the skyline is always the same.

[0100] In other words, programmers can use the product SKU's skyline to define the CGA-based software they develop for that product SKU. If the software is designed to run on the skyline, it will be compatible with any chip that has that product SKU. Furthermore, programmers can optimize the software to take advantage of the skyline, for example, by providing a certain number of smaller 2-SM CGAs and a certain number of larger CGAs, as the skyline can accommodate, to maximize TPC footprint.

[0101] Different SKUs (defined by underlying binning rules) will typically have different skylines, and optimizations for CGA occupancy may differ for different SKUs. For example, an SKU offering 68 TPCs will have different skylines than an SKU offering 64 TPCs. However, because underlying binning can be based on various hardware partitions or clusters (e.g., 1 / 9 of a GPC's TPCs, a group of TPCs that make up 1 / 3 of a GPC and are called CPCs, the entire GPC, more than one GPC, etc.), different SKUs can also have the same skyline.

[0102] From a programmer's perspective, a singleton TPC should be considered as not being able to participate in the CGA with other TPCs. However, a singleton TPC can run any CGA suitable for a given TPC. Programmers always see the same skyline for all chips within the same product SKU, even if the underlying physical and logical configurations within the product SKU may be completely different from one chip to another.

[0103] As mentioned above, in one example, not all CGAs can run on singleton mode or in a virtual GPC composed of singleton modes. CGAs that can use singleton mode include CTAs that do not require more processing resources than the processing resources provided by two SMs (i.e., one TPC). For example, in one embodiment, each SM can concurrently run K CTAs, where K is a platform-independent value, for example, 10 in one embodiment. This means that in one embodiment, a vGPC based on a singleton-mode TPC can run a GPC CGA comprising K x 2 CTAs. See also Figure 9 It shows an example starting "mesh" with exactly fifteen 8-SM CGAs, followed by a mesh with smaller 2-SM CGAs. In this example, 15 8-SM CGAs and 8 2-SM CGAs fit.

[0104] The skyline example above is a very simple case. Actual product SKU skylines can be much more complex, such as 5 / 5 / 7 / 7 / 7 / 8 / 8 / 8 / 1x7 or 6 / 6 / 7 / 7 / 8 / 8 / 8 / 0 / 1x12, where the number of configurations is 20 and 17 respectively, far too many to be drawn in a simple diagram.

[0105] Example GPC CGA migration using vGPC and skyline definitions / guidelines Migration is a special case of compatibility where software running on one chip is moved to run on a different chip. As discussed in this paper, migration in some contexts includes interrupting running software, storing its state and context, transferring software to different chips and / or different parts of the same chip, and the additional technical challenges of resuming software execution to continue where it stopped—all without requiring a hardware reset that would interrupt or terminate other software running on the destination chip.

[0106] Figures 10A, 10B and Figure 11 Examples before and after the migration are shown. Figures 10A and 10B illustrate a prior art attempt to migrate from a GPU chip with a logical GPC ID configuration of 8 / 8 / 8 / 8 / 9 / 9 / 9 / 9 to a GPU chip with a logical GPC ID configuration of 6 / 8 / 9 / 9 / 9 / 9 / 9 / 9 after launching a GPC CGA grid with exactly 16 8-SM CGAs and a grid with 2-SM CGAs. In the source chip, 16 8-SM CGAs and 4 2-SM CGAs fit into an 8 / 8 / 8 / 8 / 9 / 9 / 9 / 9 configuration. As shown in Figures 10A and 10B, the migration is impossible because there is only space for fifteen 8-SM CGAs in the target GPU.

[0107] on the contrary, Figure 11 The migration from the same source GPU chip to the same target GPU chip is shown—but in this case, each chip is configured using vGPC technology with a configuration of 6 / 8 / 8 / 8 / 9 / 9 / 9 / 1x2—including two virtual GPCs 8 and 9 based on the singleton pattern. Figure 11 The migration is shown to be not a problem and works because it occurs within the vGPC ID space, which is always consistent across the product SKU. The migration works well because the vGPC skyline is identical across both the source and destination chips—even though, as shown in Figure 10A, the underlying physical and logical hardware functionalities of the two chips are very different. In one embodiment, a completely consistent skyline always exists across a given SKU, allowing migration to occur successfully regardless of which two chips in the product SKU are selected as the source and destination GPUs.

[0108] As described in detail below, if there is no state information on the source chip corresponding to the additional GPC (e.g., if the source chip has fewer GPCs than the destination chip), the state / context information of the additional GPC on the destination chip can be synthesized. For example, in one embodiment, the state information of the source chip GPC can be copied in the destination chip for use with multiple GPCs (in one embodiment, the number of vGPCs is constant between the source and the destination by means of a skyline, such state synthesis / copying is used when the number of physical GPCs is different).

[0109] Example Skyline Selection Figure 12 A sample table shows a perceptible skyline selection that can be chosen to define a product SKU. One or more specific selections can be based on performance versus output. Meanwhile, Figure 13 Different SKUs may include or contain different numbers of logical configurations, and some SKUs may include a large number of different logical or physical configurations. For example, configuration 5 / 5 / 5 / 6 / 7 / 7 / 7 / 0 / 1x14 may include 63 different chip configurations, and vGPC technology will ensure that all applications running on the GPU “look the same” to the programmer and CGA-based applications. This technology thus enables chips with fundamentally different internal structures to be presented as “identical” to the outside world (e.g., to the programmer).

[0110] An SKU that allows for more TPCs or other hardware subdivisions or clusters to be cleared at the lower level will cover more chip variations—meaning increased yield. However, this can come at the cost of performance. In such a case, performance degrades because CGA startup cannot take advantage of the increased relative performance of any chip in the SKU, but instead must treat all chips as "identical," and parallel processing performance degrades due to the reduced number of functional TPCs per GPC provided by the "minimum commonality" within a particular product SKU. Thus, designing an SKU to include more configuration variations will reduce the value of any chip in the SKU, but will result in a greater total number of chips that can be sold as part of the SKU. See, for example. Figure 13A It shows an example skyline of various GPU instance configurations. The techniques in this article allow chip manufacturers to make different decisions based on customer performance requirements.

[0111] Permutation and balance While the above considerations define the skyline, there is another factor that can alter product performance—the balance of processing resources across GPC groups. In some embodiments, GPCs are grouped together into an additional level of hierarchical organization within the chip. For example, a chip might have 8 GPCs, organized into two “micro-GPUs” (µGPUs), each with 4 GPCs. It is desirable to define a SKU with the maximum imbalance (in terms of the number of TPCs) between the two µGPUs. Imbalance is also important for MIGs. In this consideration, “configuration” can include a sorted list of TPC / GPCs from the fewest to the most TPCs. For example, in the case of a total of 62 TPCs, a possible configuration is: 6 / 6 / 6 / 8 / 9 / 9 / 9 / 9. Meanwhile, “arrangement” can include a sorted list of GPU instances (subsets of GPCs within a µGPU—e.g., half, a quarter, 1 / 8, etc. of GPCs within a GPU), where TPC / GPU instances are further sorted. For example, the above configuration has four permutations (the first four numbers reflect the sorted TPC / GPC within the first GPU instance, and the second and fourth numbers reflect the sorted TPC / GPC within the second GPU instance, and the GPU instance itself is also sorted): 6 / 6 / 6 / 8 / / 9 / 9 / 9 / 9 6 / 6 / 6 / 9 / / 8 / 9 / 9 / 9 6 / 6 / 8 / 9 / / 6 / 9 / 9 / 9 6 / 6 / 9 / 9 / / 6 / 8 / 9 / 9 Note that 6 / 8 / 9 / 9 / / 6 / 6 / 9 / 9 is not a permutation because it is not properly ordered (it would be redundant for 6 / 6 / 9 / 9 / / 6 / 8 / 9 / 9). Low-level purge / packing rules can reduce the number of permutations in a SKU. For example, "maximum imbalance of 8 TPCs between µGPUs" eliminates 6 / 6 / 6 / 8 / / 9 / 9 / 9 / 9. 6 / 6 / 6 / 8 / / 9 / 9 / 9 / 9 has 26 and 36 TPCs in its µGPU, thus having an imbalance of 10 TPCs. Such an imbalance will increase yield (requiring fewer chips to be discarded from the SKU or not packed into the SKU), but may degrade performance. It is possible to eliminate certain permutations (e.g., some chips with proper configuration but too imbalanced) to increase performance at the expense of yield. Including fewer permutations in an SKU will generally increase the performance of the SKU for certain uses (such as MIG) because there is less imbalance in chip capability across chips in the SKU.

[0112] Specifically, NVIDIA previously introduced the Multi-Instance GPU (“MIG”) feature, which allows GPUs to be spatially subdivided into multiple smaller GPU instances, each of which can run a different instance of an operating system (or a separate container under an OS). The “size” of a GPU instance is the number of GPCs within that GPU instance. As an example, an 8-GPC GPU can be split into four 2-GPC GPU instances, or into one 4-GPC GPU instance and two 2-GPC GPU instances. However, it is often, or historically, necessary for GPU instances of the same size to have the same number of TPCs. This allows for the migration of contexts between GPU instances of the same “size,” similar to the migration of contexts running across an entire GPU. See https: / / www.nvidia.com / en-us / technologies / multi-instance-gpu / . This is where the “balance” problem arises, measured by the number of permutations. Specifically, including chips with more permutations in an SKU can lead to performance degradation between GPU instances, where all equal-sized GPU instances within a chip and all chips in a SKU will have the same number of TPCs.

[0113] Here are two examples: Example A: Allows for a maximum imbalance of 6 / 6 / 6 / 8 / 9 / 9 / 9 / 9 with 10 TPCs (ignore other configurations). 6 / 6 / 6 / 8 / / 9 / 9 / 9 / 9 (26+36, 10 TPC imbalance) 6 / 6 / 6 / 9 / / 8 / 9 / 9 / 9 (27+35, 8 TPC imbalance) 6 / 6 / 8 / 9 / / 6 / 9 / 9 / 9 (28+34, 6 TPC imbalance) 6 / 6 / 9 / 9 / / 6 / 8 / 9 / 9 (29+33, imbalance of 4 TPCs) The size of a 4-GPC GPU instance is 26 TPCs. Example B: Allows a maximum imbalance of 6 / 6 / 6 / 8 / 9 / 9 / 9 / 9 for 8 TPCs (ignore other configurations). 6 / 6 / 6 / 9 / / 8 / 9 / 9 / 9 (27+35, 8 TPC imbalance) 6 / 6 / 8 / 9 / / 6 / 9 / 9 / 9 (28+34, 6 TPC imbalance) 6 / 6 / 9 / 9 / / 6 / 8 / 9 / 9 (29+33, imbalance of 4 TPCs) The size of a 4-GPC GPU instance is 27 TPCs. For MIG "Halves", example B is better than example A, but the yield will be lower. Other examples will apply to quarters, eighths, etc. Note that these specific partition sizes are exemplary.

[0114] Permutations increase the total number of pairs that can be included in a migration and also have a significant impact on the GPU instances of the MIG. More subtly, there is a situation where not all possible permutations are allowed for a given set of configurations. Continuing with the example, we can constrain the maximum imbalance between two µGPUs to a maximum of two TPCs, which would result in the permutation 6 / 8 / 9 / 9 / 9 / 9 / 9 / 9 being excluded from the SKU because its imbalance across GPU instances is three TPCs.

[0115] While the example embodiments are useful in conjunction with this MIG feature, the described techniques can be used in other contexts, including any architecture with a "front-end" interface that can partition computing resources into "back-ends." In such architectures, isolation between partitioned resources can be provided through various techniques such as memory / cache partitioning, engine allocation such as copy addition, video decoding / encoding, JPEG decoding, optical flow, etc. In some embodiments, this technique also allows time-slicing of a single concurrent multiple context engines (e.g., which may include multiple GPCs), where two or more contexts share an engine. The described techniques further allow load balancing among multiple such engines, where three or more processes can be balanced across two or more engines.

[0116] Dynamic TPC Disable (DTD) See Figure 2 for reference. Figure 2B , Figure 2CThe three configurations, in the corresponding SKUs of MIG, previously separated chips by creating 8 instances by reducing all GPCs to 6 TPCs. This meant that 20 TPCs would not be used. However, from a performance perspective, disabling 20 functional TPCs is undesirable. In this arrangement, half of the GPUs will have 24 TPCs, a quarter of the GPUs will have 12 TPCs, and an eighth of the GPUs will have 6 TPCs.

[0117] In contrast, using the new vGPC technology, it's possible to create eight instances and selectively enable / disable TPCs as reconfiguration progresses. This results in 32 TPCs per half of the GPU, 15 TPCs per quarter of the GPU, and 6 TPCs per eighth of the GPU. In this configuration, these half and quarter instances are significantly better than in the existing arrangement. This solution also avoids reconfiguring the GPU chips while allowing unused portions of the chips to be turned off when not needed and turned back on when needed, requiring a full reset. Furthermore, it can be used to dynamically reconfigure the GPU's hardware partitions, allowing different numbers of users and / or applications to utilize different sized hardware / processing partitions as needed.

[0118] Figure 14 This illustrates the MIG transition between full GPU, two half GPU instances, four quarter GPU instances, and eight 1 / 8 GPU instances using virtual GPUs. Figure 14 In the diagram, boxes with widely spaced vertical crosses (as indicated in the legend) represent TPCs that are dynamically and selectively "shut down" temporarily via software ("software purge") to ensure that there are the same number of active TPCs in each GPC instance. This facilitates context migration between GPU instances. This dynamic, selective disabling is not typical "software purge" because there is no permanent TPC disabling where the hardware becomes "aware" that the purged TPC does not exist, the TPC output is clamped to a certain defined fixed level, and the TPC is effectively cut off from the circuit and made inaccessible. Instead, this type of selective disabling is dynamic and reversible, software-controlled, and performed not because of any error in the TPC being shut down, but to balance the number of TPCs across GPU instances so that a single GPU can be dynamically subdivided to appear to the software as comprising several smaller, identical (or otherwise specified) chips (i.e., multiple GPU instances, each with the same or otherwise specified processing resources).

[0119] Some embodiments provide additional hardware to selectively enable and disable TPCs as needed without resetting the chip. A simple approach used in some embodiments is to dynamically, selectively, and temporarily disable / enable sending work to TPCs on a selective basis, without "lower-level clearing" the TPCs, powering them on and off, making them inaccessible, etc. Such methods are equivalent to informing other circuitry that dynamically disabled TPCs still exist but should not be used. Because no work is sent to dynamically disabled TPCs, their presence does not pose any obstacle to migration. Similarly, a hotel closes a certain number of rooms simply by not letting guests stay in them, but by continuing to heat, clean, and support the rooms. By continuing to support dynamically disabled TPCs with status updates, the work distributor circuitry can re-enable them at any time without reconfiguring the hardware in a more significant way that might require a hardware reset.

[0120] In more detail, Figure 14 The example single GPU configuration with three singleton patterns and a total of 68 TPCs is shown. When the GPU is reconfigured into two GPU instances, each half of the GPU will also have a skyline (8 / 8 / 8 / 5 / 1x3 in this case) because the singleton patterns can be in different positions relative to the GPCs. The same thing happens if the GPU is divided into four equal parts (i.e., four GPU instances) (i.e., all four segments have the same skyline of 8 / 5 / 1x1 for a total of 14 TPCs), because the singleton patterns can still be in different positions relative to the GPCs. Migration may therefore require the singleton patterns to be moved between GPCs within the MIG instance. Furthermore, each GPU instance will have its own skyline, and a unified skyline across GPU instances helps maintain the same number of TPCs in each GPU instance.

[0121] Figures 14A-14C The diagram illustrates the TPCs disabled under Dynamic TPC Disabling (DTD). The left side of the diagram shows a 6 / 8 / 9 / 9 / 9 / 9 / 9 / 9 / 9 configuration that will be split into two 4-GPC GPU instances. In the transition from the left to the middle diagram, four TPCs are dynamically disabled. In the transition from the middle to the right diagram, two 4-GPC GPU instances are created, both with 32 TPCs.

[0122] In one embodiment, dynamic TPC disabling (“DTD”) is performed without requiring a full reset. Innovatively, the compute work allocator (CWD) 420 is programmed not to send work to the disabled TPC, but the TPC remains functional. This dynamic disabling can be performed on one part of the GPU while another part is busy doing work. The disabled TPC still receives state updates but never does any work because the CWD is programmed never to send them any work. Low-level clearing itself sounds good for TPC disabling until designers face the problem of how to handle the disappearance of TPCs, which changes how logical GPCs are enumerated. This changes all categories of access to TPCs, such as work allocation, register access, and potentially more (e.g., memory options in some architectures), while dozens of orthogonal processes are using shared resources affected by the low-level clearing changes. Thus, the techniques used in the example embodiment, as described herein, which disables scheduling only for specific TPCs, solve a number of additional challenges that would otherwise need to be addressed depending on the architecture, such as: • Any mechanism that requires disabling TPCs should guarantee that no confidential user state can be leaked across the disable boundary. For example, if the underlying clearing "clamp" is engaged and then the software tears the context, the state in the TPC will be preserved. Therefore, further mechanisms are needed to clear the state, such as scan chain reset, clearing via memory built-in self-test ("MBIST"), asynchronous / synchronous reset, or hardware guarantees of state clearing upon re-enabling—which introduce the opportunity for confidential state leakage. Conversely, by disabling only the scheduling of specific TPCs, the TPC receives all commands to clear the state between contexts and retains the same threat graph.

[0123] Once this context is re-enabled, any such disabling mechanism should provide a way to maintain / restore the engine state. This state is context-independent for such clock-gated enabling. If the underlying clear clamp is enabled and a reset is applied as described above, a mechanism will be needed to restore or reset the domain in order to maintain the state across underlying clear enabled. Instead, TPC receives and executes all power state and power state updates simply by not distributing work.

[0124] • Any such disabling mechanism should provide a way to handle out-of-band (“OOB”) management of the disabled TPC. If low-level clearing is used, this means disabling register access to the TPC. There are various ways that the command bus and / or software can handle this, but these would require hardware / software changes. Conversely, by enabling the TPC but not scheduling it, register access or other OOB accesses simply work.

[0125] Any such disabling mechanism should be designed not to cause glitches. For example, asynchronously applying a low-level purge clamp in an example GPU architecture—meaning the signal from TPC can change value, causing a single-cycle timing constraint to be disregarded. In previous hardware, making the change, and then resetting all logic around the boundary—purged any glitches. This forced a reset in the previous architecture. It's possible to time / retime the low-level purge signal in various ways to address this, but that would again require hardware changes. By enabling TPC but not scheduling it, the glitch problem doesn't exist because the low-level purge signal is not modified.

[0126] One aspect of DTD is providing larger GPU instances than would be possible without DTD. For example, in the past, Figure 6A , Figure 6B , Figure 6C The three configurations in this example will require reducing the number of TPCs in all GPCs to just 6, for a total of 48 TPCs in use (i.e., 2 GPU instances, each with 24 TPCs). The DTD allows the same configuration to use a total of 64 TPCs (i.e., 2 GPU instances, each with 32 TPCs).

[0127] Another example of DTD is providing more GPU instances than without DTD. For instance, in past designs, a 7-GPC GPU could have only one "half" instance with 4 GPCs. With DTD, a 7-GPC could have one "half" with 4 GPCs and another "half" with 3 GPCs, as long as the total number of TPCs in each "half" is equal and the skyline is equal.

[0128] Figure 14B and Figure 14C Some of these concepts are illustrated. With dynamic TPC disabled, it is now possible to change the number of TPCs per GPC without resetting (e.g., half using 64, a quarter using 56). Furthermore, comparisons... Figure 14B and Figure 14C As can be seen, there is now a choice between seven 8-TPC "eighths" (56 TPCs) and eight 6-TPC "eighths" (48 TPCs). In contrast, existing methods do not allow for this flexibility.

[0129] An example improvement to the computational work assigner This technology provides further improvements to the CWD 420 circuitry associated with scheduling jobs to specific TPCs. The compute job allocator (CWD) in each GPU chip includes various innovations for enabling vGPCs and Skyline to function. These innovations include means for determining which TPCs need to be treated as singletons, and hardware for handling special cases of singletons.

[0130] In one embodiment, the virtual TPC ID is a number known to the primitive engine share (“PES”) that assigns the TPC within the GPC after “low-level sweep” (see below). As known to those skilled in the art, the PES is used to implement DirectX’s Direct 3D StreamOut functionality. See, for example, https: / / devblogs.microsoft.com / pix / hardware-counters-in-gpu-captures / . The virtual TPC ID numbering can follow a uniform pattern, for example, starting from 0 for the first non-low-level sweep TPC in the first PES within each GPC, assigning the next ID to the non-low-level sweep TPC in the next PES, and so on. This effectively ensures that consecutive virtual TPC IDs will be in different PES and will help balance the workload distribution within the PES.

[0131] The following table shows example mappings between physical TPC IDs, logical TPC IDs, and virtual TPC IDs for two different underlying purge configurations: Table I Table II In the example implementation, GPM uses the physical TPC ID to index the MPC and PE (see [link]). Figure 23 Furthermore, the TPC uses its logical TPC ID to map its TPC context image for context saving / restoration. More specifically, Figure 23In one embodiment, the CWD 420 (which receives boot commands from the host CPU) issues boot commands to hardware processing resources based on a virtual GPC ID and a virtual TPC ID. A crossbar switch provides flexible communication for such boot commands from the on-chip CWD 420 and any / all physical GPCs. Within each GPC, a circuit called "GPMPD" translates the virtual GPC ID and virtual TPC ID into a physical TPC ID, which addresses or selects one or more appropriate TPC processing circuits. Each TPC includes an MPC (Multi-Pipe Controller) and a PE engine block that receives and processes based on the physical TPC ID. The PE block stores context and state for migration and other purposes based on the logical GPC ID and logical TPC ID, as notified by a "PD" register block, which provides a mapping between the logical GPC ID and the virtual GPC ID for the GPMPD.

[0132] In the previous design, the CWD 420 sent computational jobs to the GPM based on the SM-ID (i.e., a global TPC ID obtained by interleaving virtual TPC IDs across all GPCs). This technique provides a new “virtual GPC ID” obtained by numbering GPCs in descending order of TPC count; that is, the GPC with the lowest number of underlying cleared TPCs (meaning the highest number of active TPCs) is assigned the lowest virtual GPC ID. To resolve connections between two GPCs with the same number of TPCs, a logical GPC ID can be used (the lower logical GPC ID will receive the lower virtual GPC ID).

[0133] The CWD 420 can now identify the GPU based on two IDs: a portable TPC ID and a virtual GPC ID. The portable TPC ID can be the same as the virtual TPC ID used in the aforementioned implementations for virtual GPC IDs 0-7 (e.g., ...). Figure 23 (As shown). For Virtual GPC IDs 8-23, this value can always be 0. Therefore, when we need a Virtual TPC ID for TPC in Virtual GPCs 8-23, it can be converted from '0' to the original Virtual TPC ID. The Virtual TPC ID of CWD can be called a "Transferable TPC ID" to make this distinction for Virtual GPC IDs 8-23.

[0134] A certain number of circuits exist within the CWD 420 for scheduling jobs to a given TPC. Because many TPCs exist within GPCs or other hardware partitions, a significant amount of chip substrate area is dedicated to this per-TPC scheduling. Furthermore, to accommodate the aforementioned MIG innovation (in one embodiment, which divides the GPU into multiple (e.g., up to eight) independently operable GPU instance portions), the GPU now requires eight CWD 420 circuits (one circuit for each of the eight GPU instances). Additionally, an example GPU implementation is capable of supporting N singleton modes and associated N virtual GPCs (e.g., where N can be equal to 16, as an example to provide vGPC8, cGPC9, ... vGPC23).

[0135] A straightforward way to implement CWD 420 would be to build CWD 420 to support the maximum number of TPCs that can be provided on a GPU chip, with each GPU chip including additional virtual GPCs that support singleton-mode TPCs. However, this implementation would likely require a significant amount of chip area.

[0136] In another example implementation, a mapping is provided to each TPC sub-cell within the CWD 420. See [link / reference] Figure 15 , Figure 15 The mapping shown is a first part 3002 that provides vGPC to up to a number N of singleton pattern TPCs, and a second part 3004 that provides vGPC to up to a number Q of TPCs that provide a given product SKU as part of a multi-TPC CGA region.

[0137] Figure 16 The first part 3002 is shown combined with the second part 3004. In the combined representation, there are 16 TPCs that can be used as singleton patterns and 56 non-singleton TPCs. In the example shown, because the singleton patterns are actually embedded within the chip's physical GPC circuitry and interconnected with other TPCs within that circuitry, each of the 16 TPCs shown can be assigned to act as a singleton pattern or they can be assigned to act as TPCs within virtual GPCs vGPC0-vGPC7. No singleton patterns are needed, and the skyline will be built higher using the TPCs that are part of the physical GPCs. Therefore, Figure 15 and Figure 16 Cross-line blocks within a GPC can be assigned as virtual GPCs 8-23, or they can have modular TPC IDs represented by M0-8 within virtual GPCs 0-7. In this specific example, the total number of singleton and non-singleton TPCs within a GPC cannot exceed 72. However, Figure 16The shapes of the two regions shown are very useful for constructing GPUs. Chips manufactured with fewer defects can be specified using product SKUs, with the product SKU defining more TPCs in region 3004 and fewer singleton patterns in region 3002. In this case, as... Figure 16 As shown, using the hybrid unit or "hybrid mode" unit 3006, some of the TPCs 3002 can be configured as singletons or as TPCs part of a multi-TPC CGA region (and thus capable of executing CTAs that would occupy more than one TPC's CGA). Therefore, in this example, only TPC 3002 can be configured as a singleton to support this particular skyline, but each processor that can be configured as a singleton can alternatively be mapped to other vGPCs in the GPU. If a singleton-enabled TPC is used instead to participate in a multi-TPC GCA region, the skyline can reduce the count of supported singleton modes.

[0138] It can be noted here that, in one embodiment, if the GPC is compatible with the CGA, it may be impossible to collect multiple processors that can be configured together in singleton mode to form a new multi-TPC virtual GPC. Specifically, as described in the jointly pending co-assigned patent application identified above, in some embodiments, the hardware-provided concurrent processing guarantee for the CGA requires certain hardware-based cooperation (e.g., synchronization, data location, message passing interconnects, etc.) between the various TPCs in the GPC running the GPC CGA. Thus, there will be CGAs that can run on TPCs within a multi-TPC CGA region of a skyline but not on singleton mode TPCs. Meanwhile, Figure 16 The singleton pattern shown can reside in any GPC circuitry physically on the chip, meaning that, in general, they interconnect in a way that provides a cooperation guarantee that the TPC needs to participate in running the GPC CGA. On the other hand, for non-CGA-based CTAs or in other implementations with different constraints, this constraint may not exist.

[0139] In this particular example, TPC 3006 in the mixed "mixed mode" crossover is not used as a singleton because it is required to be part of a multi-TPC CGA region for the product SKU. In one embodiment, this configuration of a TPC as either a singleton or part of a multi-TPC GPC is determined by how many singletons are needed to satisfy the requirements of a particular product SKU. In both cases, the TPC will be mapped to a virtual GPC, but each TPC configured as a singleton will be mapped to its own dedicated vGPC, while TPCs not configured as singletons will be mapped along with other TPCs to a vGPC containing multiple TPCs.

[0140] This CWD-based reconfigurable CSM mapping provides a mechanism where a limited number of modules (CSMs) have the flexibility to be configured to map to singleton-mode TPCs or as part of a non-singleton-mode group of TPCs. This implementation saves considerable area compared to making each CSM support both singleton and non-singleton-mode TPCs.

[0141] In one embodiment, it can be as follows Figure 17 The singleton pattern shown is populated in a fixed order. For example, if a GPU chip is programmed for 6 singleton patterns, the result would be as follows: Figure 18 The vGPC marker is shown. The rest of the chip and software do not need to know about this mapping within the CWD 420; no changes to other units are required, and migration is supported. However, the above implies that in some embodiments, the product SKU skyline is considered to also include a singleton mode count. This singleton mode count can be represented as a multi-bit mask indicating which singleton-enabled CSMs of the CWD 420 on the GPU chip are enabled to support singleton mode and which are not enabled—note that each of these singleton-enabled CSMs can be configured to be statically mapped to any physical TPC in the GPU. This mask can be embedded in the GPU chip's firmware / hardware, in flash memory during chip testing / loading, and used to program the combinational logic of the CWD 420 circuitry. See also Figure 18A The diagram illustrates the singleton pattern mask layout, where the bits in the mask correspond one-to-one with the single TPC vGPC 8-21 (in some embodiments, additional vGPC 22, 23 may be used).

[0142] Figure 19 and Figure 20An example chip programming layout and flowchart are shown. In the example shown, a chip tester / programmer 4052 is used to test the manufactured chip (box 4002). When the processor 4054, connected to the chip tester / programmer 4052, determines whether the manufactured chip 4050 has sufficient defects to fail to meet the minimum functional requirements of any product SKU (the "No" exit of decision box 4006) or whether it conforms to the product SKU skyline (the "Yes" exit of decision box 4006), based on the execution of program control instructions stored in non-transitory memory 4056. If the chip defects are too great, the chip is discarded / destroyed (4060). Note that there can be multiple product SKUs. Discarded chips can be saved for future inclusion in lower-performance SKUs. Otherwise, the processor 4054 controls the tester / programmer 4052 to write low-level cleanup instructions to the chip to blow certain fuses around defective hardware sections, making those sections inaccessible (box 4008). Furthermore, a comparison is made between chip configurations after low-level cleanup based on product SKU definitions using one or more storage units (e.g., skylines stored in memory 4056), and the singleton pattern mask within the processor 4054 flash chip (see [link to processor 4054 flash chip]). Figure 18A This indicates which TPCs are enabled to support the singleton pattern (box 4008). The chip is then tagged with a product SKU (box 4010) – this product SKU associates the chip with the skyline of that specific product SKU. As described herein, any given chip can typically be categorized into many different product SKUs, and the processor 4054 can therefore take customer requirements into account when categorizing chips, performing low-level cleanup of chips, and flashing the singleton pattern mask for the chips.

[0143] Example hardware implementation of an advanced computing work distributor In this example of a GPU chip, the manufacturing process is used to create a certain number Q (e.g., 72 in total) of physical TPCs on a semiconductor substrate, where the physical TPCs are clustered into physical GPCs (e.g., 8 GPCs, each containing 9 TPCs). Similarly, the CWD 420 of the GPU chip can be manufactured with Q CSM scheduling circuits—one CSM scheduling circuit for each TPC, with a one-to-one correspondence between CSMs and TPCs. Within the CWD 420, each SM or TPC is represented by a per-SM hardware circuit called a CSM. The CSM contains a task selection state machine that selects between TASK_ASSIGN, STATE_SYNC, and CTA_LAUNCH. Furthermore, the GPU's CWD 420 can be manufactured with R additional CSM scheduling circuits—one additional CSM scheduling circuit for each of the maximum number of singleton patterns the chip may need to accommodate. However, such an arrangement would occupy a considerable amount of real estate.

[0144] Therefore, in one embodiment, each CSM portion of CWD 420 can be configured to operate in two selectable modes: scheduling a singleton-mode TPC or scheduling a TPC as part of a multi-TPC CGA region. However, most CSMs in any given product SKU will never be invoked to schedule a singleton-mode TPC. Thus, the (QR) CSMs within CWD 420 can be configured to operate as single-mode CSMs to schedule the work of a TPC that is part of a multi-TPC CGA region, and the remaining R CSMs within CWD 420 can be configured as dual-mode circuits that can schedule the work of a singleton-mode TPC (first mode) or alternatively schedule the work of a TPC with singleton-mode capability grouped with at least one other TPC to form a multi-TPC CGA region (second mode). Such modes can be controlled by the singleton-mode mask discussed above, particularly when the singleton modes are positioned in a predetermined pattern relative to the skyline as shown.

[0145] exist Figure 21A , Figure 21B , Figure 21C-1 and Figure 21C-2In one or more embodiments shown, the CGA is launched on the GPU using the Master Computing Work Allocator (“CWD”) hardware circuitry 420, providing a hardware-based guarantee that all CTAs of the CGA can be launched simultaneously and also implementing the aforementioned virtual GPC mapping. This arrangement achieves low-level clearing of non-functional TPCs while ensuring that the dual-mode CSM will be connected to each TPC that will be assigned to singleton mode, regardless of which non-functional TPCs are cleared at the low level. The resulting design not only saves chip area but also increases performance due to the reduced distance between the CSM circuitry and the rest of the CWD circuitry.

[0146] Furthermore, in one embodiment, the CWD 420 circuitry is designed to operate as a "full-width" or "partial-width" work allocator depending on the GPU's underlying cleanup configuration. Figure 22 As shown, the full-width CWD 420 supports 16 singleton modes plus an additional non-singleton mode TPC, while the half-width CWD supports 12 singleton modes plus an additional non-singleton mode TPC. In yet another embodiment, the quarter-width CWD supports 7 singleton modes plus an additional non-singleton mode TPC. This arrangement saves substrate area and also uses available substrate area to add the most needed functionality—providing additional singleton modes in GPUs with more heavily purged underlying layers. A single GPU chip can have multiple different versions of these CWD circuits to provide a combination of functionalities.

[0147] For example, one version is called the "Full" build and supports assigning work to all 72 TPCs in the perfect GPU. Another is called "Reduced" and supports assigning work to a maximum of 36 TPCs in the GPU. This works because CWD understands the 'virtual TPC' namespace via PRI register programming, which decouples CWD's view of the TPCs in the GPU from the 'logical' or 'physical (and correspondingly cleared by the underlying layer)' view.

[0148] Some example implementations provide a ramchain feature—a ring-based backdoor access mechanism for copying internal pipeline register and memory state from the SM executing the shader program to the context state store. See, for example, US20140184617. In one embodiment, the two versions discussed above can perform context switching via a new ramchain feature (referred to as a “subclass”), where the ramchain query can specify which subset of state in the CWD it attempts to switch and / or restore—for CWD, these are referred to as CWD_CORE and CWD_EXTRA—where CWD_CORE is the “core” state present in the cwd_full and cwd_reduced constructs of the CWD. The CWD_EXTRA state exists only in the cwd_full construct.

[0149] For the MIG feature, only one physical MIG controller (internally referred to as the "system pipeline (syspipe)," with an example embodiment having instances syspipe0 through syspipe7) needs to support "unpartitioned" scheduling of all 8 GPCs in the GPU. All other system pipelines need to support at most "½" MIG instances, so only system pipeline 0 (the choice of instance is essentially arbitrary) needs to support the "cwd_full" version, and all other system pipelines (system pipelines 1 through 7) only have physical support provided by "cwd_reduced" so that only 1 / 2 of the total perfect TPCs are scheduled in the GPU. This "shrinkage" of the physical implementation of the work allocator results in area and power savings for the GPU.

[0150] Regarding crawling subclasses, since we have two TPC categories in one embodiment—one with gfx capabilities and one purely computational (i.e., asymmetric resources)—the example implementation can have two types of MPCs as TPC units. We can have scenarios where state needs to be migrated from a gfx MPC to a computation MPC (in computation applications where the source and target TPCs should have the same SM_ID). Therefore, it becomes necessary to have the ability to separate the gfx and computational states within an MPC with gfx capabilities, thus making it possible to save and restore only the computational state when running a computational application, and to save and restore both gfx and computational states when running a graphics application. Crawling is pre-existing hardware that helps save and restore state during context switching / migration. The techniques in this paper add the concept of subclasses to crawling—a method of organizing and labeling state within units so that it can be independently selected for saving and restoring. In this example, the MPC with gfx capabilities has computational state, which is labeled using a default subclass and is therefore always saved and restored. In addition, it has a gfx state marked using a gfx subclass that is saved and restored only when the gfx application is running.

[0151] Flexible migration As discussed above, the techniques described herein allow different TPCs per GPC profile to be included in the same product SKU to increase throughput and TPC count. However, different TPCs per GPC profile pose significant challenges for migration. This problem is addressed through further improvements related to Flexible TPC Migration (FTM). Specifically, in some embodiments, when migrating work from a source GPU chip to a target GPU chip, all work performed by a given GPC on the source GPU chip does not necessarily need to remain together. Instead, work performed by a specific TPC of a given GPC on the source GPU can be performed by two or more TPCs on the target GPC after migration. Thus, work is omitted and restarted on a per-TPC basis rather than per-GPC basis. Splitting work of a TPC into two TPCs may occur, for example, if the TPC was part of a large CGA group and had graphics capabilities in the original execution context. Conversely, if the target GPU only has a large CGA group on the GPC without graphics, it is not possible in some embodiments to place the image of the original TPC on a specific TPC that is both part of a large CGA and has graphics capabilities. However, we now assume a different scenario where the source GPC physically has both a singleton pattern and a large CGA. If there is no GPC with the same CGA size and the same number of singleton patterns on the target, then the CGATPC and singleton patterns of the source GPC may need to be separated on the target to avoid non-transferable scenarios.

[0152] Figure 24 It shows Figure 6A , Figure 6B , Figure 6C , Figure 7A , Figure 7B , Figure 7C and Figure 8 The examples shown demonstrate flexible migration between configurations. This group of non-singleton modes (multi-TPC CGA Region 3000) migrates directly across logical GPCs (i.e., these TPCs do not change), but singleton modes can be moved between logical GPCs. More specifically, suspended work running in singleton mode can be moved from one logical GPC to a different logical GPC when a context save is completed and then restored to a GPU with a different configuration. Figure 24 In the example, in the leftmost configuration, Singleton pattern A is in logical GPC 0, but its work is migrated to logical GPC 3 in the center configuration / migrated from logical GPC 3 in the center configuration, and can also be moved to logical GPC 2 in the rightmost configuration / migrated from logical GPC 2 in the rightmost configuration.

[0153] In existing chips, the TPC context state is saved per GPC. In this technology, to facilitate FTM, the TPC context state is saved on a per-TPC basis. Retaining the virtual GPC ID is also advantageous. Furthermore, in addition to the per-TPC state, there exists a per-GPC state that is not part of any TPC state or exists within any TPC, therefore special attention must be paid to this.

[0154] In addition to FTM, this technology also provides Flexible GPC Migration (FGM), which handles situations where the source and destination GPUs have different numbers of GPCs. For example, migrations can be configured between 6 / 9 / 9 / 9 / 9 / 9 / 9 / 0 and 5 / 7 / 8 / 8 / 8 / 8 / 8 / 8, where "0" indicates a GPC that has been cleared by the underlying layer (i.e., the entire GPC is considered non-functional). An innovation of FGM is the generation of GPC states for GPCs that are not present in the source GPU.

[0155] Figure 25A , Figure 25B , Figure 25C The diagram illustrates three identical 68-TPC configurations, but each is split into two 4-GPC GPU instances. The TPCs per GPC profile across the six 4-GPC GPU instances are: four 8 / 8 / 8 / 8; one 7 / 8 / 8 / 9; and one 6 / 8 / 9 / 9. Migration must be able to occur for any two of these 4-GPC TPCs per GPC profile. When multiple GPU instances are in use and the migration of work on the GPUs is complete, all GPU instances are migrated independently, and the software running on the source GPU can be distributed to different destination GPU instances on the destination GPU and restart on those different destination GPU instances.

[0156] The 4-GPC GPU instances in Figure 25 each have two singleton patterns. Furthermore, as with the complete GPU migration scenario, the GPU instance scenarios have the same number of singleton and non-singleton patterns at both the migration source and destination. Figure 26 This demonstrates some options for migrating between singleton and non-singleton modes among six 4-GPC GPU instances.

[0157] Figure 26 , Figures 26A-26D An example of flexible migration is shown in one embodiment. Figure 26AIn the migration example, the migration matches the virtual GPC ID, so the logical-to-physical mapping is arbitrary. In the example shown here, GPCs are arranged from left to right in the logical GPC space, and lower numbers are in the virtual GPC space. In this example, the block labeled "Graphics TPU" is a subset of TPCs that support graphics. In one embodiment, a GPC with graphics capabilities (GPC0) is assigned to logical GPC0. This is a modification of the previously described skyline rule, which states that GPCs are ordered from smallest to largest. Therefore, GPC0 has graphics capabilities, and the remaining GPCs are ordered as before. See the discussion below regarding graphics migration.

[0158] Figure 26B This demonstrates that during migration, a TPC can move within a logical GPC ID.

[0159] Figure 26C and Figure 26D The computation state from GPC[0] can be transitioned to different logical GPCs.

[0160] Figure 27 This demonstrates how some SKUs can clear the entire GPC at a low level. In this example, the virtual GPC ID 7 is not used in the SKU, even for chips with 8 GPCs. When migrating from 7 GPCs to 8 GPCs, the state for the 8th GPC is generated from the 7-GPC context image.

[0161] Further improvements to the compute work assigner to support migration. The CWD 420 also includes other innovations to enable DTD, FTM, and FGM to function properly and thus support migration. These include a device for determining which TPCs need to be treated as singletons, and hardware for handling special cases of singleton patterns. The innovative technical differences are: TPC can be dynamically disabled. Provides more GPU instances than previous chip architectures Provides larger GPU instances than previous chip architectures • TPCs that are located together in a GPC on one chip can be migrated to multiple GPCs on another chip. Previously, TPC in GPC was migrated together. • A TPC located in a GPC can be moved to multiple GPCs on the same chip. • TPC status is stored per TPC, not per GPC. TPCs within the same source GPC can be migrated to different destination GPCs. Chips with different TPC profiles per GPC can be included in the same product SKU because HPC installations require migration. The microcode uses pointers to the TPC state to allow saved TPC work to be shuffled as needed. • For FGM, generate GPC states for any other non-existent GPC. TPC context saving / restoring based on SM_ID Previously, the state of a TPC within a GPC was stored in an area of ​​the context buffer associated with that GPC. Furthermore, this state was indexed within that GPC using its logical TPC ID. This GPC no longer worked with flexible TPC migrations, as the TPC state might need to move between TPCs in different GPCs with different logical TPC IDs.

[0162] The example technique described in this paper moves all TPC states out of the GPC and into separate, contiguous regions indexed by a unique, pre-existing global identifier SM_ID. During CILP (Compute Preemption), work expected to be assigned to a TPC with SM_ID'n' in the source continues execution on the TPC with the same SM_ID'n' in the target. By using SM_ID-based indexing, the TPC state is restored to the correct TPC in the target, regardless of which GPC it is in or which logical TPC ID it has.

[0163] GPC Status Copy With the relaxation of underlying purge rules, we can have scenarios where we can migrate between GPUs with different numbers of GPCs but the same total TPC.

[0164] This technology attempts to solve this problem in two directions: (1) When migrating from more GPCs to fewer GPCs, additional GPC states from the source are automatically skipped for recovery because there are no equivalent GPCs in the target. (2) When migrating from fewer GPCs to more GPCs, the fact that the state of all GPCs is the same at the migration point is utilized – the state of any GPC in the source is also restored to the additional GPC in the target.

[0165] TPC with GFX capability and special processing for calculating only TPC In one example embodiment, only a subset (e.g., 5) of the TPCs with graphics capabilities may exist across the entire GPU. All other TPCs are computation-only and cannot handle graphics work. Therefore, when a graphics application is run in such an example embodiment, the state of the graphics TPCs in the source should only be restored to the graphics TPCs in the target during migration. Note that this requires an exception to the rule that TPC states should only migrate between TPCs with the same SM_ID, since a TPC with the same SM_ID could be a computation-only TPC in the target, and therefore incompatible with the state of the graphics TPC being restored. The techniques described herein seek to detect when a graphics application is running and add special firmware logic to identify the graphics TPCs in the source and target and the migration states between them. This is an example in some embodiments where the state of a source TPC can be split into multiple target TPC states. Moreover, any computation-only TPC in the target with the same SM_ID as a graphics-capable TPC in the source restores its state from any other computation-only TPC—taking advantage of the fact that the computation pipeline is expected to be idle at the migration point when the graphics application is running, and therefore all computation-only TPC states are guaranteed to be the same. This technology thus solves the problem of having to migrate between different resources.

[0166] GPMPD Barrier Table GPMPD is a GPC unit that contains computational workload tracking information in a structure called a barrier table. See also Figure 28 Therefore, such a barrier table can be useful for TPC migration. Entries in the barrier table are associated with TPCs within that GPC. Because TPCs within a GPC can move to different GPCs during flexible TPC migrations, it is necessary to be able to isolate the entries in this barrier table on a per-TPC basis. In one embodiment, the solution to the TPC migration problem is to select gpc_local_cga_ids such that they never change during migration. GPMPD can then use vgpc_id and gpc_local_cga_id to index into its barrier table, both of which never change during GPU migration. Packets received from the MPC for things such as barrier arrival and cta_completion will contain gpc_local_cga_id as a new field. GPMPD infers vgpc_id from the TPC that is the source of the packet (i.e., from the physical TPC interface that received the packet).

[0167] like Figure 28As shown, the example technique organizes the barrier table into per-TPC chunks that can be saved and restored independently of each other. These entries are again tagged with SM_ID for saving and restoring, thus ensuring that when the TPC state moves to a different GPC during migration, the barrier table state also moves to the GPMPD in that GPC. These per-TPC barrier table entries are also tagged with the crawl subclasses described above, thereby helping to isolate them for saving and restoring purposes.

[0168] More specifically, the number of entries in the CGA barrier status table in GPM has been increased, as follows: Half of the entries are used by CGA on TPC, which will not be migrated between GPCs; and The other half of the entry is used for logical tables, one logical table per possible singleton pattern TPC (in one embodiment, the barrier table does not need to be split in half; instead, the entire table can be divided into N TPC chunks, and N crawl subclasses can be used to isolate them for saving and restoring). These logical tables are addressed separately on the crawl (which is expanded to have new state categories). The table image is also placed in the context image for each TPC state. For migration, for singleton pattern TPCs, the TPC context image is shuffled between GPCs. In one embodiment, the microcode performs the shuffling by marking these per-TPC barrier table chunks with SM_ID, such that barrier table chunks of multi-TPC CGAs are saved and restored separately to the same target GPC. Thus, chunks of singleton pattern TPCs are saved and restored separately to the GPC to which the singleton pattern is flexibly migrated.

[0169] Additionally, bits are added to gpc_local_cga_id to distinguish between singleton and non-singleton modes. For singleton mode, this includes a virtual GPC ID (which is unique across the entire GPU) and a multi-bit barrier ID.

[0170] throttling of computational workload for TPC In MIG mode, due to differences in low-level clearing and the selection of GPCs to form multiple context (“SMC”) engines simultaneously (see, for example, US 20210073035), there are discrepancies in the total number of TPCs across GPUs or the TPC count per GPC in the product line. Existing techniques have attempted to address this issue through “soft” low-level clearing, where registers in a fuse block are used to low-level clear some good TPCs, thus ensuring a constant TPC count on similarly sized SMC engines across all GPUs in the product line. Any changes to “soft” low-level clearing require a full-chip reset, which is particularly destructive in MIG use cases, as different users on the same GPU will interrupt their work. Again, existing techniques address this issue by keeping the “soft” TPC low-level clearing unchanged and thus suboptimally utilizing the available TPCs in the GPU.

[0171] Instead of attempting to keep the number of TPCs constant, the technique presented in this paper aims to maintain a constant number of TPCs available for work. Without altering any underlying cleanup, the technique instead programs the registers in the computational work allocator 420 to distribute work only to a subset of the available TPCs. Thus, when migrating from a higher number of TPCs to a lower number of TPCs, any additional TPCs in the source have been programmatically excluded from work distribution and therefore do not have an active state that needs to be restored. Any reprogramming of these registers requires only a local reset and is not destructive. Furthermore, this allows for maximizing the use of available TPCs in the GPU.

[0172] Handling different numbers of TPCs between source and destination The example non-limiting technique provides firmware to handle migrations between sources and targets with different numbers of TPCs. Migration from more to fewer TPCs is handled by skipping the recovery of additional TPC states in the source, since these TPCs are excluded from work anyway. When migrating from fewer to more, the firmware disables the recovery of additional TPCs in the target, and they remain in their initial state. Again, these additional TPCs are programmatically excluded from work assignments in the target. In another embodiment, when migrating from fewer TPCs to more TPCs, the state of the original TPC used for the application can be cloned to multiple target TPCs.

[0173] Example of an improved CWD circuit implementation In the embodiments described herein, the CWD 420 includes registers, combinational logic, and a hardware state machine. For more information on example GPU CWDs and MPCs used for scheduling jobs, see, for example, patent disclosure 20200043123 and related descriptions, particularly Figure 7. Its functionality is extended / enhanced to provide CGA launch capability with shadowed state simulation, confirming that resources are available to launch all CTAs in the CGA. If all CTAs in the CGA cannot launch simultaneously, the CWD 420 does not launch any CTAs in the CGA, but waits until sufficient resources in the relevant GPU hardware domain become available, allowing all CTAs in the CGA to be launched concurrently. In the example embodiment, the CWD 420 uses a multi-level job allocation architecture to support nested multi-level CGAs (e.g., multiple GPC-CGAs within a GPU-CGA) to provide CGA launch on associated hardware affinity / domains.

[0174] In more detail, Figure 21A The CWD 420 shown uses simulation techniques to determine that all CTAs in the CGA are suitable for initiating CTAs in the CGA after using the available hardware resources in the specified hardware domain. In this way, the CWD 420 in one example mode ensures that there are sufficient resources across all GPCs or other relevant hardware domains for all CTAs in the CGA before any CTAs are initiated. In one embodiment, the algorithm for initiating CTAs in the CGA may borrow some techniques from conventional (non-CGA) mesh booting while first confirming that all CTAs in the CGA can be initiated in a manner that ensures they will run concurrently.

[0175] Figure 21A The basic architecture of CWD 420 is shown. CWD 420 includes a load balancer 422, resource trackers (TRTs) 425(0), 425(1), ... 425(N-1), a TPC enable table 430, a local memory (LMEM) block index table 432, a credit counter 434, a task table 436, and a priority-ordered task table 438. Each TRT 425(0), 425(1), ... 425(N-1) communicates with a corresponding TPC 340(0), 340(1), ... 340(N-1). For more details on the conventional operation of these structures, see, for example, USP10,817,338; US20200043123; US20150178879; and USP10,217,183. In this example, CWD is enhanced to provide a new GPC number per TPC, etc.

[0176] In one embodiment, CWD 420 receives tasks from CPU 212, which collaborates with the GPU, for various processes executing on CPU 212. In an example embodiment, each computational task executed by the GPU may correspond to a CGA (although non-CGA tasks may also be accommodated). Each process or application executing on CPU 212 may issue such a task. For example, CPU 212 may execute one or more programs stored in non-transitory memory, such as global memory, to generate a CGA launch command that instructs the GPU to launch the CGA grid.

[0177] During operation, CPU 212 executes the driver that generates "mesh boot" (and other) commands for the GPU (see [link]). Figure 21C-2 The grid initiation command has associated state parameters that define the CGA grid executed by the GPU. This relates to how the CPU can be used, for example, in thread-oriented programming environments (such as those from NVIDIA). TM CUDA TM The programming environment is used to launch the grid in the background, see, for example, USP7,937,567; USP9,513,975; and USP9,928,109. The CPU 212 also arranges that threads to be executed by the SM are stored in, for example, global memory, so that the GPU's direct memory access hardware can retrieve the threads for SM execution via the system's memory management unit (MMU) (see...). Figure 21A ).

[0178] Example CGA startup command In an example embodiment, the boot command from CPU 212 to CWD 420 can specify a CGA grid, which includes an enumeration of composite thread blocks and different dimensions of CGAs. As an example, the CGA grid boot command can specify running 10240 CGAs, where each CGA is 8 CTAs, each CTA has 256 threads, each thread has (requires) 64 registers, and each CTA is allocated 128KB of shared memory, and so on. These numbers are encoded as boot commands such as {10240, 8, 256, 64, 128} and are information processed by the hardware work allocator CWD 420 when starting threads or CTAs on the SM. CPU 212 sends such boot commands to the scheduler 410 within the GPU (…). Figure 21C-2 (Box 558).

[0179] Using the above techniques, applications can launch many small CGAs in GPCs or other hardware partitions, but the number decreases as the CGA size increases. At some point (depending on the hardware platform), none of the CGAs will fit in a GPC or other hardware partition, which may compromise code portability. Assuming each platform has at least one GPC with 4 TPCs, the maximum CGA size that guarantees compatibility across future architectures is 8 CTAs. A given application can dynamically adjust the CGA size based on a query platform to determine the number of CGAs that can run concurrently on the GPU, based on 1) CTA resource requirements and 2) the number of CTAs per CGA.

[0180] GPU CGA scheduling and startup In the example embodiment, the scheduler 410 within the GPU receives tasks from the CPU 212 and sends them to the CWD 420 ( Figure 21C-1 (See boxes 502 and 504). The CWD 420 queries and launches CTAs from multiple CGAs. In one embodiment, one CGA is operated on at a time. For each CGA, the CWD 420 simulates the launch of all CTAs in the CGA, incrementing the "launch" register to store the simulated launch. If all free slots in the SM or other processors in the hardware domain are exhausted before all CTAs in the simulated launch of the CGA are launched, the CWD 420 terminates the launch and can try again later. Conversely, if there are enough free slots for all CTAs in the CGA, the CWD 420 generates an sm_mask from the "launch" register accumulated during the simulated launch (this sm_mask data structure stores reservation information for multiple CTAs running on each SM in the relevant hardware domain for CGA launch) and moves it to the next CGA. The hardware assigns a CGA sequence number and appends it to each sm_mask. It also appends the end_ bit of the CGA to the last bit to prevent sm_masks from different CGAs from interleaving.

[0181] Example CGA startup group Based on a successful simulated boot, the CWD 420 sends a boot packet (which specifies the virtual GPC ID) to the GPC (SM). Such a boot packet may include, for example, the following fields: Broadcasting a start packet to all SMs allows all MPCs within an SM to observe the entire sequence of CGA / CTA start-ups. By observing the CGA and CTA streams, each SM's MPC (to which the mesh is currently assigned) can redundantly and independently perform rasterization. The broadcast is also in the form of lmem_blk_idx packets, which carry lmem_blk_idx data from CWD 420 to the SM (see...). Figure 21A LMEM block index table 432).

[0182] In one embodiment, during CGA startup, after load balancing, the CWD issues a CTA to the tuple <mobile TPC ID, virtual GPC ID>. The GPM decodes this tuple and associates it with the actual "physical" TPC ID. In one embodiment, the new CWD PRI - NV_PGRAPH_PRI_CWD_VGPC_MTPC_ID is a mapping from SM_ID to <virtual GPC ID, mobile TPC ID> and can be stored in both forward and reverse forms to accelerate runtime conversion. For virtual GPC IDs 8-23, the new NV_PGRAPH_PRI_CWD_SM_ID_SINGLETON_TPC can provide a reverse mapping from <virtual GPC ID, mobile TPC ID> to SM_ID. In one embodiment, virtual GPC IDs 0-7 can receive both traditional CTA and CGA, while virtual GPC IDs 8-23 can only receive traditional CTA and 1-TPC size CGA. Furthermore, the unique TPC of the CWD (represented by <Virtual GPC ID, Migable TPC ID>) is converted into a tuple <Logical GPC ID, Virtual TPC ID>, and the TPC request is simultaneously sent upstream to the front end (FE), such as... Figure 23 As shown, this is used for communication back to the host CPU.

[0183] In one embodiment, when CWD performs load balancing, the 16 TPCs in virtual GPCs 8-23 take precedence over virtual GPCs 0-7. Therefore, the CSM corresponding to virtual GPCs 8-23 is mapped to a WD snapshot state index lower than that of the TPCs in GPCs 0-7. Lower WD snapshot states have higher priority, so single-TPC CGAs will prefer to use GPCs 8-23 and reserve GPCs 0-7 for multi-TPC CGAs. In other words, the CWD load balancing algorithm will attempt to assign smaller CGAs to singleton patterns that are "suitable" for those singleton patterns, and reserve non-singleton virtual GPCs for CGAs that require launching more than one TPC.

[0184] Multi-level unified work distributor Figure 21B In one embodiment, the CWD 420 includes several levels of work distributors (WDs) for distributing CGA work. For example, in the case where the GPU CGA is composed of a GPC CGA, the CWD 420 can implement a two-level work distributor: GPU2GPC Work Distributor 420a • Multiple GPC2SM job distributors 420b(0), 420b(1), 420b(2), ...

[0185] The first level (420a) allocates GPC CGAs across GPCs. The second level (GPC to SM job allocator 420b) allocates CTAs to SMs within the GPC.

[0186] A level prior to or higher than the GPU-to-GPC level can be used to allocate µGPU CGAs to µGPUs (in one embodiment, when µGPUs are present, the GPU is composed of µGPUs, the µGPUs are composed of GPCs, and the GPCs are composed of TPCs or SMs). Specifically, the GPU2GPC WD 420a allocates a potentially large number (one or more) components of the GPU CGA, the GPC CGA, to the corresponding GPC2SM work allocator. Figure 21C-2 (Block 506). The GPC2SM job distributor 420b each distributes the CTA of the GPC CGA to the SM within the GPC (using, for example, load balancing mode or multicast mode, as described below). Figure 21B The Unified Work Distributor (UWD) 420a / 420b ensures that all GPC CGAs in the GPU CGA can start together, and all CTAs in each GPC CGA can start together.

[0187] In other embodiments that support deeper nesting of CGA, this UWD can be extended to any number of levels as needed. More specifically, in one embodiment, CWD 420 may include or activate a hierarchical three-level Unified Work Distributor (UWD) for the CGA grid that requires this functionality: The GPU2SM Work Assigner (GPU2SM WD) handles CTAs and GPU CGAs composed of CTAs.

[0188] The GPU2GPC Work Allocator (GPU2GPC WD) coordinates load balancing between the GPC CGA and the GPU CGA comprised of GPC CGAs. It discusses the lowest-level work allocator – GPC2SM WD. The GPC2SM Work Allocation Unit (GPC2SM WD) handles the actual load balancing of the GPC CGA. There are N GPC2SM WDs in the UWD, and one GPC2SM WD for each virtual GPC in the GPU.

[0189] In one embodiment, the UWD thus knows the GPC at each TPC level in order to facilitate spatial affinity of the CGA (e.g., all CTAs from the GPC CGA will be launched on the same GPC).

[0190] As described above, during GPU chip testing, each individual GPU chip is categorized into a specific product SKU and then subjected to low-level clearing to disable (in this case, permanently shut down) faulty circuitry. This low-level clearing involves writing to the low-level clearing configuration circuitry within the chip (see...). Figure 5B (And, for example, US20150200020). Furthermore, the CWD is programmed to configure itself for specific low-level clearing of the skyline for the chip, including multiple singleton patterns and any dynamic TPC disables that may take effect.

[0191] In one example embodiment, CWD programming is simplified by providing a register interface such as the following, which provides self-configuration in response to a single register poke for dynamic (re)configuration: In some embodiments, to accommodate MIG, the CWD is built in two configurations: a full CWD with 8 GPCs plus support for all 16 singleton patterns, and a reduced CWD with 4 GPCs plus support for 12 singleton patterns.

[0192] Other example implementations The above implementation uses the concept of a "singleton" TPC—that is, a TPC assigned to its own dedicated virtual GPC. However, in other embodiments, it may be desirable to combine such TPCs into "dualtons." In such a variation, two TPCs are assigned together to each virtual GPC. The dualton pattern may offer some benefits in product SKUs where many TPCs are cleared at the underlying level. The dual-instance pattern can support a larger CGA (e.g., in one embodiment, in the case of a virtual GPC based on the singleton pattern, the dual-instance pattern will support CTAs within the GPC CGA, which runs concurrently across four SMs instead of two SMs. However, the two TPCs constituting the dual-instance pattern need to be able to communicate with each other so that they support distributed shared memory, message passing between each other, etc., and therefore support the full set of functions that the physical GPC can support. This also means that there may be some TPCs that can act as singletons but cannot be paired with another TPC as a dual-instance, and therefore will need to be cleaned up at the lower level in a dual-instance-only implementation. A hybrid implementation that supports both dual-instance and singleton patterns may also be provided to reduce the additional necessary lower-level cleanup at the cost of additional CWD complexity.

[0193] While the techniques described in this article are particularly useful for classifying chips into common product SKUs (a group of chips designed to be identical but which end up being different due to manufacturing defects), the techniques can also be used to provide compatibility between chips designed to have different functions and configurations.

[0194] The examples above may refer to a specific chip configuration, such as 8 GPCs, each GPC comprising 9 TPCs, and each TPC comprising 2 SMs; however, this configuration is non-limiting and is presented only by way of example. Different chips may have different numbers of GPCs, TPCs, and SMs, and / or they may use hardware partitions and processing cores that are named and constructed differently from the GPCs, TPCs, and SMs. Therefore, the techniques described herein are not limited to such implementation details.

[0195] The above description refers to GPU integrated circuit identifiers as "Product Stock Units" or "Product SKUs." An example of such a Product SKU is the ASIC code "XY102-300-A1" printed or stamped on the integrated circuit. In this case, "XY102" could refer, for example, to a serial number ("Y") and a schedule for the project used in that generation (e.g., "102"). The part number "300" of the Product SKU could refer to, for example, the chip's feature set, processing power, and / or other technical specifications. Chips stamped or otherwise marked or indicated for different Product SKUs are generally considered by customers to be different technology products. Therefore, a chip designated "XY102-225-A1" could have different specifications / processing power compared to a chip designated "XY102-300-A1". Unless otherwise specifically stated, the technology described herein is not limited to the term "product SKU" used by those skilled in the art and may be extended to, for example, any name or designation, such as model number, feature descriptor, reference to processing specifications, or other identifiers used in combination with the chip, its package, or any combination thereof in products into which it is or will be incorporated, for supply / ordering, warehousing, or other purposes that reflect or define the expectations regarding the chip's technical capabilities, functionality, feature set, specifications, compatibility, or other technical aspects or characteristics.

[0196] For all purposes, all patents, patent applications and publications cited herein are incorporated herein by reference as expressly stated.

[0197] While the invention has been described in conjunction with embodiments that are now considered to be the most practical and preferred, it should be understood that the invention is not limited to the disclosed embodiments, but rather is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims

1. A method for testing integrated circuits, comprising: To determine if the hardware processor of the integrated circuit is defective; Based on the determination, the integrated circuit is modified to selectively make the hardware processor of the integrated circuit inaccessible; as well as Based on the determination and the modification, programming the integrated circuit to indicate a defect-free hardware processor using virtual identifiers includes, based on the determination, classifying the integrated circuits according to a skyline representing a group of integrated circuits to be included in a product identifier, wherein the skyline includes: (a) a declared number of virtual processing clusters, and (b) a declared number of processors for each declared virtual processing cluster, wherein different virtual processing clusters declared for the same processor, processing chip, or other processing arrangement have the same or different declared number of processors, wherein the skyline is a representation of the processing capabilities of the integrated circuit.

2. The method according to claim 1, wherein the determination includes: Test for defects in the integrated circuit.

3. The method of claim 2, wherein the modification includes: Based on this classification, the functional hardware processor becomes inaccessible.

4. The method of claim 1, wherein the programming comprises: The work assigner within the integrated circuit is programmed to provide the appearance of a virtual identifier that hides identified defects, thereby presenting a consistent and uniform work assignment interface across a group of integrated circuits with different technological capabilities.

5. The method according to claim 1, further comprising: The degree of balance of a defect-free hardware processor is determined in the integrated circuit, and the programming selectively renders the hardware processor inaccessible based on the determined degree.

6. The method according to claim 5, further comprising: The integrated circuits are eliminated based on the determined balance level.

7. A method for testing integrated circuits, comprising: To determine if the hardware processor of the integrated circuit is defective; Based on the determination, a flawless hardware processor capable of being used as a singleton pattern is specified; Based on the determination, the integrated circuits are classified according to a skyline representing a group of integrated circuits to be included in the product identifier, wherein the skyline includes: (a) a declared number of virtual processing clusters, and (b) a declared number of processors for each declared virtual processing cluster, wherein different virtual processing clusters declared for the same processor, processing chip or other processing arrangement have the same or different declared number of processors. as well as The integrated circuit can be selectively programmed to use a designated flawless hardware processor as a singleton or as an alternative for use with other flawless hardware processors on the integrated circuit to match the processing power across the skyline representing the group of integrated circuits.

8. The method of claim 7, wherein the determination comprises: Test for defects in the integrated circuit.

9. The method according to claim 7, further comprising: Based on this classification, the functional hardware processor becomes inaccessible.

10. The method of claim 7, wherein the programming comprises: The work assigner within the integrated circuit is programmed to provide the appearance of a virtual identifier that hides identified defects, thereby presenting a consistent and uniform work assignment interface across a group of integrated circuits with different technological capabilities.

11. The method of claim 7, wherein the determination further comprises: The degree of balance of the defect-free hardware processor in the integrated circuit is determined, and the programming renders the hardware processor inaccessible based on the determined degree.

12. The method of claim 11, further comprising: The integrated circuits are eliminated based on the determined degree.

Citation Information

Patent Citations

  • Techniques for efficiently partitioning memory

    US10909033B1

  • Programmatically controlled data multicasting across multiple compute engines

    US12020035B2

  • Method and apparatus for efficient access to multidimensional data structures and / or other large data blocks

    US12499052B2

  • Hardware accelerated synchronization with asynchronous transaction support

    US12536056B2

  • Control mechanism for fine-tuned cache to backing-store synchronization

    US20140122809A1