File tree Expand file tree Collapse file tree
source/loader/layers/sanitizer/asan Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -478,8 +478,8 @@ __urdlllocal ur_result_t UR_APICALL urEnqueueKernelLaunch(
478478 // This mutex is to prevent concurrent kernel launches across different queues
479479 // as the DeviceASAN local/private shadow memory does not support concurrent
480480 // kernel launches now.
481- static ur_shared_mutex KernelLaunchMutex;
482- std::scoped_lock<ur_shared_mutex> Guard ( KernelLaunchMutex);
481+ std::scoped_lock< ur_shared_mutex> Guard (
482+ getAsanInterceptor ()-> KernelLaunchMutex );
483483
484484 auto pfnKernelLaunch = getContext ()->urDdiTable .Enqueue .pfnKernelLaunch ;
485485
Original file line number Diff line number Diff line change @@ -354,6 +354,8 @@ class AsanInterceptor {
354354 std::shared_ptr<ShadowMemory>
355355 getOrCreateShadowMemory (ur_device_handle_t Device, DeviceType Type);
356356
357+ ur_shared_mutex KernelLaunchMutex;
358+
357359private:
358360 ur_result_t updateShadowMemory (std::shared_ptr<ContextInfo> &ContextInfo,
359361 std::shared_ptr<DeviceInfo> &DeviceInfo,
You can’t perform that action at this time.
0 commit comments