[Feature] NUMA binding support for GPU workers (#38635)

Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
Co-authored-by: Jason Li <jasonlizhengjian@gmail.com>
Co-authored-by: Roger Wang <hey@rogerw.io>
This commit is contained in:
Shengqi Chen
2026-04-08 09:55:24 -07:00
committed by GitHub
co-authored by Jason Li Roger Wang
parent 512c5eb455
commit 75e01a39a1
13 changed files with 817 additions and 7 deletions
+5
View File
@@ -140,6 +140,11 @@ def _maybe_force_spawn():
os.environ["RAY_ADDRESS"] = ray.get_runtime_context().gcs_address
reasons.append("In a Ray actor and can only be spawned")
# Force spawn if NUMA binding is enabled via --numa-bind.
# NUMA binding uses executable hijacking which requires spawn
if "--numa-bind" in sys.argv:
reasons.append("NUMA binding requires spawn method")
if cuda_is_initialized():
reasons.append("CUDA is initialized")
elif xpu_is_initialized():