@@ -256,7 +256,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(
256
256
// > The application must only use the module for the device, or its
257
257
// > sub-devices, which was provided during creation.
258
258
case UR_DEVICE_INFO_BUILD_ON_SUBDEVICE:
259
- return ReturnValue (uint32_t {0 });
259
+ return ReturnValue (ur_bool_t {0 });
260
260
case UR_DEVICE_INFO_COMPILER_AVAILABLE:
261
261
return ReturnValue (static_cast <ur_bool_t >(true ));
262
262
case UR_DEVICE_INFO_LINKER_AVAILABLE:
@@ -326,10 +326,10 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(
326
326
return ReturnValue (Device->ZeDeviceImageProperties ->maxImageDims1D > 0 );
327
327
case UR_DEVICE_INFO_HOST_UNIFIED_MEMORY:
328
328
return ReturnValue (
329
- static_cast <uint32_t >((Device->ZeDeviceProperties ->flags &
330
- ZE_DEVICE_PROPERTY_FLAG_INTEGRATED) != 0 ));
329
+ static_cast <ur_bool_t >((Device->ZeDeviceProperties ->flags &
330
+ ZE_DEVICE_PROPERTY_FLAG_INTEGRATED) != 0 ));
331
331
case UR_DEVICE_INFO_AVAILABLE:
332
- return ReturnValue (static_cast <uint32_t >(ZeDevice ? true : false ));
332
+ return ReturnValue (static_cast <ur_bool_t >(ZeDevice ? true : false ));
333
333
case UR_DEVICE_INFO_VENDOR:
334
334
// TODO: Level-Zero does not return vendor's name at the moment
335
335
// only the ID.
@@ -448,8 +448,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(
448
448
case UR_DEVICE_INFO_ENDIAN_LITTLE:
449
449
return ReturnValue (static_cast <ur_bool_t >(true ));
450
450
case UR_DEVICE_INFO_ERROR_CORRECTION_SUPPORT:
451
- return ReturnValue (static_cast <uint32_t >(Device-> ZeDeviceProperties -> flags &
452
- ZE_DEVICE_PROPERTY_FLAG_ECC));
451
+ return ReturnValue (static_cast <ur_bool_t >(
452
+ Device-> ZeDeviceProperties -> flags & ZE_DEVICE_PROPERTY_FLAG_ECC));
453
453
case UR_DEVICE_INFO_PROFILING_TIMER_RESOLUTION:
454
454
return ReturnValue (
455
455
static_cast <size_t >(Device->ZeDeviceProperties ->timerResolution ));
@@ -875,13 +875,13 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(
875
875
return ReturnValue (static_cast <ur_bool_t >(true ));
876
876
}
877
877
case UR_DEVICE_INFO_TIMESTAMP_RECORDING_SUPPORT_EXP: {
878
- return ReturnValue (static_cast <uint32_t >(true ));
878
+ return ReturnValue (static_cast <ur_bool_t >(true ));
879
879
}
880
880
881
881
case UR_DEVICE_INFO_ESIMD_SUPPORT: {
882
882
// ESIMD is only supported by Intel GPUs.
883
- uint32_t result = Device->ZeDeviceProperties ->type == ZE_DEVICE_TYPE_GPU &&
884
- Device->ZeDeviceProperties ->vendorId == 0x8086 ;
883
+ ur_bool_t result = Device->ZeDeviceProperties ->type == ZE_DEVICE_TYPE_GPU &&
884
+ Device->ZeDeviceProperties ->vendorId == 0x8086 ;
885
885
return ReturnValue (result);
886
886
}
887
887
0 commit comments