From e9f24a84147d3f142e4ac78c5b9e25b44b7eea4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Petit?= Date: Tue, 16 Apr 2019 11:36:35 +0100 Subject: [PATCH] Don't require image support on GPU devices (#181) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is no mention of this rule that I could find in the OpenCL 1.2 specification. cl12_trunk was the only branch with this behaviour. Signed-off-by: Kévin Petit --- test_conformance/basic/test_numeric_constants.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/test_conformance/basic/test_numeric_constants.cpp b/test_conformance/basic/test_numeric_constants.cpp index 4e91d263..ef9c722c 100644 --- a/test_conformance/basic/test_numeric_constants.cpp +++ b/test_conformance/basic/test_numeric_constants.cpp @@ -320,19 +320,6 @@ int test_kernel_numeric_constants(cl_device_id deviceID, cl_context context, cl_ } else { // no images - // if we are a GPU, images are required so maybe fail on that - cl_device_type device_type = 0; - if( (error = clGetDeviceInfo(deviceID, CL_DEVICE_TYPE, sizeof( device_type), &device_type, NULL))) - { - log_error( "ERROR: could not get device type. error = %d", error ); - return -1; - } - if( CL_DEVICE_TYPE_GPU == (device_type & CL_DEVICE_TYPE_GPU) ) - { // It turns out we are a GPU, so no conformance pass for you! - log_error( "FAILURE: GPUs are required to support images in OpenCL 1.1 and later.\n" ); - return -1; - } - // If images aren't supported, the constant should be undefined if( int_out[18] != 0xf00baa ) {