Pytorch cuda problem on gpu

Hii pytorch developer, i am trying to use pytorch on gpu, however it shows ValueError: invalid literal for int() with base 10: “NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.”

additionally, it shows
/home/seis/ret/prog/anaconda3/envs/cpi/lib/python3.7/site-packages/torch/cuda/init.py:52: UserWarning: CUDA initialization: The NVIDIA driver on your system is too old (found version 9010). Please update your GPU driver by downloading and installing a new version from the URL: Download Drivers | NVIDIA Alternatively, go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver. (Triggered internally at /opt/conda/conda-bld/pytorch_1603729066392/work/c10/cuda/CUDAFunctions.cpp:100.)
return torch._C._cuda_getDeviceCount() > 0
False

Please suggest which pytorch version will support The NVIDIA driver on your system is too old (found version 9010)

You can take a look at this doc in particular Table 3 shows the driver requirement for each CUDA release.

Which pytorch version will be compatible with NVIDIA driver version 9010.Can you please suggest, because what the gpu i am using it is older and the engineer doesn’t want to upgrade it to the latest version of NVIDIA driver.

You could check on the previous Pytorch versions webpage to see which Pytorch version will work with the CUDA driver you have.

@Manuel_Alejandro_Dia ```
conda install pytorch==1.7.0 torchvision==0.8.0 torchaudio==0.7.0 cudatoolkit=9.2 -c pytorch

I think cudatoolkit==9.2 will not work so i need cudatoolkit==9.1 how to get it ???

Maybe you could try with:

conda install pytorch==1.1.0 torchvision==0.3.0 cudatoolkit=9.0 -c pytorch

getting error again

In [1]: import torch

In [2]: torch.version.cuda
Out[2]: ‘9.0.176’

In [3]: torch.cuda.is_available()
Out[3]: False

Can you post the output of nvidia-smi if you are in Linux?

Also, maybe check this stackoverflow thread.