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

**URL:** <https://discuss.pytorch.org/t/is-there-a-table-which-shows-the-supported-cuda-version-for-every-pytorch-version/105846>\
**Category:** Uncategorized\
**Created:** [December 11, 2020, 8:06am UTC](https://discuss.pytorch.org/t/is-there-a-table-which-shows-the-supported-cuda-version-for-every-pytorch-version/105846 "2020-12-11T08:06:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alpha](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/alpha/32/25271_2.png) [@Alpha](https://discuss.pytorch.org/u/Alpha)\
**Post date:** [December 11, 2020, 8:06am UTC](https://discuss.pytorch.org/t/is-there-a-table-which-shows-the-supported-cuda-version-for-every-pytorch-version/105846/1 "2020-12-11T08:06:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ptrblck](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ptrblck/32/1823_2.png) [@ptrblck](https://discuss.pytorch.org/u/ptrblck)\
**Post date:** [December 11, 2020, 9:57am UTC](https://discuss.pytorch.org/t/is-there-a-table-which-shows-the-supported-cuda-version-for-every-pytorch-version/105846/2 "2020-12-11T09:57:50Z")

</div>

You can build PyTorch from source with any CUDA version \>=9.2 and the binaries ship with the mentioned CUDA versions from [the install selection](https://pytorch.org/get-started/locally/).

---

<div class="post-metadata">

**Author:** ![Alpha](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/alpha/32/25271_2.png) [@Alpha](https://discuss.pytorch.org/u/Alpha)\
**Post date:** [December 11, 2020, 1:50pm UTC](https://discuss.pytorch.org/t/is-there-a-table-which-shows-the-supported-cuda-version-for-every-pytorch-version/105846/3 "2020-12-11T13:50:31Z")

</div>

If I only have cuda9.0, what’s the newest pytroch I can use?

---

<div class="post-metadata">

**Author:** ![ptrblck](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ptrblck/32/1823_2.png) [@ptrblck](https://discuss.pytorch.org/u/ptrblck)\
**Post date:** [December 11, 2020, 10:52pm UTC](https://discuss.pytorch.org/t/is-there-a-table-which-shows-the-supported-cuda-version-for-every-pytorch-version/105846/4 "2020-12-11T22:52:51Z")

</div>

I think `1.4` would be the last PyTorch version supporting CUDA9.0.  
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.

---

<div class="post-metadata">

**Author:** ![Alpha](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/alpha/32/25271_2.png) [@Alpha](https://discuss.pytorch.org/u/Alpha)\
**Post date:** [December 12, 2020, 1:21am UTC](https://discuss.pytorch.org/t/is-there-a-table-which-shows-the-supported-cuda-version-for-every-pytorch-version/105846/5 "2020-12-12T01:21:54Z")

</div>

Thank you for your reply.

If I have to build some additional libraries, such as detectron2, do I need a local CUDA toolkit?

---

<div class="post-metadata">

**Author:** ![ptrblck](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ptrblck/32/1823_2.png) [@ptrblck](https://discuss.pytorch.org/u/ptrblck)\
**Post date:** [December 12, 2020, 6:31am UTC](https://discuss.pytorch.org/t/is-there-a-table-which-shows-the-supported-cuda-version-for-every-pytorch-version/105846/6 "2020-12-12T06:31:52Z")

</div>

If these 3rd party packages are shipping with CUDA kernels, then you would need to install a local CUDA toolkit, yes.

---

<div class="post-metadata">

**Author:** ![Nyari](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/nyari/32/59365_2.png) [@Nyari](https://discuss.pytorch.org/u/Nyari)\
**Post date:** [April 14, 2023, 2:06pm UTC](https://discuss.pytorch.org/t/is-there-a-table-which-shows-the-supported-cuda-version-for-every-pytorch-version/105846/7 "2023-04-14T14:06:45Z")

</div>

> [@ptrblck](#):
>
> You would only have to make sure the NVIDIA driver is updated to the needed version corresponding to the CUDA runtime version.

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?

---

<div class="post-metadata">

**Author:** ![Behrad\_Tabrizipour](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/behrad_tabrizipour/32/64352_2.png) [@Behrad\_Tabrizipour](https://discuss.pytorch.org/u/Behrad_Tabrizipour)\
**Post date:** [October 3, 2023, 3:07pm UTC](https://discuss.pytorch.org/t/is-there-a-table-which-shows-the-supported-cuda-version-for-every-pytorch-version/105846/8 "2023-10-03T15:07:43Z")

</div>

hi, i hope you are well,  
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?

---

<div class="post-metadata">

**Author:** ![ptrblck](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ptrblck/32/1823_2.png) [@ptrblck](https://discuss.pytorch.org/u/ptrblck)\
**Post date:** [October 3, 2023, 3:25pm UTC](https://discuss.pytorch.org/t/is-there-a-table-which-shows-the-supported-cuda-version-for-every-pytorch-version/105846/9 "2023-10-03T15:25:09Z")

</div>

You can just select `CUDA 11.8` in the install matrix and run the created command:

 ![image](https://discuss.pytorch.org/uploads/default/original/3X/f/2/f2a5407bc5d3a24dbdd906ee699c81f813c40922.png)
