Skip to content

Commit 035dea4

Browse files
committed
Update the bool return type
1 parent 5482621 commit 035dea4

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

source/adapters/hip/device.cpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
223223
return ReturnValue(uint64_t{MaxAlloc});
224224
}
225225
case UR_DEVICE_INFO_IMAGE_SUPPORTED: {
226-
return ReturnValue(true);
226+
return ReturnValue(ur_bool_t{true});
227227
}
228228
case UR_DEVICE_INFO_MAX_READ_IMAGE_ARGS: {
229229
// 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,
458458
return ReturnValue(size_t(1000));
459459
}
460460
case UR_DEVICE_INFO_ENDIAN_LITTLE: {
461-
return ReturnValue(true);
461+
return ReturnValue(ur_bool_t{true});
462462
}
463463
case UR_DEVICE_INFO_AVAILABLE: {
464-
return ReturnValue(true);
464+
return ReturnValue(ur_bool_t{true});
465465
}
466466
case UR_DEVICE_INFO_BUILD_ON_SUBDEVICE: {
467-
return ReturnValue(true);
467+
return ReturnValue(ur_bool_t{true});
468468
}
469469
case UR_DEVICE_INFO_COMPILER_AVAILABLE: {
470-
return ReturnValue(true);
470+
return ReturnValue(ur_bool_t{true});
471471
}
472472
case UR_DEVICE_INFO_LINKER_AVAILABLE: {
473-
return ReturnValue(true);
473+
return ReturnValue(ur_bool_t{true});
474474
}
475475
case UR_DEVICE_INFO_EXECUTION_CAPABILITIES: {
476476
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,
583583
return ReturnValue(size_t(1024));
584584
}
585585
case UR_DEVICE_INFO_PREFERRED_INTEROP_USER_SYNC: {
586-
return ReturnValue(true);
586+
return ReturnValue(ur_bool_t{true});
587587
}
588588
case UR_DEVICE_INFO_PARENT_DEVICE: {
589589
return ReturnValue(nullptr);
@@ -857,9 +857,9 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
857857
return ReturnValue(static_cast<uint32_t>(MaxRegisters));
858858
}
859859
case UR_DEVICE_INFO_MEM_CHANNEL_SUPPORT:
860-
return ReturnValue(false);
860+
return ReturnValue(ur_bool_t{false});
861861
case UR_DEVICE_INFO_IMAGE_SRGB:
862-
return ReturnValue(false);
862+
return ReturnValue(ur_bool_t{false});
863863
case UR_DEVICE_INFO_PCI_ADDRESS: {
864864
constexpr size_t AddressBufferSize = 13;
865865
char AddressBuffer[AddressBufferSize];
@@ -875,20 +875,20 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
875875
strnlen(AddressBuffer, AddressBufferSize - 1) + 1);
876876
}
877877
case UR_DEVICE_INFO_HOST_PIPE_READ_WRITE_SUPPORTED:
878-
return ReturnValue(false);
878+
return ReturnValue(ur_bool_t{false});
879879
case UR_DEVICE_INFO_VIRTUAL_MEMORY_SUPPORT:
880-
return ReturnValue(false);
880+
return ReturnValue(ur_bool_t{false});
881881
case UR_DEVICE_INFO_ESIMD_SUPPORT:
882-
return ReturnValue(false);
882+
return ReturnValue(ur_bool_t{false});
883883
case UR_DEVICE_INFO_TIMESTAMP_RECORDING_SUPPORT_EXP:
884-
return ReturnValue(true);
884+
return ReturnValue(ur_bool_t{true});
885885
case UR_DEVICE_INFO_ENQUEUE_NATIVE_COMMAND_SUPPORT_EXP: {
886886
// HIP supports enqueueing native work through the urNativeEnqueueExp
887-
return ReturnValue(true);
887+
return ReturnValue(ur_bool_t{true});
888888
}
889889

890890
case UR_DEVICE_INFO_GLOBAL_VARIABLE_SUPPORT:
891-
return ReturnValue(false);
891+
return ReturnValue(ur_bool_t{false});
892892
// TODO: Investigate if this information is available on HIP.
893893
case UR_DEVICE_INFO_COMPONENT_DEVICES:
894894
case UR_DEVICE_INFO_COMPOSITE_DEVICE:

0 commit comments

Comments
 (0)