# Torch not compiled with CUDA enabled for ComfyUI

**URL:** <https://discuss.pytorch.org/t/torch-not-compiled-with-cuda-enabled-for-comfyui/219999>\
**Category:** torch.compile\
**Created:** [May 13, 2025, 6:24pm UTC](https://discuss.pytorch.org/t/torch-not-compiled-with-cuda-enabled-for-comfyui/219999 "2025-05-13T18:24:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jean-Luc\_PIETRI](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/jean-luc_pietri/32/76994_2.png) [@Jean-Luc\_PIETRI](https://discuss.pytorch.org/u/Jean-Luc_PIETRI)\
**Post date:** [May 13, 2025, 6:24pm UTC](https://discuss.pytorch.org/t/torch-not-compiled-with-cuda-enabled-for-comfyui/219999/1 "2025-05-13T18:24:26Z")

</div>

Hello,  
Which Pytorch version is compatible with NVIDIA’s CUDA 12.7 to run comfyui ?

 ![Capture d’écran 2025-05-13 202148](https://discuss.pytorch.org/uploads/default/original/3X/d/a/da6fdda38a505e1bf0b8523550b9e3c7b4093cca.jpeg)  
Thank you for your help

---

<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:** [May 13, 2025, 7:14pm UTC](https://discuss.pytorch.org/t/torch-not-compiled-with-cuda-enabled-for-comfyui/219999/2 "2025-05-13T19:14:22Z")

</div>

> [@Jean-Luc\_PIETRI](#):
>
> Which Pytorch version is compatible with NVIDIA’s CUDA 12.7 to run comfyui ?

Your locally installed CUDA toolkit won’t be used, so install a PyTorch binary with CUDA support from our [install matrix](https://pytorch.org/get-started/locally/) by selecting the desired CUDA version.
