diff --git a/source/loader/layers/sanitizer/asan_libdevice.hpp b/source/loader/layers/sanitizer/asan_libdevice.hpp index 8eba929f34..bd5fa64a38 100644 --- a/source/loader/layers/sanitizer/asan_libdevice.hpp +++ b/source/loader/layers/sanitizer/asan_libdevice.hpp @@ -14,7 +14,9 @@ #include +#if !defined(__SPIR__) && !defined(__SPIRV__) namespace ur_sanitizer_layer { +#endif // !__SPIR__ && !__SPIRV__ enum class DeviceType : uint32_t { UNKNOWN = 0, CPU, GPU_PVC, GPU_DG2 }; @@ -87,6 +89,7 @@ struct LaunchInfo { DeviceType DeviceTy = DeviceType::UNKNOWN; uint32_t Debug = 0; + int ReportFlag = 0; DeviceSanitizerReport SanitizerReport[ASAN_MAX_NUM_REPORTS]; }; @@ -161,4 +164,6 @@ inline const char *ToString(DeviceSanitizerErrorType ErrorType) { } } +#if !defined(__SPIR__) && !defined(__SPIRV__) } // namespace ur_sanitizer_layer +#endif // !__SPIR__ && !__SPIRV__