File tree 3 files changed +12
-6
lines changed
3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ endif()
46
46
add_definitions (-DBOOST_COMPUTE_DEBUG_KERNEL_COMPILATION)
47
47
48
48
# 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" )
50
50
add_definitions (-fprofile-arcs -ftest-coverage)
51
51
endif ()
52
52
@@ -62,7 +62,7 @@ function(add_compute_test TEST_NAME TEST_SOURCE)
62
62
)
63
63
64
64
# 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" )
66
66
target_link_libraries (${TEST_TARGET} -fprofile-arcs -ftest-coverage)
67
67
endif ()
68
68
Original file line number Diff line number Diff line change 1
1
# ---------------------------------------------------------------------------
2
2
# Copyright (c) 2015 Kyle Lutz <[email protected] >
3
- #
3
+ #
4
4
# Distributed under the Boost Software License, Version 1.0
5
5
# See accompanying file LICENSE_1_0.txt or copy at
6
6
# http://www.boost.org/LICENSE_1_0.txt
@@ -20,7 +20,7 @@ target_link_libraries(test_multiple_objects
20
20
${Boost_LIBRARIES}
21
21
)
22
22
# 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" )
24
24
target_link_libraries (test_multiple_objects -fprofile-arcs -ftest-coverage)
25
25
endif ()
26
26
add_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)
177
177
local_work_size
178
178
);
179
179
180
+ #ifdef BOOST_COMPUTE_CL_VERSION_2_1
180
181
if (device.check_version (2 , 1 ))
181
182
{
182
183
BOOST_CHECK (count);
183
184
}
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" ))
185
188
{
186
189
// for device with cl_khr_subgroups it should return some value
187
190
BOOST_CHECK (count);
@@ -200,11 +203,14 @@ BOOST_AUTO_TEST_CASE(get_sub_group_info_ext)
200
203
&local_work_size[0 ]
201
204
);
202
205
206
+ #ifdef BOOST_COMPUTE_CL_VERSION_2_1
203
207
if (device.check_version (2 , 1 ))
204
208
{
205
209
BOOST_CHECK (count);
206
210
}
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" ))
208
214
{
209
215
// for device with cl_khr_subgroups it should return some value
210
216
BOOST_CHECK (count);
You can’t perform that action at this time.
0 commit comments