Is there a table which shows the supported cuda version for every pytorch version

Alpha: <p>Is there a table which shows the supported cuda version for every pytorch version?<br>
Thanks.</p>

ptrblck: <p>You can build PyTorch from source with any CUDA version &gt;=9.2 and the binaries ship with the mentioned CUDA versions from <a href="https://pytorch.org/get-started/locally/">the install selection</a>.</p>

Alpha: <p>If I only have cuda9.0, what’s the newest pytroch I can use?</p>

ptrblck: <p>I think <code>1.4</code> would be the last PyTorch version supporting CUDA9.0.<br>
Note that you don’t need a local CUDA toolkit, if you install the conda binaries or pip wheels, as they will ship with the CUDA runtime. You would only have to make sure the NVIDIA driver is updated to the needed version corresponding to the CUDA runtime version.</p>

Alpha: <p>Thank you for your reply.</p>
<p>If I have to build some additional libraries, such as detectron2, do I need a local CUDA toolkit?</p>

ptrblck: <p>If these 3rd party packages are shipping with CUDA kernels, then you would need to install a local CUDA toolkit, yes.</p>

Nyari: <aside class="quote no-group" data-username="ptrblck" data-post="4" data-topic="105846">
<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/ptrblck/48/1823_2.png" class="avatar"> ptrblck:</div>
<blockquote>
<p>You would only have to make sure the NVIDIA driver is updated to the needed version corresponding to the CUDA runtime version.</p>
</blockquote>
</aside>
<p>Would having the latest Nvidia driver do this, or are you saying that I should downgrade my Nvidia driver to match whatever CUDA version Anaconda is currently using?</p>

Behrad_Tabrizipour: <p>hi, i hope you are well,<br>
actually i have installed cuda 11.8 but i cant find the suitable version of pytorch which is compatible with cuda 11.8 and customized for pytorch. what should i do instead?</p>

ptrblck: <p>You can just select <code>CUDA 11.8</code> in the install matrix and run the created command:<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/f/2/f2a5407bc5d3a24dbdd906ee699c81f813c40922.png" data-download-href="https://discuss.pytorch.org/uploads/default/f2a5407bc5d3a24dbdd906ee699c81f813c40922" title="image"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/f/2/f2a5407bc5d3a24dbdd906ee699c81f813c40922_2_690x254.png" alt="image" data-base62-sha1="yCxB6cq2AZS8G7Tcq5HNe2iYPOW" width="690" height="254" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/f/2/f2a5407bc5d3a24dbdd906ee699c81f813c40922_2_690x254.png, https://discuss.pytorch.org/uploads/default/original/3X/f/2/f2a5407bc5d3a24dbdd906ee699c81f813c40922.png 1.5x, https://discuss.pytorch.org/uploads/default/original/3X/f/2/f2a5407bc5d3a24dbdd906ee699c81f813c40922.png 2x" data-dominant-color="F4D9D5"><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">857×316 28.5 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>