Which version of pytorch support the function torch.distributed.ring_exchange()?

Which version of pytorch support the function torch.distributed.ring_exchange()?

I don’t think this method is exposed but is used in dist.batch_isend_irecv.
CC @kwen2501 to correct me if I’m wrong.

torch.distributed does not have an API called ring_exchange().

But you can express a ring-exchange pattern using torch.distributed.batch_isend_irecv :slight_smile:

Here is an example:

1 Like