Skip to content

Commit e74b324

Browse files
committed
fix build
1 parent 73304bb commit e74b324

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/loader/layers/sanitizer/ur_sanitizer_utils.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,9 @@ DeviceType GetDeviceType(ur_context_handle_t Context,
128128
return DeviceType::CPU;
129129
case UR_DEVICE_TYPE_GPU: {
130130
uptr Ptr;
131-
ur_result_t Result = context.urDdiTable.USM.pfnDeviceAlloc(
132-
Context, Device, nullptr, nullptr, 4, (void **)&Ptr);
131+
[[maybe_unused]] ur_result_t Result =
132+
context.urDdiTable.USM.pfnDeviceAlloc(Context, Device, nullptr,
133+
nullptr, 4, (void **)&Ptr);
133134
context.logger.debug("GetDeviceType: {}", (void *)Ptr);
134135
assert(Result == UR_RESULT_SUCCESS &&
135136
"getDeviceType() failed at allocating device USM");

0 commit comments

Comments
 (0)