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

Commit aca6721

Browse files
committedMay 22, 2018
Travis CI: Build with g++-7, upgrade CUDA to 9.2
1 parent e7d5ecb commit aca6721

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed
 

‎.travis.yml

+13-10
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,27 @@ cache:
2323
directories:
2424
- $HOME/.local
2525
before_install: |
26-
if [ "$CUDA" = ON ]; then
27-
. scripts/install-cuda-ubuntu1604.sh
28-
fi
2926
if [ "$TRAVIS_OS_NAME" = linux ]; then
27+
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
28+
sudo apt-get -q update
29+
sudo apt-get -qy install g++-7
3030
scripts/install_cmake.sh
31+
. scripts/install-cuda-ubuntu1604.sh
3132
pyenv global 3.6
3233
pip install --user requests gitpython
34+
export CC=gcc-7
35+
export CXX=g++-7
3336
elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
3437
HOMEBREW_NO_AUTO_UPDATE=1 brew install -q python3
3538
pip3 install -q requests gitpython
3639
fi
37-
script:
38-
- cmake -DHUNTER_JOBS_NUMBER=4 -DETHASHCUDA=$CUDA -DETHASHCL=ON -DAPICORE=ON -H. -Bbuild
39-
- cmake --build build --target package -- -j4
40-
- build/ethminer/ethminer --list-devices -G
41-
- build/ethminer/ethminer --list-devices -U
42-
- if [ "$TRAVIS_OS_NAME" = linux ]; then ldd -v build/ethminer/ethminer; fi
43-
- if [ "$TRAVIS_OS_NAME" = osx ]; then otool -L build/ethminer/ethminer; fi
40+
script: |
41+
cmake -DHUNTER_JOBS_NUMBER=4 -DETHASHCUDA=$CUDA -DETHASHCL=ON -DAPICORE=ON -H. -Bbuild
42+
cmake --build build --target package -- -j4
43+
build/ethminer/ethminer --list-devices -G
44+
build/ethminer/ethminer --list-devices -U
45+
if [ "$TRAVIS_OS_NAME" = linux ]; then ldd -v build/ethminer/ethminer; fi
46+
if [ "$TRAVIS_OS_NAME" = osx ]; then otool -L build/ethminer/ethminer; fi
4447
4548
deploy:
4649
- provider: releases

‎scripts/install-cuda-ubuntu1604.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
#
3-
# Install the core CUDA_VER toolkit for a ubuntu-trusty (14.04) system. Requires the
4-
# CUDA_VER environment variable to be set to the required version.
3+
# Install the core CUDA_VER toolkit for Ubuntu 16.04.
4+
# Requires the CUDA_VER environment variable to be set to the required version.
55
#
66
# Since this script updates environment variables, to execute correctly you must
77
# 'source' this script, rather than executing it in a sub-process.
@@ -10,7 +10,7 @@
1010

1111
set -e
1212

13-
export CUDA_VER=9.0.176-1
13+
export CUDA_VER=9.2.88-1
1414
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
1515
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_${CUDA_VER}_amd64.deb
1616
sudo dpkg -i cuda-repo-ubuntu1604_${CUDA_VER}_amd64.deb

0 commit comments

Comments
 (0)
This repository has been archived.