New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: (): incompatible function arguments #102832
Comments
Please provide runnable script reproducing the error |
Sorry,I can't provide the third party Process Group Backend,because it involves trade secret. As for this error, I just don't understand why it is type error with the right type.
|
I found an issue where torch installed through pip install has torch._C._GLIBCXX_USE_CXX11_ABI set to False. This seems to be causing the first parameter type error in backend_class = creator_fn(store, group_rank, group_size, timeout). |
cc @malfet |
I fixed it by compiling my cpp extension with |
@PhdShi For posterity do you mind running collect_env and post its output (I suspect you are compiling using gcc-9 or newer) In next release PyTorch will |
In this container,I use Gcc-8, but I did run some tests on gcc-9 and the same error occurred. Finally I fixed it by compiling my cpp extension with
|
🐛 Describe the bug
Hello,I am customizing process group backends using cpp extensions according to PyTorch Tutorials,Customize Process Group Backends Using Cpp Extensions — PyTorch Tutorials 2.0.1+cu117 documentation . But an error occurred . It seems to be type error, but I find the type is right. So how can I fix it? The following is the detailed error:
Versions
torch.version: 2.0.0+cu117
cc @malfet @zou3519
The text was updated successfully, but these errors were encountered: