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
committed by Maneesh Gupta
vanhempi 300ba5b1f1
commit 7809d2846b
4 muutettua tiedostoa jossa 19 lisäystä ja 8 poistoa
+1 -1
Näytä tiedosto
@@ -29,7 +29,7 @@
std::vector<hip::Stream*> g_captureStreams;
amd::Monitor g_captureStreamsLock{"StreamCaptureGlobalList"};
static amd::Monitor g_streamSetLock{"StreamCaptureset"};
amd::Monitor g_streamSetLock{"StreamCaptureset"};
std::unordered_set<hip::Stream*> g_allCapturingStreams;
inline hipError_t ihipGraphAddNode(hipGraphNode_t graphNode, hipGraph_t graph,