File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ endif()
4646add_definitions (-DBOOST_COMPUTE_DEBUG_KERNEL_COMPILATION)
4747
4848# enable code coverage generation (only with GCC for now)
49- if (${BOOST_COMPUTE_ENABLE_COVERAGE} AND " ${CMAKE_CXX_COMPILER_ID} " STREQUAL "GNU" )
49+ if (${BOOST_COMPUTE_ENABLE_COVERAGE} AND ${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU" )
5050 add_definitions (-fprofile-arcs -ftest-coverage)
5151endif ()
5252
@@ -62,7 +62,7 @@ function(add_compute_test TEST_NAME TEST_SOURCE)
6262 )
6363
6464 # link with coverage library
65- if (${BOOST_COMPUTE_ENABLE_COVERAGE} AND " ${CMAKE_CXX_COMPILER_ID} " STREQUAL "GNU" )
65+ if (${BOOST_COMPUTE_ENABLE_COVERAGE} AND ${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU" )
6666 target_link_libraries (${TEST_TARGET} -fprofile-arcs -ftest-coverage)
6767 endif ()
6868
Original file line number Diff line number Diff line change 11# ---------------------------------------------------------------------------
22# Copyright (c) 2015 Kyle Lutz <kyle.r.lutz@gmail.com>
3- #
3+ #
44# Distributed under the Boost Software License, Version 1.0
55# See accompanying file LICENSE_1_0.txt or copy at
66# http://www.boost.org/LICENSE_1_0.txt
@@ -20,7 +20,7 @@ target_link_libraries(test_multiple_objects
2020 ${Boost_LIBRARIES}
2121 )
2222# link with coverage library
23- if (${BOOST_COMPUTE_ENABLE_COVERAGE} AND " ${CMAKE_CXX_COMPILER_ID} " STREQUAL "GNU" )
23+ if (${BOOST_COMPUTE_ENABLE_COVERAGE} AND ${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU" )
2424 target_link_libraries (test_multiple_objects -fprofile-arcs -ftest-coverage)
2525endif ()
2626add_test ("misc.multiple_objects" test_multiple_objects)
Original file line number Diff line number Diff line change @@ -177,11 +177,14 @@ BOOST_AUTO_TEST_CASE(get_sub_group_info_ext)
177177 local_work_size
178178 );
179179
180+ #ifdef BOOST_COMPUTE_CL_VERSION_2_1
180181 if (device.check_version (2 , 1 ))
181182 {
182183 BOOST_CHECK (count);
183184 }
184- else if (device.check_version (2 , 0 ) && device.supports_extension (" cl_khr_subgroups" ))
185+ else
186+ #endif // BOOST_COMPUTE_CL_VERSION_2_1
187+ if (device.check_version (2 , 0 ) && device.supports_extension (" cl_khr_subgroups" ))
185188 {
186189 // for device with cl_khr_subgroups it should return some value
187190 BOOST_CHECK (count);
@@ -200,11 +203,14 @@ BOOST_AUTO_TEST_CASE(get_sub_group_info_ext)
200203 &local_work_size[0 ]
201204 );
202205
206+ #ifdef BOOST_COMPUTE_CL_VERSION_2_1
203207 if (device.check_version (2 , 1 ))
204208 {
205209 BOOST_CHECK (count);
206210 }
207- else if (device.check_version (2 , 0 ) && device.supports_extension (" cl_khr_subgroups" ))
211+ else
212+ #endif // BOOST_COMPUTE_CL_VERSION_2_1
213+ if (device.check_version (2 , 0 ) && device.supports_extension (" cl_khr_subgroups" ))
208214 {
209215 // for device with cl_khr_subgroups it should return some value
210216 BOOST_CHECK (count);
You can’t perform that action at this time.
0 commit comments