SWDEV-504215 - fix rocalution perf drop by disabling cpu wait
Change-Id: I878f3420073b05cc6241f524ac428e47c0ce823d
Cette révision appartient à :
révisé par
German Andryeyev
Parent
b63005d550
révision
05baf9ff22
@@ -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);
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur