Skip to content

Commit 0353f7e

Browse files
authored
Merge pull request #12415 from wenduwan/main_fix_scatter
coll/han: fix intra-node MPI_Scatter data count and type
2 parents 97eac28 + a58e884 commit 0353f7e

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)