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

[ROCm/clr commit: 3742f24477]
Este cometimento está contido em:
wkwchau criou e Maneesh Gupta cometeu 2019-06-26 15:18:00 +05:30
1 ascendente 493e713fde
cometimento 7662c1a650
1 ficheiro modificado
+1 -1
+1 -1
Ver ficheiro
@@ -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;
}