llvm.org GIT mirror llvm / 989615c
AMDGPU: Fix amdgpu-flat-work-group-size/amdgpu-waves-per-eu check Differential Revision: https://reviews.llvm.org/D35433 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308147 91177308-0d34-0410-b5e6-96231b3b80d8 Konstantin Zhuravlyov 3 years ago
2 changed file(s) with 13 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
276276 // Make sure requested values are compatible with values implied by requested
277277 // minimum/maximum flat work group sizes.
278278 if (RequestedFlatWorkGroupSize &&
279 Requested.first > MinImpliedByFlatWorkGroupSize)
279 Requested.first < MinImpliedByFlatWorkGroupSize)
280280 return Default;
281281
282282 return Requested;
187187 ret void
188188 }
189189 attributes #9 = {"amdgpu-waves-per-eu"="10,10"}
190
191 ; Exactly 256 workitems and exactly 2 waves.
192 ; CHECK-LABEL: {{^}}empty_workitems_exactly_256_waves_exactly_2:
193 ; CHECK: SGPRBlocks: 12
194 ; CHECK: VGPRBlocks: 21
195 ; CHECK: NumSGPRsForWavesPerEU: 102
196 ; CHECK: NumVGPRsForWavesPerEU: 85
197 define amdgpu_kernel void @empty_workitems_exactly_256_waves_exactly_2() #10 {
198 entry:
199 ret void
200 }
201 attributes #10 = {"amdgpu-flat-work-group-size"="256,256" "amdgpu-waves-per-eu"="2,2"}