Last active
September 7, 2017 13:36
-
-
Save SpotLabsNET/9e78a6d682856f80755805e9da193eff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# stage cuda | |
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.5-18_amd64.deb | |
sudo dpkg -i cuda-repo-ubuntu1404_7.5-18_amd64.deb | |
sudo apt-get -y install software-properties-common | |
sudo add-apt-repository -y ppa:ethereum/ethereum | |
sudo apt-get update | |
# install all of the things | |
sudo apt-get install git cmake libcryptopp-dev libleveldb-dev libjsoncpp-dev libjsonrpccpp-dev libboost-all-dev libgmp-dev libreadline-dev libcurl4-gnutls-dev ocl-icd-libopencl1 opencl-headers mesa-common-dev libmicrohttpd-dev build-essential cuda -y | |
# build ethminer | |
cd ~ | |
git clone https://github.com/ethereum-mining/ethminer.git | |
cd ethminer/ | |
mkdir build | |
cd build | |
cmake .. -DETHASHCUDA=ON -DETHASHCL=ON | |
cmake --build . | |
sudo make install | |
cd ~ | |
# optimizwe the driver | |
sudo nvidia-smi -pm 1 | |
sudo nvidia-smi -acp 0 | |
sudo nvidia-smi --auto-boost-permission=0 | |
sudo nvidia-smi -ac 2505,1175 | |
# report | |
sudo nvidia-smi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment