From bdd3a7b1b3d829e4c5e2a6e6c2257344657e2025 Mon Sep 17 00:00:00 2001 From: "Garcia Orozco, David" Date: Mon, 8 Jul 2024 11:32:10 -0700 Subject: [PATCH] Add clarification comment --- source/adapters/opencl/device.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/adapters/opencl/device.cpp b/source/adapters/opencl/device.cpp index 44878de68d..b3d247bbab 100644 --- a/source/adapters/opencl/device.cpp +++ b/source/adapters/opencl/device.cpp @@ -870,6 +870,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice, oclv::OpenCLVersion DevVer; CL_RETURN_ON_FAILURE(cl_adapter::getDeviceVersion( cl_adapter::cast(hDevice), DevVer)); + /* Independent forward progress query is only supported as of OpenCL 2.1 + * if version is older we return a default false. */ if (DevVer >= oclv::V2_1) { cl_bool CLValue; CL_RETURN_ON_FAILURE(