From 0cb7f426f9f453b9a9e0ab3c01af26208743fae3 Mon Sep 17 00:00:00 2001 From: awsr <43862868+awsr@users.noreply.github.com> Date: Mon, 27 Apr 2026 10:55:53 -0700 Subject: [PATCH] Only autoload if config file exists. --- scripts/rocm/rocm_mgr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/rocm/rocm_mgr.py b/scripts/rocm/rocm_mgr.py index 61fbe1456..620c0c0d3 100644 --- a/scripts/rocm/rocm_mgr.py +++ b/scripts/rocm/rocm_mgr.py @@ -518,7 +518,7 @@ def info() -> dict: # Apply saved config to os.environ at import time (only when ROCm is present) -if installer.torch_info.get('type', None) == 'rocm': +if installer.torch_info.get('type', None) == 'rocm' and CONFIG.exists(): try: apply_env() except Exception as _e: