I too had problems with installing comfyai according to these instructions:
Everything seemed to install fine up until the server test. Here’s a log excerpt:
(comfyui-env) trelease@spark-993c:~/ComfyUI$ python main.py --listen 0.0.0.0
Checkpoint files will always be loaded safely.
Traceback (most recent call last):
File “/home/trelease/ComfyUI/main.py”, line 149, in
import execution
File “/home/trelease/ComfyUI/execution.py”, line 15, in
import comfy.model_management
File “/home/trelease/ComfyUI/comfy/model_management.py”, line 237, in
total_vram = get_total_memory(get_torch_device()) / (1024 * 1024)
^^^^^^^^^^^^^^^^^^
File “/home/trelease/ComfyUI/comfy/model_management.py”, line 187, in get_torch_device
return torch.device(torch.cuda.current_device())
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/home/trelease/comfyui-env/lib/python3.12/site-packages/torch/cuda/init.py”, line 1069, in current_device
_lazy_init()
File “/home/trelease/comfyui-env/lib/python3.12/site-packages/torch/cuda/init.py”, line 403, in _lazy_init
raise AssertionError(“Torch not compiled with CUDA enabled”)
AssertionError: Torch not compiled with CUDA enabled
(comfyui-env) trelease@spark-993c:~/ComfyUI$
~
I’ve got a ‘week 0” (reserved) Spark Founder’s Edition that was shipped the day after Jensen delivered Elon’s ;) …
The USB drive OS setup was fast and painless, and I’ve been intense “vibing” with the openwebui/ollama container since 10/17. The OS apt updates are current.
I’ve read elsewhere about “Torch not compiled with CUDA enabled” issues, but found no solutions relevant to Spark. This Forum thread seemed the only one related to the issue(s).
Adding together all that I read, the issue seems to turn around the comfyui env install using a ’deficient’ CUDA 12.9 image, whereas the base is CUDA 13+…
As an experienced Jetson developer, I’m nonetheless fairly reluctant to start hacking on the Spark install code, even if another NV dev or two reported comfyui works fine with CUDA13…
Is there any straightforward fix for this?
Expectation-wise, I was hoping the ‘production platform’ Spark Playbooks and buiild.nvidia.. wouldn’t present day0 glitches. Guess I was spoiled immediately by the cool openwebui-ollama Docker container ;))
(On the AGX Thor side, we’re still waiting for in house NV JP 7.1 upgrades to solve a knotty terminal processes/processor lag problems.)
Oh well.
Best regards!