Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hsinhoyeh/495752aaf252bebdd2f3b51011dc060f to your computer and use it in GitHub Desktop.
Save hsinhoyeh/495752aaf252bebdd2f3b51011dc060f to your computer and use it in GitHub Desktop.
// check the following doc to installation
// https://cloud.google.com/compute/docs/gpus/install-drivers-gpu
1. install gce nvidia driver:
```
curl -O http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
```
```
sudo apt-get update
sudo apt-get install cuda
```
check installation:
```
nvidia-smi
>>
Wed Jan 2 19:51:51 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 410.79 Driver Version: 410.79 CUDA Version: 10.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Tesla P4 Off | 00000000:00:04.0 Off | 0 |
| N/A 42C P8 7W / 75W | 62MiB / 7611MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment