Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
Tracis CI: Upgrade CUDA to 9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Nov 24, 2017
1 parent 251dcad commit ab18831
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ cache:
directories:
- $HOME/.local
before_install:
- if [[ "$CUDA" = ON ]]; then source scripts/install-cuda-trusty.sh; fi
- if [ "$CUDA" = ON ]; then . scripts/install-cuda-ubuntu1604.sh; fi
- if [ "$TRAVIS_OS_NAME" = linux ]; then scripts/install_cmake.sh; fi
- sudo pip install requests
script:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@
#
# Taken from https://github.com/tmcdonell/travis-scripts.

export CUDA_VER=8.0.61-1
travis_retry wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_${CUDA_VER}_amd64.deb
travis_retry sudo dpkg -i cuda-repo-ubuntu1404_${CUDA_VER}_amd64.deb
travis_retry sudo apt-get update -qq
set -e

export CUDA_VER=9.0.176-1
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_${CUDA_VER}_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1604_${CUDA_VER}_amd64.deb
sudo apt-get update -qq
export CUDA_APT=${CUDA_VER:0:3}
export CUDA_APT=${CUDA_APT/./-}
travis_retry sudo apt-get install -qy cuda-core-${CUDA_APT} cuda-cudart-dev-${CUDA_APT}
travis_retry sudo apt-get clean
sudo apt-get install -qy cuda-core-${CUDA_APT} cuda-cudart-dev-${CUDA_APT}
sudo apt-get clean
export CUDA_HOME=/usr/local/cuda-${CUDA_VER:0:3}
export PATH=${CUDA_HOME}/bin:${PATH}

0 comments on commit ab18831

Please sign in to comment.