@@ -223,7 +223,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
223
223
return ReturnValue (uint64_t {MaxAlloc});
224
224
}
225
225
case UR_DEVICE_INFO_IMAGE_SUPPORTED: {
226
- return ReturnValue (true );
226
+ return ReturnValue (ur_bool_t { true } );
227
227
}
228
228
case UR_DEVICE_INFO_MAX_READ_IMAGE_ARGS: {
229
229
// This call doesn't match to HIP as it doesn't have images, but instead
@@ -458,19 +458,19 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
458
458
return ReturnValue (size_t (1000 ));
459
459
}
460
460
case UR_DEVICE_INFO_ENDIAN_LITTLE: {
461
- return ReturnValue (true );
461
+ return ReturnValue (ur_bool_t { true } );
462
462
}
463
463
case UR_DEVICE_INFO_AVAILABLE: {
464
- return ReturnValue (true );
464
+ return ReturnValue (ur_bool_t { true } );
465
465
}
466
466
case UR_DEVICE_INFO_BUILD_ON_SUBDEVICE: {
467
- return ReturnValue (true );
467
+ return ReturnValue (ur_bool_t { true } );
468
468
}
469
469
case UR_DEVICE_INFO_COMPILER_AVAILABLE: {
470
- return ReturnValue (true );
470
+ return ReturnValue (ur_bool_t { true } );
471
471
}
472
472
case UR_DEVICE_INFO_LINKER_AVAILABLE: {
473
- return ReturnValue (true );
473
+ return ReturnValue (ur_bool_t { true } );
474
474
}
475
475
case UR_DEVICE_INFO_EXECUTION_CAPABILITIES: {
476
476
auto Capability = ur_device_exec_capability_flags_t {
@@ -583,7 +583,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
583
583
return ReturnValue (size_t (1024 ));
584
584
}
585
585
case UR_DEVICE_INFO_PREFERRED_INTEROP_USER_SYNC: {
586
- return ReturnValue (true );
586
+ return ReturnValue (ur_bool_t { true } );
587
587
}
588
588
case UR_DEVICE_INFO_PARENT_DEVICE: {
589
589
return ReturnValue (nullptr );
@@ -857,9 +857,9 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
857
857
return ReturnValue (static_cast <uint32_t >(MaxRegisters));
858
858
}
859
859
case UR_DEVICE_INFO_MEM_CHANNEL_SUPPORT:
860
- return ReturnValue (false );
860
+ return ReturnValue (ur_bool_t { false } );
861
861
case UR_DEVICE_INFO_IMAGE_SRGB:
862
- return ReturnValue (false );
862
+ return ReturnValue (ur_bool_t { false } );
863
863
case UR_DEVICE_INFO_PCI_ADDRESS: {
864
864
constexpr size_t AddressBufferSize = 13 ;
865
865
char AddressBuffer[AddressBufferSize];
@@ -875,20 +875,20 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
875
875
strnlen (AddressBuffer, AddressBufferSize - 1 ) + 1 );
876
876
}
877
877
case UR_DEVICE_INFO_HOST_PIPE_READ_WRITE_SUPPORTED:
878
- return ReturnValue (false );
878
+ return ReturnValue (ur_bool_t { false } );
879
879
case UR_DEVICE_INFO_VIRTUAL_MEMORY_SUPPORT:
880
- return ReturnValue (false );
880
+ return ReturnValue (ur_bool_t { false } );
881
881
case UR_DEVICE_INFO_ESIMD_SUPPORT:
882
- return ReturnValue (false );
882
+ return ReturnValue (ur_bool_t { false } );
883
883
case UR_DEVICE_INFO_TIMESTAMP_RECORDING_SUPPORT_EXP:
884
- return ReturnValue (true );
884
+ return ReturnValue (ur_bool_t { true } );
885
885
case UR_DEVICE_INFO_ENQUEUE_NATIVE_COMMAND_SUPPORT_EXP: {
886
886
// HIP supports enqueueing native work through the urNativeEnqueueExp
887
- return ReturnValue (true );
887
+ return ReturnValue (ur_bool_t { true } );
888
888
}
889
889
890
890
case UR_DEVICE_INFO_GLOBAL_VARIABLE_SUPPORT:
891
- return ReturnValue (false );
891
+ return ReturnValue (ur_bool_t { false } );
892
892
// TODO: Investigate if this information is available on HIP.
893
893
case UR_DEVICE_INFO_COMPONENT_DEVICES:
894
894
case UR_DEVICE_INFO_COMPOSITE_DEVICE:
0 commit comments