Skip to content

Add utils for c10d tests to ProcessGroupXCCL - #181646

Closed
frost-intel wants to merge 2 commits into
pytorch:mainfrom
frost-intel:pgxccl_test_utils
Closed

frost-intel wants to merge 2 commits into
pytorch:mainfrom
frost-intel:pgxccl_test_utils

Conversation

@frost-intel

Copy link
Copy Markdown
Collaborator

The c10d backend tests in test/distributed/test_c10d_{backend}.py require some specific utils which are only used in the tests. This PR adds those utils to fix the tests failing in: intel/torch-xpu-ops#3378, intel/torch-xpu-ops#3379, intel/torch-xpu-ops#3377, intel/torch-xpu-ops#3376, intel/torch-xpu-ops#3306, intel/torch-xpu-ops#2968

@pytorch-bot

pytorch-bot Bot commented Apr 27, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/181646

Note: Links to docs will display an error until the docs builds have been completed.

❌ 2 New Failures, 2 Unrelated Failures

As of commit 2fb3f41 with merge base 44dbb74 (image):

NEW FAILURES - The following jobs have failed:

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot Bot added ciflow/torchtitan Run TorchTitan integration tests release notes: distributed (c10d) release notes category labels Apr 27, 2026
@pytorch-bot

pytorch-bot Bot commented Apr 27, 2026 •

Copy link
Copy Markdown

Workflows were awaiting approval. CI has now been triggered for the ciflow labels on this PR.

@@ -1479,7 +1479,7 @@ def _get_process_group_uid(pg: ProcessGroup) -> int:
backend = pg._get_backend(torch.device("cuda"))

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.

hard code cuda? how it works on XPU

except RuntimeError:
pass
if is_nccl_available() and isinstance(backend, ProcessGroupNCCL):
if hasattr(backend, "uid"):

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.

Do we need is_backend_available to replace is_nccl_available here?

def options(self) -> Options: ... # type: ignore[override]
@property
def uid(self) -> int: ...
def _is_initialized(self) -> bool: ...

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.

missing?

  • _set_enable_nan_check
  • _set_default_timeout
  • _dump_xccl_trace_json
  • _reset_fr_recording_xccl

@guangyey guangyey added the ciflow/trunk Trigger trunk jobs on your pull request label May 8, 2026
@frost-intel

Copy link
Copy Markdown
Collaborator Author

This is dependent on a few different blocks of XPU code which is present in our distributed test branch and infra, and which I had assumed were upstreamed, but haven't been. I'll close this PR and these changes will be merged when distributed XPU tests are upstreamed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/torchtitan Run TorchTitan integration tests ciflow/trunk Trigger trunk jobs on your pull request open source release notes: distributed (c10d) release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants