We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 383ed4c commit 476dc4cCopy full SHA for 476dc4c
hipamd/src/hip_stream.cpp
@@ -496,6 +496,13 @@ hipError_t hipStreamDestroy(hipStream_t stream) {
496
g_captureStreams.erase(g_it);
497
}
498
499
+ {
500
+ amd::ScopedLock lock(g_streamSetLock);
501
+ const auto& g_it = std::find(g_allCapturingStreams.begin(), g_allCapturingStreams.end(), s);
502
+ if (g_it != g_allCapturingStreams.end()) {
503
+ g_allCapturingStreams.erase(g_it);
504
+ }
505
506
const auto& l_it = std::find(hip::tls.capture_streams_.begin(),
507
hip::tls.capture_streams_.end(), s);
508
if (l_it != hip::tls.capture_streams_.end()) {
0 commit comments