Skip to content

Commit 62ba9e9

Browse files
ayylolaarongreig
authored andcommitted
Remove independent forward progress fall through
1 parent 7f51394 commit 62ba9e9

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

source/adapters/opencl/device.cpp

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,18 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
887887
case UR_DEVICE_INFO_AVAILABLE:
888888
case UR_DEVICE_INFO_COMPILER_AVAILABLE:
889889
case UR_DEVICE_INFO_LINKER_AVAILABLE:
890-
case UR_DEVICE_INFO_PREFERRED_INTEROP_USER_SYNC:
890+
case UR_DEVICE_INFO_PREFERRED_INTEROP_USER_SYNC: {
891+
/* CL type: cl_bool
892+
* UR type: ur_bool_t */
893+
894+
cl_bool CLValue;
895+
CL_RETURN_ON_FAILURE(
896+
clGetDeviceInfo(cl_adapter::cast<cl_device_id>(hDevice), CLPropName,
897+
sizeof(cl_bool), &CLValue, nullptr));
898+
899+
/* cl_bool is uint32_t and ur_bool_t is bool */
900+
return ReturnValue(static_cast<ur_bool_t>(CLValue));
901+
}
891902
case UR_DEVICE_INFO_SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS: {
892903
/* CL type: cl_bool
893904
* UR type: ur_bool_t */

0 commit comments

Comments
 (0)