@@ -348,7 +348,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
348
348
}
349
349
case UR_DEVICE_INFO_DEVICE_ID: {
350
350
bool Supported = false ;
351
- CL_RETURN_ON_FAILURE (cl_adapter::checkDeviceExtensions (
351
+ UR_RETURN_ON_FAILURE (cl_adapter::checkDeviceExtensions (
352
352
cl_adapter::cast<cl_device_id >(hDevice), {" cl_khr_pci_bus_info" },
353
353
Supported));
354
354
@@ -365,7 +365,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
365
365
366
366
case UR_DEVICE_INFO_BACKEND_RUNTIME_VERSION: {
367
367
oclv::OpenCLVersion Version;
368
- CL_RETURN_ON_FAILURE (cl_adapter::getDeviceVersion (
368
+ UR_RETURN_ON_FAILURE (cl_adapter::getDeviceVersion (
369
369
cl_adapter::cast<cl_device_id >(hDevice), Version));
370
370
371
371
const std::string Results = std::to_string (Version.getMajor ()) + " ." +
@@ -473,7 +473,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
473
473
/* Corresponding OpenCL query is only available starting with OpenCL 2.1
474
474
* and we have to emulate it on older OpenCL runtimes. */
475
475
oclv::OpenCLVersion DevVer;
476
- CL_RETURN_ON_FAILURE (cl_adapter::getDeviceVersion (
476
+ UR_RETURN_ON_FAILURE (cl_adapter::getDeviceVersion (
477
477
cl_adapter::cast<cl_device_id >(hDevice), DevVer));
478
478
479
479
if (DevVer >= oclv::V2_1) {
@@ -503,7 +503,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
503
503
* UR type: ur_device_fp_capability_flags_t */
504
504
if (propName == UR_DEVICE_INFO_HALF_FP_CONFIG) {
505
505
bool Supported;
506
- CL_RETURN_ON_FAILURE (cl_adapter::checkDeviceExtensions (
506
+ UR_RETURN_ON_FAILURE (cl_adapter::checkDeviceExtensions (
507
507
cl_adapter::cast<cl_device_id >(hDevice), {" cl_khr_fp16" }, Supported));
508
508
509
509
if (!Supported) {
@@ -523,7 +523,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
523
523
/* This query is missing before OpenCL 3.0. Check version and handle
524
524
* appropriately */
525
525
oclv::OpenCLVersion DevVer;
526
- CL_RETURN_ON_FAILURE (cl_adapter::getDeviceVersion (
526
+ UR_RETURN_ON_FAILURE (cl_adapter::getDeviceVersion (
527
527
cl_adapter::cast<cl_device_id >(hDevice), DevVer));
528
528
529
529
/* Minimum required capability to be returned. For OpenCL 1.2, this is all
@@ -583,7 +583,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
583
583
UR_MEMORY_SCOPE_CAPABILITY_FLAG_WORK_GROUP;
584
584
585
585
oclv::OpenCLVersion DevVer;
586
- CL_RETURN_ON_FAILURE (cl_adapter::getDeviceVersion (
586
+ UR_RETURN_ON_FAILURE (cl_adapter::getDeviceVersion (
587
587
cl_adapter::cast<cl_device_id >(hDevice), DevVer));
588
588
589
589
cl_device_atomic_capabilities CLCapabilities;
@@ -637,7 +637,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
637
637
UR_MEMORY_ORDER_CAPABILITY_FLAG_ACQ_REL;
638
638
639
639
oclv::OpenCLVersion DevVer;
640
- CL_RETURN_ON_FAILURE (cl_adapter::getDeviceVersion (
640
+ UR_RETURN_ON_FAILURE (cl_adapter::getDeviceVersion (
641
641
cl_adapter::cast<cl_device_id >(hDevice), DevVer));
642
642
643
643
cl_device_atomic_capabilities CLCapabilities;
@@ -687,7 +687,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
687
687
UR_MEMORY_SCOPE_CAPABILITY_FLAG_WORK_GROUP;
688
688
689
689
oclv::OpenCLVersion DevVer;
690
- CL_RETURN_ON_FAILURE (cl_adapter::getDeviceVersion (
690
+ UR_RETURN_ON_FAILURE (cl_adapter::getDeviceVersion (
691
691
cl_adapter::cast<cl_device_id >(hDevice), DevVer));
692
692
693
693
auto convertCapabilities =
@@ -755,7 +755,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
755
755
}
756
756
case UR_DEVICE_INFO_ATOMIC_64: {
757
757
bool Supported = false ;
758
- CL_RETURN_ON_FAILURE (cl_adapter::checkDeviceExtensions (
758
+ UR_RETURN_ON_FAILURE (cl_adapter::checkDeviceExtensions (
759
759
cl_adapter::cast<cl_device_id >(hDevice),
760
760
{" cl_khr_int64_base_atomics" , " cl_khr_int64_extended_atomics" },
761
761
Supported));
@@ -773,7 +773,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
773
773
}
774
774
case UR_DEVICE_INFO_MEM_CHANNEL_SUPPORT: {
775
775
bool Supported = false ;
776
- CL_RETURN_ON_FAILURE (cl_adapter::checkDeviceExtensions (
776
+ UR_RETURN_ON_FAILURE (cl_adapter::checkDeviceExtensions (
777
777
cl_adapter::cast<cl_device_id >(hDevice),
778
778
{" cl_intel_mem_channel_property" }, Supported));
779
779
@@ -807,14 +807,14 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
807
807
}
808
808
case UR_DEVICE_INFO_HOST_PIPE_READ_WRITE_SUPPORTED: {
809
809
bool Supported = false ;
810
- CL_RETURN_ON_FAILURE (cl_adapter::checkDeviceExtensions (
810
+ UR_RETURN_ON_FAILURE (cl_adapter::checkDeviceExtensions (
811
811
cl_adapter::cast<cl_device_id >(hDevice),
812
812
{" cl_intel_program_scope_host_pipe" }, Supported));
813
813
return ReturnValue (Supported);
814
814
}
815
815
case UR_DEVICE_INFO_GLOBAL_VARIABLE_SUPPORT: {
816
816
bool Supported = false ;
817
- CL_RETURN_ON_FAILURE (cl_adapter::checkDeviceExtensions (
817
+ UR_RETURN_ON_FAILURE (cl_adapter::checkDeviceExtensions (
818
818
cl_adapter::cast<cl_device_id >(hDevice),
819
819
{" cl_intel_global_variable_access" }, Supported));
820
820
return ReturnValue (Supported);
0 commit comments