I installed pytorch to my conda environment (windoes 11)
conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
I updated my driver using GeForce Experience before, but I didn’t install CUDA toolkit or cuDNN. When I run nvidia-smi, it shows that my CUDA version is 12.2
Also, everything working well, it used my GPU for training
print(torch.cuda.is_available())
True
print(torch.cuda.device_count())
1
print(torch.cuda.current_device())
0
print(torch.cuda.device(0))
< torch.cuda.device object at xxx >
I just confused…
(1) Is installing CUDA toolkit to local computer necessary for pytorch?
(2) Does NVIDIA driver include CUDA? If not, where does the CUDA come from?
Thank you very much