Torch.cuda.is_available return False, even though the driver is up to date

peepo_sad: <p>I’ve been trying to use GPU (notebook version of GTX 1650 Ti in Lenovo ideapad gaming 3 81Y4015PCK) in pytorch, but when I check for CUDA support by torch.cuda.is_available(), it returns False. I’m running under windows 10 with latest nvidia driver (installed a week ago), nvidia-smi reports driver version 471.41, cuda version 11.4. Pytorch is installed using pip, as shown on pytorch’s website<br>
<code>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</code><br>
The weird thing is that I also tried to use Anaconda, that didn’t work either. I tried installing different versions of pytorch and cuda (10.2 and 11.1), I tried booting live images of Ubuntu, Pop OS (with preinstalled NVIDIA driver) and some other linux distros, and installing torch there, again with no success. I would’ve thought the GPU is dead, but all my games are running perfectly using that same GPU. Any clue, what might be the problem here?</p>

ptrblck: <p>Could you check the reported CUDA verison via <code>print(torch.version.cuda)</code> and make sure the specified binary was indeed installed?<br>
If that’s the case, I would recommend to check your notebook for some power saving options, which could disable the GPU, and force it to run in a “performance” mode.</p>

peepo_sad: <p>torch.version.cuda really returns ‘11.1’, nothing weird there. Thanks for the power saving mode idea, that didn’t really come to my mind. I looked into BIOS, but I didn’t find anyting related to GPU at all. The only option was something about thermal mode, I switched it to power, but nothing changed. After all of this, I think pytorch is simply unable to work with this specific model of gpu or hardware combination. But that’s not a problem anymore, few days ago I found out google colab is a thing, and after some trying I think it’ll be even better than using my laptop, since their GPUs are much more powerful devices (16GB of VRAM compared to 4GB on my device). But thank you for your help.</p>

Ravi_Raj: <p>I have dont what you suggested</p>
<p><img src="https://discuss.pytorch.org/uploads/default/original/3X/6/0/6014a3254f599fac4c3f4b09d394d78be21d835f.png" alt="image" data-base62-sha1="dHY3fecaDTyUbbhQuhR0Vqw9dmv" width="523" height="187"></p>

Ravi_Raj: <p>please help me understand why i am not able to use the gpu<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/c/5/c58d08a1a0e56da03df73b58cf1111831a56243c.png" data-download-href="https://discuss.pytorch.org/uploads/default/c58d08a1a0e56da03df73b58cf1111831a56243c" title="image"><img src="https://discuss.pytorch.org/uploads/default/original/3X/c/5/c58d08a1a0e56da03df73b58cf1111831a56243c.png" alt="image" data-base62-sha1="sbCdWZ2lMkc2iR05APEnpRB9LKQ" width="690" height="165" data-dominant-color="202120"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">image</span><span class="informations">840×202 9.69 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>

Ravi_Raj: <p><div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/e/c/ec12f97494f1c32523bf217e55b79e06923e9d81.png" data-download-href="https://discuss.pytorch.org/uploads/default/ec12f97494f1c32523bf217e55b79e06923e9d81" title="image"><img src="https://discuss.pytorch.org/uploads/default/original/3X/e/c/ec12f97494f1c32523bf217e55b79e06923e9d81.png" alt="image" data-base62-sha1="xGpkNUITqa91wMZZZjE2qo8G27n" width="690" height="296" data-dominant-color="1A1B1A"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">image</span><span class="informations">1041×447 15.4 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>