[llvm] [libsycl] Introduce Kernel name based cache (PR #225865)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 1 05:28:28 PDT 2026
================
@@ -40,6 +41,14 @@ ContextImpl::ContextImpl(std::vector<DeviceImpl *> &&DeviceList,
ContextImpl::~ContextImpl() {
assert(MOffloadContext && "Context must be created in ctor");
+ // Drop this context's entries from every DeviceKernelInfo cache that holds
+ // one, before the programs those entries point into are destroyed below.
+ {
+ std::lock_guard<std::mutex> Guard(MTrackedKernelInfosMutex);
+ for (DeviceKernelInfo *Info : MTrackedKernelInfos) {
----------------
Robertkq wrote:
should be fixed now
https://github.com/llvm/llvm-project/pull/225865
More information about the llvm-commits
mailing list