This is a simple bash script that prints the CUDA Toolkit version, Nvidia driver version, and cuDNN version. It supports a -v
or --verbose
option for verbose output.
To install and use this script:
- Download the
nvidia-info
file or clone this repository. - Make the script executable with the command
chmod +x /path/to/nvidia-info
. - Move the script to a directory in your PATH, like
/usr/local/bin
, with the commandsudo mv /path/to/nvidia-info /usr/local/bin/nvidia-info
.
After these steps, you should be able to run nvidia-info
from any directory in the terminal.