Fixed bug in hipOccupancyMaxPotentialBlockSize for the SGPRs limitation of gfx8 devices (#1176)

[ROCm/hip commit: 47f16264ed]
이 커밋은 다음에 포함됨:
wkwchau 작성하고 Maneesh Gupta가 2019-06-26 15:18:00 +05:30를 커밋함
1 부모 7874e84d3d
커밋 3c963cc0e1
1 파일이 변경됨
+1 -1
+1 -1
파일 보기
@@ -963,7 +963,7 @@ hipError_t ihipOccupancyMaxPotentialBlockSize(uint32_t* gridSize, uint32_t* bloc
wavefrontsSGPRS = maxWavesWGLimited;
}
else {
const size_t numSGPRsPerSIMD = (prop.gcnArch < 900) ? 512 : 800;
const size_t numSGPRsPerSIMD = (prop.gcnArch < 800) ? 512 : 800;
wavefrontsSGPRS = (numSGPRsPerSIMD / usedSGPRS) * numSIMD;
}