From 4a96c2fe15193b2e9a792ee32af0ac303c1f2136 Mon Sep 17 00:00:00 2001 From: Ioannis Assiouras Date: Mon, 4 Dec 2023 23:51:11 +0000 Subject: [PATCH] SWDEV-435715 - Acquire the streamSetLock prior to iterating the set in WaitActiveStreams Change-Id: I0a9721dcde1a3716192d532e290d8a7afc8ac9fc [ROCm/clr commit: 3c6505c2d5988050f8282f556ff654ab3b2e31a1] --- projects/clr/hipamd/src/hip_stream.cpp | 1 + 1 file changed, 1 insertion(+) 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()) {