-
Notifications
You must be signed in to change notification settings - Fork 15.5k
[AMDGPU][SIInsertWaitcnts] Wait on all LDS DMA operations when no aliasing store is found #170660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,7 @@ define amdgpu_kernel void @test_waitcnt(ptr addrspace(1) %global_buffer, ptr add | |
| ; CHECK-NEXT: ; sched_barrier mask(0x00000000) | ||
| ; CHECK-NEXT: v_mov_b32_e32 v1, s2 | ||
| ; CHECK-NEXT: v_mov_b32_e32 v2, s3 | ||
| ; CHECK-NEXT: s_waitcnt vmcnt(1) | ||
|
||
| ; CHECK-NEXT: ds_write_b32 v1, v3 | ||
| ; CHECK-NEXT: ds_write_b32 v2, v3 | ||
| ; CHECK-NEXT: ; sched_barrier mask(0x00000000) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this wait needed? Or is the test deliberately using more slots than SIInsertWaitcnts can track, so we have to be conservative?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes that's precisely what I was trying to fix. The wait is required here because we ran out of tracking slots.
#162077 increases the number of tracking slots so this will be improved