SWDEV-504215 - fix rocalution perf drop by disabling cpu wait

Change-Id: I878f3420073b05cc6241f524ac428e47c0ce823d
Cette révision appartient à :
Rahul Manocha
2025-01-06 11:59:42 -08:00
révisé par German Andryeyev
Parent b63005d550
révision 05baf9ff22
+1 -4
Voir le fichier
@@ -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);