buffer_load_dword GPU Native ISA AMD Vector
Buffer Memory
Load one 32-bit dword per lane through a buffer (raw/structured) resource descriptor.
Also written as
buffer_load_b32.
AMD's machine-readable ISA specification lists this name for the same instruction.
Encoding
The ENC_MUBUF layout from AMD's machine-readable ISA specification (AMD CDNA 4). Opcode 20 in OP rebuilds 0x00000000E0500000, an identifier AMD lists for this encoding. Bits marked unassigned have no field in the specification. Not the same in every generation: AMD CDNA 2 (field layout), AMD CDNA 1 (field layout), AMD RDNA 2 (layout not verifiable), AMD RDNA 1 (layout not verifiable). The same in AMD CDNA 3.
Operands
-
VDST
Destination VGPR -
VADDR
Per-lane offset (VGPR) -
SRSRC
Buffer resource descriptor (SGPR x4) -
offset
Immediate offset
GFX Target Compatibility
| Target | Support |
|---|---|
| gfx942 | ✅ Supported |
| gfx1100 | ✅ Supported |
Related PTX Concepts
Related
More in Buffer Memory
Reference
Description
Semantics
Example
buffer_load_dword v2, v0, s[4:7], 0 offen // v2 = buffer[s[4:7]](v0)Original illustrative example, written for this site (not reproduced from a specific AMD document).
Sources
- AMD Machine-Readable GPU ISA Specification ↗ - Advanced Micro Devices, Inc.