Skip to content

Fix comm_cuda_init_mp_test ImportError handling in forkserver child#2015

Open
lilyjanjigian wants to merge 2 commits intometa-pytorch:mainfrom
lilyjanjigian:export-D100205289
Open

Fix comm_cuda_init_mp_test ImportError handling in forkserver child#2015
lilyjanjigian wants to merge 2 commits intometa-pytorch:mainfrom
lilyjanjigian:export-D100205289

Conversation

@lilyjanjigian
Copy link
Copy Markdown
Contributor

Summary:
The forkserver child process can fail with ImportError (not just
ModuleNotFoundError) due to numpy circular import issues in the PAR
environment. Catch the broader ImportError to handle both cases.

Differential Revision: D100205289

…orch#2012)

Summary:

The NCCL_RUNTIME_CONNECT CVAR default was changed to 1 (true), but
the NoHintsCreatesDefaults test still expected false. Update the
assertion to match the current default.

Reviewed By: MogicianWu

Differential Revision: D100182677
Summary:
The forkserver child process can fail with ImportError (not just
ModuleNotFoundError) due to numpy circular import issues in the PAR
environment. Catch the broader ImportError to handle both cases.

Differential Revision: D100205289
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Apr 9, 2026
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync bot commented Apr 9, 2026

@lilyjanjigian has exported this pull request. If you are a Meta employee, you can view the originating Diff in D100205289.

lilyjanjigian added a commit to lilyjanjigian/torchcomms that referenced this pull request Apr 9, 2026
…eta-pytorch#2015)

Summary:

The forkserver child process can fail with ImportError (not just
ModuleNotFoundError) due to numpy circular import issues in the PAR
environment. Catch the broader ImportError to handle both cases.

Differential Revision: D100205289
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. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant