From 42163c607270c9a0baf35f4ec4c13504725b6964 Mon Sep 17 00:00:00 2001 From: Oualid Khelifi Date: Mon, 25 Feb 2019 17:31:28 +0000 Subject: [PATCH] cl21: Add 2.1 device version for compatibility conf This was causing some tests to fail on 2.1 conformance with : device version string does not match required format! Signed-off-by: Oualid Khelifi --- .../compatibility/test_conformance/api/test_api_min_max.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test_conformance/compatibility/test_conformance/api/test_api_min_max.c b/test_conformance/compatibility/test_conformance/api/test_api_min_max.c index 06bfcaa9..50cc1740 100644 --- a/test_conformance/compatibility/test_conformance/api/test_api_min_max.c +++ b/test_conformance/compatibility/test_conformance/api/test_api_min_max.c @@ -1674,7 +1674,9 @@ int test_min_max_local_mem_size(cl_device_id deviceID, cl_context context, cl_co test_error( error, "Unable to get device version string" ); if (!gIsEmbedded) { - if( memcmp( buffer, "OpenCL 2.0", strlen( "OpenCL 2.0" ) ) == 0 ) + if( memcmp( buffer, "OpenCL 2.1", strlen( "OpenCL 2.1" ) ) == 0 ) + min_max_local_mem_size = 16L * 1024L; + else if( memcmp( buffer, "OpenCL 2.0", strlen( "OpenCL 2.0" ) ) == 0 ) min_max_local_mem_size = 16L * 1024L; else if( memcmp( buffer, "OpenCL 1.2", strlen( "OpenCL 1.2" ) ) != 0 ) min_max_local_mem_size = 16L * 1024L;