nvidia-smi
is very useful, in fact you can hack together a little nvtop
with just watch -n 1 "nvidia-smi"
. Note, however, that the CUDA version in the top right corner of the output is the highest CUDA version supported, NOT installed.
You get also get your GPU's name with nvidia-smi --query-gpu=gpu_name --format=csv
(credit to this interesting forumn thread)
And to get your CUDA driver version use nvcc --version
nvidia publishs a lot of linux docker images with different versions of CUDA installed on dockerhub