Skip to content

Instantly share code, notes, and snippets.

@eruffaldi
Last active March 31, 2017 01:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eruffaldi/5ea8b7da4fc653e35da90cd6a64691ef to your computer and use it in GitHub Desktop.
Save eruffaldi/5ea8b7da4fc653e35da90cd6a64691ef to your computer and use it in GitHub Desktop.
NVidia and CUDA Linux checklist
#!/bin/bash
# HW check
lspci -v | grep -i nvidia
# HW check if available: lshw
sudo lshw -c video
# modules
lsmod | grep -i nvidia
# devices
ls -l /dev/nvidia*
# driver version
cat /proc/driver/nvidia/version
# kernel
uname -r
# DKMS
dkms status | grep nvidia
# if compiler
nvcc -V
# checking from the X11 utility
nvidia-xconfig --query-gpu-info
# only X11
nvidia-settings -q NvidiaDriverVersion
# reasonable check
nvidia-smi
# device use
nvidia-smi --query-gpu=gom.current --format=csv,noheader
# check if CUDA uvm
lsmod | grep -i nvidia_uvm
#./deviceQuery
#python -c "import pycuda.driver; print pycuda.driver.get_version()"
# dependencies
ldconfig -p | grep -E 'nvidia|cuda'
# libraries
ls -l /usr/lib/x86_64-linux-gnu/libcuda*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment