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

Commit

Permalink
Travis CI: Build with g++-7, upgrade CUDA to 9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed May 22, 2018
1 parent e7d5ecb commit aca6721
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
23 changes: 13 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,27 @@ cache:
directories:
- $HOME/.local
before_install: |
if [ "$CUDA" = ON ]; then
. scripts/install-cuda-ubuntu1604.sh
fi
if [ "$TRAVIS_OS_NAME" = linux ]; then
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get -q update
sudo apt-get -qy install g++-7
scripts/install_cmake.sh
. scripts/install-cuda-ubuntu1604.sh
pyenv global 3.6
pip install --user requests gitpython
export CC=gcc-7
export CXX=g++-7
elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
HOMEBREW_NO_AUTO_UPDATE=1 brew install -q python3
pip3 install -q requests gitpython
fi
script:
- cmake -DHUNTER_JOBS_NUMBER=4 -DETHASHCUDA=$CUDA -DETHASHCL=ON -DAPICORE=ON -H. -Bbuild
- cmake --build build --target package -- -j4
- build/ethminer/ethminer --list-devices -G
- build/ethminer/ethminer --list-devices -U
- if [ "$TRAVIS_OS_NAME" = linux ]; then ldd -v build/ethminer/ethminer; fi
- if [ "$TRAVIS_OS_NAME" = osx ]; then otool -L build/ethminer/ethminer; fi
script: |
cmake -DHUNTER_JOBS_NUMBER=4 -DETHASHCUDA=$CUDA -DETHASHCL=ON -DAPICORE=ON -H. -Bbuild
cmake --build build --target package -- -j4
build/ethminer/ethminer --list-devices -G
build/ethminer/ethminer --list-devices -U
if [ "$TRAVIS_OS_NAME" = linux ]; then ldd -v build/ethminer/ethminer; fi
if [ "$TRAVIS_OS_NAME" = osx ]; then otool -L build/ethminer/ethminer; fi
deploy:
- provider: releases
Expand Down
6 changes: 3 additions & 3 deletions scripts/install-cuda-ubuntu1604.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
#
# Install the core CUDA_VER toolkit for a ubuntu-trusty (14.04) system. Requires the
# CUDA_VER environment variable to be set to the required version.
# Install the core CUDA_VER toolkit for Ubuntu 16.04.
# Requires the CUDA_VER environment variable to be set to the required version.
#
# Since this script updates environment variables, to execute correctly you must
# 'source' this script, rather than executing it in a sub-process.
Expand All @@ -10,7 +10,7 @@

set -e

export CUDA_VER=9.0.176-1
export CUDA_VER=9.2.88-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
Expand Down

0 comments on commit aca6721

Please sign in to comment.