I learned CUDA first. When I started working with AMD GPUs, I often knew what I wanted to look up and had to learn the term AMD used for it. I wished I’d had a reference that connected those terms to the ones I knew from CUDA.
Match the terms by scope
HIP is a C++ programming interface for GPUs. Familiar names such as threadIdx, blockIdx, and __shared__ still appear in HIP code. AMD’s architecture and compiler docs often use the terms in the right column. CUDA programming model · HIP programming model
| Scope | CUDA docs | AMD docs |
|---|---|---|
| Individual unit of work | Thread | Work-item |
| Group of lanes executing instructions together | Warp | Wavefront, or wave |
| Threads that can share memory and synchronize | Thread block | Work-group |
| Collection of groups launched for a kernel | Grid of thread blocks | Grid of work-groups |
| Hardware execution resources | Streaming multiprocessor (SM) | Compute unit (CU) |
| On-chip memory shared within the group | Shared memory | Local Data Share (LDS) |
| Thread-private memory backed by device memory | Local memory | Private memory backed by scratch |
SM and CU are helpful terms to start from when you’re looking up scheduling and resource limits. Check the specific architecture before comparing them. RDNA docs also refer to a work-group processor (WGP), a hardware unit made up of two CUs. AMD GPUOpen on occupancy and RDNA execution units
Count the lanes again
A CUDA warp has 32 lanes. An AMD Instinct MI300X uses 64-lane wavefronts, and many AMD Radeon targets use wave32 in HIP. Use warpSize in HIP kernel code or query hipDeviceProp_t::warpSize with hipGetDeviceProperties on the host. CUDA execution model · AMD GPU specifications · HIP porting guide
Consider a 128-thread block reduction that writes one partial sum per warp or wave. It writes four partials on NVIDIA and two on MI300X. If the final reduction still expects four, it can read two unwritten entries. Check the shuffle width, partial-sum count, and mask type together. HIP’s ballot and active-lane masks are 64-bit, including on wave32 targets. HIP cross-lane operations
Check what “local” refers to
CUDA shared memory and AMD LDS are both scratchpads shared by the threads in a block or work-group. In HIP, __shared__ maps to LDS on AMD. In AMDGPU address-space documentation, local is the name for that shared storage. In CUDA, local memory belongs to one thread and is backed by device memory, for example when the compiler spills registers. Look for private or scratch when investigating the corresponding AMD allocation. CUDA memory spaces · AMDGPU address spaces
Read the assembly at the same level
CUDA’s PTX is a virtual instruction set. NVIDIA’s native machine code is the layer you inspect as SASS, for example with cuobjdump --dump-sass. On AMD, inspect the native AMDGPU instructions in a code object using llvm-objdump --disassemble. Check which GPU target produced the code, such as gfx942 for MI300X, before looking up an instruction. PTX reference · CUDA Binary Utilities · AMD’s annotated disassembly example
Three names make AMD disassembly easier to follow. A VGPR, such as v0, holds a value per lane. An SGPR, such as s0, holds one value for the wave. EXEC is the mask that controls which lanes participate in vector instructions. An operand written v[0:3] names four consecutive vector registers, from v0 through v3. For example, v_add_f32 adds single-precision values for each active lane. AMDGPU operand syntax · AMD MI300 ISA reference
For matrix math, think of NVIDIA Tensor Cores and AMD Matrix Cores as serving a similar purpose. You may encounter mma.sync in NVIDIA PTX, MFMA instructions on AMD CDNA3, or WMMA instructions on RDNA3. Look up the tile shape, data type, and arrangement of values across lanes for the specific instruction. NVIDIA matrix instructions in the PTX reference · AMD CDNA3 MFMA · AMD RDNA3 WMMA
Carry over the profiling question
On CUDA, I’d start with Nsight Systems for the timeline and Nsight Compute for kernel counters. On ROCm, rocprofv3 --runtime-trace -- ./app is a starting point for the timeline, and rocprofv3 --pmc can collect hardware counters that the target supports. Nsight Systems guide · Nsight Compute guide · ROCprofiler SDK quick reference
Read the metric’s unit before comparing a number. For example, Nsight Compute expresses achieved occupancy relative to the maximum active warps, while ROCm Compute Profiler’s Wavefront Occupancy reports an average count of resident waves. To assess a port, check outputs and time the same workload on each device. Use each profiler’s counters to explain the timing you measured. Nsight Compute profiling guide · ROCm Compute Profiler pipeline metrics