Skip to content

Record the rendezvous group on the symmetric memory handle - #40

Open
kapilsh wants to merge 2 commits into
mainfrom
symmem/group-name
Open

kapilsh wants to merge 2 commits into
mainfrom
symmem/group-name

Conversation

@kapilsh

@kapilsh kapilsh commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • test_signal.py, test_symmetric_memory.py on 2x GB200: 19 passed.
  • New tests: world group, subgroups (by object, by name, single rank), and the timeout after the group is destroyed.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 22, 2026
@kapilsh
kapilsh added this pull request to stack #41 November 22, 2026 14:30
@kapilsh
kapilsh marked this pull request as ready for review November 22, 2026 14:30
CI ran pytest with no time limit for each test. A test that hung
blocked the GPU job until the 60-minute job timeout, and the log did
not show which test hung.

The dev dependency group now includes pytest-timeout, and
[tool.pytest.ini_options] sets timeout = 120. A test that runs for more
than 120 seconds fails, and pytest shows its stack. This applies to the
CI jobs and to local runs.

Test plan:
- pytest shows "timeout: 120.0s" without the --timeout option.
  test_ipc_fd.py: 9 passed.
- uv 0.13.9: uv lock --check passes.
- lintrunner: no issues.
Mirrors PyTorch #199972 (hdl.group_name).

SymmMemHandle gains group_name, a weakref to the process group and the
group's timeout. _resolve_timeout reads the timeout from the handle and
returns 0 (unbounded) once the group is gone, replacing the
_group_timeout_ms map keyed by communicator pointer.

Tests cover the world group, subgroups (by object, by name, single-rank)
and the timeout lapsing when its group is destroyed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant