summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Shapovalov <intelfx@intelfx.name>2016-07-28 18:03:35 +0300
committerIvan Shapovalov <intelfx@intelfx.name>2016-07-28 19:09:29 +0300
commit6c11fdc12ceaebbe79fec0d7a954d28884d41965 (patch)
tree3c5c02303973aebe1be785850bac243f901aea1a
parentb5d7b583937cecb2c8c58b676db8617ea93fb474 (diff)
.travis.yml: use OpenCL ICD Loader and headers shipped by distro
Using our own headers causes problems with CMake which does not like having OpenCL header path inside of the source tree. While at it, use distro's universal OpenCL loader as well.
-rw-r--r--.travis.yml32
1 files changed, 2 insertions, 30 deletions
diff --git a/.travis.yml b/.travis.yml
index 8e1a80db..0465afa4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -17,49 +17,21 @@ addons:
- kubuntu-backports
packages:
- cmake
+ - ocl-icd-opencl-dev
env:
global:
- CLBLAST_ROOT=${TRAVIS_BUILD_DIR}/bin/clblast
- - OPENCL_REGISTRY=https://www.khronos.org/registry/cl
- - OPENCL_ROOT=${TRAVIS_BUILD_DIR}/bin/opencl
before_install:
- cmake --version;
- ${CC} --version;
- ${CXX} --version;
-install:
- # The following linux logic is necessary because of Travis's move to the GCE platform, which does not
- # currently contain packages for fglrx: https://github.com/travis-ci/travis-ci/issues/5221
- # We build our own linkable .so file
- - if [ ${TRAVIS_OS_NAME} == "linux" ]; then
- mkdir -p ${OPENCL_ROOT};
- pushd ${OPENCL_ROOT};
- travis_retry git clone --depth 1 https://github.com/KhronosGroup/OpenCL-ICD-Loader.git;
- mv ./OpenCL-ICD-Loader/* .;
- travis_retry git clone --depth 1 https://github.com/KhronosGroup/OpenCL-Headers.git inc/CL;
- pushd inc/CL;
- travis_retry wget -w 1 -np -nd -nv -A h,hpp ${OPENCL_REGISTRY}/api/2.1/cl.hpp;
- popd;
- mkdir -p lib;
- pushd lib;
- cmake -G "Unix Makefiles" ..;
- make;
- cp ./bin/libOpenCL.so .;
- popd;
- pushd inc/CL;
- travis_retry git fetch origin opencl12:opencl12;
- git checkout opencl12;
- popd;
- mv inc/ include/;
- popd;
- fi
-
before_script:
- mkdir -p ${CLBLAST_ROOT}
- pushd ${CLBLAST_ROOT}
- - cmake -DOPENCL_ROOT=${OPENCL_ROOT} -DTESTS=ON -DCLIENTS=ON ${TRAVIS_BUILD_DIR}
+ - cmake -DTESTS=ON -DCLIENTS=ON ${TRAVIS_BUILD_DIR}
script:
- make