Skip to content

Commit

Permalink
[NFC][AMDGPU] Minor cleanup to AMDGPU memory model table
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D90509
  • Loading branch information
t-tye committed Oct 30, 2020
1 parent 4acd8f7 commit fccf4f6
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions llvm/docs/AMDGPUUsage.rst
Expand Up @@ -5319,7 +5319,7 @@ agents.
mode, omit vmcnt(0) and
vscnt(0).
- If OpenCL, omit. - If OpenCL, omit
waitcnt lgkmcnt(0).
lgkmcnt(0).
- Must happen after
any preceding
local/generic
Expand Down Expand Up @@ -5582,7 +5582,7 @@ agents.
mode, omit vmcnt(0) and
vscnt(0).
- If OpenCL, omit. - If OpenCL, omit
s_waitcnt lgkmcnt(0).
lgkmcnt(0).
- Must happen after - Must happen after
any preceding any preceding
local/generic local/generic
Expand All @@ -5592,7 +5592,7 @@ agents.
- Could be split into
separate s_waitcnt
vmcnt(0), s_waitcnt
vscnt(0) and s_waitcnt
vscnt(0), and s_waitcnt
lgkmcnt(0) to allow
them to be
independently moved
Expand Down Expand Up @@ -5633,11 +5633,10 @@ agents.
3. s_waitcnt vm/vscnt(0)

- If CU wavefront execution
mode, omit vm/vscnt(0).
mode, omit.
- Use vmcnt(0) if atomic with
return and vscnt(0) if
atomic with no-return.
waitcnt lgkmcnt(0).
- Must happen before
the following
buffer_gl0_inv.
Expand Down Expand Up @@ -5726,8 +5725,7 @@ agents.
- If CU wavefront execution
mode, omit vmcnt(0) and
vscnt(0).
- If OpenCL, omit. - If OpenCL, omit
waitcnt lgkmcnt(0).
- If OpenCL, omit. - If OpenCL, omit lgkmcnt(0).
- Must happen after
any preceding
local/generic
Expand Down Expand Up @@ -5776,12 +5774,12 @@ agents.

2. flat_atomic 2. flat_atomic
3. s_waitcnt lgkmcnt(0) 3. s_waitcnt lgkmcnt(0) &
vm/vscnt(0)
vmcnt(0) & vscnt(0)

- If CU wavefront execution
mode, omit vm/vscnt(0).
- If OpenCL, omit. - If OpenCL, omit
waitcnt lgkmcnt(0).
mode, omit vmcnt(0) and
vscnt(0).
- If OpenCL, omit. - If OpenCL, omit lgkmcnt(0).
- Must happen before - Must happen before
any following the following
global/generic buffer_gl0_inv.
Expand Down Expand Up @@ -5886,7 +5884,7 @@ agents.
- Could be split into - Could be split into
separate s_waitcnt separate s_waitcnt
vmcnt(0) and vmcnt(0), s_waitcnt
s_waitcnt vscnt(0) and s_waitcnt
s_waitcnt vscnt(0), and s_waitcnt
lgkmcnt(0) to allow lgkmcnt(0) to allow
them to be them to be
independently moved independently moved
Expand Down Expand Up @@ -6208,7 +6206,7 @@ agents.
- Could be split into
separate s_waitcnt
vmcnt(0), s_waitcnt
vscnt(0) and s_waitcnt
vscnt(0), and s_waitcnt
lgkmcnt(0) to allow
them to be
independently moved
Expand Down

0 comments on commit fccf4f6

Please sign in to comment.