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

[ROCm/clr commit: 6ec476e50a]
Этот коммит содержится в:
wkwchau authored and Maneesh Gupta committed 2019-07-18 03:19:29 +00:00
1 родитель 8b8946f78b
Коммит d20537e595
1 file changed
+1 -1
+1 -1
Просмотреть файл
@@ -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;
}