Comfy-Org / Comfy-Org/ComfyUI

KSampler Advanced GPU runs into error, (apparently expected a cuda device but only finds the cpu?)

Open
#2,449 1 comment 0 reactions 0 assignees View on GitHub
User Support
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

Using the normal KSampler node doesnt cause any problems, but as of recent, the KSamplerAdvancedGPU is running into an error
and gives the this error message:
(I hooked up everything correctly lol this shouldnt be the problem, its something with the sampler node I guess)

![image](https://github.com/comfyanonymous/ComfyUI/assets/98273272/94de7f61-0e67-4fdd-8429-695be2c89472)

here a helpful visual guide lol
![help](https://github.com/comfyanonymous/ComfyUI/assets/98273272/e3c2ec33-0c5c-43db-9c3e-656340ee8628)
Is it because of this **device=device** thingy in line 29 and 31??

I believe I need to go in this .py file and change something from CPU to the GPU or cuda device but I dont know how XD
Can someone tell me what to do to solve the problem?

Also I tried updating ComfyUI and uninstalled some custom nodes and stuff, didnt fix it unfortunately...

Thx in advance :)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.