Skip to content

Commit

Permalink
Build with OpenCL 2.2 headers
Browse files Browse the repository at this point in the history
  • Loading branch information
jszuppe committed Dec 27, 2018
1 parent dbd0c15 commit 030bc9f
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,42 @@ matrix:
- ENV_CMAKE_OPTIONS="-DOpenCL_INCLUDE_DIR=${OPENCL_ROOT}/include -DBOOST_COMPUTE_ENABLE_COVERAGE=ON -DBOOST_COMPUTE_USE_CPP11=ON"
- COVERAGE=true

############################################################################
# OpenCL 2.2 Only Build
############################################################################

# Linux, OpenCL 2.2, Tests not run, C++11
# CLANG
- os: linux
dist: xenial
compiler: clang
addons:
apt:
packages: &xenial_packages
- g++-5
# Misc
- libopencv-dev
sources: &xenial_packages
- ubuntu-toolchain-r-test
env:
- OPENCL_LIB=khronos-icd
- RUN_TESTS=false
- ENV_CXX_FLAGS="-DBOOST_COMPUTE_MAX_CL_VERSION=202"
- ENV_CMAKE_OPTIONS="-DOpenCL_INCLUDE_DIR=${OPENCL_ROOT}/include -DBOOST_COMPUTE_USE_CPP11=ON"
# GCC
- os: linux
dist: xenial
compiler: gcc
addons:
apt:
packages: *xenial_packages
sources: *xenial_packages
env:
- OPENCL_LIB=khronos-icd
- RUN_TESTS=false
- ENV_CXX_FLAGS="-DBOOST_COMPUTE_MAX_CL_VERSION=201"
- ENV_CMAKE_OPTIONS="-DOpenCL_INCLUDE_DIR=${OPENCL_ROOT}/include -DBOOST_COMPUTE_USE_CPP11=ON"

############################################################################
# OSX
############################################################################
Expand Down Expand Up @@ -342,6 +378,28 @@ install:
popd
fi
############################################################################
# Only ICD
############################################################################
- |
if [[ ${TRAVIS_OS_NAME} == "linux" && ${OPENCL_LIB} == "khronos-icd" ]]; 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/* .
mkdir -p inc/CL
pushd inc/CL
cp ${OPENCL_ROOT}/include/CL/* .
popd
mkdir -p lib
pushd lib
cmake -G "Unix Makefiles" ..
make
cp ./bin/libOpenCL.so .
popd
popd
fi
############################################################################
# Build and install POCL https://github.com/pocl/pocl
############################################################################
Expand Down

0 comments on commit 030bc9f

Please sign in to comment.