Skip to content

Instantly share code, notes, and snippets.

@atton
Last active December 10, 2017 07:44
Show Gist options
  • Save atton/56dfbf65c285d48bcfd32df23e592e06 to your computer and use it in GitHub Desktop.
Save atton/56dfbf65c285d48bcfd32df23e592e06 to your computer and use it in GitHub Desktop.
.zshrc sample and output example for https://attonblog.blogspot.jp/2017/12/centos7-cuda-9.html
CUDA_ROOT_DIR="/usr/local/cuda"
export CUDA_ROOT_DIR
PATH="$PATH:${CUDA_ROOT_DIR}/bin"
export PATH
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${CUDA_ROOT_DIR}/lib64/"
export LD_LIBRARY_PATH
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.90 Driver Version: 384.90 |
|-------------------------------+----------------------+----------------------+
| 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 | 00000000:01:00.0 On | N/A |
| 45% 67C P2 81W / 151W | 5922MiB / 8108MiB | 100% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 18309 C hogehoge 5855MiB |
+-----------------------------------------------------------------------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment