For CUDA version: Use the below commands for quick answer:
nvcc --version
nvidia-smi
If the above command doesn’t works try the below command if your working on Ubuntu Cuda:
cat /usr/local/cuda/version.txt
For CUDA version: Use the below commands for quick answer:
nvcc --version
nvidia-smi
If the above command doesn’t works try the below command if your working on Ubuntu Cuda:
cat /usr/local/cuda/version.txt