diff --git a/source/loader/layers/sanitizer/asan_interceptor.hpp b/source/loader/layers/sanitizer/asan_interceptor.hpp index 39c7705c99..c4fa728b58 100644 --- a/source/loader/layers/sanitizer/asan_interceptor.hpp +++ b/source/loader/layers/sanitizer/asan_interceptor.hpp @@ -45,17 +45,10 @@ struct DeviceInfo { std::queue> Quarantine; size_t QuarantineSize = 0; - explicit DeviceInfo(ur_device_handle_t Device) : Handle(Device) { - [[maybe_unused]] auto Result = - getContext()->urDdiTable.Device.pfnRetain(Device); - assert(Result == UR_RESULT_SUCCESS); - } - - ~DeviceInfo() { - [[maybe_unused]] auto Result = - getContext()->urDdiTable.Device.pfnRelease(Handle); - assert(Result == UR_RESULT_SUCCESS); - } + // TODO: re-enable retaining and releasing device handles in DeviceInfo + // constructor/destructor. See PR + // https://github.com/oneapi-src/unified-runtime/pull/1883 + explicit DeviceInfo(ur_device_handle_t Device) : Handle(Device) {} ur_result_t allocShadowMemory(ur_context_handle_t Context); };