diff --git a/data/kernels/CMakeLists.txt b/data/kernels/CMakeLists.txt index 9ef8e83caaa0..34591b9aea9b 100644 --- a/data/kernels/CMakeLists.txt +++ b/data/kernels/CMakeLists.txt @@ -15,7 +15,7 @@ macro(testcompile_opencl_kernel IN) add_custom_command( OUTPUT ${TOUCH} - COMMAND ${CLANG_OPENCL_COMPILER} -cc1 -cl-std=CL2.0 -isystem ${CLANG_OPENCL_INCLUDE_DIR} -finclude-default-header -I${CMAKE_CURRENT_SOURCE_DIR} ${IN} + COMMAND ${CLANG_OPENCL_COMPILER} -cc1 -cl-std=CL1.2 -isystem ${CLANG_OPENCL_INCLUDE_DIR} -finclude-default-header -I${CMAKE_CURRENT_SOURCE_DIR} ${IN} COMMAND ${CMAKE_COMMAND} -E touch ${TOUCH} # will be empty! DEPENDS ${IN} COMMENT "Test-compiling OpenCL program ${KERNAME}" diff --git a/src/common/opencl.c b/src/common/opencl.c index b6d87bff60ba..7bd4867b7d85 100644 --- a/src/common/opencl.c +++ b/src/common/opencl.c @@ -706,7 +706,7 @@ static int dt_opencl_device_init(dt_opencl_t *cl, const int dev, cl_device_id *d gchar *my_option = g_strdup(compile_opt); dt_conf_set_string(compile_option_name_cname, my_option); - cl->dev[dev].options = g_strdup_printf("-cl-std=CL2.0 -w %s %s -D%s=1 -I%s", + cl->dev[dev].options = g_strdup_printf("-w %s %s -D%s=1 -I%s", my_option, (cl->dev[dev].nvidia_sm_20 ? " -DNVIDIA_SM_20=1" : ""), dt_opencl_get_vendor_by_id(vendor_id), escapedkerneldir);