From 3f7889bdbd109307b808b7a2c8e9c8fdf6150a2b Mon Sep 17 00:00:00 2001 From: Romaric Jodin Date: Tue, 6 May 2025 18:33:34 +0200 Subject: [PATCH] Remove CL_DEVICE_HALF_FP_CONFIG when cl_khr_fp16 is not supported (#2354) Specification does not require to return an error when querying CL_DEVICE_HALF_FP_CONFIG and cl_khr_fp16 is not supported. Fix #2339 --- test_conformance/api/test_api_consistency.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/test_conformance/api/test_api_consistency.cpp b/test_conformance/api/test_api_consistency.cpp index a859a701..cb39b3a8 100644 --- a/test_conformance/api/test_api_consistency.cpp +++ b/test_conformance/api/test_api_consistency.cpp @@ -1243,13 +1243,6 @@ REGISTER_TEST(consistency_requirements_fp16) } else { - error = clGetDeviceInfo(device, CL_DEVICE_HALF_FP_CONFIG, sizeof(value), - &value, nullptr); - test_failure_error( - error, CL_INVALID_VALUE, - "cl_khr_fp16 is not available; CL_DEVICE_HALF_FP_CONFIG must fail " - "with CL_INVALID_VALUE"); - error = clGetDeviceInfo(device, CL_DEVICE_PREFERRED_VECTOR_WIDTH_HALF, sizeof(value), &value, nullptr); test_error(