[CI] [ROCm] Bugfix device environment issue (#1984)
Signed-off-by: tjtanaa <tunjian.tan@embeddedllm.com>
This commit is contained in:
1 parent
fc5e8f825e
commit
c85acb1773
5 files changed
+32
-5
No files matched your search
@@ -350,9 +350,9 @@ class AsyncOmniEngine:
|
||||
)
|
||||
finally:
|
||||
if previous_visible_devices is None:
|
||||
os.environ.pop(device_control_env, None)
|
||||
current_omni_platform.unset_device_control_env_var()
|
||||
else:
|
||||
os.environ[device_control_env] = previous_visible_devices
|
||||
current_omni_platform.set_device_control_env_var(previous_visible_devices)
|
||||
|
||||
logger.info("[AsyncOmniEngine] Stage %s engine launch started", metadata.stage_id)
|
||||
launch_cm.__exit__(None, None, None)
|
||||
|
||||
Reference in new issue
Block a user