Skip to content

Commit ebf7c11

Browse files
committed
Add default return for CL HALF_FP_CONFIG.
1 parent 5c8bd26 commit ebf7c11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/adapters/opencl/device.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,9 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
527527
cl_adapter::cast<cl_device_id>(hDevice), {"cl_khr_fp16"}, Supported));
528528

529529
if (!Supported) {
530-
return UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION;
530+
// If we don't support the extension then our capabilities are 0.
531+
ur_device_fp_capability_flags_t halfCapabilities = 0;
532+
return ReturnValue(halfCapabilities);
531533
}
532534
}
533535

0 commit comments

Comments
 (0)