mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
Merge pull request #4804 from awsr/rocm-adv-update
ROCm Adv Mgr: Only autoload if config file exists
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user