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


[ROCm/hip commit: 08cf695e1f]
このコミットが含まれているのは:
Satyanvesh Dittakavi
2020-08-20 13:03:52 +00:00
コミット 88c3a16a69
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) {