SWDEV-508776 - support VGPRs validation (#274)

Clarify some VGPRs terms description.
Fix some wrong query logics of availableVGPRs_ and
availableRegistersPerCU_ in device info.
Add hipDeviceAttributeMaxAvailableVgprsPerThread
attribute query.
Remove hardcoding of following
 info_.vgprAllocGranularity_
 info_.vgprsPerSimd_

[ROCm/clr commit: 397f303d97]
This commit is contained in:
Sang, Tao
2025-07-09 10:46:52 -04:00
committed by GitHub
parent 84e9845897
commit 7fd322af90
7 changed files with 32 additions and 93 deletions
+2 -2
View File
@@ -218,8 +218,8 @@ class Kernel : public amd::HeapObject {
size_t usedGPRs_; //!< GPRs used by the program
size_t availableSGPRs_; //!< SGPRs available to the program
size_t usedSGPRs_; //!< SGPRs used by the program
size_t availableVGPRs_; //!< VGPRs available to the program
size_t usedVGPRs_; //!< VGPRs used by the program
size_t availableVGPRs_; //!< VGPRs addressable to the program per thread in DWORDs
size_t usedVGPRs_; //!< VGPRs used by the program per thread in DWORDs
size_t availableLDSSize_; //!< available LDS size
size_t usedLDSSize_; //!< used LDS size
size_t availableStackSize_; //!< available stack size