SWDEV-363369 - Elapsed time needs only stop event timings if both start and stop events are recorded

Change-Id: I91c9ce79aacf1014ae77600d1250cfccd9dd6039
This commit is contained in:
Satyanvesh Dittakavi
2022-10-27 18:42:04 +00:00
bovenliggende 5ff27faa04
commit 30d6497953
4 gewijzigde bestanden met toevoegingen van 31 en 26 verwijderingen
+2 -2
Bestand weergeven
@@ -367,7 +367,7 @@ hipError_t ihipModuleLaunchKernel(hipFunction_t f, uint32_t globalWorkSizeX,
if (startEvent != nullptr) {
hip::Event* eStart = reinterpret_cast<hip::Event*>(startEvent);
status = eStart->addMarker(hStream, nullptr, true);
status = eStart->addMarker(hStream, nullptr, false);
if (status != hipSuccess) {
return status;
}
@@ -377,7 +377,7 @@ hipError_t ihipModuleLaunchKernel(hipFunction_t f, uint32_t globalWorkSizeX,
if (stopEvent != nullptr) {
hip::Event* eStop = reinterpret_cast<hip::Event*>(stopEvent);
eStop->BindCommand(*command, true);
eStop->BindCommand(*command, false);
}
command->release();