Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions tests/pytorch/distributed/test_ep.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@
def test_multi_process_ep():
"""Launch the EP unit-test suite across all visible GPUs.

Short timeout so a hang on any rank surfaces fast rather than burning CI time.
The launcher applies its timeout independently to every torchrun pass.
"""
timeout_s = int(os.environ.get("NVTE_TEST_EP_TIMEOUT_S", "180"))

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.

I guess, we should have multiple ep tests share a single torchrun to decrease the overall timings for test. cc: @phu0ngng

proc = subprocess.run(
["bash", str(LAUNCHER)],
env={**os.environ, "KEEP_EP_LOGS": "1", "TEST_TIMEOUT_S": str(timeout_s)},
timeout=timeout_s + 30,
check=False,
)
Comment thread
fheinecke marked this conversation as resolved.
assert proc.returncode == 0, f"EP test suite failed (rc={proc.returncode})"
Loading