mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-10 05:22:34 +08:00
Disable comfy kitchen cuda if pytorch cuda less than 13
This commit is contained in:
parent
2c03884f5f
commit
30088fa5a0
@ -13,6 +13,13 @@ try:
|
|||||||
get_layout_class,
|
get_layout_class,
|
||||||
)
|
)
|
||||||
_CK_AVAILABLE = True
|
_CK_AVAILABLE = True
|
||||||
|
if torch.version.cuda is None:
|
||||||
|
ck.registry.disable("cuda")
|
||||||
|
else:
|
||||||
|
cuda_version = tuple(map(int, str(torch.version.cuda).split('.')))
|
||||||
|
if cuda_version < (13,):
|
||||||
|
ck.registry.disable("cuda")
|
||||||
|
|
||||||
ck.registry.disable("triton")
|
ck.registry.disable("triton")
|
||||||
for k, v in ck.list_backends().items():
|
for k, v in ck.list_backends().items():
|
||||||
logging.info(f"Found comfy_kitchen backend {k}: {v}")
|
logging.info(f"Found comfy_kitchen backend {k}: {v}")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user