mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-21 03:40:16 +08:00
Update zluda.py (cleanup print Triton version)
compacted, without exception, silent if no version string
This commit is contained in:
parent
ce8900fa25
commit
13ba6a8a8d
@ -447,12 +447,11 @@ try:
|
|||||||
import triton.language as tl
|
import triton.language as tl
|
||||||
print(" :: Triton core imported successfully")
|
print(" :: Triton core imported successfully")
|
||||||
|
|
||||||
# Get triton version, if possible, continue if no version string
|
# Detect Triton version, if possible
|
||||||
try:
|
version = getattr(triton, "__version__", None)
|
||||||
version = triton.__version__
|
if version:
|
||||||
print(f" :: Detected Triton version: {version}")
|
print(f" :: Detected Triton version: {version}")
|
||||||
except AttributeError:
|
# else: do nothing
|
||||||
print(" :: Detected Triton version: no info")
|
|
||||||
|
|
||||||
# This needs to be up here, so it can disable cudnn before anything can even think about using it
|
# This needs to be up here, so it can disable cudnn before anything can even think about using it
|
||||||
torch.backends.cudnn.enabled = os.environ.get("TORCH_BACKENDS_CUDNN_ENABLED", "1").strip().lower() not in {"0", "off", "false", "disable", "disabled", "no"}
|
torch.backends.cudnn.enabled = os.environ.get("TORCH_BACKENDS_CUDNN_ENABLED", "1").strip().lower() not in {"0", "off", "false", "disable", "disabled", "no"}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user