SWDEV-364604 - Add support for hipEventDisableSystemFence

Change-Id: I1a6451c873fb22729ac61e4e80f8531251e990f0
This commit is contained in:
Saleel Kudchadker
2023-01-20 15:35:25 -08:00
parent c221406681
commit 7fc5ae2226
3 changed files with 33 additions and 12 deletions
+8
View File
@@ -225,6 +225,14 @@ void iHipWaitActiveStreams(hip::Stream* blocking_stream, bool wait_null_stream)
command->enqueue();
command->release();
}
//Reset the dirty flag for all streams now that the marker is submitted
for (const auto& stream : streamSet) {
amd::HostQueue* active_queue = stream->asHostQueue();
if (active_queue->vdev()->isFenceDirty()) {
active_queue->vdev()->resetFenceDirty();
}
}
}
// Release all active commands. It's safe after the marker was enqueued