intel / intel/torch-xpu-ops

[distributed] 'torch._C._distributed_c10d.ProcessGroupXCCL' object has no attribute '_set_default_timeout' in test_dynamo_distributed.py

Open
#3,101 0 comments 0 reactions 1 assignee Claimed by @jenniew View on GitHub
module: distributed
Dominant language
Python
Stars
113
Forks
129
Avg merge
5d 9h
Merged PRs (30d)
112

Description

### 🐛 Describe the bug

```
git clone -b distributed_2.11 https://github.com/daisyden/pytorch.git
cd pytorch
pip install -r requirements.txt
pip install pytest expecttest
pytest -v test/distributed/test_dynamo_distributed.py::TestMultiProc::test_asymmetric_compilation
pytest -v test/distributed/test_dynamo_distributed.py::TestMultiProc::test_asymmetric_compilation_with_fx_cache
```
```
Traceback (most recent call last):
File "/home/sdp/miniforge3/envs/xccl_test/lib/python3.10/site-packages/torch/testing/_internal/common_distributed.py", line 986, in run_test
getattr(self, test_name)()
File "/home/sdp/miniforge3/envs/xccl_test/lib/python3.10/site-packages/torch/testing/_internal/common_distributed.py", line 833, in wrapper
fn()
File "/home/sdp/miniforge3/envs/xccl_test/lib/python3.10/site-packages/torch/testing/_internal/common_utils.py", line 3364, in wrapper
method(*args, **kwargs)
File "/home/sdp/miniforge3/envs/xccl_test/lib/python3.10/unittest/mock.py", line 1379, in patched
return func(*newargs, **newkeywargs)
File "/home/sdp/xiangdong/pytorch/test/distributed/test_dynamo_distributed.py", line 1367, in test_asymmetric_compilation
backend._set_default_timeout(timedelta(seconds=sleep_time - 2))
AttributeError: 'torch._C._distributed_c10d.ProcessGroupXCCL' object has no attribute '_set_default_timeout'
```

### Versions

https://github.com/daisyden/pytorch/tree/distributed_2.11

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.