forked from muhos/ParaFROST
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (26 loc) · 1.01 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
language: c++
sudo: enabled
matrix:
include:
- name: CUDA 11.2
env:
- CUDA_SHORT=11.2
- UBUNTU_ARCH=x86_64
- UBUNTU_VERSION=ubuntu1804
- NVIDIA_KEY=7fa2af80
dist: bionic
before_install:
- sudo add-apt-repository -y ppa:graphics-drivers/ppa
- sudo apt update
- wget https://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/${UBUNTU_ARCH}/cuda-${UBUNTU_VERSION}.pin
- sudo mv cuda-${UBUNTU_VERSION}.pin /etc/apt/preferences.d/cuda-repository-pin-600
- sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/${UBUNTU_ARCH}/${NVIDIA_KEY}.pub
- sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/${UBUNTU_ARCH}/ /"
- sudo apt-get update
- sudo apt-get -y install cuda
- export CUDA_HOME=/usr/local/cuda-${CUDA_SHORT}
- LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
- PATH=${CUDA_HOME}/bin:${PATH}
script:
- cd gpu; make
- cd ../cpu; make