SWDEV-504215 - fix rocalution perf drop by disabling cpu wait
Change-Id: I878f3420073b05cc6241f524ac428e47c0ce823d
[ROCm/clr commit: 05baf9ff22]
This commit is contained in:
committed by
German Andryeyev
parent
a18f2c549c
commit
b1ef5972d6
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user