add new test: test_program_scope_vars.cpp
This tests that program scope variables work across multiple kernels.
Uses two programs with identically named global variables, to check
that implementation properly separates global variable storage.
@@ -52,10 +52,14 @@ set(PROGRAMS_TO_BUILD test_barrier_between_for_loops test_early_return
test_workitem_func_outside_kernel
)
+if(OPENCL_HEADER_VERSION GREATER 299)
+ list(APPEND PROGRAMS_TO_BUILD test_program_scope_vars)
+endif()
+
if (MSVC)
add_compile_options(${OPENCL_CFLAGS})
else ()
- add_compile_options("-std=c++11" "-Wno-deprecated" "-Wno-deprecated-declarations" ${OPENCL_CFLAGS})
+ add_compile_options("-Wno-deprecated" "-Wno-deprecated-declarations" ${OPENCL_CFLAGS})
endif ()
add_definitions("-DSRCDIR=\"${CMAKE_CURRENT_SOURCE_DIR}\"")
