Log message for cudnn disable on AMD.

This commit is contained in:
comfyanonymous 2025-10-20 15:40:35 -04:00 committed by GitHub
parent a4787ac83b
commit c483b6bf13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -333,6 +333,7 @@ SUPPORT_FP8_OPS = args.supports_fp8_compute
try:
if is_amd():
torch.backends.cudnn.enabled = False # Seems to improve things a lot on AMD
logging.info("Set: torch.backends.cudnn.enabled = False for better AMD performance.")
try:
rocm_version = tuple(map(int, str(torch.version.hip).split(".")[:2]))
except: