Skip to content

Instantly share code, notes, and snippets.

@randyzwitch
Created January 18, 2019 21:01
Show Gist options
  • Save randyzwitch/c3d07fdc6db3591368b17ea825ccddd6 to your computer and use it in GitHub Desktop.
Save randyzwitch/c3d07fdc6db3591368b17ea825ccddd6 to your computer and use it in GitHub Desktop.
Validate NVIDIA CUDA tools installed
# check that nvidia-smi and nvcc present
root@f8939f380786:/# nvidia-smi
Fri Jan 18 17:22:08 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 415.27 Driver Version: 415.27 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 GeForce GTX 108... Off | 00000000:01:00.0 Off | N/A |
| 0% 32C P8 9W / 250W | 969MiB / 11177MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 1 GeForce GTX 108... Off | 00000000:02:00.0 Off | N/A |
| 0% 28C P8 8W / 250W | 785MiB / 11178MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 2 GeForce GTX 108... Off | 00000000:03:00.0 Off | N/A |
| 0% 31C P8 8W / 250W | 785MiB / 11178MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
+-----------------------------------------------------------------------------+
root@f8939f380786:/# which nvcc
/usr/local/cuda/bin/nvcc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment