# HELP with torch not compiled with cuda?

**URL:** <https://forum.comfy.org/t/help-with-torch-not-compiled-with-cuda/1829>\
**Category:** Custom Nodes\
**Created:** [March 8, 2025, 10:13pm UTC](https://forum.comfy.org/t/help-with-torch-not-compiled-with-cuda/1829 "2025-03-08T22:13:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joonienyc](https://avatars.discourse-cdn.com/v4/letter/j/838e76/32.png) [@joonienyc](https://forum.comfy.org/u/joonienyc)\
**Post date:** [March 8, 2025, 10:13pm UTC](https://forum.comfy.org/t/help-with-torch-not-compiled-with-cuda/1829/1 "2025-03-08T22:13:38Z")

</div>

D:\COMFYUI\ComfyUI\_windows\_portable\>.\python\_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build  
[START] Security scan  
[DONE] Security scan

## ComfyUI-Manager: installing dependencies done.

\*\* ComfyUI startup time: 2025-03-08 17:11:23.826  
\*\* Platform: Windows  
\*\* Python version: 3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)]  
\*\* Python executable: D:\COMFYUI\ComfyUI\_windows\_portable\python\_embeded\python.exe  
\*\* ComfyUI Path: D:\COMFYUI\ComfyUI\_windows\_portable\ComfyUI  
\*\* ComfyUI Base Folder Path: D:\COMFYUI\ComfyUI\_windows\_portable\ComfyUI  
\*\* User directory: D:\COMFYUI\ComfyUI\_windows\_portable\ComfyUI\user  
\*\* ComfyUI-Manager config path: D:\COMFYUI\ComfyUI\_windows\_portable\ComfyUI\user\default\ComfyUI-Manager\config.ini  
\*\* Log path: D:\COMFYUI\ComfyUI\_windows\_portable\ComfyUI\user\comfyui.log

Prestartup times for custom nodes:  
0.0 seconds: D:\COMFYUI\ComfyUI\_windows\_portable\ComfyUI\custom\_nodes\rgthree-comfy  
1.4 seconds: D:\COMFYUI\ComfyUI\_windows\_portable\ComfyUI\custom\_nodes\comfyui-manager

Checkpoint files will always be loaded safely.  
Traceback (most recent call last):  
File “D:\COMFYUI\ComfyUI\_windows\_portable\ComfyUI\main.py”, line 136, in   
import execution  
File “D:\COMFYUI\ComfyUI\_windows\_portable\ComfyUI\execution.py”, line 13, in   
import nodes  
File “D:\COMFYUI\ComfyUI\_windows\_portable\ComfyUI\nodes.py”, line 22, in   
import comfy.diffusers\_load  
File “D:\COMFYUI\ComfyUI\_windows\_portable\ComfyUI\comfy\diffusers\_load.py”, line 3, in   
import comfy.sd  
File “D:\COMFYUI\ComfyUI\_windows\_portable\ComfyUI\comfy\sd.py”, line 7, in   
from comfy import model\_management  
File “D:\COMFYUI\ComfyUI\_windows\_portable\ComfyUI\comfy\model\_management.py”, line 189, in   
total\_vram = get\_total\_memory(get\_torch\_device()) / (1024 \* 1024)  
^^^^^^^^^^^^^^^^^^  
File “D:\COMFYUI\ComfyUI\_windows\_portable\ComfyUI\comfy\model\_management.py”, line 146, in get\_torch\_device  
return torch.device(torch.cuda.current\_device())  
^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “D:\COMFYUI\ComfyUI\_windows\_portable\python\_embeded\Lib\site-packages\torch\cuda\__init_\_.py”, line 971, in current\_device  
_lazy\_init()  
File "D:\COMFYUI\ComfyUI\_windows\_portable\python\_embeded\Lib\site-packages\torch\cuda\_init_.py", line 310, in \_lazy\_init  
raise AssertionError(“Torch not compiled with CUDA enabled”)  
AssertionError: Torch not compiled with CUDA enabled

D:\COMFYUI\ComfyUI\_windows\_portable\>pause  
Press any key to continue . . .
