SWDEV-391731 - Check thread local list too.
With global flag, In addition to global vector, we need to check
thread local vector too. If both of them are empty then only
return false.
Change-Id: I3a24d16a35c702b34b9a8867dc410ebd80108f25
[ROCm/clr commit: 09a081235c]
Šī revīzija ir iekļauta:
revīziju iesūtīja
Jaydeepkumar Patel
vecāks
06bc6d9980
revīzija
97726d4215
@@ -173,7 +173,7 @@ bool Stream::StreamCaptureOngoing(hipStream_t hStream) {
|
||||
// with hipStreamCaptureModeGlobal, it is prohibited from unsafe calls
|
||||
if (s != nullptr && s->GetCaptureMode() == hipStreamCaptureModeGlobal) {
|
||||
amd::ScopedLock lock(g_captureStreamsLock);
|
||||
return (g_captureStreams.empty() == true) ? false : true;
|
||||
return (g_captureStreams.empty() == true && hip::tls.capture_streams_.empty()) ? false : true;
|
||||
}
|
||||
else {
|
||||
amd::ScopedLock lock(g_streamSetLock);
|
||||
|
||||
Atsaukties uz šo jaunā problēmā
Block a user