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

@@ -1,30 +1,33 @@
add_executable(conformance_test_allocations add_executable(conformance_test_allocations
main.cpp main.cpp
allocation_execute.cpp allocation_execute.cpp
allocation_fill.cpp allocation_fill.cpp
allocation_functions.cpp allocation_functions.cpp
allocation_utils.cpp allocation_utils.cpp
../../test_common/harness/errorHelpers.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c ../../test_common/harness/threadTesting.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/kernelHelpers.c
../../test_common/harness/testHarness.c ../../test_common/harness/testHarness.c
../../test_common/harness/typeWrappers.cpp ../../test_common/harness/typeWrappers.cpp
../../test_common/harness/mt19937.c ../../test_common/harness/mt19937.c
../../test_common/harness/msvc9.c) ../../test_common/harness/msvc9.c)
set_source_files_properties( set_source_files_properties(
main.cpp main.cpp
allocation_execute.cpp allocation_execute.cpp
allocation_fill.cpp allocation_fill.cpp
allocation_functions.cpp allocation_functions.cpp
allocation_utils.cpp allocation_utils.cpp
../../test_common/harness/errorHelpers.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c ../../test_common/harness/threadTesting.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/kernelHelpers.c
../../test_common/harness/testHarness.c ../../test_common/harness/testHarness.c
../../test_common/harness/mt19937.c ../../test_common/harness/mt19937.c
../../test_common/harness/msvc9.c ../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX) PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_allocations TARGET_LINK_LIBRARIES(conformance_test_allocations
${CLConform_LIBRARIES}) ${CLConform_LIBRARIES})
install(TARGETS conformance_test_allocations
DESTINATION "${CLConf_OUT_DIR}")

View File

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

