mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-03-23 18:13:28 +08:00
run triton import with version check when enable_triton_backend launch arg is used to check if it actually works.
This commit is contained in:
parent
7506c7baed
commit
2329f8c925
@ -26,7 +26,7 @@ try:
|
|||||||
if args.enable_triton_backend:
|
if args.enable_triton_backend:
|
||||||
try:
|
try:
|
||||||
import triton
|
import triton
|
||||||
logging.info(f"Found triton package installed. Enabling comfy-kitchen triton backend.")
|
logging.info("Found triton %s. Enabling comfy-kitchen triton backend.", triton.__version__)
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
logging.error(f"Failed to import triton, Error: {e}, the comfy-kitchen triton backend will not be available.")
|
logging.error(f"Failed to import triton, Error: {e}, the comfy-kitchen triton backend will not be available.")
|
||||||
ck.registry.disable("triton")
|
ck.registry.disable("triton")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user