From 05baf9ff2220b0acff484583fcd52d943330340a Mon Sep 17 00:00:00 2001 From: Rahul Manocha Date: Mon, 6 Jan 2025 11:59:42 -0800 Subject: [PATCH] SWDEV-504215 - fix rocalution perf drop by disabling cpu wait Change-Id: I878f3420073b05cc6241f524ac428e47c0ce823d --- hipamd/src/hip_stream.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/hipamd/src/hip_stream.cpp b/hipamd/src/hip_stream.cpp index b0c411efb1..11f31c65dc 100644 --- a/hipamd/src/hip_stream.cpp +++ b/hipamd/src/hip_stream.cpp @@ -360,10 +360,7 @@ hipError_t hipStreamSynchronize_common(hipStream_t stream) { if (stream == nullptr) { // Do cpu wait on null stream and only on blocking streams constexpr bool WaitblockingStreamOnly = true; - getCurrentDevice()->SyncAllStreams(true, WaitblockingStreamOnly); - - // Release freed memory for all memory pools on the device - getCurrentDevice()->ReleaseFreedMemory(); + getCurrentDevice()->SyncAllStreams(false, WaitblockingStreamOnly); } else { constexpr bool wait = false; auto hip_stream = hip::getStream(stream, wait);