Skip to content

Instantly share code, notes, and snippets.

@fogonthedowns
Last active November 12, 2018 12:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fogonthedowns/9010dda1201ce36d248609e4f1223486 to your computer and use it in GitHub Desktop.
Save fogonthedowns/9010dda1201ce36d248609e4f1223486 to your computer and use it in GitHub Desktop.
nvidia GEFORCE GTX 1070 on Ubuntu 16.04

install cuda

exit ubuntu gui: ctl + alt + f1

stop ubuntu GUI:

sudo service lightdm stop
sudo init 3

Nvidia Cuda drivers [https://developer.nvidia.com/cuda-downloads]

sudo sh [NVIDIA .run file]

be sure to set PATH variables as noted by the output. Add to the PATH of .bashrc:

sudo vi ~/.bashrc
PATH="/some/new/path:$PATH"

save. exit. and source the environment variables: source ~/.bashrc

Next, enter sudo init 5. And restart your system with sudo restart

sudo apt-get purge nvidia*
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-367

restart your system

nvidia-smi
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|    0      1111    G   /usr/lib/xorg/Xorg                             249MiB |
|    0      1832    G   compiz                                         164MiB |
+-----------------------------------------------------------------------------+
watch -n0 nvidia-smi
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 375.82                 Driver Version: 375.82                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 1070    Off  | 0000:01:00.0      On |                  N/A 
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|    0      1111    G   /usr/lib/xorg/Xorg                             249MiB |
|    0      1832    G   compiz                                         159MiB |
+-----------------------------------------------------------------------------+


sudo apt-get install vim
~/Downloads/cpp-ethereum-master/build/ethminer/ethminer -G -F http://127.0.0.1:8545
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment