Don't require image support on GPU devices (#181)

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 <kpet@free.fr>
This commit is contained in:
Kévin Petit
2019-04-16 11:36:35 +01:00
committed by GitHub
parent 511b1148b5
commit e9f24a8414

View File

@@ -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 )
{