9
9
# OpenCL
10
10
- OPENCL_LIB=default
11
11
# Khronos OpenCL ICD
12
- - OPENCL_REGISTRY=https://www.khronos.org/registry/cl
12
+ - OPENCL_REGISTRY=https://www.khronos.org/registry/OpenCL/
13
13
- OPENCL_ROOT=${DEPS_DIR}/opencl
14
14
# POCL
15
15
- POCL_BRANCH=release_1_2 # branch/tag
@@ -35,7 +35,7 @@ matrix:
35
35
# POCL builds (OpenCL 1.0, 1.1, 1.2)
36
36
# ###########################################################################
37
37
38
- # Linux , OpenCL 1.0
38
+ # Xenial , OpenCL 1.0
39
39
# CLANG
40
40
- os : linux
41
41
compiler : clang
@@ -75,7 +75,7 @@ matrix:
75
75
- OPENCL_LIB=pocl
76
76
- ENV_CXX_FLAGS="-Wno-unused-local-typedef -DBOOST_COMPUTE_MAX_CL_VERSION=100"
77
77
- ENV_CMAKE_OPTIONS="-DOpenCL_LIBRARY=${POCL_OPENCL_LIB} -DOpenCL_INCLUDE_DIR=${OPENCL_ROOT}/include"
78
- # Linux , OpenCL 1.1
78
+ # Xenial , OpenCL 1.1
79
79
# CLANG
80
80
- os : linux
81
81
compiler : clang
@@ -294,7 +294,9 @@ before_install:
294
294
- eval "${MATRIX_EVAL}"
295
295
296
296
install :
297
- # Download and install recent cmake
297
+ # ###########################################################################
298
+ # Download and install recent CMake
299
+ # ###########################################################################
298
300
- |
299
301
if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
300
302
CMAKE_URL=${CMAKE_URL}
@@ -303,20 +305,22 @@ install:
303
305
export PATH=${DEPS_DIR}/cmake/bin:${PATH}
304
306
fi
305
307
306
- # Download and install Boost
308
+ # ###########################################################################
309
+ # Download and install Boost
310
+ # ###########################################################################
307
311
- |
308
312
if [[ ${TRAVIS_OS_NAME} == "linux" && ${BOOST_VERSION} != "default" ]]; then
309
313
if [ ! -f "${DEPS_DIR}/boost/${BOOST_VERSION}_cached" ]; then
310
- # create dirs for source and install
314
+ # Create dirs for source and install
311
315
mkdir -p ${DEPS_DIR}/boost${BOOST_VERSION}
312
316
mkdir -p ${DEPS_DIR}/boost
313
317
rm -rf ${DEPS_DIR}/boost/*
314
- # download
318
+ # Download
315
319
BOOST_BASENAME=$(echo ${BOOST_VERSION} | awk -F '_' '{print $1 "." $2 "." $3 }')
316
320
BOOST_URL="https://dl.bintray.com/boostorg/release/${BOOST_BASENAME}/source/boost_${BOOST_VERSION}.tar.gz"
317
321
travis_retry wget --no-check-certificate --quiet -O - ${BOOST_URL} | tar --strip-components=1 -xz -C ${DEPS_DIR}/boost${BOOST_VERSION}
318
322
pushd ${DEPS_DIR}/boost${BOOST_VERSION}
319
- # configure and install
323
+ # Configure and install
320
324
./bootstrap.sh --prefix=${DEPS_DIR}/boost/ --with-libraries=program_options,filesystem,system,thread,test,timer,chrono
321
325
./b2 -d0 install
322
326
popd
@@ -382,15 +386,15 @@ script:
382
386
- echo ${CMAKE_OPTIONS}
383
387
- echo ${CXX_FLAGS}
384
388
- if [[ ${TRAVIS_OS_NAME} != "windows" ]]; then cmake -G"${GENERATOR}" ${CMAKE_OPTIONS} -DCMAKE_CXX_FLAGS="${CXX_FLAGS}" .. ; fi
385
- - if [[ ${TRAVIS_OS_NAME} == "windows" ]]; then cmake -G"${GENERATOR} -DBOOST_COMPUTE_BUILD_TESTS=ON -DBOOST_COMPUTE_BUILD_EXAMPLES=ON -DCMAKE_CXX_FLAGS="${CXX_FLAGS}".. ; fi
389
+ - if [[ ${TRAVIS_OS_NAME} == "windows" ]]; then cmake -G"${GENERATOR}" -DBOOST_COMPUTE_BUILD_TESTS=ON -DBOOST_COMPUTE_BUILD_EXAMPLES=ON -DCMAKE_CXX_FLAGS="${CXX_FLAGS}".. ; fi
386
390
# https://stackoverflow.com/questions/39865367/warning-section-textcoal-nt-is-deprecate-since-updating-to-mac-osx-sierra
387
391
- if [[ ${TRAVIS_OS_NAME} == "osx" ]]; then cmake --build . -j 4 --config Debug 2>&1 | grep -v -e '^/var/folders/*' -e '^[[:space:]]*\.section' -e '^[[:space:]]*\^[[:space:]]*~*' ; fi
388
392
- if [[ ${TRAVIS_OS_NAME} != "osx" ]]; then cmake --build . -j 4 --config Debug ; fi
389
393
- |
390
394
if [[ ${RUN_TESTS} == "true" ]]; then
391
- # print OpenCL devices
395
+ # Print OpenCL devices
392
396
./example/list_devices
393
- # run tests and examples
397
+ # Run tests and examples
394
398
ctest --output-on-failure --repeat-until-fail 2
395
399
fi
396
400
0 commit comments