SWDEV-248293 - Fix elapsedTime

Fixes the elapsed time for the scenarios where HIP API takes one of the start/stop events
and another one is recorded using hipEventRecord.


Change-Id: I51831b2651fc8e7207ff0e3fcc6dc7c1b4239fa8
Этот коммит содержится в:
Satyanvesh Dittakavi
2020-08-20 13:03:52 +00:00
родитель 76824a7f04
Коммит 08cf695e1f
2 изменённых файлов: 7 добавлений и 7 удалений
+1 -1
Просмотреть файл
@@ -287,7 +287,7 @@ hipError_t ihipModuleLaunchKernel(hipFunction_t f, uint32_t globalWorkSizeX,
}
}
profileNDRange = (startEvent != nullptr && stopEvent != nullptr);
profileNDRange = (startEvent != nullptr || stopEvent != nullptr);
// Flag set to 1 signifies that kernel can be launched in anyorder
if (flags & hipExtAnyOrderLaunch) {