@@ -1,28 +1,31 @@
add_executable(conformance_test_atomics add_executable(conformance_test_atomics
main.c main.c
test_atomics.cpp test_atomics.cpp
test_indexed_cases.c test_indexed_cases.c
../../test_common/harness/errorHelpers.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c ../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c ../../test_common/harness/testHarness.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/kernelHelpers.c
../../test_common/harness/mt19937.c ../../test_common/harness/mt19937.c
../../test_common/harness/conversions.c ../../test_common/harness/conversions.c
../../test_common/harness/msvc9.c ../../test_common/harness/msvc9.c
) )
set_source_files_properties( set_source_files_properties(
main.c main.c
test_atomics.cpp test_atomics.cpp
test_indexed_cases.c test_indexed_cases.c
../../test_common/harness/errorHelpers.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c ../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c ../../test_common/harness/testHarness.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/kernelHelpers.c
../../test_common/harness/mt19937.c ../../test_common/harness/mt19937.c
../../test_common/harness/conversions.c ../../test_common/harness/conversions.c
../../test_common/harness/msvc9.c ../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX) PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_atomics TARGET_LINK_LIBRARIES(conformance_test_atomics
${CLConform_LIBRARIES}) ${CLConform_LIBRARIES})
install(TARGETS conformance_test_atomics
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -1,121 +1,124 @@
add_executable(conformance_test_basic add_executable(conformance_test_basic
main.c main.c
test_fpmath_float.c test_fpmath_float2.c test_fpmath_float4.c test_fpmath_float.c test_fpmath_float2.c test_fpmath_float4.c
test_intmath_int.c test_intmath_int2.c test_intmath_int4.c test_intmath_int.c test_intmath_int2.c test_intmath_int4.c
test_intmath_long.c test_intmath_long2.c test_intmath_long4.c test_intmath_long.c test_intmath_long2.c test_intmath_long4.c
test_hiloeo.c test_local.c test_pointercast.c test_hiloeo.c test_local.c test_pointercast.c
test_if.c test_loop.c test_if.c test_loop.c
test_readimage.c test_readimage_int16.c test_readimage_fp32.c test_readimage.c test_readimage_int16.c test_readimage_fp32.c
test_readimage3d.c test_readimage3d_int16.c test_readimage3d_fp32.c test_readimage3d.c test_readimage3d_int16.c test_readimage3d_fp32.c
test_writeimage.c test_writeimage_int16.c test_writeimage_fp32.c test_writeimage.c test_writeimage_int16.c test_writeimage_fp32.c
test_multireadimageonefmt.c test_multireadimagemultifmt.c test_multireadimageonefmt.c test_multireadimagemultifmt.c
test_imagedim.c test_imagedim.c
test_vloadstore.c test_vloadstore.c
test_int2float.c test_float2int.c test_int2float.c test_float2int.c
test_createkernelsinprogram.c test_createkernelsinprogram.c
test_hostptr.c test_hostptr.c
test_explicit_s2v.cpp test_explicit_s2v.cpp
test_constant.c test_constant.c
test_image_multipass.c test_image_multipass.c
test_imagereadwrite.c test_imagereadwrite3d.c test_imagereadwrite.c test_imagereadwrite3d.c
test_image_param.c test_image_param.c
test_imagenpot.c test_imagenpot.c
test_image_r8.c test_image_r8.c
test_barrier.c test_barrier.c
test_basic_parameter_types.c test_basic_parameter_types.c
test_arrayreadwrite.c test_arrayreadwrite.c
test_arraycopy.c test_arraycopy.c
test_imagearraycopy.c test_imagearraycopy.c
test_imagearraycopy3d.c test_imagearraycopy3d.c
test_imagecopy.c test_imagecopy.c
test_imagerandomcopy.c test_imagerandomcopy.c
test_arrayimagecopy.c test_arrayimagecopy.c
test_arrayimagecopy3d.c test_arrayimagecopy3d.c
test_imagecopy3d.c test_imagecopy3d.c
test_enqueue_map.cpp test_enqueue_map.cpp
test_work_item_functions.cpp test_work_item_functions.cpp
test_astype.cpp test_astype.cpp
test_async_copy.cpp test_async_copy.cpp
test_sizeof.c test_sizeof.c
test_vector_creation.cpp test_vector_creation.cpp
test_vec_type_hint.c test_vec_type_hint.c
test_numeric_constants.cpp test_numeric_constants.cpp
test_constant_source.cpp test_constant_source.cpp
test_bufferreadwriterect.c test_bufferreadwriterect.c
test_async_strided_copy.cpp test_async_strided_copy.cpp
test_preprocessors.cpp test_preprocessors.cpp
test_kernel_memory_alignment.cpp test_kernel_memory_alignment.cpp
test_global_work_offsets.cpp test_global_work_offsets.cpp
test_kernel_call_kernel_function.cpp test_kernel_call_kernel_function.cpp
test_local_kernel_scope.cpp test_local_kernel_scope.cpp
../../test_common/harness/errorHelpers.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c ../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c ../../test_common/harness/testHarness.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/kernelHelpers.c
../../test_common/harness/typeWrappers.cpp ../../test_common/harness/typeWrappers.cpp
../../test_common/harness/imageHelpers.cpp ../../test_common/harness/imageHelpers.cpp
../../test_common/harness/mt19937.c ../../test_common/harness/mt19937.c
../../test_common/harness/conversions.c ../../test_common/harness/conversions.c
../../test_common/harness/rounding_mode.c ../../test_common/harness/rounding_mode.c
../../test_common/harness/msvc9.c ../../test_common/harness/msvc9.c
) )
set_source_files_properties( set_source_files_properties(
main.c main.c
test_fpmath_float.c test_fpmath_float2.c test_fpmath_float4.c test_fpmath_float.c test_fpmath_float2.c test_fpmath_float4.c
test_intmath_int.c test_intmath_int2.c test_intmath_int4.c test_intmath_int.c test_intmath_int2.c test_intmath_int4.c
test_intmath_long.c test_intmath_long2.c test_intmath_long4.c test_intmath_long.c test_intmath_long2.c test_intmath_long4.c
test_hiloeo.c test_local.c test_pointercast.c test_hiloeo.c test_local.c test_pointercast.c
test_if.c test_loop.c test_if.c test_loop.c
test_readimage.c test_readimage_int16.c test_readimage_fp32.c test_readimage.c test_readimage_int16.c test_readimage_fp32.c
test_readimage3d.c test_readimage3d_int16.c test_readimage3d_fp32.c test_readimage3d.c test_readimage3d_int16.c test_readimage3d_fp32.c
test_writeimage.c test_writeimage_int16.c test_writeimage_fp32.c test_writeimage.c test_writeimage_int16.c test_writeimage_fp32.c
test_multireadimageonefmt.c test_multireadimagemultifmt.c test_multireadimageonefmt.c test_multireadimagemultifmt.c
test_imagedim.c test_imagedim.c
test_vloadstore.c test_vloadstore.c
test_int2float.c test_float2int.c test_int2float.c test_float2int.c
test_createkernelsinprogram.c test_createkernelsinprogram.c
test_hostptr.c test_hostptr.c
test_constant.c test_constant.c
test_image_multipass.c test_image_multipass.c
test_imagereadwrite.c test_imagereadwrite3d.c test_imagereadwrite.c test_imagereadwrite3d.c
test_image_param.c test_image_param.c
test_imagenpot.c test_imagenpot.c
test_image_r8.c test_image_r8.c
test_barrier.c test_barrier.c
test_basic_parameter_types.c test_basic_parameter_types.c
test_arrayreadwrite.c test_arrayreadwrite.c
test_arraycopy.c test_arraycopy.c
test_imagearraycopy.c test_imagearraycopy.c
test_imagearraycopy3d.c test_imagearraycopy3d.c
test_imagecopy.c test_imagecopy.c
test_imagerandomcopy.c test_imagerandomcopy.c
test_arrayimagecopy.c test_arrayimagecopy.c
test_arrayimagecopy3d.c test_arrayimagecopy3d.c
test_imagecopy3d.c test_imagecopy3d.c
test_enqueue_map.cpp test_enqueue_map.cpp
test_work_item_functions.cpp test_work_item_functions.cpp
test_astype.cpp test_astype.cpp
test_async_copy.cpp test_async_copy.cpp
test_sizeof.c test_sizeof.c
test_vector_creation.cpp test_vector_creation.cpp
test_vec_type_hint.c test_vec_type_hint.c
test_constant_source.cpp test_constant_source.cpp
test_bufferreadwriterect.c test_bufferreadwriterect.c
test_async_strided_copy.cpp test_async_strided_copy.cpp
test_preprocessors.cpp test_preprocessors.cpp
test_kernel_memory_alignment.cpp test_kernel_memory_alignment.cpp
test_global_work_offsets.cpp test_global_work_offsets.cpp
test_local_kernel_scope.cpp test_local_kernel_scope.cpp
../../test_common/harness/errorHelpers.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c ../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c ../../test_common/harness/testHarness.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/kernelHelpers.c
../../test_common/harness/mt19937.c ../../test_common/harness/mt19937.c
../../test_common/harness/conversions.c ../../test_common/harness/conversions.c
../../test_common/harness/msvc9.c ../../test_common/harness/msvc9.c
../../test_common/harness/rounding_mode.c ../../test_common/harness/rounding_mode.c
PROPERTIES LANGUAGE CXX) PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_basic TARGET_LINK_LIBRARIES(conformance_test_basic
${CLConform_LIBRARIES}) ${CLConform_LIBRARIES})
install(TARGETS conformance_test_basic
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -1,27 +1,34 @@
add_executable(conformance_test_buffers add_executable(conformance_test_buffers
main.c test_buffer_copy.c test_buffer_read.c test_buffer_write.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_mem.c array_info.c test_buffer_map.c
../../test_common/harness/errorHelpers.c test_sub_buffers.cpp test_buffer_fill.c
../../test_common/harness/threadTesting.c test_buffer_migrate.c test_image_migrate.c
../../test_common/harness/testHarness.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/threadTesting.c
../../test_common/harness/typeWrappers.cpp ../../test_common/harness/testHarness.c
../../test_common/harness/mt19937.c ../../test_common/harness/kernelHelpers.c
../../test_common/harness/conversions.c ../../test_common/harness/conversions.c
../../test_common/harness/msvc9.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 set_source_files_properties(
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_common/harness/errorHelpers.c test_buffer_mem.c array_info.c test_buffer_map.c
../../test_common/harness/threadTesting.c test_sub_buffers.cpp test_buffer_fill.c
../../test_common/harness/testHarness.c test_buffer_migrate.c test_image_migrate.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/mt19937.c ../../test_common/harness/threadTesting.c
../../test_common/harness/conversions.c ../../test_common/harness/testHarness.c
../../test_common/harness/msvc9.c ../../test_common/harness/kernelHelpers.c
PROPERTIES LANGUAGE CXX) ../../test_common/harness/conversions.c
../../test_common/harness/mt19937.c
TARGET_LINK_LIBRARIES(conformance_test_buffers ../../test_common/harness/msvc9.c
${CLConform_LIBRARIES}) ../../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

@@ -1,32 +1,35 @@
add_executable(conformance_test_commonfns add_executable(conformance_test_commonfns
main.c test_clamp.c test_degrees.c main.c test_clamp.c test_degrees.c
test_max.c test_maxf.c test_min.c test_minf.c test_max.c test_maxf.c test_min.c test_minf.c
test_mix.c test_radians.c test_step.c test_stepf.c test_mix.c test_radians.c test_step.c test_stepf.c
test_smoothstep.c test_smoothstepf.c test_sign.c test_smoothstep.c test_smoothstepf.c test_sign.c
test_fmax.c test_fmin.c test_fmaxf.c test_fminf.c test_binary_fn.c test_fmax.c test_fmin.c test_fmaxf.c test_fminf.c test_binary_fn.c
../../test_common/harness/errorHelpers.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c ../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c ../../test_common/harness/testHarness.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/kernelHelpers.c
../../test_common/harness/mt19937.c ../../test_common/harness/mt19937.c
../../test_common/harness/conversions.c ../../test_common/harness/conversions.c
../../test_common/harness/msvc9.c ../../test_common/harness/msvc9.c
) )
set_source_files_properties( set_source_files_properties(
main.c test_clamp.c test_degrees.c main.c test_clamp.c test_degrees.c
test_max.c test_maxf.c test_min.c test_minf.c test_max.c test_maxf.c test_min.c test_minf.c
test_mix.c test_radians.c test_step.c test_stepf.c test_mix.c test_radians.c test_step.c test_stepf.c
test_smoothstep.c test_smoothstepf.c test_sign.c test_smoothstep.c test_smoothstepf.c test_sign.c
test_fmax.c test_fmin.c test_fmaxf.c test_fminf.c test_binary_fn.c test_fmax.c test_fmin.c test_fmaxf.c test_fminf.c test_binary_fn.c
../../test_common/harness/errorHelpers.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c ../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c ../../test_common/harness/testHarness.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/kernelHelpers.c
../../test_common/harness/mt19937.c ../../test_common/harness/mt19937.c
../../test_common/harness/conversions.c ../../test_common/harness/conversions.c
../../test_common/harness/msvc9.c ../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX) PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_commonfns TARGET_LINK_LIBRARIES(conformance_test_commonfns
${CLConform_LIBRARIES}) ${CLConform_LIBRARIES})
install(TARGETS conformance_test_commonfns
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -1,36 +1,58 @@
add_executable(conformance_test_compiler add_executable(conformance_test_compiler
main.c main.c
test_build_helpers.c test_build_helpers.c
test_compile.c test_compile.c
test_async_build.c test_compiler_defines_for_extensions.cpp
test_build_options.cpp test_async_build.c
test_preprocessor.c test_build_options.cpp
test_compiler_defines_for_extensions.cpp test_preprocessor.c
../../test_common/harness/errorHelpers.c test_image_macro.c
../../test_common/harness/threadTesting.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/testHarness.c ../../test_common/harness/threadTesting.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/testHarness.c
../../test_common/harness/typeWrappers.cpp ../../test_common/harness/kernelHelpers.c
../../test_common/harness/mt19937.c ../../test_common/harness/typeWrappers.cpp
../../test_common/harness/conversions.c ../../test_common/harness/mt19937.c
../../test_common/harness/msvc9.c ../../test_common/harness/msvc9.c
) ../../test_common/harness/conversions.c
)
set_source_files_properties(
main.c set_source_files_properties(
test_build_helpers.c main.c
test_compile.c test_build_helpers.c
test_async_build.c test_compile.c
test_preprocessor.c test_compiler_defines_for_extensions.cpp
test_compiler_defines_for_extensions.cpp test_async_build.c
../../test_common/harness/errorHelpers.c test_build_options.cpp
../../test_common/harness/threadTesting.c test_preprocessor.c
../../test_common/harness/testHarness.c test_image_macro.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/mt19937.c ../../test_common/harness/threadTesting.c
../../test_common/harness/conversions.c ../../test_common/harness/testHarness.c
../../test_common/harness/msvc9.c ../../test_common/harness/kernelHelpers.c
PROPERTIES LANGUAGE CXX) ../../test_common/harness/typeWrappers.cpp
../../test_common/harness/mt19937.c
TARGET_LINK_LIBRARIES(conformance_test_compiler ../../test_common/harness/msvc9.c
${CLConform_LIBRARIES}) ../../test_common/harness/conversions.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,14 +1,17 @@
add_executable(conformance_computeinfo add_executable(conformance_test_computeinfo
main.c main.c
../../test_common/harness/errorHelpers.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/msvc9.c ../../test_common/harness/msvc9.c
) )
set_source_files_properties( set_source_files_properties(
main.c main.c
../../test_common/harness/errorHelpers.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/msvc9.c ../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX) PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_computeinfo TARGET_LINK_LIBRARIES(conformance_test_computeinfo
${CLConform_LIBRARIES}) ${CLConform_LIBRARIES})
install(TARGETS conformance_test_computeinfo
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -1,25 +1,34 @@
add_executable(conformance_contractions include_directories(../../test_common/harness)
contractions.c
../../test_common/harness/mt19937.c add_executable(conformance_test_contractions
../../test_common/harness/msvc9.c contractions.c
../../test_common/harness/mingw_compat.c ../../test_common/harness/mt19937.c
../../test_common/harness/errorHelpers.c ../../test_common/harness/msvc9.c
../../test_common/harness/rounding_mode.c ../../test_common/harness/mingw_compat.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/errorHelpers.c
) ../../test_common/harness/rounding_mode.c
set_source_files_properties( ../../test_common/harness/kernelHelpers.c
contractions.c )
COMPILE_FLAGS -msse)
if(WIN32) if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" AND NOT MSVC)
set_source_files_properties( set_source_files_properties(
contractions.c contractions.c
../../test_common/harness/msvc9.c COMPILE_FLAGS -msse)
../../test_common/harness/mingw_compat.c endif()
../../test_common/harness/errorHelpers.c
../../test_common/harness/rounding_mode.c if(WIN32)
../../test_common/harness/kernelHelpers.c set_source_files_properties(
PROPERTIES LANGUAGE CXX) contractions.c
endif(WIN32) ../../test_common/harness/msvc9.c
../../test_common/harness/mingw_compat.c
TARGET_LINK_LIBRARIES(conformance_contractions ../../test_common/harness/errorHelpers.c
${CLConform_LIBRARIES}) ../../test_common/harness/rounding_mode.c
../../test_common/harness/kernelHelpers.c
PROPERTIES LANGUAGE CXX)
endif(WIN32)
TARGET_LINK_LIBRARIES(conformance_test_contractions
${CLConform_LIBRARIES})
install(TARGETS conformance_test_contractions
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -1,54 +1,68 @@
# VS2005 AMD64 WAR (basic_test_conversions.c causes internal compiler error) # VS2005 AMD64 WAR (basic_test_conversions.c causes internal compiler error)
if(MSVC) if(MSVC)
set(CMAKE_C_FLAGS_RELEASE "/Od /Ob0") set(CMAKE_C_FLAGS_RELEASE "/Od /Ob0")
set(CMAKE_CXX_FLAGS_RELEASE "/Od /Ob0") set(CMAKE_CXX_FLAGS_RELEASE "/Od /Ob0")
else(MSVC) else(MSVC)
set(CMAKE_C_FLAGS_RELEASE "-O0") set(CMAKE_C_FLAGS_RELEASE "-O0")
set(CMAKE_CXX_FLAGS_RELEASE "-O0") set(CMAKE_CXX_FLAGS_RELEASE "-O0")
endif(MSVC) endif(MSVC)
add_executable(conformance_test_conversions include_directories(../../test_common/harness)
Sleep.c test_conversions.c basic_test_conversions.c
../../test_common/harness/ThreadPool.c add_executable(conformance_test_conversions
../../test_common/harness/rounding_mode.c Sleep.c test_conversions.c basic_test_conversions.c
../../test_common/harness/mt19937.c ../../test_common/harness/ThreadPool.c
../../test_common/harness/msvc9.c ../../test_common/harness/rounding_mode.c
../../test_common/harness/mingw_compat.c ../../test_common/harness/mt19937.c
../../test_common/harness/errorHelpers.c ../../test_common/harness/msvc9.c
) ../../test_common/harness/mingw_compat.c
../../test_common/harness/errorHelpers.c
if(WIN32) )
set_source_files_properties(
Sleep.c test_conversions.c basic_test_conversions.c if(WIN32)
../../test_common/harness/ThreadPool.c set_source_files_properties(
../../test_common/harness/rounding_mode.c Sleep.c test_conversions.c basic_test_conversions.c
../../test_common/harness/mingw_compat.c ../../test_common/harness/ThreadPool.c
../../test_common/harness/msvc9.c ../../test_common/harness/rounding_mode.c
../../test_common/harness/errorHelpers.c ../../test_common/harness/mingw_compat.c
PROPERTIES LANGUAGE CXX) ../../test_common/harness/msvc9.c
endif(WIN32) ../../test_common/harness/errorHelpers.c
PROPERTIES LANGUAGE CXX)
if(NOT CMAKE_CL_64 AND NOT MSVC) endif(WIN32)
# -march is needed for CPU atomics, default arch on gcc is i386
# that does not support atomics. if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)")
set_source_files_properties( if(NOT CMAKE_CL_64 AND NOT MSVC AND NOT ANDROID)
Sleep.c test_conversions.c basic_test_conversions.c # -march is needed for CPU atomics, default arch on gcc is i386
../../test_common/harness/ThreadPool.c # that does not support atomics.
../../test_common/harness/rounding_mode.c set_source_files_properties(
../../test_common/harness/mingw_compat.c Sleep.c test_conversions.c basic_test_conversions.c
../../test_common/harness/msvc9.c ../../test_common/harness/ThreadPool.c
../../test_common/harness/errorHelpers.c ../../test_common/harness/rounding_mode.c
COMPILE_FLAGS -march=i686) ../../test_common/harness/mingw_compat.c
endif(NOT CMAKE_CL_64 AND NOT MSVC) ../../test_common/harness/msvc9.c
../../test_common/harness/errorHelpers.c
set_source_files_properties( COMPILE_FLAGS -march=i686)
Sleep.c test_conversions.c basic_test_conversions.c endif()
COMPILE_FLAGS -std=c99) endif()
set_source_files_properties(
set_source_files_properties( Sleep.c test_conversions.c basic_test_conversions.c
Sleep.c test_conversions.c basic_test_conversions.c COMPILE_FLAGS -std=c99)
COMPILE_FLAGS -msse2)
if(NOT MSVC)
TARGET_LINK_LIBRARIES(conformance_test_conversions if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)")
${CLConform_LIBRARIES}) 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 add_executable(conformance_test_events
main.c main.c
test_events.cpp test_events.cpp
test_event_dependencies.cpp test_event_dependencies.cpp
test_waitlists.cpp test_userevents.cpp
test_userevents.cpp test_waitlists.cpp
test_callbacks.cpp test_callbacks.cpp
test_userevents_multithreaded.cpp action_classes.cpp
action_classes.cpp test_userevents_multithreaded.cpp
../../test_common/harness/genericThread.cpp ../../test_common/harness/errorHelpers.c
../../test_common/harness/errorHelpers.c ../../test_common/harness/threadTesting.c
../../test_common/harness/threadTesting.c ../../test_common/harness/testHarness.c
../../test_common/harness/testHarness.c ../../test_common/harness/genericThread.cpp
../../test_common/harness/kernelHelpers.c ../../test_common/harness/kernelHelpers.c
../../test_common/harness/typeWrappers.cpp ../../test_common/harness/typeWrappers.cpp
../../test_common/harness/mt19937.c ../../test_common/harness/mt19937.c
../../test_common/harness/conversions.c ../../test_common/harness/msvc9.c
../../test_common/harness/msvc9.c ../../test_common/harness/conversions.c
) ../../test_common/harness/ThreadPool.c
)
set_source_files_properties(
main.c set_source_files_properties(
test_userevents.cpp main.c
test_callbacks.cpp test_events.cpp
test_userevents_multithreaded.cpp test_event_dependencies.cpp
action_classes.cpp test_userevents.cpp
../../test_common/harness/genericThread.cpp test_waitlists.cpp
../../test_common/harness/errorHelpers.c test_callbacks.cpp
../../test_common/harness/threadTesting.c action_classes.cpp
../../test_common/harness/testHarness.c test_userevents_multithreaded.cpp
../../test_common/harness/kernelHelpers.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/conversions.c ../../test_common/harness/threadTesting.c
../../test_common/harness/msvc9.c ../../test_common/harness/testHarness.c
PROPERTIES LANGUAGE CXX) ../../test_common/harness/genericThread.cpp
../../test_common/harness/kernelHelpers.c
TARGET_LINK_LIBRARIES(conformance_test_events ../../test_common/harness/typeWrappers.cpp
${CLConform_LIBRARIES}) ../../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_events
${CLConform_LIBRARIES})
install(TARGETS conformance_test_events
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -1,31 +1,34 @@
# VS2005 optimization WAR for geom_length) # VS2005 optimization WAR for geom_length)
if(MSVC) if(MSVC)
set(CMAKE_C_FLAGS_RELEASE "/Od /Ob0") set(CMAKE_C_FLAGS_RELEASE "/Od /Ob0")
set(CMAKE_CXX_FLAGS_RELEASE "/Od /Ob0") set(CMAKE_CXX_FLAGS_RELEASE "/Od /Ob0")
endif(MSVC) endif(MSVC)
add_executable(conformance_test_geometrics add_executable(conformance_test_geometrics
main.c main.c
test_geometrics_double.cpp test_geometrics_double.cpp
test_geometrics.cpp test_geometrics.cpp
../../test_common/harness/errorHelpers.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c ../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c ../../test_common/harness/testHarness.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/kernelHelpers.c
../../test_common/harness/mt19937.c ../../test_common/harness/mt19937.c
../../test_common/harness/conversions.c ../../test_common/harness/conversions.c
../../test_common/harness/msvc9.c ../../test_common/harness/msvc9.c
) )
set_source_files_properties( set_source_files_properties(
main.c main.c
../../test_common/harness/errorHelpers.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c ../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c ../../test_common/harness/testHarness.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/kernelHelpers.c
../../test_common/harness/conversions.c ../../test_common/harness/conversions.c
../../test_common/harness/msvc9.c ../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX) PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_geometrics TARGET_LINK_LIBRARIES(conformance_test_geometrics
${CLConform_LIBRARIES}) ${CLConform_LIBRARIES})
install(TARGETS conformance_test_geometrics
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -1,62 +1,67 @@
if(WIN32) if(WIN32)
list(APPEND CLConform_LIBRARIES glut32 opengl32 glu32 ) list(APPEND CLConform_LIBRARIES glut32 opengl32 glu32 )
else(WIN32) else(WIN32)
list(APPEND CLConform_LIBRARIES GL glut GLEW GLU) list(APPEND CLConform_LIBRARIES GL glut GLEW GLU)
endif(WIN32) endif(WIN32)
set (GL_SOURCES set (GL_SOURCES
main.cpp main.cpp
test_buffers.cpp helpers.cpp
test_images_2D.cpp test_buffers.cpp
test_images_3D.cpp test_fence_sync.cpp
test_renderbuffer.cpp test_images_1D.cpp
test_images_2D_info.cpp test_images_1Darray.cpp
test_images_3D_info.cpp test_images_2Darray.cpp
test_renderbuffer_info.cpp test_images_2D.cpp
test_fence_sync.cpp test_images_3D.cpp
helpers.cpp test_images_getinfo_common.cpp
../../test_common/gl/helpers.cpp test_images_read_common.cpp
../../test_common/harness/genericThread.cpp test_images_write_common.cpp
../../test_common/harness/errorHelpers.c test_renderbuffer.cpp
../../test_common/harness/threadTesting.c test_renderbuffer_info.cpp
../../test_common/harness/testHarness.c ../images/image_helpers.cpp
../../test_common/harness/kernelHelpers.c ../../test_common/gl/helpers.cpp
../../test_common/harness/mt19937.c ../../test_common/harness/conversions.c
../../test_common/harness/conversions.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/msvc9.c ../../test_common/harness/genericThread.cpp
) ../../test_common/harness/imageHelpers.cpp
../../test_common/harness/kernelHelpers.c
if (WIN32) ../../test_common/harness/mt19937.c
list (APPEND GL_SOURCES ../../test_common/gl/setup_win32.cpp) ../../test_common/harness/testHarness.c
else(WIN32) ../../test_common/harness/threadTesting.c
list (APPEND GL_SOURCES ../../test_common/gl/setup_x11.cpp) )
endif(WIN32)
if (WIN32)
# Compiling GLEW along with the project if the compiler is MINGW. list (APPEND GL_SOURCES ../../test_common/gl/setup_win32.cpp)
# The mingw linker was giving weird errors while linking to glew32.lib generated by else(WIN32)
# MSVC. list (APPEND GL_SOURCES ../../test_common/gl/setup_x11.cpp)
if(MINGW) endif(WIN32)
list (APPEND GL_SOURCES GLEW/glew.c)
set_source_files_properties( # Compiling GLEW along with the project if the compiler is MINGW.
${GL_SOURCES} # The mingw linker was giving weird errors while linking to glew32.lib generated by
COMPILE_FLAGS -DGLEW_STATIC) # MSVC.
include_directories("./GLEW/") if(MINGW)
endif(MINGW) list (APPEND GL_SOURCES GLEW/glew.c)
set_source_files_properties(
if (MSVC) ${GL_SOURCES}
if(CMAKE_CL_64) COMPILE_FLAGS -DGLEW_STATIC)
list(APPEND CLConform_LIBRARIES glew64) include_directories("./GLEW/")
else(CMAKE_CL_64) endif(MINGW)
list(APPEND CLConform_LIBRARIES glew32)
endif(CMAKE_CL_64) if (MSVC)
endif(MSVC) if(CMAKE_CL_64)
list(APPEND CLConform_LIBRARIES glew64)
add_executable(conformance_test_gl else(CMAKE_CL_64)
${GL_SOURCES} ${GLUT_SOURCES}) list(APPEND CLConform_LIBRARIES glew32)
endif(CMAKE_CL_64)
set_source_files_properties( endif(MSVC)
${GL_SOURCES}
PROPERTIES LANGUAGE CXX) add_executable(conformance_test_gl
${GL_SOURCES} ${GLUT_SOURCES})
TARGET_LINK_LIBRARIES(conformance_test_gl
${CLConform_LIBRARIES}) set_source_files_properties(
${GL_SOURCES}
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_gl
${CLConform_LIBRARIES})

View File

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

View File

@@ -1,37 +1,76 @@
add_executable(conformance_test_headers add_executable(conformance_test_headers
test_headers.c test_headers.c
) )
add_executable(conformance_test_cl_h add_executable(conformance_test_cl_h
test_cl.h.c test_cl.h.c
) )
add_executable(conformance_test_cl_platform_h add_executable(conformance_test_cl_platform_h
test_cl_platform.h.c test_cl_platform.h.c
) )
add_executable(conformance_test_cl_gl_h add_executable(conformance_test_cl_gl_h
test_cl_gl.h.c test_cl_gl.h.c
) )
add_executable(conformance_test_opencl_h add_executable(conformance_test_opencl_h
test_opencl.h.c test_opencl.h.c
) )
set(CMAKE_C_FLAGS "" ) add_executable(conformance_test_cl_h_c99
set(CMAKE_CXX_FLAGS "" ) test_cl.h.c
)
TARGET_LINK_LIBRARIES(conformance_test_headers
${CLConform_LIBRARIES}) add_executable(conformance_test_cl_platform_h_c99
test_cl_platform.h.c
TARGET_LINK_LIBRARIES(conformance_test_cl_h )
${CLConform_LIBRARIES})
add_executable(conformance_test_cl_gl_h_c99
TARGET_LINK_LIBRARIES(conformance_test_cl_platform_h test_cl_gl.h.c
${CLConform_LIBRARIES}) )
TARGET_LINK_LIBRARIES(conformance_test_cl_gl_h add_executable(conformance_test_opencl_h_c99
${CLConform_LIBRARIES}) test_opencl.h.c
)
TARGET_LINK_LIBRARIES(conformance_test_opencl_h
${CLConform_LIBRARIES}) 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})
TARGET_LINK_LIBRARIES(conformance_test_cl_h
${CLConform_LIBRARIES})
TARGET_LINK_LIBRARIES(conformance_test_cl_platform_h
${CLConform_LIBRARIES})
TARGET_LINK_LIBRARIES(conformance_test_cl_gl_h
${CLConform_LIBRARIES})
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 add_executable(conformance_test_cl_copy_images
main.cpp main.cpp
test_copy_2D.cpp test_copy_generic.cpp
../image_helpers.cpp test_copy_1D.cpp
test_loops.cpp test_copy_2D.cpp
test_copy_3D.cpp ../image_helpers.cpp
test_copy_2D_3D.cpp test_loops.cpp
../../../test_common/harness/testHarness.c test_copy_3D.cpp
../../../test_common/harness/errorHelpers.c test_copy_1D_array.cpp
../../../test_common/harness/threadTesting.c test_copy_2D_array.cpp
../../../test_common/harness/kernelHelpers.c test_copy_2D_3D.cpp
../../../test_common/harness/imageHelpers.cpp test_copy_2D_2D_array.cpp
../../../test_common/harness/mt19937.c test_copy_3D_2D_array.cpp
../../../test_common/harness/conversions.c ../../../test_common/harness/errorHelpers.c
../../../test_common/harness/typeWrappers.cpp ../../../test_common/harness/threadTesting.c
../../../test_common/harness/msvc9.c) ../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
set_source_files_properties( ../../../test_common/harness/conversions.c
main.cpp ../../../test_common/harness/testHarness.c
test_copy_2D.cpp ../../../test_common/harness/typeWrappers.cpp
../image_helpers.cpp ../../../test_common/harness/mt19937.c
test_loops.cpp ../../../test_common/harness/msvc9.c)
test_copy_3D.cpp
test_copy_2D_3D.cpp set_source_files_properties(
../../../test_common/harness/testHarness.c main.cpp
../../../test_common/harness/errorHelpers.c test_copy_generic.cpp
../../../test_common/harness/threadTesting.c test_copy_1D.cpp
../../../test_common/harness/kernelHelpers.c test_copy_2D.cpp
../../../test_common/harness/imageHelpers.cpp ../image_helpers.cpp
../../../test_common/harness/conversions.c test_loops.cpp
../../../test_common/harness/typeWrappers.cpp test_copy_3D.cpp
../../../test_common/harness/msvc9.c test_copy_1D_array.cpp
PROPERTIES LANGUAGE CXX) test_copy_2D_array.cpp
test_copy_2D_3D.cpp
TARGET_LINK_LIBRARIES(conformance_test_cl_copy_images test_copy_2D_2D_array.cpp
${CLConform_LIBRARIES}) 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 add_executable(conformance_test_cl_fill_images
main.cpp main.cpp
test_fill_2D.cpp test_fill_generic.cpp
../image_helpers.cpp test_fill_1D.cpp
test_loops.cpp test_fill_2D.cpp
test_fill_3D.cpp test_fill_3D.cpp
test_fill_2D_3D.cpp test_fill_1D_array.cpp
../../../test_common/harness/testHarness.c test_fill_2D_array.cpp
../../../test_common/harness/errorHelpers.c test_loops.cpp
../../../test_common/harness/threadTesting.c ../image_helpers.cpp
../../../test_common/harness/kernelHelpers.c ../../../test_common/harness/errorHelpers.c
../../../test_common/harness/imageHelpers.cpp ../../../test_common/harness/threadTesting.c
../../../test_common/harness/mt19937.c ../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/conversions.c ../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/typeWrappers.cpp ../../../test_common/harness/conversions.c
../../../test_common/harness/msvc9.c) ../../../test_common/harness/testHarness.c
../../../test_common/harness/typeWrappers.cpp
set_source_files_properties( ../../../test_common/harness/mt19937.c
main.cpp ../../../test_common/harness/msvc9.c)
test_fill_2D.cpp
../image_helpers.cpp set_source_files_properties(
test_loops.cpp main.cpp
test_fill_3D.cpp test_fill_generic.cpp
test_fill_2D_3D.cpp test_fill_1D.cpp
../../../test_common/harness/testHarness.c test_fill_2D.cpp
../../../test_common/harness/errorHelpers.c test_fill_3D.cpp
../../../test_common/harness/threadTesting.c test_fill_1D_array.cpp
../../../test_common/harness/kernelHelpers.c test_fill_2D_array.cpp
../../../test_common/harness/imageHelpers.cpp test_loops.cpp
../../../test_common/harness/conversions.c ../image_helpers.cpp
../../../test_common/harness/typeWrappers.cpp ../../../test_common/harness/errorHelpers.c
../../../test_common/harness/msvc9.c ../../../test_common/harness/threadTesting.c
PROPERTIES LANGUAGE CXX) ../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
TARGET_LINK_LIBRARIES(conformance_test_cl_fill_images ../../../test_common/harness/conversions.c
${CLConform_LIBRARIES}) ../../../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 add_executable(conformance_test_cl_get_info
main.cpp main.cpp
test_2D.cpp test_1D.cpp
../image_helpers.cpp test_2D.cpp
test_loops.cpp test_1D_2D_array.cpp
test_3D.cpp ../image_helpers.cpp
../../../test_common/harness/errorHelpers.c test_loops.cpp
../../../test_common/harness/threadTesting.c test_3D.cpp
../../../test_common/harness/kernelHelpers.c ../../../test_common/harness/errorHelpers.c
../../../test_common/harness/imageHelpers.cpp ../../../test_common/harness/threadTesting.c
../../../test_common/harness/mt19937.c ../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/conversions.c ../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/testHarness.c ../../../test_common/harness/conversions.c
../../../test_common/harness/typeWrappers.cpp ../../../test_common/harness/testHarness.c
../../../test_common/harness/msvc9.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 set_source_files_properties(
../image_helpers.cpp main.cpp
test_loops.cpp test_1D.cpp
test_3D.cpp test_2D.cpp
../../../test_common/harness/errorHelpers.c test_1D_2D_array.cpp
../../../test_common/harness/threadTesting.c ../image_helpers.cpp
../../../test_common/harness/kernelHelpers.c test_loops.cpp
../../../test_common/harness/imageHelpers.cpp test_3D.cpp
../../../test_common/harness/conversions.c ../../../test_common/harness/errorHelpers.c
../../../test_common/harness/testHarness.c ../../../test_common/harness/threadTesting.c
../../../test_common/harness/typeWrappers.cpp ../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/msvc9.c ../../../test_common/harness/imageHelpers.cpp
PROPERTIES LANGUAGE CXX) ../../../test_common/harness/conversions.c
../../../test_common/harness/testHarness.c
TARGET_LINK_LIBRARIES(conformance_test_cl_get_info ../../../test_common/harness/mt19937.c
${CLConform_LIBRARIES}) ../../../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 add_executable(conformance_test_cl_read_write_images
main.cpp main.cpp
test_read_2D.cpp test_read_1D.cpp
../image_helpers.cpp test_read_1D_array.cpp
test_loops.cpp test_read_2D.cpp
test_read_3D.cpp test_read_2D_array.cpp
../../../test_common/harness/errorHelpers.c ../image_helpers.cpp
../../../test_common/harness/threadTesting.c test_loops.cpp
../../../test_common/harness/kernelHelpers.c test_read_3D.cpp
../../../test_common/harness/imageHelpers.cpp ../../../test_common/harness/errorHelpers.c
../../../test_common/harness/mt19937.c ../../../test_common/harness/threadTesting.c
../../../test_common/harness/conversions.c ../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/testHarness.c ../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/typeWrappers.cpp ../../../test_common/harness/conversions.c
../../../test_common/harness/msvc9.c ../../../test_common/harness/testHarness.c
) ../../../test_common/harness/mt19937.c
../../../test_common/harness/msvc9.c
set_source_files_properties( ../../../test_common/harness/typeWrappers.cpp
main.cpp )
test_read_2D.cpp
../image_helpers.cpp set_source_files_properties(
test_loops.cpp main.cpp
test_read_3D.cpp test_read_1D.cpp
../../../test_common/harness/errorHelpers.c test_read_1D_array.cpp
../../../test_common/harness/threadTesting.c test_read_2D.cpp
../../../test_common/harness/kernelHelpers.c test_read_2D_array.cpp
../../../test_common/harness/imageHelpers.cpp ../image_helpers.cpp
../../../test_common/harness/conversions.c test_loops.cpp
../../../test_common/harness/testHarness.c test_read_3D.cpp
../../../test_common/harness/typeWrappers.cpp ../../../test_common/harness/errorHelpers.c
../../../test_common/harness/msvc9.c ../../../test_common/harness/threadTesting.c
PROPERTIES LANGUAGE CXX) ../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
TARGET_LINK_LIBRARIES(conformance_test_cl_read_write_images ../../../test_common/harness/conversions.c
${CLConform_LIBRARIES}) ../../../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 add_executable(conformance_test_kernel_image_methods
main.cpp main.cpp
test_2D.cpp test_1D.cpp
../image_helpers.cpp test_1D_array.cpp
test_loops.cpp test_2D.cpp
test_3D.cpp test_2D_array.cpp
../../../test_common/harness/errorHelpers.c ../image_helpers.cpp
../../../test_common/harness/threadTesting.c test_loops.cpp
../../../test_common/harness/kernelHelpers.c test_3D.cpp
../../../test_common/harness/imageHelpers.cpp ../../../test_common/harness/errorHelpers.c
../../../test_common/harness/mt19937.c ../../../test_common/harness/threadTesting.c
../../../test_common/harness/conversions.c ../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/testHarness.c ../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/typeWrappers.cpp ../../../test_common/harness/conversions.c
../../../test_common/harness/msvc9.c ../../../test_common/harness/testHarness.c
) ../../../test_common/harness/mt19937.c
../../../test_common/harness/msvc9.c
set_source_files_properties( ../../../test_common/harness/typeWrappers.cpp
main.cpp )
test_2D.cpp
../image_helpers.cpp set_source_files_properties(
test_loops.cpp main.cpp
test_3D.cpp test_1D.cpp
../../../test_common/harness/errorHelpers.c test_1D_array.cpp
../../../test_common/harness/threadTesting.c test_2D.cpp
../../../test_common/harness/kernelHelpers.c test_2D_array.cpp
../../../test_common/harness/imageHelpers.cpp ../image_helpers.cpp
../../../test_common/harness/conversions.c test_loops.cpp
../../../test_common/harness/testHarness.c test_3D.cpp
../../../test_common/harness/typeWrappers.cpp ../../../test_common/harness/errorHelpers.c
../../../test_common/harness/msvc9.c ../../../test_common/harness/threadTesting.c
PROPERTIES LANGUAGE CXX) ../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/imageHelpers.cpp
TARGET_LINK_LIBRARIES(conformance_test_kernel_image_methods ../../../test_common/harness/conversions.c
${CLConform_LIBRARIES}) ../../../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 add_executable(conformance_test_image_streams
main.cpp main.cpp
test_iterations.cpp test_iterations.cpp
../image_helpers.cpp ../image_helpers.cpp
test_loops.cpp test_loops.cpp
test_write_image.cpp test_write_image.cpp
test_read_3D.cpp test_read_1D.cpp
test_write_3D.cpp test_read_3D.cpp
../../../test_common/harness/errorHelpers.c test_read_1D_array.cpp
../../../test_common/harness/threadTesting.c test_read_2D_array.cpp
../../../test_common/harness/kernelHelpers.c test_write_1D.cpp
../../../test_common/harness/imageHelpers.cpp test_write_3D.cpp
../../../test_common/harness/mt19937.c test_write_1D_array.cpp
../../../test_common/harness/conversions.c test_write_2D_array.cpp
../../../test_common/harness/testHarness.c ../../../test_common/harness/errorHelpers.c
../../../test_common/harness/typeWrappers.cpp ../../../test_common/harness/threadTesting.c
../../../test_common/harness/msvc9.c ../../../test_common/harness/kernelHelpers.c
) ../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/conversions.c
set_source_files_properties( ../../../test_common/harness/testHarness.c
main.cpp ../../../test_common/harness/mt19937.c
test_iterations.cpp ../../../test_common/harness/msvc9.c
../image_helpers.cpp ../../../test_common/harness/typeWrappers.cpp
test_loops.cpp )
test_write_image.cpp
test_read_3D.cpp set_source_files_properties(
test_write_3D.cpp main.cpp
../../../test_common/harness/errorHelpers.c test_iterations.cpp
../../../test_common/harness/threadTesting.c ../image_helpers.cpp
../../../test_common/harness/kernelHelpers.c test_loops.cpp
../../../test_common/harness/imageHelpers.cpp test_write_image.cpp
../../../test_common/harness/conversions.c test_read_1D.cpp
../../../test_common/harness/testHarness.c test_read_3D.cpp
../../../test_common/harness/typeWrappers.cpp test_read_1D_array.cpp
../../../test_common/harness/msvc9.c test_read_2D_array.cpp
PROPERTIES LANGUAGE CXX) test_write_1D.cpp
test_write_3D.cpp
TARGET_LINK_LIBRARIES(conformance_test_image_streams test_write_1D_array.cpp
${CLConform_LIBRARIES}) 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 add_executable(conformance_test_samplerless_reads
main.cpp main.cpp
test_iterations.cpp test_iterations.cpp
test_loops.cpp test_loops.cpp
test_read_3D.cpp test_read_1D.cpp
../image_helpers.cpp test_read_1D_buffer.cpp
../../../test_common/harness/errorHelpers.c test_read_1D_array.cpp
../../../test_common/harness/threadTesting.c test_read_2D_array.cpp
../../../test_common/harness/kernelHelpers.c test_read_3D.cpp
../../../test_common/harness/imageHelpers.cpp ../image_helpers.cpp
../../../test_common/harness/mt19937.c ../../../test_common/harness/errorHelpers.c
../../../test_common/harness/conversions.c ../../../test_common/harness/threadTesting.c
../../../test_common/harness/testHarness.c ../../../test_common/harness/kernelHelpers.c
../../../test_common/harness/typeWrappers.cpp ../../../test_common/harness/imageHelpers.cpp
../../../test_common/harness/msvc9.c ../../../test_common/harness/conversions.c
) ../../../test_common/harness/testHarness.c
../../../test_common/harness/mt19937.c
set_source_files_properties( ../../../test_common/harness/msvc9.c
main.cpp ../../../test_common/harness/typeWrappers.cpp
test_iterations.cpp )
test_loops.cpp
test_read_3D.cpp set_source_files_properties(
../image_helpers.cpp main.cpp
../../../test_common/harness/errorHelpers.c test_iterations.cpp
../../../test_common/harness/threadTesting.c test_loops.cpp
../../../test_common/harness/kernelHelpers.c test_read_1D.cpp
../../../test_common/harness/imageHelpers.cpp test_read_1D_buffer.cpp
../../../test_common/harness/conversions.c test_read_1D_array.cpp
../../../test_common/harness/testHarness.c test_read_2D_array.cpp
../../../test_common/harness/typeWrappers.cpp test_read_3D.cpp
../../../test_common/harness/msvc9.c ../image_helpers.cpp
PROPERTIES LANGUAGE CXX) ../../../test_common/harness/errorHelpers.c
../../../test_common/harness/threadTesting.c
TARGET_LINK_LIBRARIES(conformance_test_samplerless_reads ../../../test_common/harness/kernelHelpers.c
${CLConform_LIBRARIES}) ../../../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 add_executable(conformance_test_integer_ops
main.c main.c
test_int_basic_ops.c test_popcount.c
test_integers.cpp test_int_basic_ops.c
test_upsample.cpp test_integers.cpp
test_intmul24.c test_intmad24.c test_upsample.cpp
test_sub_sat.c test_add_sat.c test_intmul24.c test_intmad24.c
test_abs.c test_absdiff.c test_sub_sat.c test_add_sat.c
test_unary_ops.cpp test_abs.c test_absdiff.c
verification_and_generation_functions.c test_unary_ops.cpp
../../test_common/harness/ThreadPool.c verification_and_generation_functions.c
../../test_common/harness/mt19937.c ../../test_common/harness/conversions.c
../../test_common/harness/conversions.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/errorHelpers.c ../../test_common/harness/threadTesting.c
../../test_common/harness/threadTesting.c ../../test_common/harness/testHarness.c
../../test_common/harness/testHarness.c ../../test_common/harness/mt19937.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/msvc9.c
../../test_common/harness/msvc9.c ../../test_common/harness/ThreadPool.c
) ../../test_common/harness/kernelHelpers.c
)
set_source_files_properties(
main.c set_source_files_properties(
test_int_basic_ops.c main.c
test_intmul24.c test_intmad24.c test_popcount.c
test_sub_sat.c test_add_sat.c test_int_basic_ops.c
test_abs.c test_absdiff.c test_integers.cpp
test_unary_ops.cpp test_upsample.cpp
verification_and_generation_functions.c test_intmul24.c test_intmad24.c
../../test_common/harness/ThreadPool.c test_sub_sat.c test_add_sat.c
../../test_common/harness/conversions.c test_abs.c test_absdiff.c
../../test_common/harness/errorHelpers.c test_unary_ops.cpp
../../test_common/harness/threadTesting.c verification_and_generation_functions.c
../../test_common/harness/testHarness.c ../../test_common/harness/conversions.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/msvc9.c ../../test_common/harness/threadTesting.c
PROPERTIES LANGUAGE CXX) ../../test_common/harness/testHarness.c
if (NOT CMAKE_CL_64 AND NOT MSVC) ../../test_common/harness/mt19937.c
set_source_files_properties( ../../test_common/harness/msvc9.c
main.c ../../test_common/harness/ThreadPool.c
test_int_basic_ops.c ../../test_common/harness/kernelHelpers.c
test_intmul24.c test_intmad24.c PROPERTIES LANGUAGE CXX)
test_sub_sat.c test_add_sat.c
test_abs.c test_absdiff.c if (NOT CMAKE_CL_64 AND NOT MSVC)
test_unary_ops.cpp if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)" AND NOT MSVC)
verification_and_generation_functions.c set_source_files_properties(
../../test_common/harness/ThreadPool.c main.c
../../test_common/harness/conversions.c test_popcount.c
../../test_common/harness/errorHelpers.c test_int_basic_ops.c
../../test_common/harness/threadTesting.c test_integers.cpp
../../test_common/harness/testHarness.c test_upsample.cpp
../../test_common/harness/kernelHelpers.c test_intmul24.c test_intmad24.c
../../test_common/harness/msvc9.c test_sub_sat.c test_add_sat.c
COMPILE_FLAGS -march=i686) test_abs.c test_absdiff.c
endif (NOT CMAKE_CL_64 AND NOT MSVC) test_unary_ops.cpp
verification_and_generation_functions.c
TARGET_LINK_LIBRARIES(conformance_test_integer_ops ../../test_common/harness/conversions.c
${CLConform_LIBRARIES}) ../../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
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,76 +1,76 @@
add_executable(conformance_bruteforce add_executable(conformance_test_bruteforce
FunctionList.c FunctionList.c
Sleep.c Sleep.c
binary.c binary.c
binaryOperator.c binaryOperator.c
Utility.c Utility.c
binary_i.c binary_two_results_i.c i_unary.c binary_i.c binary_two_results_i.c i_unary.c
macro_binary.c macro_unary.c mad.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 ternary.c unary.c unary_two_results.c
unary_two_results_i.c unary_u.c unary_two_results_i.c unary_u.c
../../test_common/harness/rounding_mode.c ../../test_common/harness/rounding_mode.c
../../test_common/harness/ThreadPool.c ../../test_common/harness/ThreadPool.c
../../test_common/harness/mt19937.c ../../test_common/harness/mt19937.c
../../test_common/harness/msvc9.c ../../test_common/harness/msvc9.c
) )
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" AND NOT MSVC)
set_source_files_properties( set_source_files_properties(
FunctionList.c FunctionList.c
Sleep.c Sleep.c
binary.c binary.c
binaryOperator.c binaryOperator.c
Utility.c Utility.c
binary_i.c binary_two_results_i.c i_unary.c binary_i.c binary_two_results_i.c i_unary.c
macro_binary.c macro_unary.c mad.c macro_binary.c macro_unary.c mad.c
main.c reference_math.c main.c reference_math.c
ternary.c unary.c unary_two_results.c ternary.c unary.c unary_two_results.c
unary_two_results_i.c unary_u.c unary_two_results_i.c unary_u.c
COMPILE_FLAGS -msse2) COMPILE_FLAGS -msse2)
endif()
if (MSVC)
set_source_files_properties( if (MSVC)
FunctionList.c set_source_files_properties(
Sleep.c FunctionList.c
binary.c Sleep.c
binaryOperator.c binary.c
Utility.c reference_math_fma.c binaryOperator.c
binary_i.c binary_two_results_i.c i_unary.c Utility.c
macro_binary.c macro_unary.c mad.c binary_i.c binary_two_results_i.c i_unary.c
main.c reference_math.c macro_binary.c macro_unary.c mad.c
ternary.c unary.c unary_two_results.c main.c reference_math.c
unary_two_results_i.c unary_u.c ternary.c unary.c unary_two_results.c
../../test_common/harness/rounding_mode.c unary_two_results_i.c unary_u.c
../../test_common/harness/ThreadPool.c ../../test_common/harness/rounding_mode.c
../../test_common/harness/msvc9.c ../../test_common/harness/ThreadPool.c
PROPERTIES LANGUAGE CXX) ../../test_common/harness/msvc9.c
endif(MSVC) PROPERTIES LANGUAGE CXX)
endif(MSVC)
if (NOT CMAKE_CL_64 AND NOT MSVC)
set_source_files_properties( if (NOT CMAKE_CL_64 AND NOT MSVC)
FunctionList.c if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)" AND NOT MSVC)
Sleep.c set_source_files_properties(
binary.c FunctionList.c
binaryOperator.c Sleep.c
Utility.c reference_math_fma.c binary.c
binary_i.c binary_two_results_i.c i_unary.c binaryOperator.c
macro_binary.c macro_unary.c mad.c Utility.c
main.c reference_math.c binary_i.c binary_two_results_i.c i_unary.c
ternary.c unary.c unary_two_results.c macro_binary.c macro_unary.c mad.c
unary_two_results_i.c unary_u.c main.c reference_math.c
../../test_common/harness/rounding_mode.c ternary.c unary.c unary_two_results.c
../../test_common/harness/ThreadPool.c unary_two_results_i.c unary_u.c
../../test_common/harness/msvc9.c ../../test_common/harness/rounding_mode.c
COMPILE_FLAGS -march=i686) ../../test_common/harness/ThreadPool.c
endif(NOT CMAKE_CL_64 AND NOT MSVC) ../../test_common/harness/msvc9.c
COMPILE_FLAGS -march=i686)
if(CMAKE_COMPILER_IS_GNUCC) endif()
set_source_files_properties( endif(NOT CMAKE_CL_64 AND NOT MSVC)
reference_math_fma.c
COMPILE_FLAGS -O0) TARGET_LINK_LIBRARIES(conformance_test_bruteforce
endif(CMAKE_COMPILER_IS_GNUCC) ${CLConform_LIBRARIES})
TARGET_LINK_LIBRARIES(conformance_bruteforce install(TARGETS conformance_test_bruteforce
${CLConform_LIBRARIES}) 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

@@ -1,32 +1,36 @@
add_executable(conformance_test_multiples add_executable(conformance_test_multiples
main.c main.c
test_multiple_contexts.c test_multiple_contexts.c
test_multiple_devices.cpp test_multiple_devices.cpp
../../test_common/harness/errorHelpers.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c ../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c ../../test_common/harness/testHarness.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/kernelHelpers.c
../../test_common/harness/genericThread.cpp ../../test_common/harness/genericThread.cpp
../../test_common/harness/typeWrappers.cpp ../../test_common/harness/typeWrappers.cpp
../../test_common/harness/conversions.c ../../test_common/harness/conversions.c
../../test_common/harness/mt19937.c ../../test_common/harness/mt19937.c
../../test_common/harness/msvc9.c ../../test_common/harness/msvc9.c
) )
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" AND NOT MSVC)
set_source_files_properties( set_source_files_properties(
COMPILE_FLAGS -msse2) COMPILE_FLAGS -msse2)
endif()
set_source_files_properties(
main.c set_source_files_properties(
test_multiple_contexts.c main.c
../../test_common/harness/errorHelpers.c test_multiple_contexts.c
../../test_common/harness/threadTesting.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/testHarness.c ../../test_common/harness/threadTesting.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/testHarness.c
../../test_common/harness/conversions.c ../../test_common/harness/kernelHelpers.c
../../test_common/harness/msvc9.c ../../test_common/harness/conversions.c
PROPERTIES LANGUAGE CXX) ../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_multiples
${CLConform_LIBRARIES}) 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

@@ -1,29 +1,33 @@
add_executable(conformance_test_profiling add_executable(conformance_test_profiling
main.c readArray.c writeArray.c readImage.c writeImage.c copy.c main.c readArray.c writeArray.c readImage.c writeImage.c copy.c
execute.c execute_multipass.c execute.c execute_multipass.c
../../test_common/harness/testHarness.c ../../test_common/harness/testHarness.c
../../test_common/harness/errorHelpers.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/typeWrappers.cpp ../../test_common/harness/typeWrappers.cpp
../../test_common/harness/imageHelpers.cpp ../../test_common/harness/imageHelpers.cpp
../../test_common/harness/kernelHelpers.c ../../test_common/harness/kernelHelpers.c
../../test_common/harness/mt19937.c ../../test_common/harness/mt19937.c
../../test_common/harness/conversions.c ../../test_common/harness/conversions.c
../../test_common/harness/msvc9.c ../../test_common/harness/msvc9.c
) )
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" AND NOT MSVC)
set_source_files_properties( set_source_files_properties(
COMPILE_FLAGS -msse2) COMPILE_FLAGS -msse2)
endif()
set_source_files_properties(
main.c readArray.c writeArray.c readImage.c writeImage.c copy.c set_source_files_properties(
execute.c execute_multipass.c main.c readArray.c writeArray.c readImage.c writeImage.c copy.c
../../test_common/harness/testHarness.c execute.c execute_multipass.c
../../test_common/harness/errorHelpers.c ../../test_common/harness/testHarness.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/conversions.c ../../test_common/harness/kernelHelpers.c
../../test_common/harness/msvc9.c ../../test_common/harness/conversions.c
PROPERTIES LANGUAGE CXX) ../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_profiling
${CLConform_LIBRARIES}) TARGET_LINK_LIBRARIES(conformance_test_profiling
${CLConform_LIBRARIES})
install(TARGETS conformance_test_profiling
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -1,35 +1,39 @@
add_executable(conformance_test_relationals add_executable(conformance_test_relationals
main.c main.c
test_relationals.cpp test_relationals.cpp
test_comparisons_float.cpp test_comparisons_float.cpp
test_comparisons_double.cpp test_comparisons_double.cpp
test_shuffles.cpp test_shuffles.cpp
../../test_common/harness/errorHelpers.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c ../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c ../../test_common/harness/testHarness.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/kernelHelpers.c
../../test_common/harness/mt19937.c ../../test_common/harness/mt19937.c
../../test_common/harness/conversions.c ../../test_common/harness/conversions.c
../../test_common/harness/msvc9.c ../../test_common/harness/msvc9.c
) )
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" AND NOT MSVC)
set_source_files_properties( set_source_files_properties(
COMPILE_FLAGS -msse2) COMPILE_FLAGS -msse2)
endif()
set_source_files_properties(
main.c set_source_files_properties(
test_relationals.cpp main.c
test_comparisons_float.cpp test_relationals.cpp
test_comparisons_double.cpp test_comparisons_float.cpp
test_shuffles.cpp test_comparisons_double.cpp
../../test_common/harness/errorHelpers.c test_shuffles.cpp
../../test_common/harness/threadTesting.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/testHarness.c ../../test_common/harness/threadTesting.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/testHarness.c
../../test_common/harness/conversions.c ../../test_common/harness/kernelHelpers.c
../../test_common/harness/msvc9.c ../../test_common/harness/conversions.c
PROPERTIES LANGUAGE CXX) ../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_relationals
${CLConform_LIBRARIES}) TARGET_LINK_LIBRARIES(conformance_test_relationals
${CLConform_LIBRARIES})
install(TARGETS conformance_test_relationals
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -1,25 +1,29 @@
add_executable(conformance_test_select add_executable(conformance_test_select
test_select.c test_select.c
util_select.c util_select.c
../../test_common/harness/mt19937.c ../../test_common/harness/mt19937.c
../../test_common/harness/msvc9.c ../../test_common/harness/msvc9.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/kernelHelpers.c
../../test_common/harness/errorHelpers.c ../../test_common/harness/errorHelpers.c
) )
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" AND NOT MSVC)
set_source_files_properties( set_source_files_properties(
COMPILE_FLAGS -msse2) COMPILE_FLAGS -msse2)
endif()
if(WIN32)
set_source_files_properties( if(WIN32)
test_select.c set_source_files_properties(
util_select.c test_select.c
../../test_common/harness/msvc9.c util_select.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/msvc9.c
../../test_common/harness/errorHelpers.c ../../test_common/harness/kernelHelpers.c
PROPERTIES LANGUAGE CXX) ../../test_common/harness/errorHelpers.c
endif(WIN32) PROPERTIES LANGUAGE CXX)
endif(WIN32)
TARGET_LINK_LIBRARIES(conformance_test_select
${CLConform_LIBRARIES}) 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

@@ -1,30 +1,34 @@
add_executable(conformance_test_thread_dimensions add_executable(conformance_test_thread_dimensions
main.c main.c
test_thread_dimensions.c test_thread_dimensions.c
../../test_common/harness/errorHelpers.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/threadTesting.c ../../test_common/harness/threadTesting.c
../../test_common/harness/testHarness.c ../../test_common/harness/testHarness.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/kernelHelpers.c
../../test_common/harness/typeWrappers.cpp ../../test_common/harness/typeWrappers.cpp
../../test_common/harness/mt19937.c ../../test_common/harness/mt19937.c
../../test_common/harness/conversions.c ../../test_common/harness/conversions.c
../../test_common/harness/msvc9.c ../../test_common/harness/msvc9.c
) )
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" AND NOT MSVC)
set_source_files_properties( set_source_files_properties(
COMPILE_FLAGS -msse2) COMPILE_FLAGS -msse2)
endif()
set_source_files_properties(
main.c set_source_files_properties(
test_thread_dimensions.c main.c
../../test_common/harness/errorHelpers.c test_thread_dimensions.c
../../test_common/harness/threadTesting.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/testHarness.c ../../test_common/harness/threadTesting.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/testHarness.c
../../test_common/harness/conversions.c ../../test_common/harness/kernelHelpers.c
../../test_common/harness/msvc9.c ../../test_common/harness/conversions.c
PROPERTIES LANGUAGE CXX) ../../test_common/harness/msvc9.c
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_thread_dimensions
${CLConform_LIBRARIES}) TARGET_LINK_LIBRARIES(conformance_test_thread_dimensions
${CLConform_LIBRARIES})
install(TARGETS conformance_test_thread_dimensions
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -1,33 +1,37 @@
add_executable(conformance_test_vecalign add_executable(conformance_test_vecalign
globals.c globals.c
main.c main.c
structs.c structs.c
test_vec_align.c test_vec_align.c
type_replacer.c type_replacer.c
../../test_common/harness/testHarness.c ../../test_common/harness/testHarness.c
../../test_common/harness/mt19937.c ../../test_common/harness/mt19937.c
../../test_common/harness/msvc9.c ../../test_common/harness/msvc9.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/kernelHelpers.c
../../test_common/harness/errorHelpers.c ../../test_common/harness/errorHelpers.c
../../test_common/harness/conversions.c ../../test_common/harness/conversions.c
) )
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" AND NOT MSVC)
set_source_files_properties( set_source_files_properties(
COMPILE_FLAGS -msse2) COMPILE_FLAGS -msse2)
endif()
set_source_files_properties(
globals.c set_source_files_properties(
main.c globals.c
structs.c main.c
test_vec_align.c structs.c
type_replacer.c test_vec_align.c
../../test_common/harness/testHarness.c type_replacer.c
../../test_common/harness/msvc9.c ../../test_common/harness/testHarness.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/msvc9.c
../../test_common/harness/errorHelpers.c ../../test_common/harness/kernelHelpers.c
../../test_common/harness/conversions.c ../../test_common/harness/errorHelpers.c
PROPERTIES LANGUAGE CXX) ../../test_common/harness/conversions.c
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_vecalign
${CLConform_LIBRARIES}) TARGET_LINK_LIBRARIES(conformance_test_vecalign
${CLConform_LIBRARIES})
install(TARGETS conformance_test_vecalign
DESTINATION "${CLConf_OUT_DIR}")

View File

@@ -1,31 +1,35 @@
add_executable(conformance_test_vecstep add_executable(conformance_test_vecstep
globals.c globals.c
test_step.c test_step.c
main.c main.c
structs.c structs.c
type_replacer.c type_replacer.c
../../test_common/harness/testHarness.c ../../test_common/harness/testHarness.c
../../test_common/harness/mt19937.c ../../test_common/harness/mt19937.c
../../test_common/harness/msvc9.c ../../test_common/harness/msvc9.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/kernelHelpers.c
../../test_common/harness/errorHelpers.c ../../test_common/harness/errorHelpers.c
) )
if(CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" AND NOT MSVC)
set_source_files_properties( set_source_files_properties(
COMPILE_FLAGS -msse2) COMPILE_FLAGS -msse2)
endif()
set_source_files_properties(
globals.c set_source_files_properties(
test_step.c globals.c
main.c test_step.c
structs.c main.c
type_replacer.c structs.c
../../test_common/harness/testHarness.c type_replacer.c
../../test_common/harness/msvc9.c ../../test_common/harness/testHarness.c
../../test_common/harness/kernelHelpers.c ../../test_common/harness/msvc9.c
../../test_common/harness/errorHelpers.c ../../test_common/harness/kernelHelpers.c
PROPERTIES LANGUAGE CXX) ../../test_common/harness/errorHelpers.c
PROPERTIES LANGUAGE CXX)
TARGET_LINK_LIBRARIES(conformance_test_vecstep
${CLConform_LIBRARIES}) TARGET_LINK_LIBRARIES(conformance_test_vecstep
${CLConform_LIBRARIES})
install(TARGETS conformance_test_vecstep
DESTINATION "${CLConf_OUT_DIR}")