diff --git a/projects/clr/hipamd/src/hip_stream.cpp b/projects/clr/hipamd/src/hip_stream.cpp index 44ecfd310c..f325a7201d 100644 --- a/projects/clr/hipamd/src/hip_stream.cpp +++ b/projects/clr/hipamd/src/hip_stream.cpp @@ -249,6 +249,7 @@ void iHipWaitActiveStreams(hip::Stream* blocking_stream, bool wait_null_stream) } //Reset the dirty flag for all streams now that the marker is submitted + amd::ScopedLock lock(streamSetLock); for (const auto& stream : streamSet) { amd::HostQueue* active_queue = stream->asHostQueue(); if (active_queue->vdev()->isFenceDirty()) {