Skip to content

Commit

Permalink
Remove BUILD_OPENCL from build process, remplaced by TRISYCL_OPENCL
Browse files Browse the repository at this point in the history
  • Loading branch information
a-doumoulakis committed Aug 22, 2017
1 parent 5bf6cdc commit f87c4d5
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ RUN if [ "${opencl}" = 'ON' ]; then apt-get install -y --allow-downgrades \

RUN git clone https://github.com/${git_slug}.git -b ${git_branch} /trisycl

RUN cd /trisycl; cmake . -DBUILD_OPENCL=${opencl} \
RUN cd /trisycl; cmake . -DTRISYCL_OPENCL=${opencl} \
-DTRISYCL_OPENMP=${openmp} -DCMAKE_C_COMPILER=${c_compiler} \
-DCMAKE_CXX_COMPILER=${cxx_compiler} && make -j 4

Expand Down
5 changes: 3 additions & 2 deletions doc/cmake.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ start off as:
# Behavioural options for the solution
#
option(TRISYCL_OPENMP "triSYCL multi-threading with OpenMP" ON)
option(TRISYCL_OPENCL "triSYCL OpenCL interoperability mode" OFF)
option(TRISYCL_NO_ASYNC "triSYCL use synchronous kernel execution" OFF)
option(BUILD_OPENCL "triSYCL build OpenCL tests" ON)
option(BUILD_XILINX "triSYCL build Xilinx-specific tests" OFF)
option(TRISYCL_DEBUG "triSCYL use debug mode" OFF)
option(TRISYCL_DEBUG_STRUCTORS "triSYCL trace of object lifetimes" OFF)
option(TRISYCL_TRACE_KERNEL "triSYCL trace of kernel execution" OFF)
set(CL_SYCL_LANGUAGE_VERSION 220 CACHE VERSION "Host language version to be used by trisYCL (default is: 220)")
set(TRISYCL_CL_LANGUAGE_VERSION 220 CACHE VERSION "Device language version to be used by trisYCL (default is: 220) (not used yet)")
Expand Down
4 changes: 2 additions & 2 deletions tests/buffer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ buffer \"a\" use_count\\(\\) is: 20
buffer \"z\" use_count\\(\\) is: 20
buffer \"z\" is read_only: 0")
declare_trisycl_test(TARGET uninitialized_buffer)
if(${BUILD_OPENCL})
if(${TRISYCL_OPENCL})
declare_trisycl_test(TARGET buffer_data_tracking USES_OPENCL TEST_REGEX
" 0 0 0
3 4 5
1 1 1")
endif(${BUILD_OPENCL})
endif(${TRISYCL_OPENCL})
declare_trisycl_test(TARGET buffer_write_order)
4 changes: 2 additions & 2 deletions tests/device/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ project (device) # The name of our project
declare_trisycl_test(TARGET default_device)
declare_trisycl_test(TARGET get_info)
declare_trisycl_test(TARGET type)
if(${BUILD_OPENCL})
if(${TRISYCL_OPENCL})
declare_trisycl_test(TARGET opencl_device USES_OPENCL)
endif(${BUILD_OPENCL})
endif(${TRISYCL_OPENCL})
4 changes: 2 additions & 2 deletions tests/device_selector/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ project (device_selector) # The name of our project

declare_trisycl_test(TARGET explicit_selector)
declare_trisycl_test(TARGET selector)
if(${BUILD_OPENCL})
if(${TRISYCL_OPENCL})
declare_trisycl_test(TARGET opencl_selector USES_OPENCL)
endif(${BUILD_OPENCL})
endif(${TRISYCL_OPENCL})
4 changes: 2 additions & 2 deletions tests/kernel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ project (kernel) # The name of our project

declare_trisycl_test(TARGET functor_item)
declare_trisycl_test(TARGET functor)
if(${BUILD_OPENCL})
if(${TRISYCL_OPENCL})
declare_trisycl_test(TARGET opencl_kernel_empty_set_args USES_OPENCL)
declare_trisycl_test(TARGET opencl_kernel_empty USES_OPENCL)
declare_trisycl_test(TARGET opencl_kernel_single_task_vector_add_args_42 USES_OPENCL)
declare_trisycl_test(TARGET opencl_kernel_vector_add_args_42 USES_OPENCL TEST_REGEX "48 50 53")
declare_trisycl_test(TARGET opencl_kernel_vector_add_args USES_OPENCL TEST_REGEX "6 8 11")
declare_trisycl_test(TARGET opencl_kernel_vector_add USES_OPENCL TEST_REGEX "6 8 11")
declare_trisycl_test(TARGET opencl_kernel USES_OPENCL)
endif(${BUILD_OPENCL})
endif(${TRISYCL_OPENCL})
4 changes: 2 additions & 2 deletions tests/math/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ cmake_minimum_required (VERSION 3.0) # The minimum version of CMake necessary to
project (math) # The name of our project

declare_trisycl_test(TARGET math)
if(${BUILD_OPENCL})
if(${TRISYCL_OPENCL})
declare_trisycl_test(TARGET opencl_type USES_OPENCL TEST_REGEX "x: 0, y: 1, z: 2")
endif(${BUILD_OPENCL})
endif(${TRISYCL_OPENCL})
4 changes: 2 additions & 2 deletions tests/platform/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required (VERSION 3.0) # The minimum version of CMake necessary to
project (platform) # The name of our project

declare_trisycl_test(TARGET default_platform)
if(${BUILD_OPENCL})
if(${TRISYCL_OPENCL})
declare_trisycl_test(TARGET opencl_platform USES_OPENCL)
endif(${BUILD_OPENCL})
endif(${TRISYCL_OPENCL})
declare_trisycl_test(TARGET get_devices)
4 changes: 2 additions & 2 deletions tests/queue/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ declare_trisycl_test(TARGET queue)
declare_trisycl_test(TARGET wait TEST_REGEX
"First
Second")
if(${BUILD_OPENCL})
if(${TRISYCL_OPENCL})
declare_trisycl_test(TARGET opencl_queue USES_OPENCL)
endif(${BUILD_OPENCL})
endif(${TRISYCL_OPENCL})
declare_trisycl_test(TARGET double_wait)

0 comments on commit f87c4d5

Please sign in to comment.