diff --git a/.travis.yml b/.travis.yml index d8bf3b6c..7bcae399 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,16 +1,22 @@ language: java - jdk: - oraclejdk8 - openjdk6 - cache: directories: - $HOME/.m2 - env: - MAVEN_OPTS=-Xmx512m CL_LOG_ERRORS=stdout - before_install: - - sudo apt-get update -qq - - sudo apt-get install -qq fglrx=2:8.960-0ubuntu1 opencl-headers +- lsb_release -c +- lsb_release -r +- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse" +- sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu vivid main universe multiverse restricted" +- sudo apt-get update -qq +- sudo apt-get install -qq opencl-headers fglrx=2:8.960-0ubuntu1 ocl-icd-libopencl1 libltdl-dev hwloc libhwloc-dev clinfo mesa-common-dev +# sudo apt-get install libpocl1 +- ./scripts/install_pocl.sh +- clinfo +# - sudo apt-get install -qq opencl-headers fglrx=2:8.960-0ubuntu1 beignet beignet-opencl-icd +# - export DISPLAY=:99.0 clinfo +# - sh -e /etc/init.d/xvfb start diff --git a/scripts/install_pocl.sh b/scripts/install_pocl.sh new file mode 100755 index 00000000..6c449ff5 --- /dev/null +++ b/scripts/install_pocl.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -e + +git clone https://github.com/pocl/pocl.git +cd pocl +./autogen.sh + +# --disable-icd +./configure +make + +sudo make install