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

Change-Id: I91c9ce79aacf1014ae77600d1250cfccd9dd6039


[ROCm/clr commit: 30d6497953]
Этот коммит содержится в:
Satyanvesh Dittakavi committed 2022-11-09 00:31:06 -05:00
1 родитель a72344ad67
Коммит d73204ebc4
4 files changed
+31 -26

No files matched your search

+2 -2
Просмотреть файл
@@ -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();