mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-08 00:23:03 +00:00
Fix a bug in TLS refcount that may destabilized CUDA CI (#2374)
This commit is contained in:
parent
41b9f01e4c
commit
192dcfaa8e
1 changed files with 1 additions and 0 deletions
|
|
@ -123,6 +123,7 @@ CUDAExecutionProvider::PerThreadContext& CUDAExecutionProvider::GetPerThreadCont
|
|||
ptc = retired_context_pool_.back();
|
||||
retired_context_pool_.pop_back();
|
||||
}
|
||||
inuse_contexts_.insert(std::make_pair(tid, ptc));
|
||||
} else {
|
||||
ptc = inuse_iter->second;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue