unilab.base.process_device.apply_backend_env_device_override¶
- unilab.base.process_device.apply_backend_env_device_override(env_cfg_override, backend_type, *, devices=None, rank=0, local_rank=None, world_size=1, learner_device=None)[source]¶
Return an env override carrying the rank-selected simulator device.
The input mapping is never mutated. If no topology/device can be resolved, the owner-configured value is preserved. This lets one helper serve training, playback, and custom entrypoints while retaining the historical default (device zero) for single-process calls.