(推荐阅读时间20s)
cuda版本查询很简单,只需使用命令
nvcc —version和which nvcc
[root@localhost ~]# which nvcc
/usr/local/cuda-8.0/bin/nvcc
[root@localhost ~]# nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Tue_Jan_10_13:22:03_CST_2017
Cuda compilation tools, release 8.0, V8.0.61
查询当前GPU使用情况
[root@localhost ~]# nvidia-smi
-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.81 Driver Version: 384.81 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 RTX 2080 Off | 00000000:02:00.0 Off | N/A |
| 46% 39C P0 44W / 120W | 0MiB / 8120MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 1 RTX 2080 Off | 00000000:81:00.0 Off | N/A |
| 0% 43C P0 44W / 120W | 0MiB / 8121MiB | 1% Default |
+-------------------------------+----------------------