You can find the NVIDIA CUDA version by using the nvidia-smi
command in the terminal. The nvidia-smi
command provides information about the NVIDIA GPU(s) installed on the system, including the CUDA version.
The command to check CUDA version is:
nvidia-smi --query-gpu=driver_version --format=csv
You can also check the CUDA version by running the nvcc
command which is the NVIDIA CUDA compiler driver.
nvcc --version
You can also check the version of CUDA Toolkit by checking the version of cudatoolkit package.
dpkg -s cudatoolkit | grep Version
Please note that the above commands work for systems with NVIDIA drivers and CUDA toolkit installed, it won’t work if you don’t have NVIDIA GPU or CUDA toolkit installed on your system.
It’s also recommended to check the NVIDIA website for the latest version and installation instructions.