Skip to content

Commit

Permalink
[C10D] Document 'tag' limitation for nccl send/recv (pytorch#125278)
Browse files Browse the repository at this point in the history
Existing documentation on isend/irecv also applies to send/recv. This PR
copies the doc/warning to send/recv ops as well.

Note: tag may be supplied, but will be ignored when used with nccl
backend.

Fixes pytorch#94819 pytorch#125079

Pull Request resolved: pytorch#125278
Approved by: https://github.com/kwen2501
  • Loading branch information
wconstab authored and petrex committed May 3, 2024
1 parent 4cdd82b commit 8e6e2a8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions torch/distributed/distributed_c10d.py
Original file line number Diff line number Diff line change
Expand Up @@ -1878,6 +1878,9 @@ def send(tensor: torch.Tensor, dst: int, group: Optional[ProcessGroup] = None, t
"""
Send a tensor synchronously.
.. warning::
``tag`` is not supported with the NCCL backend.
Args:
tensor (Tensor): Tensor to send.
dst (int): Destination rank on global process group (regardless of ``group`` argument).
Expand Down Expand Up @@ -1913,6 +1916,9 @@ def recv(tensor: torch.Tensor, src: Optional[int] = None, group: Optional[Proces
"""
Receives a tensor synchronously.
.. warning::
``tag`` is not supported with the NCCL backend.
Args:
tensor (Tensor): Tensor to fill with received data.
src (int, optional): Source rank on global process group (regardless of ``group`` argument).
Expand Down

0 comments on commit 8e6e2a8

Please sign in to comment.