Repository navigation
Add utils for c10d tests to ProcessGroupXCCL - #181646
frost-intel wants to merge 2 commits into
Conversation
🔗 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 FailuresAs of commit 2fb3f41 with merge base 44dbb74 ( 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. |
|
|
| @@ -1479,7 +1479,7 @@ def _get_process_group_uid(pg: ProcessGroup) -> int: | |||
| backend = pg._get_backend(torch.device("cuda")) | |||
There was a problem hiding this comment.
hard code cuda? how it works on XPU
| except RuntimeError: | ||
| pass | ||
| if is_nccl_available() and isinstance(backend, ProcessGroupNCCL): | ||
| if hasattr(backend, "uid"): |
There was a problem hiding this comment.
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: ... |
There was a problem hiding this comment.
missing?
_set_enable_nan_check_set_default_timeout_dump_xccl_trace_json_reset_fr_recording_xccl
|
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. |
The c10d backend tests in
test/distributed/test_c10d_{backend}.pyrequire 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