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


[ROCm/clr commit: 1cdfbfd270]
This commit is contained in:
Ioannis Assiouras
2025-02-11 13:50:05 +00:00
parent 1f648c7d94
commit a349b23474
7 changed files with 44 additions and 64 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ hipError_t hipFreeAsync(void* dev_ptr, hipStream_t stream) {
event = new hip::Event(0);
if (event != nullptr) {
if (hipSuccess !=
event->addMarker(reinterpret_cast<hipStream_t>(hip_stream), nullptr, true)) {
event->addMarker(reinterpret_cast<hipStream_t>(hip_stream), nullptr)) {
delete event;
event = nullptr;
} else {