Fixup CMake to work with OpenCL 1.2 branch.

This commit is contained in:
Neil Henning
2018-01-11 17:39:03 +00:00
committed by Kévin Petit
parent 5413bcf52e
commit b4e39211d7
36 changed files with 1716 additions and 1230 deletions

View File

@@ -1,36 +1,52 @@
add_executable(conformance_test_cl_copy_images
main.cpp
test_copy_2D.cpp
../image_helpers.cpp
test_loops.cpp
test_copy_3D.cpp
test_copy_2D_3D.cpp
../../../test_common/harness/testHarness.c
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/mt19937.c
../../../test_common/harness/conversions.c
../../../test_common/harness/typeWrappers.cpp
../../../test_common/harness/msvc9.c)
set_source_files_properties(
main.cpp
test_copy_2D.cpp
../image_helpers.cpp
test_loops.cpp
test_copy_3D.cpp
test_copy_2D_3D.cpp
../../../test_common/harness/testHarness.c
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/conversions.c
../../../test_common/harness/typeWrappers.cpp
../../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_cl_copy_images
${CLConform_LIBRARIES})
add_executable(conformance_test_cl_copy_images
main.cpp
test_copy_generic.cpp
test_copy_1D.cpp
test_copy_2D.cpp
../image_helpers.cpp
test_loops.cpp
test_copy_3D.cpp
test_copy_1D_array.cpp
test_copy_2D_array.cpp
test_copy_2D_3D.cpp
test_copy_2D_2D_array.cpp
test_copy_3D_2D_array.cpp
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/conversions.c
../../../test_common/harness/testHarness.c
../../../test_common/harness/typeWrappers.cpp
../../../test_common/harness/mt19937.c
../../../test_common/harness/msvc9.c)
set_source_files_properties(
main.cpp
test_copy_generic.cpp
test_copy_1D.cpp
test_copy_2D.cpp
../image_helpers.cpp
test_loops.cpp
test_copy_3D.cpp
test_copy_1D_array.cpp
test_copy_2D_array.cpp
test_copy_2D_3D.cpp
test_copy_2D_2D_array.cpp
test_copy_3D_2D_array.cpp
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/conversions.c
../../../test_common/harness/testHarness.c
../../../test_common/harness/typeWrappers.cpp
../../../test_common/harness/mt19937.c
../../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_cl_copy_images
${CLConform_LIBRARIES})
install(TARGETS conformance_test_cl_copy_images
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -1,36 +1,46 @@
add_executable(conformance_test_cl_fill_images
main.cpp
test_fill_2D.cpp
../image_helpers.cpp
test_loops.cpp
test_fill_3D.cpp
test_fill_2D_3D.cpp
../../../test_common/harness/testHarness.c
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/mt19937.c
../../../test_common/harness/conversions.c
../../../test_common/harness/typeWrappers.cpp
../../../test_common/harness/msvc9.c)
set_source_files_properties(
main.cpp
test_fill_2D.cpp
../image_helpers.cpp
test_loops.cpp
test_fill_3D.cpp
test_fill_2D_3D.cpp
../../../test_common/harness/testHarness.c
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/conversions.c
../../../test_common/harness/typeWrappers.cpp
../../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_cl_fill_images
${CLConform_LIBRARIES})
add_executable(conformance_test_cl_fill_images
main.cpp
test_fill_generic.cpp
test_fill_1D.cpp
test_fill_2D.cpp
test_fill_3D.cpp
test_fill_1D_array.cpp
test_fill_2D_array.cpp
test_loops.cpp
../image_helpers.cpp
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/conversions.c
../../../test_common/harness/testHarness.c
../../../test_common/harness/typeWrappers.cpp
../../../test_common/harness/mt19937.c
../../../test_common/harness/msvc9.c)
set_source_files_properties(
main.cpp
test_fill_generic.cpp
test_fill_1D.cpp
test_fill_2D.cpp
test_fill_3D.cpp
test_fill_1D_array.cpp
test_fill_2D_array.cpp
test_loops.cpp
../image_helpers.cpp
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/conversions.c
../../../test_common/harness/testHarness.c
../../../test_common/harness/typeWrappers.cpp
../../../test_common/harness/mt19937.c
../../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_cl_fill_images
${CLConform_LIBRARIES})
install(TARGETS conformance_test_cl_fill_images
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -1,35 +1,43 @@
add_executable(conformance_test_cl_get_info
main.cpp
test_2D.cpp
../image_helpers.cpp
test_loops.cpp
test_3D.cpp
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/mt19937.c
../../../test_common/harness/conversions.c
../../../test_common/harness/testHarness.c
../../../test_common/harness/typeWrappers.cpp
../../../test_common/harness/msvc9.c
)
set_source_files_properties(
main.cpp
test_2D.cpp
../image_helpers.cpp
test_loops.cpp
test_3D.cpp
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/conversions.c
../../../test_common/harness/testHarness.c
../../../test_common/harness/typeWrappers.cpp
../../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_cl_get_info
${CLConform_LIBRARIES})
add_executable(conformance_test_cl_get_info
main.cpp
test_1D.cpp
test_2D.cpp
test_1D_2D_array.cpp
../image_helpers.cpp
test_loops.cpp
test_3D.cpp
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/conversions.c
../../../test_common/harness/testHarness.c
../../../test_common/harness/mt19937.c
../../../test_common/harness/msvc9.c
../../../test_common/harness/typeWrappers.cpp
)
set_source_files_properties(
main.cpp
test_1D.cpp
test_2D.cpp
test_1D_2D_array.cpp
../image_helpers.cpp
test_loops.cpp
test_3D.cpp
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/conversions.c
../../../test_common/harness/testHarness.c
../../../test_common/harness/mt19937.c
../../../test_common/harness/msvc9.c
../../../test_common/harness/typeWrappers.cpp
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_cl_get_info
${CLConform_LIBRARIES})
install(TARGETS conformance_test_cl_get_info
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -1,35 +1,45 @@
add_executable(conformance_test_cl_read_write_images
main.cpp
test_read_2D.cpp
../image_helpers.cpp
test_loops.cpp
test_read_3D.cpp
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/mt19937.c
../../../test_common/harness/conversions.c
../../../test_common/harness/testHarness.c
../../../test_common/harness/typeWrappers.cpp
../../../test_common/harness/msvc9.c
)
set_source_files_properties(
main.cpp
test_read_2D.cpp
../image_helpers.cpp
test_loops.cpp
test_read_3D.cpp
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/conversions.c
../../../test_common/harness/testHarness.c
../../../test_common/harness/typeWrappers.cpp
../../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_cl_read_write_images
${CLConform_LIBRARIES})
add_executable(conformance_test_cl_read_write_images
main.cpp
test_read_1D.cpp
test_read_1D_array.cpp
test_read_2D.cpp
test_read_2D_array.cpp
../image_helpers.cpp
test_loops.cpp
test_read_3D.cpp
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/conversions.c
../../../test_common/harness/testHarness.c
../../../test_common/harness/mt19937.c
../../../test_common/harness/msvc9.c
../../../test_common/harness/typeWrappers.cpp
)
set_source_files_properties(
main.cpp
test_read_1D.cpp
test_read_1D_array.cpp
test_read_2D.cpp
test_read_2D_array.cpp
../image_helpers.cpp
test_loops.cpp
test_read_3D.cpp
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/conversions.c
../../../test_common/harness/testHarness.c
../../../test_common/harness/mt19937.c
../../../test_common/harness/msvc9.c
../../../test_common/harness/typeWrappers.cpp
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_cl_read_write_images
${CLConform_LIBRARIES})
install(TARGETS conformance_test_cl_read_write_images
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -1,35 +1,45 @@
add_executable(conformance_test_kernel_image_methods
main.cpp
test_2D.cpp
../image_helpers.cpp
test_loops.cpp
test_3D.cpp
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/mt19937.c
../../../test_common/harness/conversions.c
../../../test_common/harness/testHarness.c
../../../test_common/harness/typeWrappers.cpp
../../../test_common/harness/msvc9.c
)
set_source_files_properties(
main.cpp
test_2D.cpp
../image_helpers.cpp
test_loops.cpp
test_3D.cpp
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/conversions.c
../../../test_common/harness/testHarness.c
../../../test_common/harness/typeWrappers.cpp
../../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_kernel_image_methods
${CLConform_LIBRARIES})
add_executable(conformance_test_kernel_image_methods
main.cpp
test_1D.cpp
test_1D_array.cpp
test_2D.cpp
test_2D_array.cpp
../image_helpers.cpp
test_loops.cpp
test_3D.cpp
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/conversions.c
../../../test_common/harness/testHarness.c
../../../test_common/harness/mt19937.c
../../../test_common/harness/msvc9.c
../../../test_common/harness/typeWrappers.cpp
)
set_source_files_properties(
main.cpp
test_1D.cpp
test_1D_array.cpp
test_2D.cpp
test_2D_array.cpp
../image_helpers.cpp
test_loops.cpp
test_3D.cpp
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/conversions.c
../../../test_common/harness/testHarness.c
../../../test_common/harness/mt19937.c
../../../test_common/harness/msvc9.c
../../../test_common/harness/typeWrappers.cpp
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_kernel_image_methods
${CLConform_LIBRARIES})
install(TARGETS conformance_test_kernel_image_methods
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -1,39 +1,55 @@
add_executable(conformance_test_image_streams
main.cpp
test_iterations.cpp
../image_helpers.cpp
test_loops.cpp
test_write_image.cpp
test_read_3D.cpp
test_write_3D.cpp
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/mt19937.c
../../../test_common/harness/conversions.c
../../../test_common/harness/testHarness.c
../../../test_common/harness/typeWrappers.cpp
../../../test_common/harness/msvc9.c
)
set_source_files_properties(
main.cpp
test_iterations.cpp
../image_helpers.cpp
test_loops.cpp
test_write_image.cpp
test_read_3D.cpp
test_write_3D.cpp
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/conversions.c
../../../test_common/harness/testHarness.c
../../../test_common/harness/typeWrappers.cpp
../../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_image_streams
${CLConform_LIBRARIES})
add_executable(conformance_test_image_streams
main.cpp
test_iterations.cpp
../image_helpers.cpp
test_loops.cpp
test_write_image.cpp
test_read_1D.cpp
test_read_3D.cpp
test_read_1D_array.cpp
test_read_2D_array.cpp
test_write_1D.cpp
test_write_3D.cpp
test_write_1D_array.cpp
test_write_2D_array.cpp
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/conversions.c
../../../test_common/harness/testHarness.c
../../../test_common/harness/mt19937.c
../../../test_common/harness/msvc9.c
../../../test_common/harness/typeWrappers.cpp
)
set_source_files_properties(
main.cpp
test_iterations.cpp
../image_helpers.cpp
test_loops.cpp
test_write_image.cpp
test_read_1D.cpp
test_read_3D.cpp
test_read_1D_array.cpp
test_read_2D_array.cpp
test_write_1D.cpp
test_write_3D.cpp
test_write_1D_array.cpp
test_write_2D_array.cpp
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/conversions.c
../../../test_common/harness/testHarness.c
../../../test_common/harness/mt19937.c
../../../test_common/harness/msvc9.c
../../../test_common/harness/typeWrappers.cpp
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_image_streams
${CLConform_LIBRARIES})
install(TARGETS conformance_test_image_streams
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -1,36 +1,47 @@
add_executable(conformance_test_samplerless_reads
main.cpp
test_iterations.cpp
test_loops.cpp
test_read_3D.cpp
../image_helpers.cpp
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/mt19937.c
../../../test_common/harness/conversions.c
../../../test_common/harness/testHarness.c
../../../test_common/harness/typeWrappers.cpp
../../../test_common/harness/msvc9.c
)
set_source_files_properties(
main.cpp
test_iterations.cpp
test_loops.cpp
test_read_3D.cpp
../image_helpers.cpp
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/conversions.c
../../../test_common/harness/testHarness.c
../../../test_common/harness/typeWrappers.cpp
../../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_samplerless_reads
${CLConform_LIBRARIES})
add_executable(conformance_test_samplerless_reads
main.cpp
test_iterations.cpp
test_loops.cpp
test_read_1D.cpp
test_read_1D_buffer.cpp
test_read_1D_array.cpp
test_read_2D_array.cpp
test_read_3D.cpp
../image_helpers.cpp
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/conversions.c
../../../test_common/harness/testHarness.c
../../../test_common/harness/mt19937.c
../../../test_common/harness/msvc9.c
../../../test_common/harness/typeWrappers.cpp
)
set_source_files_properties(
main.cpp
test_iterations.cpp
test_loops.cpp
test_read_1D.cpp
test_read_1D_buffer.cpp
test_read_1D_array.cpp
test_read_2D_array.cpp
test_read_3D.cpp
../image_helpers.cpp
../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/conversions.c
../../../test_common/harness/testHarness.c
../../../test_common/harness/mt19937.c
../../../test_common/harness/msvc9.c
../../../test_common/harness/typeWrappers.cpp
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_samplerless_reads
${CLConform_LIBRARIES})
install(TARGETS conformance_test_samplerless_reads
DESTINATION "${CLConf_OUT_DIR}")