-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
37 lines (29 loc) · 928 Bytes
/
.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
language: cpp
sudo: enabled
dist: trusty
env:
- CUDA=8.0.61-1
- CUDA=7.5-18
compiler:
- clang
- gcc
before_install:
- wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_${CUDA}_amd64.deb
- sudo dpkg -i cuda-repo-ubuntu1404_${CUDA}_amd64.deb
- sudo apt-get update -qq
- CUDA_APT=${CUDA:0:3}
- CUDA_APT=${CUDA_APT/./-}
- sudo apt-get install -y cuda-drivers cuda-core-${CUDA_APT} cuda-cudart-dev-${CUDA_APT} cuda-cufft-dev-${CUDA_APT}
- sudo apt-get clean
- CUDA_HOME=/usr/local/cuda-${CUDA:0:3}
- LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
- PATH=${CUDA_HOME}/bin:${PATH}
- wget https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-linux.zip
- unzip ninja-linux.zip
- pwd
- PATH=${PATH}:${PWD}
before_script:
- mkdir build
- cd build
- cmake .. -GNinja
script: ninja