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,3 +1,31 @@
if(MSVC)
# The CTS will not link on MSVC 32-bit builds. To workaround this, add the
# /LARGEADDRESSAWARE option as a linker flag. This is automatically set for
# MSVC 64-bit so it does no harm to enable it on all MSVC builds.
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /LARGEADDRESSAWARE")
else()
# Allowing the compiler to contract floating-point math causes wrong results
# to be output from the reference math of bruteforce tests, and for the
# host rounding code in conversions and image_streams tests.
set(CTS_EXTRA_FLAGS "-ffp-contract=off")
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)")
# We set '-mfpmath=sse' because it is the default on the x86-64 compiler,
# and we want consistent results for x86 code too.
# We set '-msse2' as most (but not all) of the sub CMakeLists.txt we include
# set it, so setting it here once means we have consistent compiliation
# flags across the entire conformance_test_* executables.
set(CTS_EXTRA_FLAGS "${CTS_EXTRA_FLAGS} -mfpmath=sse -msse2")
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "(ARM)|(ARM64)")
# The OpenCL CTS assumes that the char type is signed, which is not the
# default on ARM compilers, so we need to set it.
set(CTS_EXTRA_FLAGS "${CTS_EXTRA_FLAGS} -fsigned-char")
endif()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CTS_EXTRA_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CTS_EXTRA_FLAGS}")
endif()
add_subdirectory(allocations)
add_subdirectory(api)
add_subdirectory(atomics)
@@ -6,22 +34,28 @@ add_subdirectory(buffers)
add_subdirectory(commonfns)
add_subdirectory(compiler)
add_subdirectory(computeinfo)
add_subdirectory(gl)
add_subdirectory(conversions)
add_subdirectory(contractions)
add_subdirectory(conversions)
add_subdirectory(device_partition)
add_subdirectory(events)
add_subdirectory(geometrics)
if(GL_IS_SUPPORTED)
add_subdirectory(gl)
endif(GL_IS_SUPPORTED)
add_subdirectory(half)
add_subdirectory(headers)
add_subdirectory(headers_c99)
add_subdirectory(images)
add_subdirectory(implicit_convert)
add_subdirectory(integer_ops)
add_subdirectory(math_brute_force)
add_subdirectory(mem_host_flags)
add_subdirectory(multiple_device_context)
add_subdirectory(printf)
add_subdirectory(profiling)
add_subdirectory(relationals)
add_subdirectory(select)
add_subdirectory(thread_dimensions)
add_subdirectory(vec_align)
add_subdirectory(vec_step)
# Add any extension folders
add_subdirectory(spir)

View File

