Nvidia GPU deviceQuery
The executable's directory is /root/CUDA-Samples/NVIDIA_CUDA-8.0_Samples/1_Utilities/deviceQuery
$ ./deviceQuery
Get Driver Version
$ cat /proc/driver/nvidia/version
Kill Processes the Right Way
$ fuser -V /dev/nvidia*
The above command should display a list of processes utilizing GPU, kill the above processes by,
$ for pid in {pid1, pidn}; do kill -9 $pid; done
$ kill -9 $<pid of main process>
Note This article provides a few other approaches.