I have a cuda-capable gpu in my computer, and the version is NVIDIA GeForce GTX 1660 Ti. The operating system is Windows10. According to the official website
https://pytorch.org/get-started/locally/
I opened anaconda prompt(anaconda 3) and entered the following line for installing pytorch
conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch -c conda-forge
but when I enter this code in pycharm:
import torch
print(torch.cuda.is_available())
It returns False and this error appears:
UserWarning: CUDA initialization: CUDA driver initialization failed, you might not have a CUDA gpu. (Triggered internally at ..\c10\cuda\CUDAFunctions.cpp:115.)
return torch._C._cuda_getDeviceCount() > 0
Why is it like this? Doesn't this command
conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch -c conda-forge
by default try to install cuda version if i have a cuda-capable gpu?
This is the output of nvidia-smi