Skip to content

Commit aebd338

Browse files
authored
[AMDGPU] Fix user SGPR alloc order in docs (#119092)
NFC. Preload kernarg SGPRs are allocated after the private segment size SGPR. This patch updates AMDGPUUsage.rst to reflect this.
1 parent 8eb5baf commit aebd338

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/docs/AMDGPUUsage.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5756,9 +5756,6 @@ SGPR register initial state is defined in
57565756
then Flat Scratch Init 2 See
57575757
(enable_sgpr_flat_scratch :ref:`amdgpu-amdhsa-kernel-prolog-flat-scratch`.
57585758
_init)
5759-
then Preloaded Kernargs N/A See
5760-
(kernarg_preload_spec :ref:`amdgpu-amdhsa-kernarg-preload`.
5761-
_length)
57625759
then Private Segment Size 1 The 32-bit byte size of a
57635760
(enable_sgpr_private single work-item's memory
57645761
_segment_size) allocation. This is the
@@ -5779,6 +5776,9 @@ SGPR register initial state is defined in
57795776
may be needed for GFX9-GFX11 which
57805777
changes the meaning of the
57815778
Flat Scratch Init value.
5779+
then Preloaded Kernargs N/A See
5780+
(kernarg_preload_spec :ref:`amdgpu-amdhsa-kernarg-preload`.
5781+
_length)
57825782
then Work-Group Id X 1 32-bit work-group id in X
57835783
(enable_sgpr_workgroup_id dimension of grid for
57845784
_X) wavefront.

0 commit comments

Comments
 (0)