ds_read_b32 GPU Native ISA AMD Vector
LDS / Data Share
Read one 32-bit value per lane from the Local Data Share (LDS).
Also written as
ds_load_b32.
AMD's machine-readable ISA specification lists this name for the same instruction.
Encoding
The ENC_DS layout from AMD's machine-readable ISA specification (AMD CDNA 4). Opcode 54 in OP rebuilds 0x00000000D86C0000, an identifier AMD lists for this encoding. Not the same in every generation: AMD CDNA 1 (field layout), AMD RDNA 2 (field layout), AMD RDNA 1 (field layout). The same in AMD CDNA 3, AMD CDNA 2.
Operands
-
VDST
Destination VGPR -
ADDR
Per-lane LDS byte address (VGPR) -
offset
Immediate byte offset
GFX Target Compatibility
| Target | Support |
|---|---|
| gfx942 | ✅ Supported |
| gfx1100 | ✅ Supported |
Related PTX Concepts
Related
More in LDS / Data Share
Reference
Description
Semantics
Example
ds_read_b32 v1, v0 // v1 = LDS[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.