2015-08-18 07:22:27 +02:00
|
|
|
language: cpp
|
2016-03-13 10:47:53 +01:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
|
|
|
|
2015-08-18 07:22:27 +02:00
|
|
|
compiler:
|
|
|
|
- gcc
|
2015-08-19 09:06:59 +02:00
|
|
|
- clang
|
2016-03-13 10:47:53 +01:00
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
# kubuntu-backports contains newer versions of cmake to install
|
|
|
|
- kubuntu-backports
|
|
|
|
packages:
|
|
|
|
- cmake
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- CLBLAST_ROOT=${TRAVIS_BUILD_DIR}/bin/make/release
|
|
|
|
- OPENCL_REGISTRY=https://www.khronos.org/registry/cl
|
|
|
|
- OPENCL_ROOT=${TRAVIS_BUILD_DIR}/bin/opencl
|
|
|
|
|
2015-08-19 09:20:10 +02:00
|
|
|
before_install:
|
2016-03-13 10:47:53 +01:00
|
|
|
- cmake --version;
|
|
|
|
- ${CC} --version;
|
|
|
|
- ${CXX} --version;
|
|
|
|
|
2015-08-18 08:25:32 +02:00
|
|
|
install:
|
2016-03-13 10:47:53 +01:00
|
|
|
# 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};
|
2016-03-13 10:55:16 +01:00
|
|
|
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;
|
2016-03-13 10:47:53 +01:00
|
|
|
pushd inc/CL;
|
2016-03-13 10:55:16 +01:00
|
|
|
travis_retry wget -w 1 -np -nd -nv -A h,hpp ${OPENCL_REGISTRY}/api/2.1/cl.hpp;
|
2016-03-13 10:47:53 +01:00
|
|
|
popd;
|
|
|
|
mkdir -p lib;
|
|
|
|
pushd lib;
|
|
|
|
cmake -G "Unix Makefiles" ..;
|
|
|
|
make;
|
2016-03-13 10:55:16 +01:00
|
|
|
cp ./bin/libOpenCL.so .;
|
|
|
|
popd;
|
|
|
|
pushd inc/CL;
|
|
|
|
travis_retry git fetch origin opencl12:opencl12;
|
|
|
|
git checkout opencl12;
|
2016-03-13 10:47:53 +01:00
|
|
|
popd;
|
|
|
|
mv inc/ include/;
|
|
|
|
popd;
|
|
|
|
fi
|
|
|
|
|
2015-08-18 07:22:27 +02:00
|
|
|
before_script:
|
2016-03-13 10:47:53 +01:00
|
|
|
- mkdir -p ${CLBLAST_ROOT}
|
|
|
|
- pushd ${CLBLAST_ROOT}
|
|
|
|
- cmake -DOPENCL_ROOT=${OPENCL_ROOT} ${TRAVIS_BUILD_DIR}
|
|
|
|
|
2015-08-18 08:25:32 +02:00
|
|
|
script:
|
|
|
|
- make
|
2016-03-13 10:47:53 +01:00
|
|
|
|
2015-09-14 17:16:31 +02:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2015-10-17 15:42:45 +02:00
|
|
|
- development
|
2016-03-13 10:47:53 +01:00
|
|
|
|
2015-08-18 08:25:32 +02:00
|
|
|
notifications:
|
|
|
|
email: false
|