Skip to content
This repository was archived by the owner on Apr 24, 2022. It is now read-only.

Commit ab18831

Browse files
committedNov 24, 2017
Tracis CI: Upgrade CUDA to 9.0
1 parent 251dcad commit ab18831

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed
 

‎.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ cache:
2222
directories:
2323
- $HOME/.local
2424
before_install:
25-
- if [[ "$CUDA" = ON ]]; then source scripts/install-cuda-trusty.sh; fi
25+
- if [ "$CUDA" = ON ]; then . scripts/install-cuda-ubuntu1604.sh; fi
2626
- if [ "$TRAVIS_OS_NAME" = linux ]; then scripts/install_cmake.sh; fi
2727
- sudo pip install requests
2828
script:

‎scripts/install-cuda-trusty.sh ‎scripts/install-cuda-ubuntu1604.sh

+9-6
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@
88
#
99
# Taken from https://github.com/tmcdonell/travis-scripts.
1010

11-
export CUDA_VER=8.0.61-1
12-
travis_retry wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_${CUDA_VER}_amd64.deb
13-
travis_retry sudo dpkg -i cuda-repo-ubuntu1404_${CUDA_VER}_amd64.deb
14-
travis_retry sudo apt-get update -qq
11+
set -e
12+
13+
export CUDA_VER=9.0.176-1
14+
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
15+
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_${CUDA_VER}_amd64.deb
16+
sudo dpkg -i cuda-repo-ubuntu1604_${CUDA_VER}_amd64.deb
17+
sudo apt-get update -qq
1518
export CUDA_APT=${CUDA_VER:0:3}
1619
export CUDA_APT=${CUDA_APT/./-}
17-
travis_retry sudo apt-get install -qy cuda-core-${CUDA_APT} cuda-cudart-dev-${CUDA_APT}
18-
travis_retry sudo apt-get clean
20+
sudo apt-get install -qy cuda-core-${CUDA_APT} cuda-cudart-dev-${CUDA_APT}
21+
sudo apt-get clean
1922
export CUDA_HOME=/usr/local/cuda-${CUDA_VER:0:3}
2023
export PATH=${CUDA_HOME}/bin:${PATH}

0 commit comments

Comments
 (0)
This repository has been archived.