SWDEV-518831 - fix streams' sync issue in mthreads (#123)

* SWDEV-518831 - fix streams' sync issue in mthreads

1. Fix sync issue of null stream and non-null streams in
multithreads.
2. Remove assert(GetSubmissionBatch() == nullptr) as it
is invalid in multithreads.
3. Update getActiveQueues() to deal with the state of 
being terminated.

[ROCm/clr commit: 27aad09bd4]
Tento commit je obsažen v:
Sang, Tao
2025-04-23 15:08:07 -04:00
odevzdal GitHub
rodič 45b75013ec
revize 60110b6c01
4 změnil soubory, kde provedl 18 přidání a 4 odebrání
+1
Zobrazit soubor
@@ -201,6 +201,7 @@ void Device::WaitActiveStreams(hip::Stream* blocking_stream, bool wait_null_stre
// Get the last valid command
waitForStream(active_stream);
}
command->release();
}
}