Fixed bug of determine max block size in hipOccupancyMaxPotentialBlockSize (#1235)

[ROCm/hip commit: 38254caf7a]
This commit is contained in:
wkwchau
2019-07-17 23:19:29 -04:00
committed by Maneesh Gupta
parent df4dee39f4
commit e61b8cec28
+1 -1
View File
@@ -993,7 +993,7 @@ hipError_t ihipOccupancyMaxPotentialBlockSize(uint32_t* gridSize, uint32_t* bloc
tmp_min = min(maxWavesSGPRSLimited, tmp_min);
activeWavefronts = min(maxWavesVGPRSLimited, tmp_min);
if (maxActivWaves < activeWavefronts) {
if (maxActivWaves <= activeWavefronts) {
maxActivWaves = activeWavefronts;
maxWavefronts = wavefrontsPerWG;
}