Restoring platform agnosticism, Linux users report OK

This commit is contained in:
resonantsky
2026-04-03 15:46:15 +02:00
parent e49d6262e9
commit a809b616e6

View File

@@ -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}")