CDNA (microarchitecture) explained

AMD CDNA
Designfirm:AMD
Predecessor:AMD FirePro
Variant:RDNA (consumer, professional)

CDNA (Compute DNA) is a compute-centered graphics processing unit (GPU) microarchitecture designed by AMD for datacenters. Mostly used in the AMD Instinct line of data center graphics cards, CDNA is a successor to the Graphics Core Next (GCN) microarchitecture; the other successor being RDNA (Radeon DNA), a consumer graphics focused microarchitecture.

The first generation of CDNA was announced on March 5th, 2020,[1] and was featured in the AMD Instinct MI100, launched November 16th, 2020.[2] This is CDNA 1's only produced product, manufactured on TSMC's N7 FinFET process.

The second iteration of the CDNA line implemented a multi-chip module (MCM) approach, differing from its predecessor's monolithic approach. Featured in the AMD Instinct MI250X and MI250, this MCM design used an elevated fanout bridge (EFB)[3] to connect the dies. These two products were announced November 8th, 2021, and launched November 11th. The CDNA 2 line includes an additional latecomer using a monolithic design, the MI210.[4] The MI250X and MI250 were the first AMD products to use the Open Compute Project (OCP)'s OCP Accelerator Module (OAM) socket form factor. Lower wattage PCIe versions are available.

The third iteration of CDNA switches to a MCM design utilizing different chiplets manufactured on multiple nodes. Currently consisting of the MI300X and MI300A, this product contains 15 unique dies and is connected with advanced 3D packaging techniques. The MI300 series was announced on January 5, 2023, and launched in H2 2023.

CDNA 1

AMD CDNA 1
Process:TSMC N7 (FinFET)
Predecessor:AMD FirePro
Successor:CDNA 2

The CDNA family consists of one die, named Arcturus. The die is 750 millimeters squared, contains 25.6 billion transistors and is manufactured on TSMC's N7 node.[5] The Arcturus die possesses 120 compute units and a 4096-bit memory bus, connected to four HBM2 placements, giving the die 32 GB of memory, and just over 1200 GB/s of memory bandwidth. Compared to its predecessor, CDNA has removed all hardware related to graphics acceleration. This removal includes but is not limited to: graphics caches, tessellation hardware, render output units (ROPs), and the display engine. CDNA retains the VCN media engine for HEVC, H.264, and VP9 decoding.[6] CDNA has also added dedicated matrix compute hardware, similar to those added in Nvidia's Volta Architecure.

Architecture

The 120 compute units (CUs) are organized into 4 asynchronous compute engines (ACEs), each ACE maintaining its own independent command execution and dispatch. At the CU level, CDNA compute units are organized similarly to GCN units. Each CU contains four SIMD16, that each execute their 64-thread wavefront (Wave64) over four cycles.

Memory system

CDNA has a 20% clock bump for the HBM, resulting in a roughly 200 GB/s bandwidth increase vs. Vega 20 (GCN 5.0). The die has a shared 4 MB L2 cache that puts out 2 KB per clock to the CUs. At the CU level, each CU has its own L1 cache, a local data store (LDS) with 64 KB per CU and a 4 KB global data store (GDS), shared by all CUs. This GDS can be used to store control data, reduction operations or act as a small global shared surface.[7]

Experimental PIM implementation

In October 2022, Samsung demonstrated a Processing-In-Memory (PIM) specialized version of the MI100. In December 2022 Samsung showed off a cluster of 96 modified MI100s, boasting large increases in processing throughput for various workloads and significant reduction in power consumption.[8]

Changes from GCN

The individual compute units remain highly similar to GCN but with the addition of 4 matrix units per CU. Support for more datatypes were added, with BF16, INT8 and INT4 being added. For an extensive list of operations utilizing the matrix units and new datatypes, please reference the CDNA ISA Reference Guide.

Products

CDNA 2

AMD CDNA 2
Process:TSMC N6
Predecessor:CDNA 1
Successor:CDNA 3

Like CDNA, CDNA 2 also consists of one die, named Aldebaran. This die is estimated to be 790 millimeters squared, and contains 28 billion transistors while being manufactured on TSMC's N6 node.[9] The Aldebaran die contains only 112 compute units, a 6.67% decrease from Arcturus. Like the previous generation, this die contains a 4096-bit memory bus, now using HBM2e with a doubling in capacity, up to 64 GB. The largest change in CDNA 2 is the ability for two dies to be placed on the same package. The MI250X consists of 2 Aldebaran dies, 220 CUs (110 per die) and 128 GB of HBM2e. These dies are connected with 4 Infinity Fabric links, and addressed as independent GPUs by the host system.

Architecture

The 112 CUs are organized similarly to CDNA, into 4 asynchronous compute engines, each with 28 CUs, instead of the prior generations 30. Like CDNA, each CU contains four SIMD16 units executing a 64-thread wavefront across 4 cycles. The 4 matrix engines and vector units have added support for full rate FP64, enabling significant uplift over the prior generation. CDNA 2 also revises multiple internal caches, doubling bandwidth across the board.

