RTX3080ti RuntimeError: Torch is not able to use GPU

username: Mark_Lazarus
cooked: <p><div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/3/c/3c2c4bf79c67be6a98ffbb46bcef6110b060fb39.png" data-download-href="https://discuss.pytorch.org/uploads/default/3c2c4bf79c67be6a98ffbb46bcef6110b060fb39" title="image"><img src="https://discuss.pytorch.org/uploads/default/original/3X/3/c/3c2c4bf79c67be6a98ffbb46bcef6110b060fb39.png" alt="image" data-base62-sha1="8AjyjV9yzNdwzZhLWdvXJuTK6pj" width="690" height="347" data-dominant-color="1C1C19"><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">983×495 41.7 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><br>
i reinstall drivers, install cuda 11.8 devkit but nothing, torch cant recognize RTX<br>
What will be do ? Thanks</p>

username: ptrblck
cooked: <p>What does <code>python -c "import torch; print(torch.randn(1).cuda())"</code> return?</p>

username: Mark_Lazarus
cooked: <p>nothing ( i had phyton and git on board, and made cmd in SD folder</p>
<p><div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/e/b/ebca67098f66df5c7d763bcef0f639880c016446.png" data-download-href="https://discuss.pytorch.org/uploads/default/ebca67098f66df5c7d763bcef0f639880c016446" title="image"><img src="https://discuss.pytorch.org/uploads/default/original/3X/e/b/ebca67098f66df5c7d763bcef0f639880c016446.png" alt="image" data-base62-sha1="xDTQKOOEgxDhQBDwDaWgEKX6Trw" width="690" height="72" data-dominant-color="141414"><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">727×76 2.85 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><br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/1/b/1ba077a129ca36a5eb74eee065cd3c6d363de560.png" data-download-href="https://discuss.pytorch.org/uploads/default/1ba077a129ca36a5eb74eee065cd3c6d363de560" title="image"><img src="https://discuss.pytorch.org/uploads/default/original/3X/1/b/1ba077a129ca36a5eb74eee065cd3c6d363de560.png" alt="image" data-base62-sha1="3WoGRpfmU3iOoz3yLAfVlavO9Ta" width="690" height="201" data-dominant-color="181818"><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">714×209 7.76 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>

username: ptrblck
cooked: <p>In that case you might not have installed a valid Python environment as a random tensor should be returned:</p>
<pre data-code-wrap="python"><code class="lang-python">python -c "import torch; print(torch.randn(1).cuda())"
tensor([0.2099], device='cuda:0')
</code></pre>
<p>or an error message in case your installation does not ship with CUDA support.</p>

username: Mark_Lazarus
cooked: <p>i will check and report ,tanks<br>
update: reinstall python<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/0/9/09dd6b9aa3064539bbd6f80c7291ec4b570f40f2.png" data-download-href="https://discuss.pytorch.org/uploads/default/09dd6b9aa3064539bbd6f80c7291ec4b570f40f2" title="image"><img src="https://discuss.pytorch.org/uploads/default/original/3X/0/9/09dd6b9aa3064539bbd6f80c7291ec4b570f40f2.png" alt="image" data-base62-sha1="1pgGF3oUbsxLiEC27RtjqyW2DVU" width="690" height="139" data-dominant-color="161616"><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">815×165 6.79 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><br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/7/8/78077ce10f6614515dfdfc7b88102f551109c292.png" data-download-href="https://discuss.pytorch.org/uploads/default/78077ce10f6614515dfdfc7b88102f551109c292" title="image"><img src="https://discuss.pytorch.org/uploads/default/original/3X/7/8/78077ce10f6614515dfdfc7b88102f551109c292.png" alt="image" data-base62-sha1="h7Pl19OkWpxrL7cedseukNKmUvw" width="690" height="170" data-dominant-color="141414"><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">711×176 6.05 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>

username: ptrblck
cooked: <p>You didn’t install PyTorch in this environment, so stick to <a href="https://pytorch.org/get-started/locally/">these install instructions</a> and check again if you can <code>import torch</code> and if you can create a simple <code>CUDATensor</code>.</p>

username: khadim_hussain1
cooked: <p><div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/c/3/c3e0b1f18cdd8db20ff131fdc222f2fe741c18ae.png" data-download-href="https://discuss.pytorch.org/uploads/default/c3e0b1f18cdd8db20ff131fdc222f2fe741c18ae" title="image"><img src="https://discuss.pytorch.org/uploads/default/original/3X/c/3/c3e0b1f18cdd8db20ff131fdc222f2fe741c18ae.png" alt="image" data-base62-sha1="rWOvQRtT95Lt1i6uKob40bcQCui" width="690" height="51" data-dominant-color="222322"><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">1300×97 5.29 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><br>
i tried with different versions of python</p>