mirror of
https://github.com/vladmandic/automatic
synced 2026-04-09 10:11:53 +02:00
Restoring platform agnosticism, Linux users report OK
This commit is contained in:
@@ -468,10 +468,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 sys.platform == 'win32':
|
||||
try:
|
||||
apply_env()
|
||||
except Exception as _e:
|
||||
log.debug(f"[rocm_mgr] Warning: failed to apply env at import: {_e}")
|
||||
else:
|
||||
log.debug('Skipping ROCm Environment Manager: Currently only Windows is supported.')
|
||||
try:
|
||||
apply_env()
|
||||
except Exception as _e:
|
||||
log.debug(f"[rocm_mgr] Warning: failed to apply env at import: {_e}")
|
||||
|
||||
Reference in New Issue
Block a user