diff --git a/libdevice/sanitizer/msan_rtl.cpp b/libdevice/sanitizer/msan_rtl.cpp index 4b4f663ef94e5..5713b2b808687 100644 --- a/libdevice/sanitizer/msan_rtl.cpp +++ b/libdevice/sanitizer/msan_rtl.cpp @@ -162,6 +162,8 @@ inline uptr __msan_get_shadow_pvc(uptr addr, uint32_t as) { DEVICE_EXTERN_C_NOINLINE void __msan_maybe_warning_##size( \ type s, u32 o, const char __SYCL_CONSTANT__ *file, uint32_t line, \ const char __SYCL_CONSTANT__ *func) { \ + if (!__MsanLaunchInfo.get()) \ + return; \ if (UNLIKELY(s)) { \ __msan_report_error(size, file, line, func); \ } \ @@ -191,6 +193,9 @@ DEVICE_EXTERN_C_NOINLINE uptr __msan_get_shadow(uptr addr, uint32_t as) { (uptr)((__SYCL_GLOBAL__ MsanLaunchInfo *)__MsanLaunchInfo.get()) ->CleanShadow; + if (!__MsanLaunchInfo.get()) + return shadow_ptr; + if (UNLIKELY(!__MsanLaunchInfo)) { __spirv_ocl_printf(__msan_print_warning_nolaunchinfo); return shadow_ptr; diff --git a/sycl/cmake/modules/UnifiedRuntimeTag.cmake b/sycl/cmake/modules/UnifiedRuntimeTag.cmake index d409b2232c6d7..24c01c0ae2325 100644 --- a/sycl/cmake/modules/UnifiedRuntimeTag.cmake +++ b/sycl/cmake/modules/UnifiedRuntimeTag.cmake @@ -1,7 +1,7 @@ -# commit f0b35200c07e6a15766ba75d01a3c176d42a2429 -# Merge: 545a01bae624 ceb0465d4090 -# Author: Martin Grant -# Date: Mon Jan 6 09:51:26 2025 +0000 -# Merge pull request #2519 from oneapi-src/revert-2481-fabio/fix_potential_race_condition -# Revert "Fix potential deadlock in the WaitEvent path of CmdBuffers" -set(UNIFIED_RUNTIME_TAG f0b35200c07e6a15766ba75d01a3c176d42a2429) +# commit 75745a910cb7197de6e214c1f23c544895afbbb7 +# Merge: 0eb08b67 5a7d8fa0 +# Author: Kenneth Benzie (Benie) +# Date: Mon Jan 6 11:21:29 2025 +0000 +# Merge pull request #2508 from AllanZyne/review/yang/fix_msan_empty_kernel +# [DeviceMSAN] Fix empty kernel +set(UNIFIED_RUNTIME_TAG 75745a910cb7197de6e214c1f23c544895afbbb7)