Building Pytorch from source pytorch binaries

saran: <p>i am facing the problem<br>
GeForce RTX 3090 with CUDA capability sm_86 is not compatible with the current PyTorch  installation</p>
<p>" i also dont know about binaries and what is mean by " building Pytorch from source ? and what is other way to build pytorch which can work me and can solve this problem "</p>

ptrblck: <p>Double post from <a href="https://discuss.pytorch.org/t/geforce-rtx-3090-with-cuda-capability-sm-86-is-not-compatible-with-the-current-pytorch-installation/123499/8">here</a> with the answer.<br>
Install the CUDA11 binaries using the install instructions from the website and your 3090 should work.</p>

aleemsidra: <p><a class="mention" href="/u/ptrblck">@ptrblck</a> , my cuda version is : cuda_11.5 (Build cuda_11.5.r11.5/compiler.30672275_0<br>
) , torch version is: 1.10.2+cu102. However, on this  <a href="https://pytorch.org/get-started/locally/" rel="noopener nofollow ugc">link</a>, there is no option for Cuda version 11.5. When I use Cuda version 11.6, I still face the issue:</p>
<pre><code class="lang-auto">UserWarning: 
NVIDIA GeForce RTX 3090 with CUDA capability sm_86 is not compatible with the current PyTorch installation.
The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_70.
If you want to use the NVIDIA GeForce RTX 3090 GPU with PyTorch
</code></pre>
<pre><code class="lang-auto">RuntimeError: CUDA error: no kernel image is available for execution on the device
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
</code></pre>
<p>Can you please help me solve this issue?</p>

ptrblck: <aside class="quote no-group" data-username="aleemsidra" data-post="3" data-topic="128491">
<div class="title">
<div class="quote-controls"></div>
<img loading="lazy" alt="" width="24" height="24" src="https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/aleemsidra/48/38723_2.png" class="avatar"> aleemsidra:</div>
<blockquote>
<p>torch version is: 1.10.2+cu102</p>
</blockquote>
</aside>
<p>That’s the wrong binary as it’s using CUDA 10.2 while you need CUDA 11.x for your 3090.</p>
<aside class="quote no-group" data-username="aleemsidra" data-post="3" data-topic="128491">
<div class="title">
<div class="quote-controls"></div>
<img loading="lazy" alt="" width="24" height="24" src="https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/aleemsidra/48/38723_2.png" class="avatar"> aleemsidra:</div>
<blockquote>
<p>However, on this <a href="https://pytorch.org/get-started/locally/">link</a>, there is no option for Cuda version 11.5.</p>
</blockquote>
</aside>
<p>Select 11.3 or 11.6.</p>
<aside class="quote no-group" data-username="aleemsidra" data-post="3" data-topic="128491">
<div class="title">
<div class="quote-controls"></div>
<img loading="lazy" alt="" width="24" height="24" src="https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/aleemsidra/48/38723_2.png" class="avatar"> aleemsidra:</div>
<blockquote>
<p>When I use Cuda version 11.6, I still face the issue:</p>
</blockquote>
</aside>
<p>Make sure you have only the one right binary installed and uninstall the old ones.</p>

aleemsidra: <p><a class="mention" href="/u/ptrblck">@ptrblck</a> thank you, it worked.</p>