forked from cusplibrary/cusplibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (53 loc) · 2.02 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
language: cpp
sudo: required
dist: trusty
os:
- linux
branches:
only:
- develop
addons:
apt:
sources:
- sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main'
- sourceline: 'deb-src http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main'
- llvm-toolchain-trusty-3.9
- ubuntu-toolchain-r-test
packages:
- clang-3.9
env:
- THRUST_VERSION=1.7.2 BACKEND=omp COMPILER=gcc
- THRUST_VERSION=1.8.3 BACKEND=omp COMPILER=gcc
- THRUST_VERSION=master BACKEND=omp COMPILER=gcc
- THRUST_VERSION=1.7.2 BACKEND=omp COMPILER=clang
- THRUST_VERSION=1.8.3 BACKEND=omp COMPILER=clang
- THRUST_VERSION=master BACKEND=omp COMPILER=clang
- THRUST_VERSION=1.7.2 BACKEND=cuda COMPILER=nvcc
- THRUST_VERSION=1.8.3 BACKEND=cuda COMPILER=nvcc
- THRUST_VERSION=master BACKEND=cuda COMPILER=nvcc
matrix:
allow_failures:
- env: THRUST_VERSION=1.7.2 BACKEND=cuda COMPILER=nvcc
- env: THRUST_VERSION=1.8.3 BACKEND=cuda COMPILER=nvcc
- env: THRUST_VERSION=master BACKEND=cuda COMPILER=nvcc
install:
- git clone -b $THRUST_VERSION https://github.com/sdalton1/thrust.git
- export THRUST_PATH=$PWD/thrust
- cd testing
- export CC=$COMPILER
- if [[ $CC == "clang" ]]; then
sudo ln -s /usr/bin/clang-3.9 /usr/bin/clang;
sudo apt-get -y install libiomp-dev;
fi
- if [[ $CC == "nvcc" ]]; then
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_8.0.44-1_amd64.deb;
sudo dpkg -i cuda-repo-ubuntu1404_8.0.44-1_amd64.deb;
sudo apt-get update -qq;
sudo apt-get -y install cuda-command-line-tools-8-0 cuda-core-8-0 cuda-cublas-dev-8-0;
sudo ln -s /usr/local/cuda-8.0 /usr/local/cuda;
export PATH=$PATH:/usr/local/cuda/bin;
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/bin/lib64;
fi
script:
- scons -j 2 compiler=$CC backend=$BACKEND
- if [[ $CC != "nvcc" ]]; then cd device_${BACKEND}_release && ./tester --verbose; fi