mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-22 23:29:02 +00:00
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 <oualid.khelifi@arm.com>
This commit is contained in:
committed by
Kévin Petit
parent
85d474f06a
commit
42163c6072
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user