Unit 2 of 10 · about 2 hours · explain
AMD CDNA and ROCm vocabulary
Portability starts with names. A bound, a fallback or a profile means nothing if compute unit, wavefront and shared memory are confused across vendors.
You'll be able to
- Map CUDA terms for compute, threading, on-chip memory, matrix units and profiling to their AMD CDNA and ROCm counterparts at vocabulary depth.
- Distinguish the CDNA datacenter line from the RDNA graphics line and place Composable Kernel, AITER and HipKittens in the right software layer.
Covers
Read
In this order, only the parts listed
0 of 3 done
- Lecture 10: taxonomy beyond NVIDIAMIT 6.S894 Accelerated Computing (Fall 2025) - Lecture 10
Lecture 10 slides 6 to 8: GPUs beyond NVIDIA (AMD RDNA versus CDNA) and programming non-NVIDIA GPUs; slides 9 to 11 and 17: higher-level kernel languages, the Triton matmul listing and Pallas as contrast
- Other hardware stacks and the AMD hardware shelfAI Performance Engineering - Hardware, Frontier and Source Policy
Other hardware stacks: ROCm Composable Kernel, ROCm AITER, HipKittens, Pallas design and NKI programming model entries; Section 6, AMD: CDNA 4 whitepaper, CDNA 4 instruction set and MI350 performance counters
Use these entries as a map to official AMD documentation. Do not cite the list itself for architecture facts.
- Composable Kernel programming modelROCm Composable Kernel
Repository
README: the tile-based programming model, Tensor Coordinate Transformation and the four CK layers (Templated Tile Operators down to Client API); one tiled operator example from the supported-operations lists
Focus on
- CDNA is the datacenter compute line; RDNA is the graphics line. An inference kernel targets CDNA vocabulary, never gaming numbers.
- Composable Kernel describes kernels through composable tiles, layouts and pipelines in HIP C++; AITER ships ready inference operators; HipKittens is a tile abstraction. Match the layer before comparing terms.
- AMD counter names follow hardware blocks: compute unit, shader pipe interpolator, texture cache per pipe and per channel. Read the MI350 counter families as a vocabulary list, not as values.
- Pallas is a Triton-like DSL and the JAX kernel model for GPU and TPU backends; NKI is the tile-level model for NeuronCore. Both are separate programming models, not CUDA ports; note where each runs and stop there.
Common mistakes · 3
- Treating HIP as CUDA with renamed calls. Grid and block structure carry over, but wavefront size, occupancy rules and shuffle semantics need per-architecture checks against AMD documentation.
- Reading an MI350 counter as portable. Counter definitions are per architecture; a CDNA 4 compute-unit counter means nothing on NVIDIA hardware or on older CDNA.
- Citing RDNA gaming throughput for a CDNA inference bound. Different lines, different memory systems, different peaks.
Try it yourself
Closed-book, before checking anything
Quiz yourself
Answer first, then mark it. Missed ones go to Review.
0 got · 0 missed
1.Which AMD line targets datacenter inference, and which two repositories supply its tiling primitives and inference operators?Answer
CDNA. Composable Kernel supplies tiling, layout and operator primitives; AITER supplies inference and transformer operator implementations.
2.What does HipKittens add over writing HIP directly?Answer
A tile abstraction for AMD GPUs: decomposition and layout handled above raw threads, comparable in role to Triton or CuTe on NVIDIA.
3.Name two MI350 counter families and the block each watches.Answer
Compute unit counters watch the compute units; texture cache per pipe and per channel counters watch the cache hierarchy. Command processor and shader pipe interpolator counters cover dispatch and scheduling.
4.Where does Pallas run, and what is it?Answer
Pallas is a Triton-like DSL and the JAX kernel model for GPU and TPU backends. It is a separate programming model, not a CUDA port.
You're done when
You can name the CDNA line, the three AMD code layers and two counter families without notes, and explain why none of it executes on your NVIDIA card.
Only when you can do this without notes.
Leads to
Notes
Resources · 3 for this unit, 11 more in the section
- AI Performance Engineering - Hardware, Frontier and Source PolicyWafer · reference
A dated map of current hardware and frontier work. Apply its Source Policy to every final claim, and use the hardware and frontier sections only to find primary documentation.
- MIT 6.S894 Accelerated Computing (Fall 2025) - Lecture 10MIT · support
Use Lecture 10 (Accelerated Computing Beyond NVIDIA and CUDA) for AMD GPUs, TPUs, NPUs and higher-level kernel languages as portability vocabulary.
- ROCm Composable KernelAMD · support
Read the repository
READMEfor the tile-based programming model, Tensor Coordinate Transformation and the four CK layers; open one tiled operator and map each CUDA term to its CK counterpart.
Also in this section
- AI Systems Performance Engineering - Chapters 2, 19 and 20 and the Appendix checklistChris Fregly · primary
Read Chapter 2 for hardware generations, Chapters 19 and 20 on adaptive engine optimization and AI-assisted optimization, and use the Appendix checklist as an audit list for the final project. Treat every performance number as a hypothesis requiring your own evidence.
- GPU Microbenchmark and Kernel Suite - Final EvaluationRoadmap-Final · required
Complete Milestones C through F: CUDA and Triton kernel suite, failure injection, model-versus-profile reconciliation, strong baselines, real integration, full shape matrix, dispatch and fallback defense, clean reproduction and negative results.
- Performance Engineering and GPU Programming CheckpointRoadmap-Final · support
Use the checkpoint as the final adversarial assessment after the source-derived route. Pass the real kernel, compiler or communication modification and end-to-end evidence clauses; ignore its ordering where it conflicts with this track.
- KernelBench-VerifiedKernelBench-Verified Authors · required
Study the evaluator hardening and baseline-parity failures found in the original benchmark. Run a very small task slice or port its adversarial testing ideas into the project evaluator; do not optimize for aggregate benchmark score.
- SOL-ExecBenchNVIDIA · support
Inspect how correctness and performance are compared with a hardware speed-of-light model. Apply one attainable-efficiency analysis to a project kernel and explain missing hardware or model assumptions.
- MLPerf EndpointsMLCommons · support
Read the endpoint-level scenario and load-generation rules. Borrow the workload and result-boundary discipline for the integrated benchmark without claiming an official MLPerf result.
- CUDA Toolkit and Architecture Tuning GuidesNVIDIA · reference
Use the current toolkit root, release notes and the tuning guide matching the measured GPU. Pin the document and toolkit versions, verify capability checks and rerun any claim affected by compiler or architecture change.
- Modern GPU Programming for MLSysMLC · depth
Use the Blackwell GEMM and Flash Attention path as a real architecture-specific reconstruction target if compatible hardware is available. Otherwise produce a static mechanism audit and leave all performance claims open.
- KernelBench - benchmark toolkit and task suiteScalingIntelligence · support
Clone the repository and check one Level 1 problem with
scripts/run_and_check.pyin local mode; readEVAL.mdfor the correctness and timing guidance. Do not chase the aggregate score. - Etalon - holistic evaluation for LLM inferenceGeorgia Tech, Microsoft Research India and Intel AI Lab · support
Read Section 2.2 for TTFT and TPOT pitfalls, then the fluidity-index design (Section 4.1) for deadline-based, SLO-qualified capacity.
- DistServe: Disaggregating Prefill and Decoding for Goodput-optimized LLM ServingZhong et al. (OSDI 2024) · support
Read Section 1 with Figure 1 for per-GPU goodput: the highest request rate served while a target share of requests meets the TTFT and TPOT SLOs.