unilab.base.cpu_runtime.apply_env_cpu_runtime¶
- unilab.base.cpu_runtime.apply_env_cpu_runtime(cpu_ids)[source]¶
Confine this process’s host-side compute to the env-owned CPU block.
Cold path only: call from env construction, before the backend pool, managers, or any Numba parallel kernel exist.
None(the single-rank default) is a no-op so the default path stays bit-identical.Structural validation (non-empty, unique, non-negative ints) is owned by
EnvCfg.validate; this function fails closed on CPU ids that are not available to the process.