SWDEV-514686 - Fixed hipEventSynchronize/hipStreamWaitEvent for IPC events

Resolved an issue where hipEventSynchronize and hipStreamWaitEvent APIs
did not function correctly for events created with the hipEventInterprocess flag.
The bug caused the event to be incorrectly marked as "recorded,"
leading to these APIs failing to wait for the event as expected.

Change-Id: Ic9fdfaab2393beb93d6e0b83661545e902a63499
Этот коммит содержится в:
Ioannis Assiouras
2025-02-11 13:50:05 +00:00
родитель cf6aabb823
Коммит 1cdfbfd270
7 изменённых файлов: 44 добавлений и 64 удалений
+2 -2
Просмотреть файл
@@ -461,7 +461,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, false);
status = eStart->addMarker(hStream, nullptr);
if (status != hipSuccess) {
return status;
}
@@ -476,7 +476,7 @@ hipError_t ihipModuleLaunchKernel(hipFunction_t f, uint32_t globalWorkSizeX,
}
// Enqueue Dispatch and bind the stop event
command->enqueue();
eStop->BindCommand(*command, false);
eStop->BindCommand(*command);
} else {
command->enqueue();
}