Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the nvidia driver version from the command line?

Tags:

linux

cuda

driver

For debugging CUDA code and checking compatibilities I need to find out what nvidia driver version for the GPU I have installed. I found How to get the cuda version? but that does not help me here.

like image 488
Framester Avatar asked Oct 29 '12 16:10

Framester


People also ask

How do I check my Nvidia-SMI version?

The NVIDIA Virtual GPU Manager version appears in the first line of text after the date, immediately after the text NVIDIA-SMI. In the following example, the NVIDIA Virtual GPU Manager version is 510.85. 03.


2 Answers

Using nvidia-smi should tell you that:

bwood@mybox:~$ nvidia-smi  Mon Oct 29 12:30:02 2012        +------------------------------------------------------+                        | NVIDIA-SMI 3.295.41   Driver Version: 295.41         |                        |-------------------------------+----------------------+----------------------+ | Nb.  Name                     | Bus Id        Disp.  | Volatile ECC SB / DB | | Fan   Temp   Power Usage /Cap | Memory Usage         | GPU Util. Compute M. | |===============================+======================+======================| | 0.  GeForce GTX 580           | 0000:25:00.0  N/A    |       N/A        N/A | |  54%   70 C  N/A   N/A /  N/A |  25%  383MB / 1535MB |  N/A      Default    | |-------------------------------+----------------------+----------------------| | Compute processes:                                               GPU Memory | |  GPU  PID     Process name                                       Usage      | |=============================================================================| |  0.           Not Supported                                                 | +-----------------------------------------------------------------------------+ 
like image 188
Brendan Wood Avatar answered Sep 22 '22 21:09

Brendan Wood


On any linux system with the NVIDIA driver installed and loaded into the kernel, you can execute:

cat /proc/driver/nvidia/version 

to get the version of the currently loaded NVIDIA kernel module, for example:

$ cat /proc/driver/nvidia/version  NVRM version: NVIDIA UNIX x86_64 Kernel Module  304.54  Sat Sep 29 00:05:49 PDT 2012 GCC version:  gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)  
like image 26
talonmies Avatar answered Sep 20 '22 21:09

talonmies