mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Accept OpenCL 3.0 in version parsing code and use where appropriate (#752)
* Accept OpenCL 3.0 in version parsing code and use where appropriate There were a number of tests against 2.2 that are clearer against 3.0. Fixes #751 Signed-off-by: Kévin Petit <kpet@free.fr> * Remove CL_EXPERIMENTAL guards Signed-off-by: Kévin Petit <kpet@free.fr> * formatting * Configure the headers for OpenCL 3.0 * more format fixes
This commit is contained in:
@@ -958,7 +958,8 @@ int test_generic_ptr_to_host_mem_svm(cl_device_id deviceID, cl_context context,
|
||||
cl_int error = clGetDeviceInfo(deviceID, CL_DEVICE_SVM_CAPABILITIES, sizeof(caps), &caps, NULL);
|
||||
test_error(error, "clGetDeviceInfo(CL_DEVICE_SVM_CAPABILITIES) failed");
|
||||
|
||||
if ((version < expected_min_version) || (version > Version(2,2) && caps == 0))
|
||||
if ((version < expected_min_version)
|
||||
|| (version >= Version(3, 0) && caps == 0))
|
||||
return TEST_SKIPPED_ITSELF;
|
||||
|
||||
if (caps & CL_DEVICE_SVM_COARSE_GRAIN_BUFFER) {
|
||||
|
||||
Reference in New Issue
Block a user