Skip to content

Commit 75abc1e

Browse files
committed
Minor change in the docstring
1 parent 4fbc5c9 commit 75abc1e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pylops_mpi/utils/_common.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def _unroll_allgather_recv(recv_buf, chunk_shape, send_buf_shapes, displs=None)
1010
1111
Depending on the provided parameters, the function:
1212
- uses ``displs`` and element counts to extract variable-sized chunks.
13-
- removes padding and reshapes each chunk using ``padded_send_buf_shape``.
13+
- removes padding and reshapes each chunk using ``chunk_shape``.
1414
1515
Each rank may send an array with a different shape, so the return type is a list of arrays
1616
instead of a concatenated array.
@@ -20,11 +20,12 @@ def _unroll_allgather_recv(recv_buf, chunk_shape, send_buf_shapes, displs=None)
2020
recv_buf: :obj:`cupy.ndarray` or array-like
2121
The data buffer returned from nccl_allgather call
2222
send_buf_shapes: :obj:`list`
23-
A list ofOriginal shapes of each rank's send_buf before any padding.
23+
A list of original shapes of each rank's send_buf before any padding.
2424
chunk_shape : tuple
2525
Shape of each gathered chunk in recv_buf. This must match the shape
2626
used to construct the gathered buffer: use the padded send buffer shape
27-
when padding is required, or the original send buffer shape when no padding is used.
27+
when padding is required (e.g., nccl_allgather with padding), or the original send buffer
28+
shape when no padding is used.
2829
displs : list, optional
2930
Starting offsets in recv_buf for each rank's data, used when chunks have
3031
variable sizes (e.g., mpi_allgather with displacements).

pylops_mpi/utils/_nccl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
import os
1818
import cupy as cp
1919
import cupy.cuda.nccl as nccl
20-
from pylops_mpi.utils._common import _unroll_allgather_recv
2120
from pylops.utils.backend import get_module
21+
from pylops_mpi.utils._common import _unroll_allgather_recv
2222

2323
cupy_to_nccl_dtype = {
2424
"float32": nccl.NCCL_FLOAT32,

0 commit comments

Comments
 (0)