Add env TORCH_AMD_CUDNN_ENABLED (fix typo)

This commit is contained in:
Christopher Anderson 2025-11-08 20:45:32 +11:00
parent 90ba86a95f
commit de408d5f2c

View File

@ -343,7 +343,7 @@ try:
"0", "off", "false", "disable", "disabled", "no"} "0", "off", "false", "disable", "disabled", "no"}
if not torch.backends.cudnn.enabled: if not torch.backends.cudnn.enabled:
logging.info( logging.info(
"ComfyUI has set torch.backends.cudnn.enabled to False for better AMD performance. Set environment var TORCH_AMD_CUDDNN_ENABLED=1 to enable it again.") "ComfyUI has set torch.backends.cudnn.enabled to False for better AMD performance. Set environment var TORCH_AMD_CUDNN_ENABLED=1 to enable it again.")
try: try:
rocm_version = tuple(map(int, str(torch.version.hip).split(".")[:2])) rocm_version = tuple(map(int, str(torch.version.hip).split(".")[:2]))