@@ -418,7 +418,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
418
418
return ReturnValue (static_cast <size_t >(Min));
419
419
}
420
420
case UR_DEVICE_INFO_IMAGE_MAX_ARRAY_SIZE: {
421
- return ReturnValue (0lu );
421
+ return ReturnValue (size_t ( 0 ) );
422
422
}
423
423
case UR_DEVICE_INFO_MAX_SAMPLERS: {
424
424
// This call is kind of meaningless for cuda, as samplers don't exist.
@@ -429,7 +429,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
429
429
// https://docs.nvidia.com/cuda/cuda-c-programming-guide/#function-parameters
430
430
// __global__ function parameters are passed to the device via constant
431
431
// memory and are limited to 4 KB.
432
- return ReturnValue (4000lu );
432
+ return ReturnValue (size_t ( 4000 ) );
433
433
}
434
434
case UR_DEVICE_INFO_MEM_BASE_ADDR_ALIGN: {
435
435
int MemBaseAddrAlign = 0 ;
@@ -542,7 +542,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
542
542
case UR_DEVICE_INFO_PROFILING_TIMER_RESOLUTION: {
543
543
// Hard coded to value returned by clinfo for OpenCL 1.2 CUDA | GeForce GTX
544
544
// 1060 3GB
545
- return ReturnValue (1000lu );
545
+ return ReturnValue (size_t ( 1000 ) );
546
546
}
547
547
case UR_DEVICE_INFO_ENDIAN_LITTLE: {
548
548
return ReturnValue (true );
@@ -646,7 +646,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
646
646
}
647
647
case UR_DEVICE_INFO_PRINTF_BUFFER_SIZE: {
648
648
// The minimum value for the FULL profile is 1 MB.
649
- return ReturnValue (1024lu );
649
+ return ReturnValue (size_t ( 1024 ) );
650
650
}
651
651
case UR_DEVICE_INFO_PREFERRED_INTEROP_USER_SYNC: {
652
652
return ReturnValue (true );
0 commit comments