[llvm] [AMDGPU] Max. WG size-induced occupancy limits max. waves/EU (PR #137807)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu May 1 03:14:53 PDT 2025
================
@@ -255,6 +256,14 @@ class AMDGPUInformationCache : public InformationCache {
return Status;
}
+ /// Returns the minimum amount of LDS space used by a workgroup running
+ /// function \p F.
+ static unsigned getLDSSize(const Function &F) {
+ return AMDGPU::getIntegerPairAttribute(F, "amdgpu-lds-size",
+ {0, UINT32_MAX}, true)
+ .first;
----------------
arsenm wrote:
This also won't be set in the middle end where AMDGPUAttributor runs. If it's too optimistic, that's probably OK
https://github.com/llvm/llvm-project/pull/137807
More information about the llvm-commits
mailing list