SWDEV-1 - Fix incorrect SGPR usage in VGPR calculation. Pointed out by #58 issue on hipamd public repo

Change-Id: I8c27c0da254521714c92369990aa10f6fc09c246


[ROCm/clr commit: 54f73e430b]
이 커밋은 다음에 포함됨:
Jatin Chaudhary 작성하고 Jatin Jaikishan Chaudhary가 2023-05-02 03:53:18 -04:00를 커밋함
1 부모 fa88970f6a
커밋 646af29dc5
1 파일이 변경됨
+1 -1
+1 -1
파일 보기
@@ -340,7 +340,7 @@ hipError_t ihipOccupancyMaxActiveBlocksPerMultiprocessor(
VgprGranularity = VgprGranularity >> 1;
}
}
if (wrkGrpInfo->usedSGPRs_ > 0) {
if (wrkGrpInfo->usedVGPRs_ > 0) {
VgprWaves = maxVGPRs / amd::alignUp(wrkGrpInfo->usedVGPRs_, VgprGranularity);
}