Memory system

The memory system in CDNA 2 sports across the board improvements. Starting with the move to HBM2e, doubling the quantity to 64 GB, and increasing bandwidth by roughly one third (from ~1200 GB/s to 1600 GB/s). At the cache level. Each GCD has a 16-way, 8 MB L2 cache that is partitioned into 32 slices. This cache puts out 4 KB per clock, 128 B per clock per slice, which is a doubling of the bandwidth from CDNA. Additionally, the 4 KB Global Data Store was removed. All caches, including the L2 and LDS have support added for FP64 data.

Interconnect

CDNA 2 brings forth the first product with multiple GPUs on the same package. The two GPU dies are connected by 4 Infinity Fabric links, with a total bidirectional bandwidth of 400 GB/s.[10] Each die contains 8 Infinity Fabric links, each physically implemented with a 16-lane Infinity Link. When paired with an AMD processor, this will act as Infinity Fabric. if paired with any other x86 processor, this will fallback to 16 lanes of PCIe 4.0.

Changes from CDNA

The largest up front change is the additional of full rate FP64 support across all compute elements. This results in a 4x increase FP64 matrix calculations, with large increases in FP64 vector calculations.[11] Additionally support for packed FP32 operations were added, with opcodes like V_PK_FMA_F32' and 'V_PK_MUL_F32'.[12] Packed FP32 operations can enable up to 2x throughput, but do require code modification. As with CDNA, for further information on CDNA 2 operations, please reference the CDNA 2 ISA Reference Guide.

Products

CDNA 3

AMD CDNA 3
Process:TSMC N5 & N6
Predecessor:CDNA 2

Unlike its predecessors, CDNA 3 consists of multiple dies, used in a multi-chip system, similar to AMD's Zen 2, 3 and 4 line of products. The MI300 package is comparatively massive, with nine chiplets produced on 5 nm, placed on top of four 6 nm chiplets.[13] This is all combined with 128 GB of HBM3, using eight HBM placements.[14] This package contains an estimated 146 billion transistors. It comes in the form of the Instinct MI300X and MI300A, the latter being an APU. These products were launched on December 6, 2023.[15]

Products

See also

External links

Notes and References

  1. Web site: Smith . Ryan . AMD Unveils CDNA GPU Architecture: A Dedicated GPU Architecture for Data Centers . 2022-09-20 . www.anandtech.com.
  2. Web site: GPU Database: AMD Radeon Instinct MI100 . 2022-09-20 . TechPowerUp.
  3. Web site: Smith . Ryan . AMD Announces Instinct MI200 Accelerator Family: Taking Servers to Exascale and Beyond . 2022-09-21 . www.anandtech.com.
  4. Web site: Smith . Ryan . AMD Releases Instinct MI210 Accelerator: CDNA 2 On a PCIe Card . 2022-09-21 . www.anandtech.com.
  5. Web site: Kennedy . Patrick . 2020-11-16 . AMD Instinct MI100 32GB CDNA GPU Launched . 2022-09-22 . ServeTheHome . en-US.
  6. Web site: 2020-03-05 . AMD CDNA Whitepaper . 2022-09-22 . amd.com.
  7. Web site: 2020-12-14 . "AMD Instinct MI100" Instruction Set Architecture, Reference Guide . 2022-09-22 . developer.amd.com.
  8. Web site: Aaron Klotz . 2022-12-14 . Samsung Soups Up 96 AMD MI100 GPUs With Radical Computational Memory . 2022-12-23 . Tom's Hardware . en.
  9. Web site: Anton Shilov . 2021-11-17 . AMD's Instinct MI250X OAM Card Pictured: Aldebaran's Massive Die Revealed . 2022-11-20 . Tom's Hardware . en.
  10. Web site: INTRODUCING AMD CDNA™ 2 ARCHITECTURE . November 20, 2022 . AMD.com.
  11. Web site: 2022-09-18 . Hot Chips 34 – AMD's Instinct MI200 Architecture . 2022-11-10 . Chips and Cheese . en-US.
  12. Web site: 2022-02-04 . "AMD Instinct MI200" Instruction Set Architecture . 2022-10-11 . developer.amd.com.
  13. Web site: Smith . Ryan . CES 2023: AMD Instinct MI300 Data Center APU Silicon In Hand - 146B Transistors, Shipping H2'23 . 2023-01-22 . www.anandtech.com.
  14. Web site: Paul Alcorn . 2023-01-05 . AMD Instinct MI300 Data Center APU Pictured Up Close: 13 Chiplets, 146 Billion Transistors . 2023-01-22 . Tom's Hardware . en.
  15. Web site: Kennedy . Patrick . 2023-12-06 . AMD Instinct MI300X GPU and MI300A APUs Launched for AI Era . 2024-04-15 . ServeTheHome . en-US.