Skip to content

Make multi-host Iris workloads find the fabric or fail fast - #574

Merged
drprajap merged 2 commits into
mainfrom
diprajap/multihost-fail-fast
Oct 12, 2026
Merged

drprajap merged 2 commits into
mainfrom
diprajap/multihost-fail-fast

Conversation

@drprajap

@drprajap drprajap commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

Motivation

On two Helios trays (MI455X, one pod), IRIS_ALLOCATOR=vmem_chunked picked INTRA_NODE, built the
single-host FD-passing mesh and hung; IRIS_ALLOCATOR=vmem died with a bare HIP error code 1.
Nothing in the log pointed at fabric discovery.

Technical Details

  • Get the AMD PCI bus ID from torch when the amdsmi Python bindings are missing.
  • Reuse the HIP runtime and libamd_smi torch already loaded (or the copy beside it) instead of mapping a second one; log when that overrides LD_LIBRARY_PATH.
  • Reject torch/vmem allocators on multi-host jobs; for vmem_chunked, require one shared fabric domain, and put each rank's discovery failure reason in the error.
  • Time out accept() and the rank handshake in the FD-passing mesh.

Test Plan

New unit tests (CPU only): test_multihost_guard.py, test_platform_libs.py, and additions to
test_topology.py / test_drivers.py.
test_allocate_symmetric.py
(test_allocate_symmetric_returns_peer_bases: a 1 MiB heap rounds up to one 2 MiB granule;fails identically on main).

Test Result

Submission Checklist

- Get the AMD PCI bus ID from torch when the amdsmi Python bindings are
  missing.
- Reuse the HIP runtime and libamd_smi torch already loaded (or the copy
  beside it) instead of mapping a second one; log when that overrides
  LD_LIBRARY_PATH.
- Reject torch/vmem allocators on multi-host jobs; for vmem_chunked,
  require one shared fabric domain, and put each rank's discovery
  failure reason in the error.
- Time out accept() and the rank handshake in the FD-passing mesh.
@github-actions github-actions Bot added in-progress We are working on it iris Iris project issue labels Oct 8, 2026

@artulab artulab left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me.

Comment thread tests/unittests/test_topology.py
@drprajap
drprajap requested a review from efric as a code owner October 9, 2026 23:27
@drprajap
drprajap requested a review from mawad-amd October 12, 2026 05:50
@drprajap
drprajap merged commit 79bd58f into main Oct 12, 2026
27 checks passed
@drprajap
drprajap deleted the diprajap/multihost-fail-fast branch October 12, 2026 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in-progress We are working on it iris Iris project issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants