We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b62fcbe commit 2f1225aCopy full SHA for 2f1225a
pylops_mpi/utils/_mpi.py
@@ -20,10 +20,14 @@ def mpi_allgather(base_comm: MPI.Comm,
20
recv_buf: Optional[NDArray] = None,
21
engine: str = "numpy",
22
) -> List[NDArray]:
23
- """MPI_Allallgather/allallgather
+ """MPI_Allgather/allgather
24
25
- Dispatch allgather routine based on type of input and availability of
26
- CUDA-Aware MPI
+ Dispatch the appropriate allgather routine based on buffer sizes and
+ CUDA-aware MPI availability.
27
+
28
+ If all ranks provide buffers of equal size, the standard `Allgather`
29
+ collective is used. Otherwise, `Allgatherv` is invoked to handle
30
+ variable-sized buffers.
31
32
Parameters
33
----------
0 commit comments