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
This commit is contained in:
Satyanvesh Dittakavi
2020-08-20 13:03:52 +00:00
parent 76824a7f04
commit 08cf695e1f
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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) {