forked from cusplibrary/cusplibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (40 loc) · 1.62 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
language: cpp
os:
- linux
branches:
only:
- develop
compiler:
- gcc
env:
global:
- CUDA=7.0-28
matrix:
# - COMPILER=nvcc BACKEND=cuda THRUST_VERSION=1.7.2
# - COMPILER=nvcc BACKEND=cuda THRUST_VERSION=1.8.3
# - COMPILER=nvcc BACKEND=cuda THRUST_VERSION=master
# - COMPILER=nvcc BACKEND=omp THRUST_VERSION=1.7.2
# - COMPILER=nvcc BACKEND=omp THRUST_VERSION=1.8.3
# - COMPILER=nvcc BACKEND=omp THRUST_VERSION=master
- COMPILER=g++ BACKEND=omp THRUST_VERSION=1.7.2
- COMPILER=g++ BACKEND=omp THRUST_VERSION=1.8.3
- COMPILER=g++ BACKEND=omp THRUST_VERSION=master
before_install:
# borrowed from https://github.com/tmcdonell/cuda
# - echo "Installing CUDA library"
# - travis_retry wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/cuda-repo-ubuntu1204_${CUDA}_amd64.deb
# - travis_retry sudo dpkg -i cuda-repo-ubuntu1204_${CUDA}_amd64.deb
# - travis_retry sudo apt-get update -qq
# - export CUDA_APT=${CUDA%-*}
# - export CUDA_APT=${CUDA_APT/./-}
# - travis_retry sudo apt-get install -y cuda-drivers cuda-core-${CUDA_APT} cuda-cudart-dev-${CUDA_APT}
# - travis_retry sudo apt-get clean
# - export CUDA_HOME=/usr/local/cuda-${CUDA%-*}
# - export LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
# - export PATH=${CUDA_HOME}/bin:${PATH}
install:
- git clone -b $THRUST_VERSION https://github.com/sdalton1/thrust.git
- export THRUST_PATH=$PWD/thrust
- cd testing
script:
- scons compiler=$COMPILER backend=$BACKEND && cd device_${BACKEND}_release && ./tester --verbose