@@ -28,3 +28,6 @@ set_source_files_properties(
TARGET_LINK_LIBRARIES(conformance_test_allocations
${CLConform_LIBRARIES})
install(TARGETS conformance_test_allocations
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -1,51 +1,69 @@
add_executable(conformance_test_api
main.c
test_bool.c
test_retain.cpp
test_retain_program.c
test_queries.cpp
test_create_kernels.c
test_kernels.c
test_api_min_max.c
test_kernel_arg_changes.cpp
test_kernel_arg_multi_setup.cpp
test_binary.cpp
test_native_kernel.cpp
test_mem_objects.cpp
test_create_context_from_type.cpp
test_device_min_data_type_align_size_alignment.cpp
test_platform.cpp
../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c
../../test_common/harness/kernelHelpers.c
../../test_common/harness/typeWrappers.cpp
../../test_common/harness/conversions.c
../../test_common/harness/mt19937.c
../../test_common/harness/msvc9.c
main.c
test_retain_program.c
test_queries.cpp
test_create_kernels.c
test_kernels.c
test_kernel_arg_info.c
test_api_min_max.c
test_kernel_arg_changes.cpp
test_kernel_arg_multi_setup.cpp
test_binary.cpp
test_native_kernel.cpp
test_create_context_from_type.cpp
test_platform.cpp
test_retain.cpp
test_device_min_data_type_align_size_alignment.cpp
test_queue_properties.cpp
test_mem_objects.cpp
test_bool.c
test_null_buffer_arg.c
test_mem_object_info.cpp
../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c
../../test_common/harness/imageHelpers.cpp
../../test_common/harness/kernelHelpers.c
../../test_common/harness/typeWrappers.cpp
../../test_common/harness/msvc9.c
../../test_common/harness/mt19937.c
../../test_common/harness/conversions.c
)
set_source_files_properties(
main.c
test_bool.c
test_retain.cpp
test_retain_program.c
test_create_kernels.c
test_kernels.c
test_api_min_max.c
test_native_kernel.cpp
test_mem_objects.cpp
test_create_context_from_type.cpp
test_device_min_data_type_align_size_alignment.cpp
test_platform.cpp
../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c
../../test_common/harness/kernelHelpers.c
../../test_common/harness/conversions.c
../../test_common/harness/mt19937.c
../../test_common/harness/msvc9.c
main.c
test_retain_program.c
test_queries.cpp
test_create_kernels.c
test_kernels.c
test_kernel_arg_info.c
test_api_min_max.c
test_kernel_arg_changes.cpp
test_kernel_arg_multi_setup.cpp
test_binary.cpp
test_native_kernel.cpp
test_create_context_from_type.cpp
test_platform.cpp
test_retain.cpp
test_device_min_data_type_align_size_alignment.cpp
test_queue_properties.cpp
test_mem_objects.cpp
test_bool.c
test_null_buffer_arg.c
test_mem_object_info.cpp
../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c
../../test_common/harness/imageHelpers.cpp
../../test_common/harness/kernelHelpers.c
../../test_common/harness/typeWrappers.cpp
../../test_common/harness/msvc9.c
../../test_common/harness/mt19937.c
../../test_common/harness/conversions.c
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_api
${CLConform_LIBRARIES})
install(TARGETS conformance_test_api
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -26,3 +26,6 @@ set_source_files_properties(
TARGET_LINK_LIBRARIES(conformance_test_atomics
${CLConform_LIBRARIES})
install(TARGETS conformance_test_atomics
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -119,3 +119,6 @@ set_source_files_properties(
TARGET_LINK_LIBRARIES(conformance_test_basic
${CLConform_LIBRARIES})
install(TARGETS conformance_test_basic
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -1,27 +1,34 @@
add_executable(conformance_test_buffers
main.c test_buffer_copy.c test_buffer_read.c test_buffer_write.c
test_buffer_mem.c array_info.c test_buffer_map.c test_sub_buffers.cpp test_buffer_fill.c
main.c test_buffer_copy.c test_buffer_read.c test_buffer_write.c
test_buffer_mem.c array_info.c test_buffer_map.c
test_sub_buffers.cpp test_buffer_fill.c
test_buffer_migrate.c test_image_migrate.c
../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c
../../test_common/harness/kernelHelpers.c
../../test_common/harness/typeWrappers.cpp
../../test_common/harness/mt19937.c
../../test_common/harness/conversions.c
../../test_common/harness/msvc9.c
)
../../test_common/harness/conversions.c
../../test_common/harness/mt19937.c
../../test_common/harness/msvc9.c
../../test_common/harness/typeWrappers.cpp)
set_source_files_properties(
main.c test_buffer_copy.c test_buffer_read.c test_buffer_write.c
test_buffer_mem.c array_info.c test_buffer_map.c test_sub_buffers.cpp test_buffer_fill.c
main.c test_buffer_copy.c test_buffer_read.c test_buffer_write.c
test_buffer_mem.c array_info.c test_buffer_map.c
test_sub_buffers.cpp test_buffer_fill.c
test_buffer_migrate.c test_image_migrate.c
../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c
../../test_common/harness/kernelHelpers.c
../../test_common/harness/mt19937.c
../../test_common/harness/conversions.c
../../test_common/harness/msvc9.c
../../test_common/harness/conversions.c
../../test_common/harness/mt19937.c
../../test_common/harness/msvc9.c
../../test_common/harness/typeWrappers.cpp
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_buffers
${CLConform_LIBRARIES})
install(TARGETS conformance_test_buffers
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -30,3 +30,6 @@ set_source_files_properties(
TARGET_LINK_LIBRARIES(conformance_test_commonfns
${CLConform_LIBRARIES})
install(TARGETS conformance_test_commonfns
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -1,36 +1,58 @@
add_executable(conformance_test_compiler
main.c
test_build_helpers.c
main.c
test_build_helpers.c
test_compile.c
test_compiler_defines_for_extensions.cpp
test_async_build.c
test_build_options.cpp
test_preprocessor.c
test_compiler_defines_for_extensions.cpp
test_image_macro.c
../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c
../../test_common/harness/kernelHelpers.c
../../test_common/harness/typeWrappers.cpp
../../test_common/harness/mt19937.c
../../test_common/harness/mt19937.c
../../test_common/harness/msvc9.c
../../test_common/harness/conversions.c
../../test_common/harness/msvc9.c
)
set_source_files_properties(
main.c
test_build_helpers.c
main.c
test_build_helpers.c
test_compile.c
test_compiler_defines_for_extensions.cpp
test_async_build.c
test_build_options.cpp
test_preprocessor.c
test_compiler_defines_for_extensions.cpp
test_image_macro.c
../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c
../../test_common/harness/kernelHelpers.c
../../test_common/harness/mt19937.c
../../test_common/harness/typeWrappers.cpp
../../test_common/harness/mt19937.c
../../test_common/harness/msvc9.c
../../test_common/harness/conversions.c
../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_compiler
${CLConform_LIBRARIES})
# Need to copy the test include folders to sit beside the executable
add_custom_command(TARGET conformance_test_compiler POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${CMAKE_CURRENT_SOURCE_DIR}/includeTestDirectory"
"$<TARGET_FILE_DIR:conformance_test_compiler>/includeTestDirectory"
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${CMAKE_CURRENT_SOURCE_DIR}/secondIncludeTestDirectory"
"$<TARGET_FILE_DIR:conformance_test_compiler>/secondIncludeTestDirectory")
install(TARGETS conformance_test_compiler
DESTINATION "${CLConf_OUT_DIR}")
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/includeTestDirectory
DESTINATION "${CLConf_OUT_DIR}")
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/secondIncludeTestDirectory
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -1,4 +1,4 @@
add_executable(conformance_computeinfo
add_executable(conformance_test_computeinfo
main.c
../../test_common/harness/errorHelpers.c
../../test_common/harness/msvc9.c
@@ -10,5 +10,8 @@ set_source_files_properties(
../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_computeinfo
TARGET_LINK_LIBRARIES(conformance_test_computeinfo
${CLConform_LIBRARIES})
install(TARGETS conformance_test_computeinfo
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -1,4 +1,6 @@
add_executable(conformance_contractions
include_directories(../../test_common/harness)
add_executable(conformance_test_contractions
contractions.c
../../test_common/harness/mt19937.c
../../test_common/harness/msvc9.c
@@ -7,9 +9,13 @@ add_executable(conformance_contractions
../../test_common/harness/rounding_mode.c
../../test_common/harness/kernelHelpers.c
)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" AND NOT MSVC)
set_source_files_properties(
contractions.c
COMPILE_FLAGS -msse)
endif()
if(WIN32)
set_source_files_properties(
contractions.c
@@ -21,5 +27,8 @@ set_source_files_properties(
PROPERTIES LANGUAGE CXX)
endif(WIN32)
TARGET_LINK_LIBRARIES(conformance_contractions
TARGET_LINK_LIBRARIES(conformance_test_contractions
${CLConform_LIBRARIES})
install(TARGETS conformance_test_contractions
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -7,6 +7,8 @@ set(CMAKE_C_FLAGS_RELEASE "-O0")
set(CMAKE_CXX_FLAGS_RELEASE "-O0")
endif(MSVC)
include_directories(../../test_common/harness)
add_executable(conformance_test_conversions
Sleep.c test_conversions.c basic_test_conversions.c
../../test_common/harness/ThreadPool.c
@@ -28,7 +30,8 @@ set_source_files_properties(
PROPERTIES LANGUAGE CXX)
endif(WIN32)
if(NOT CMAKE_CL_64 AND NOT MSVC)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)")
if(NOT CMAKE_CL_64 AND NOT MSVC AND NOT ANDROID)
# -march is needed for CPU atomics, default arch on gcc is i386
# that does not support atomics.
set_source_files_properties(
@@ -39,16 +42,27 @@ set_source_files_properties(
../../test_common/harness/msvc9.c
../../test_common/harness/errorHelpers.c
COMPILE_FLAGS -march=i686)
endif(NOT CMAKE_CL_64 AND NOT MSVC)
endif()
endif()
set_source_files_properties(
Sleep.c test_conversions.c basic_test_conversions.c
COMPILE_FLAGS -std=c99)
if(NOT MSVC)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)")
set_source_files_properties(
Sleep.c test_conversions.c basic_test_conversions.c
COMPILE_FLAGS -msse2)
endif()
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
set_source_files_properties(
Sleep.c test_conversions.c basic_test_conversions.c
COMPILE_FLAGS "/arch:IA32")
endif()
TARGET_LINK_LIBRARIES(conformance_test_conversions
${CLConform_LIBRARIES})
install(TARGETS conformance_test_conversions
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -0,0 +1,33 @@
add_executable(conformance_test_device_partition
main.c
test_device_partition.cpp
../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c
../../test_common/harness/kernelHelpers.c
../../test_common/harness/genericThread.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.c
test_device_partition.cpp
../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c
../../test_common/harness/kernelHelpers.c
../../test_common/harness/genericThread.cpp
../../test_common/harness/mt19937.c
../../test_common/harness/conversions.c
../../test_common/harness/typeWrappers.cpp
../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX)
target_link_libraries(conformance_test_device_partition
${CLConform_LIBRARIES})
install(TARGETS conformance_test_device_partition
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -1,37 +1,47 @@
add_executable(conformance_test_events
main.c
main.c
test_events.cpp
test_event_dependencies.cpp
test_userevents.cpp
test_waitlists.cpp
test_userevents.cpp
test_callbacks.cpp
test_userevents_multithreaded.cpp
action_classes.cpp
../../test_common/harness/genericThread.cpp
test_callbacks.cpp
action_classes.cpp
test_userevents_multithreaded.cpp
../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c
../../test_common/harness/genericThread.cpp
../../test_common/harness/kernelHelpers.c
../../test_common/harness/typeWrappers.cpp
../../test_common/harness/mt19937.c
../../test_common/harness/msvc9.c
../../test_common/harness/conversions.c
../../test_common/harness/msvc9.c
../../test_common/harness/ThreadPool.c
)
set_source_files_properties(
main.c
test_userevents.cpp
test_callbacks.cpp
test_userevents_multithreaded.cpp
action_classes.cpp
../../test_common/harness/genericThread.cpp
main.c
test_events.cpp
test_event_dependencies.cpp
test_userevents.cpp
test_waitlists.cpp
test_callbacks.cpp
action_classes.cpp
test_userevents_multithreaded.cpp
../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c
../../test_common/harness/genericThread.cpp
../../test_common/harness/kernelHelpers.c
../../test_common/harness/typeWrappers.cpp
../../test_common/harness/mt19937.c
../../test_common/harness/msvc9.c
../../test_common/harness/conversions.c
../../test_common/harness/msvc9.c
../../test_common/harness/ThreadPool.c
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_events
${CLConform_LIBRARIES})
install(TARGETS conformance_test_events
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -29,3 +29,6 @@ set_source_files_properties(
TARGET_LINK_LIBRARIES(conformance_test_geometrics
${CLConform_LIBRARIES})
install(TARGETS conformance_test_geometrics
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -5,25 +5,30 @@ list(APPEND CLConform_LIBRARIES GL glut GLEW GLU)
endif(WIN32)
set (GL_SOURCES
main.cpp
test_buffers.cpp
test_images_2D.cpp
test_images_3D.cpp
test_renderbuffer.cpp
test_images_2D_info.cpp
test_images_3D_info.cpp
test_renderbuffer_info.cpp
test_fence_sync.cpp
helpers.cpp
main.cpp
helpers.cpp
test_buffers.cpp
test_fence_sync.cpp
test_images_1D.cpp
test_images_1Darray.cpp
test_images_2Darray.cpp
test_images_2D.cpp
test_images_3D.cpp
test_images_getinfo_common.cpp
test_images_read_common.cpp
test_images_write_common.cpp
test_renderbuffer.cpp
test_renderbuffer_info.cpp
../images/image_helpers.cpp
../../test_common/gl/helpers.cpp
../../test_common/harness/conversions.c
../../test_common/harness/errorHelpers.c
../../test_common/harness/genericThread.cpp
../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c
../../test_common/harness/kernelHelpers.c
../../test_common/harness/mt19937.c
../../test_common/harness/conversions.c
../../test_common/harness/msvc9.c
../../test_common/harness/imageHelpers.cpp
../../test_common/harness/kernelHelpers.c
../../test_common/harness/mt19937.c
../../test_common/harness/testHarness.c
../../test_common/harness/threadTesting.c
)
if (WIN32)

View File

@@ -1,4 +1,4 @@
add_executable(conformance_Test_half
add_executable(conformance_test_half
cl_utils.c Test_vLoadHalf.c Test_roundTrip.c
Test_vStoreHalf.c main.c
../../test_common/harness/msvc9.c
@@ -14,5 +14,8 @@ set_source_files_properties(
../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX)
endif(MSVC)
TARGET_LINK_LIBRARIES(conformance_Test_half
TARGET_LINK_LIBRARIES(conformance_test_half
${CLConform_LIBRARIES})
install(TARGETS conformance_test_half
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -18,8 +18,28 @@ add_executable(conformance_test_opencl_h
test_opencl.h.c
)
set(CMAKE_C_FLAGS "" )
set(CMAKE_CXX_FLAGS "" )
add_executable(conformance_test_cl_h_c99
test_cl.h.c
)
add_executable(conformance_test_cl_platform_h_c99
test_cl_platform.h.c
)
add_executable(conformance_test_cl_gl_h_c99
test_cl_gl.h.c
)
add_executable(conformance_test_opencl_h_c99
test_opencl.h.c
)
set_target_properties(conformance_test_cl_h_c99
conformance_test_cl_platform_h_c99
conformance_test_cl_gl_h_c99
conformance_test_opencl_h_c99
PROPERTIES COMPILE_FLAGS "-std=c99"
)
TARGET_LINK_LIBRARIES(conformance_test_headers
${CLConform_LIBRARIES})
@@ -35,3 +55,22 @@ TARGET_LINK_LIBRARIES(conformance_test_cl_gl_h
TARGET_LINK_LIBRARIES(conformance_test_opencl_h
${CLConform_LIBRARIES})
TARGET_LINK_LIBRARIES(conformance_test_cl_h_c99
${CLConform_LIBRARIES})
TARGET_LINK_LIBRARIES(conformance_test_cl_platform_h_c99
${CLConform_LIBRARIES})
TARGET_LINK_LIBRARIES(conformance_test_cl_gl_h_c99
${CLConform_LIBRARIES})
TARGET_LINK_LIBRARIES(conformance_test_opencl_h_c99
${CLConform_LIBRARIES})
install(TARGETS conformance_test_headers conformance_test_cl_h
conformance_test_cl_platform_h conformance_test_cl_gl_h
conformance_test_opencl_h conformance_test_cl_h_c99
conformance_test_cl_platform_h_c99 conformance_test_cl_gl_h_c99
conformance_test_opencl_h_c99
DESTINATION "${CLConf_OUT_DIR}")

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)
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_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
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)
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_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
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
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_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
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
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_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
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
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_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
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
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_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
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
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_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
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}")

View File

@@ -1,57 +1,71 @@
add_executable(conformance_test_integer_ops
main.c
main.c
test_popcount.c
test_int_basic_ops.c
test_integers.cpp
test_upsample.cpp
test_intmul24.c test_intmad24.c
test_sub_sat.c test_add_sat.c
test_abs.c test_absdiff.c
test_unary_ops.cpp
verification_and_generation_functions.c
../../test_common/harness/ThreadPool.c
../../test_common/harness/mt19937.c
test_unary_ops.cpp
verification_and_generation_functions.c
../../test_common/harness/conversions.c
../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c
../../test_common/harness/mt19937.c
../../test_common/harness/msvc9.c
../../test_common/harness/ThreadPool.c
../../test_common/harness/kernelHelpers.c
../../test_common/harness/msvc9.c
)
set_source_files_properties(
main.c
main.c
test_popcount.c
test_int_basic_ops.c
test_integers.cpp
test_upsample.cpp
test_intmul24.c test_intmad24.c
test_sub_sat.c test_add_sat.c
test_abs.c test_absdiff.c
test_unary_ops.cpp
verification_and_generation_functions.c
../../test_common/harness/ThreadPool.c
test_unary_ops.cpp
verification_and_generation_functions.c
../../test_common/harness/conversions.c
../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c
../../test_common/harness/mt19937.c
../../test_common/harness/msvc9.c
../../test_common/harness/ThreadPool.c
../../test_common/harness/kernelHelpers.c
../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX)
if (NOT CMAKE_CL_64 AND NOT MSVC)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)" AND NOT MSVC)
set_source_files_properties(
main.c
main.c
test_popcount.c
test_int_basic_ops.c
test_integers.cpp
test_upsample.cpp
test_intmul24.c test_intmad24.c
test_sub_sat.c test_add_sat.c
test_abs.c test_absdiff.c
test_unary_ops.cpp
verification_and_generation_functions.c
../../test_common/harness/ThreadPool.c
test_unary_ops.cpp
verification_and_generation_functions.c
../../test_common/harness/conversions.c
../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c
../../test_common/harness/mt19937.c
../../test_common/harness/ThreadPool.c
../../test_common/harness/kernelHelpers.c
../../test_common/harness/msvc9.c
COMPILE_FLAGS -march=i686)
endif()
endif (NOT CMAKE_CL_64 AND NOT MSVC)
TARGET_LINK_LIBRARIES(conformance_test_integer_ops
${CLConform_LIBRARIES})
install(TARGETS conformance_test_integer_ops
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -1,4 +1,4 @@
add_executable(conformance_bruteforce
add_executable(conformance_test_bruteforce
FunctionList.c
Sleep.c
binary.c
@@ -6,7 +6,7 @@ add_executable(conformance_bruteforce
Utility.c
binary_i.c binary_two_results_i.c i_unary.c
macro_binary.c macro_unary.c mad.c
main.c reference_math_fma.c reference_math.c
main.c reference_math.c
ternary.c unary.c unary_two_results.c
unary_two_results_i.c unary_u.c
@@ -16,7 +16,7 @@ add_executable(conformance_bruteforce
../../test_common/harness/msvc9.c
)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" AND NOT MSVC)
set_source_files_properties(
FunctionList.c
Sleep.c
@@ -29,6 +29,7 @@ set_source_files_properties(
ternary.c unary.c unary_two_results.c
unary_two_results_i.c unary_u.c
COMPILE_FLAGS -msse2)
endif()
if (MSVC)
set_source_files_properties(
@@ -36,7 +37,7 @@ set_source_files_properties(
Sleep.c
binary.c
binaryOperator.c
Utility.c reference_math_fma.c
Utility.c
binary_i.c binary_two_results_i.c i_unary.c
macro_binary.c macro_unary.c mad.c
main.c reference_math.c
@@ -49,12 +50,13 @@ set_source_files_properties(
endif(MSVC)
if (NOT CMAKE_CL_64 AND NOT MSVC)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)" AND NOT MSVC)
set_source_files_properties(
FunctionList.c
Sleep.c
binary.c
binaryOperator.c
Utility.c reference_math_fma.c
Utility.c
binary_i.c binary_two_results_i.c i_unary.c
macro_binary.c macro_unary.c mad.c
main.c reference_math.c
@@ -64,13 +66,11 @@ set_source_files_properties(
../../test_common/harness/ThreadPool.c
../../test_common/harness/msvc9.c
COMPILE_FLAGS -march=i686)
endif()
endif(NOT CMAKE_CL_64 AND NOT MSVC)
if(CMAKE_COMPILER_IS_GNUCC)
set_source_files_properties(
reference_math_fma.c
COMPILE_FLAGS -O0)
endif(CMAKE_COMPILER_IS_GNUCC)
TARGET_LINK_LIBRARIES(conformance_bruteforce
TARGET_LINK_LIBRARIES(conformance_test_bruteforce
${CLConform_LIBRARIES})
install(TARGETS conformance_test_bruteforce
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -0,0 +1,37 @@
add_executable(conformance_test_mem_host_flags
main.cpp
mem_host_buffer.cpp
mem_host_image.cpp
../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c
../../test_common/harness/genericThread.cpp
../../test_common/harness/kernelHelpers.c
../../test_common/harness/typeWrappers.cpp
../../test_common/harness/mt19937.c
../../test_common/harness/msvc9.c
../../test_common/harness/conversions.c
../../test_common/harness/ThreadPool.c
)
set_source_files_properties(
main.cpp
mem_host_buffer.cpp
mem_host_image.cpp
../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c
../../test_common/harness/genericThread.cpp
../../test_common/harness/kernelHelpers.c
../../test_common/harness/typeWrappers.cpp
../../test_common/harness/mt19937.c
../../test_common/harness/msvc9.c
../../test_common/harness/conversions.c
../../test_common/harness/ThreadPool.c
PROPERTIES LANGUAGE CXX)
target_link_libraries(conformance_test_mem_host_flags
${CLConform_LIBRARIES})
install(TARGETS conformance_test_mem_host_flags
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -13,9 +13,10 @@ add_executable(conformance_test_multiples
../../test_common/harness/msvc9.c
)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" AND NOT MSVC)
set_source_files_properties(
COMPILE_FLAGS -msse2)
endif()
set_source_files_properties(
main.c
@@ -30,3 +31,6 @@ set_source_files_properties(
TARGET_LINK_LIBRARIES(conformance_test_multiples
${CLConform_LIBRARIES})
install(TARGETS conformance_test_multiples
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -0,0 +1,23 @@
add_executable(conformance_test_printf
test_printf.c
util_printf.c
../../test_common/harness/mt19937.c
../../test_common/harness/kernelHelpers.c
../../test_common/harness/errorHelpers.c
../../test_common/harness/msvc9.c
)
set_source_files_properties(
test_printf.c
util_printf.c
../../test_common/harness/mt19937.c
../../test_common/harness/kernelHelpers.c
../../test_common/harness/errorHelpers.c
../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX)
target_link_libraries(conformance_test_printf
${CLConform_LIBRARIES})
install(TARGETS conformance_test_printf
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -11,9 +11,10 @@ add_executable(conformance_test_profiling
../../test_common/harness/msvc9.c
)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" AND NOT MSVC)
set_source_files_properties(
COMPILE_FLAGS -msse2)
endif()
set_source_files_properties(
main.c readArray.c writeArray.c readImage.c writeImage.c copy.c
@@ -27,3 +28,6 @@ set_source_files_properties(
TARGET_LINK_LIBRARIES(conformance_test_profiling
${CLConform_LIBRARIES})
install(TARGETS conformance_test_profiling
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -13,9 +13,10 @@ add_executable(conformance_test_relationals
../../test_common/harness/msvc9.c
)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" AND NOT MSVC)
set_source_files_properties(
COMPILE_FLAGS -msse2)
endif()
set_source_files_properties(
main.c
@@ -33,3 +34,6 @@ set_source_files_properties(
TARGET_LINK_LIBRARIES(conformance_test_relationals
${CLConform_LIBRARIES})
install(TARGETS conformance_test_relationals
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -7,9 +7,10 @@ add_executable(conformance_test_select
../../test_common/harness/errorHelpers.c
)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" AND NOT MSVC)
set_source_files_properties(
COMPILE_FLAGS -msse2)
endif()
if(WIN32)
set_source_files_properties(
@@ -23,3 +24,6 @@ endif(WIN32)
TARGET_LINK_LIBRARIES(conformance_test_select
${CLConform_LIBRARIES})
install(TARGETS conformance_test_select
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -0,0 +1,91 @@
function (install_spir_artifacts suite_name)
install(FILES "${suite_name}.zip" DESTINATION "${CLConf_OUT_DIR}")
endfunction()
add_executable(
conformance_test_spir
main.cpp
datagen.cpp
run_build_test.cpp
run_services.cpp
kernelargs.cpp
../../test_common/harness/errorHelpers.c
../../test_common/harness/kernelHelpers.c
../../test_common/harness/mt19937.c
../../test_common/harness/msvc9.c
../../test_common/harness/os_helpers.cpp
../../test_common/harness/testHarness.c
../../test_common/miniz/miniz.c)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" AND NOT MSVC)
set_source_files_properties(
COMPILE_FLAGS -msse2)
endif()
if(UNIX)
set_target_properties(conformance_test_spir PROPERTIES
COMPILE_FLAGS "-fexceptions -frtti")
elseif(MSVC)
set_target_properties(conformance_test_spir PROPERTIES
COMPILE_FLAGS "/GR /EHs /EHc")
endif()
TARGET_LINK_LIBRARIES(conformance_test_spir
${CLConform_LIBRARIES})
# Need to copy the spir zips to sit beside the executable
add_custom_command(TARGET conformance_test_spir POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/khr.csv" "$<TARGET_FILE_DIR:conformance_test_spir>/khr.csv"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/api.zip" "$<TARGET_FILE_DIR:conformance_test_spir>/api.zip"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/atomics.zip" "$<TARGET_FILE_DIR:conformance_test_spir>/atomics.zip"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/basic.zip" "$<TARGET_FILE_DIR:conformance_test_spir>/basic.zip"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/compile_and_link.zip" "$<TARGET_FILE_DIR:conformance_test_spir>/compile_and_link.zip"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/commonfns.zip" "$<TARGET_FILE_DIR:conformance_test_spir>/commonfns.zip"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/conversions.zip" "$<TARGET_FILE_DIR:conformance_test_spir>/conversions.zip"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/geometrics.zip" "$<TARGET_FILE_DIR:conformance_test_spir>/geometrics.zip"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/enum_values.zip" "$<TARGET_FILE_DIR:conformance_test_spir>/enum_values.zip"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/half.zip" "$<TARGET_FILE_DIR:conformance_test_spir>/half.zip"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/kernel_attributes.zip" "$<TARGET_FILE_DIR:conformance_test_spir>/kernel_attributes.zip"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/kernel_image_methods.zip" "$<TARGET_FILE_DIR:conformance_test_spir>/kernel_image_methods.zip"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/images_kernel_read_write.zip" "$<TARGET_FILE_DIR:conformance_test_spir>/images_kernel_read_write.zip"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/images_samplerlessRead.zip" "$<TARGET_FILE_DIR:conformance_test_spir>/images_samplerlessRead.zip"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/integer_ops.zip" "$<TARGET_FILE_DIR:conformance_test_spir>/integer_ops.zip"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/math_brute_force.zip" "$<TARGET_FILE_DIR:conformance_test_spir>/math_brute_force.zip"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/printf.zip" "$<TARGET_FILE_DIR:conformance_test_spir>/printf.zip"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/profiling.zip" "$<TARGET_FILE_DIR:conformance_test_spir>/profiling.zip"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/relationals.zip" "$<TARGET_FILE_DIR:conformance_test_spir>/relationals.zip"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/select.zip" "$<TARGET_FILE_DIR:conformance_test_spir>/select.zip"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/sampler_enumeration.zip" "$<TARGET_FILE_DIR:conformance_test_spir>/sampler_enumeration.zip"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/vec_align.zip" "$<TARGET_FILE_DIR:conformance_test_spir>/vec_align.zip"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/vec_step.zip" "$<TARGET_FILE_DIR:conformance_test_spir>/vec_step.zip"
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/binary_type.zip" "$<TARGET_FILE_DIR:conformance_test_spir>/binary_type.zip")
install(TARGETS conformance_test_spir
DESTINATION "${CLConf_OUT_DIR}")
install_spir_artifacts(api)
install_spir_artifacts(atomics)
install_spir_artifacts(basic)
install_spir_artifacts(compile_and_link)
install_spir_artifacts(commonfns)
install_spir_artifacts(conversions)
install_spir_artifacts(geometrics)
install_spir_artifacts(enum_values)
install_spir_artifacts(half)
install_spir_artifacts(kernel_attributes)
install_spir_artifacts(kernel_image_methods)
install_spir_artifacts(images_kernel_read_write)
install_spir_artifacts(images_samplerlessRead)
install_spir_artifacts(integer_ops)
install_spir_artifacts(math_brute_force)
install_spir_artifacts(printf)
install_spir_artifacts(profiling)
install_spir_artifacts(relationals)
install_spir_artifacts(select)
install_spir_artifacts(sampler_enumeration)
install_spir_artifacts(vec_align)
install_spir_artifacts(vec_step)
install_spir_artifacts(binary_type)
install(FILES "khr.csv" DESTINATION "${CLConf_OUT_DIR}")
#Add any other runtime directories you need here.
# end of file #

View File

@@ -11,9 +11,10 @@ add_executable(conformance_test_thread_dimensions
../../test_common/harness/msvc9.c
)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" AND NOT MSVC)
set_source_files_properties(
COMPILE_FLAGS -msse2)
endif()
set_source_files_properties(
main.c
@@ -28,3 +29,6 @@ set_source_files_properties(
TARGET_LINK_LIBRARIES(conformance_test_thread_dimensions
${CLConform_LIBRARIES})
install(TARGETS conformance_test_thread_dimensions
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -12,9 +12,10 @@ add_executable(conformance_test_vecalign
../../test_common/harness/conversions.c
)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" AND NOT MSVC)
set_source_files_properties(
COMPILE_FLAGS -msse2)
endif()
set_source_files_properties(
globals.c
@@ -31,3 +32,6 @@ set_source_files_properties(
TARGET_LINK_LIBRARIES(conformance_test_vecalign
${CLConform_LIBRARIES})
install(TARGETS conformance_test_vecalign
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -11,9 +11,10 @@ add_executable(conformance_test_vecstep
../../test_common/harness/errorHelpers.c
)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" AND NOT MSVC)
set_source_files_properties(
COMPILE_FLAGS -msse2)
endif()
set_source_files_properties(
globals.c
@@ -29,3 +30,6 @@ set_source_files_properties(
TARGET_LINK_LIBRARIES(conformance_test_vecstep
${CLConform_LIBRARIES})
install(TARGETS conformance_test_vecstep
DESTINATION "${CLConf_OUT_DIR}")