99 # OpenCL
1010 - OPENCL_LIB=default
1111 # Khronos OpenCL ICD
12- - OPENCL_REGISTRY=https://www.khronos.org/registry/cl
12+ - OPENCL_REGISTRY=https://www.khronos.org/registry/OpenCL/
1313 - OPENCL_ROOT=${DEPS_DIR}/opencl
1414 # POCL
1515 - POCL_BRANCH=release_1_2 # branch/tag
@@ -35,7 +35,7 @@ matrix:
3535 # POCL builds (OpenCL 1.0, 1.1, 1.2)
3636 # ###########################################################################
3737
38- # Linux , OpenCL 1.0
38+ # Xenial , OpenCL 1.0
3939 # CLANG
4040 - os : linux
4141 compiler : clang
@@ -75,7 +75,7 @@ matrix:
7575 - OPENCL_LIB=pocl
7676 - ENV_CXX_FLAGS="-Wno-unused-local-typedef -DBOOST_COMPUTE_MAX_CL_VERSION=100"
7777 - ENV_CMAKE_OPTIONS="-DOpenCL_LIBRARY=${POCL_OPENCL_LIB} -DOpenCL_INCLUDE_DIR=${OPENCL_ROOT}/include"
78- # Linux , OpenCL 1.1
78+ # Xenial , OpenCL 1.1
7979 # CLANG
8080 - os : linux
8181 compiler : clang
@@ -294,7 +294,9 @@ before_install:
294294 - eval "${MATRIX_EVAL}"
295295
296296install :
297- # Download and install recent cmake
297+ # ###########################################################################
298+ # Download and install recent CMake
299+ # ###########################################################################
298300 - |
299301 if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
300302 CMAKE_URL=${CMAKE_URL}
@@ -303,20 +305,22 @@ install:
303305 export PATH=${DEPS_DIR}/cmake/bin:${PATH}
304306 fi
305307
306- # Download and install Boost
308+ # ###########################################################################
309+ # Download and install Boost
310+ # ###########################################################################
307311 - |
308312 if [[ ${TRAVIS_OS_NAME} == "linux" && ${BOOST_VERSION} != "default" ]]; then
309313 if [ ! -f "${DEPS_DIR}/boost/${BOOST_VERSION}_cached" ]; then
310- # create dirs for source and install
314+ # Create dirs for source and install
311315 mkdir -p ${DEPS_DIR}/boost${BOOST_VERSION}
312316 mkdir -p ${DEPS_DIR}/boost
313317 rm -rf ${DEPS_DIR}/boost/*
314- # download
318+ # Download
315319 BOOST_BASENAME=$(echo ${BOOST_VERSION} | awk -F '_' '{print $1 "." $2 "." $3 }')
316320 BOOST_URL="https://dl.bintray.com/boostorg/release/${BOOST_BASENAME}/source/boost_${BOOST_VERSION}.tar.gz"
317321 travis_retry wget --no-check-certificate --quiet -O - ${BOOST_URL} | tar --strip-components=1 -xz -C ${DEPS_DIR}/boost${BOOST_VERSION}
318322 pushd ${DEPS_DIR}/boost${BOOST_VERSION}
319- # configure and install
323+ # Configure and install
320324 ./bootstrap.sh --prefix=${DEPS_DIR}/boost/ --with-libraries=program_options,filesystem,system,thread,test,timer,chrono
321325 ./b2 -d0 install
322326 popd
@@ -382,15 +386,15 @@ script:
382386 - echo ${CMAKE_OPTIONS}
383387 - echo ${CXX_FLAGS}
384388 - 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
386390 # https://stackoverflow.com/questions/39865367/warning-section-textcoal-nt-is-deprecate-since-updating-to-mac-osx-sierra
387391 - 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
388392 - if [[ ${TRAVIS_OS_NAME} != "osx" ]]; then cmake --build . -j 4 --config Debug ; fi
389393 - |
390394 if [[ ${RUN_TESTS} == "true" ]]; then
391- # print OpenCL devices
395+ # Print OpenCL devices
392396 ./example/list_devices
393- # run tests and examples
397+ # Run tests and examples
394398 ctest --output-on-failure --repeat-until-fail 2
395399 fi
396400
0 commit comments