Skip to content

Commit a58e884

Browse files
ggouaillardetwenduwan
authored andcommitted
coll/han: fix intra-node MPI_Scatter data count and type
Fixes #12383 Thanks to Christoph van Wüllen for reporting the issue. Signed-off-by: Wenduo Wang <[email protected]>
1 parent 424151d commit a58e884

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ompi/mca/coll/han/coll_han_scatter.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ mca_coll_han_scatter_intra(const void *sbuf, int scount,
187187

188188
}
189189

190-
/* us: upper level (intra-node) scatter task */
190+
/* us: upper level (inter-node) scatter task */
191191
int mca_coll_han_scatter_us_task(void *task_args)
192192
{
193193
mca_coll_han_scatter_args_t *t = (mca_coll_han_scatter_args_t *) task_args;
@@ -218,6 +218,8 @@ int mca_coll_han_scatter_us_task(void *task_args)
218218
t->up_comm, t->up_comm->c_coll->coll_scatter_module);
219219
t->sbuf = tmp_rbuf;
220220
t->sbuf_inter_free = tmp_buf;
221+
t->sdtype = dtype;
222+
t->scount = count;
221223
}
222224

223225
if (t->sbuf_reorder_free != NULL && t->root == t->w_rank) {

0 commit comments

Comments
 (0)