Repository navigation
[fx]add all_reduce test. - #2784
linuxlonelyeagle wants to merge 8 commits into
Conversation
|
@stellaraccident @ramiro050 Hi, happy to introduce the first PR to support communication operator. Do you have any idea to fix this? |
stellaraccident
left a comment
There was a problem hiding this comment.
That's unfortunate but I expect happens from time to time, especially on these bleeding edge things that aren't covered by the pytorch team's defacto compatibility requirements.
I haven't seen one of these in a long time. Do you remember what we usually do? Can probably exclude one of them based on version?
|
I don't think I've ever seen this particular issue. We do have a place where we check the PyTorch version because of differences in ops supported: but the issue here is that the ODS for the ops is hard-coded. One simple workaround would be to modify the ODS generator to output two versions for that op and add a |
In my local test, when I use It seems that So how about adding another td file |
Interesting. Yeah, your proposed solution seems fine to me. No need to add an extra td file. I would just place it here next to this op: torch-mlir/include/torch-mlir/Dialect/Torch/IR/TorchOps.td Lines 1085 to 1087 in ac8975e |
Ok, I place it at the end of |
|
|
||
| if __name__ == "__main__": | ||
| world_size = 4 | ||
| mp.spawn(run, args=(world_size,), nprocs=world_size, join=True) |
There was a problem hiding this comment.
What is the reason for doing the multi-process? This PR is not really changing anything in the FX importer, so I don't think we need these tests. If all that is needed is ODS, then it is fine to just have the ODS changes.
| // Torch c10d Functional Communication Ops | ||
| //===----------------------------------------------------------------------===// | ||
| // These ops is manully added because nightly-build torch's signature is | ||
| // not convergent. Generate them if torch has stable op signature. |
There was a problem hiding this comment.
nit: Can you also mention something like "Autogenerated by ./build_tools/update_torch_ods.sh with torch==(some version)`", so that people don't manually modify these
0aa712f to
d5a1aaa
Compare
No description provided.