SWDEV-387810 - Fixes to verify if the current stream matches the capture stream

- invalid to synchronize or query the execution status of a capturing stream but non-capturing streams can.

- If any local thread has an ongoing or concurrent capture sequence initiated with hipStreamCaptureModeGlobal, it is prohibited from unsafe calls

Change-Id: Ifa641e807216d3b7c3e8c2fb1be2f7a50bd641df
This commit is contained in:
Sourabh Betigeri
2023-03-10 23:19:57 +00:00
zatwierdzone przez Maneesh Gupta
rodzic 300ba5b1f1
commit 7809d2846b
4 zmienionych plików z 19 dodań i 8 usunięć
+1 -1
Wyświetl plik
@@ -518,7 +518,7 @@ hipError_t hipDeviceSynchronize ( void ) {
HIP_RETURN(hipErrorOutOfMemory);
}
if (hip::Stream::StreamCaptureOngoing() == true) {
if (hip::Stream::StreamCaptureOngoing(reinterpret_cast<hipStream_t>(stream)) == true) {
HIP_RETURN(hipErrorStreamCaptureUnsupported);
}