The engineering behind inference.Contact ↗
Batch & Release/Inference

AMD Ships Two ROCm Handbooks as Book-Style Guides for HIP

AMD's ROCm handbooks turn component documentation into two book-style volumes: a programming guide for HIP newcomers and an optimization guide with profiling-driven patterns and compiler builtins for AMD Instinct and Radeon GPUs.

AMD Ships Two ROCm Handbooks as Book-Style Guides for HIP
Image: AMD ↗

AMD introduced the ROCm Handbooks, a pair of book-style guides that aggregate documentation from the ROCm portal into structured volumes for in-depth study and offline access. The handbooks ship alongside each ROCm release, so the content matches the installed software version. Both volumes are available in HTML and PDF formats, with sources hosted on GitHub.

The first volume, the AMD ROCm Programming Guide, has been available since November 2025 and targets developers new to ROCm and HIP who are comfortable with C++ in general. It covers core concepts, APIs, and recommended practices, with examples that run on any AMD GPU supported by ROCm, from Radeon GPUs in workstations to Instinct GPUs in data centers. The guide is organized into four parts: getting started, which introduces ROCm and HIP and walks through a first complete HIP program; core HIP programming, covering the HIP C++ language extensions and runtime API including memory management, streams, cooperative groups, HIP graphs, and graphics API interoperability; performance optimization, with three tutorials that improve an image gamma correction kernel and a matrix transpose using grid-stride loops and tiling; and the ROCm platform, covering installation, the ROCm Runfile Installer, building from source, and third-party tools.

The second volume, the AMD ROCm Optimization Guide, was published in October 2026 and continues where the Programming Guide ends. It targets experienced ROCm and HIP programmers, AI developers working on low-level implementations, and anyone with existing HIP code to optimize for AMD GPUs. The guide starts from a profile-first principle: measure where the application spends time, then apply targeted optimizations. Its three parts cover GPU performance fundamentals and multi-GPU programming, performance optimization patterns, and compiler builtins.

The patterns section forms the core of the guide. Each pattern is a complete optimization journey for one fundamental algorithm, starting with a naive implementation and applying one optimization at a time. For most steps, the guide lists profiler counters to watch, so developers can measure the effect on their own GPU. The three patterns build on each other: reduction, which covers thread divergence, bank conflicts in the Local Data Share, wavefront reductions, and vectorized memory loads; histogram, which moves from atomic operations in global memory to LDS atomics and per-block partial histograms merged by a second kernel; and matrix multiplication, which combines everything in seven steps on 4096 x 4096 single-precision matrices, from a naive baseline through tiling in LDS, register tiling, double buffering, vectorized loads, register pressure tuning with launch bounds, and a generic policy-based kernel template that dispatches by GPU architecture. The patterns use standard HIP, so they run on any GPU architecture ROCm supports, unless a step shows architecture-specific functionality.

The compiler builtins part provides direct access to GPU instructions the compiler does not always generate on its own. It is organized by architecture: cross-architecture builtins cover arithmetic, direct loads from global memory into LDS, and wavefront operations such as shuffles, Data Parallel Primitives, lane permutations, reductions, and votes. Matrix Fused Multiply-Add builtins cover the matrix instructions of the CDNA architectures, from AMD Instinct MI100 GPUs to the AMD Instinct MI350 Series, in dense and sparse variants. Wave-Matrix Multiply-Accumulate builtins cover the matrix instructions of the RDNA 3 and RDNA 4 architectures, with dense variants on both, plus sparse variants and transpose loads on RDNA 4. Each matrix chapter includes a worked example that plugs that architecture's MFMA or WMMA instructions into the generic matrix multiplication kernel from the patterns part.

The starting point depends on experience. Developers new to HIP should start with the Programming Guide, read the getting started section and the SAXPY tutorial, then work through core HIP programming. Those already writing HIP code can skim unfamiliar parts of the Programming Guide and move to the Optimization Guide, working through the patterns in order. Developers tuning compute-bound kernels on AMD Instinct or AMD Radeon GPUs can go directly to the compiler builtins chapter for their architecture. The two volumes complement each other: the Programming Guide points to the Optimization Guide for profiling-driven patterns and multi-GPU programming, while the Optimization Guide assumes familiarity with HIP basics such as kernel launches, thread indexing, and memory management.

Sources & references

AMD: Introducing the ROCm Handbooks ↗Source consulted: 2026-11-11

Privacy choices

We remember your answer in this browser for 180 days. Come back here whenever you want to change it.

EssentialSaves your answer in this browser. No cookies, no third parties.Always active