Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AdamStormhardtGH/7611465825b421a294ff07a7e9c6af10 to your computer and use it in GitHub Desktop.
Save AdamStormhardtGH/7611465825b421a294ff07a7e9c6af10 to your computer and use it in GitHub Desktop.
torch.cuda.is_available() false on windows - fix
https://github.com/pytorch/pytorch/issues/50032
erolrecep commented on Jul 23
I had the same issue.
CUDA: 11.2
Nvidia-driver: 460.91.03
GPU model: RTX 2080 Ti
Ubuntu 20.04
Python 3.8 with virtualenv
pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
This command is taken from PyTorch's web site (https://pytorch.org/get-started/locally/) worked for me.
@AdamStormhardtGH
Copy link
Author

check CUDA version: nvcc --version
Check Nvidia driver version: nvidia-smi
GPU model: (in above nvidia-smi command)
Ubuntu version: lsb_release -a
Python version: python --version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment