We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f5942ff + b4599d7 commit 94092fbCopy full SHA for 94092fb
ompi/datatype/ompi_datatype_args.c
@@ -758,12 +758,12 @@ static ompi_datatype_t* __ompi_datatype_create_from_args( int32_t* i, MPI_Aint*
758
/******************************************************************/
759
case MPI_COMBINER_DARRAY:
760
ompi_datatype_create_darray( i[0] /* size */, i[1] /* rank */, i[2] /* ndims */,
761
- &i[3 + 0 * i[0]], &i[3 + 1 * i[0]],
762
- &i[3 + 2 * i[0]], &i[3 + 3 * i[0]],
763
- i[3 + 4 * i[0]], d[0], &datatype );
+ &i[3 + 0 * i[2]], &i[3 + 1 * i[2]],
+ &i[3 + 2 * i[2]], &i[3 + 3 * i[2]],
+ i[3 + 4 * i[2]], d[0], &datatype );
764
{
765
- const int* a_i[8] = {&i[0], &i[1], &i[2], &i[3 + 0 * i[0]], &i[3 + 1 * i[0]], &i[3 + 2 * i[0]],
766
- &i[3 + 3 * i[0]], &i[3 + 4 * i[0]]};
+ const int* a_i[8] = {&i[0], &i[1], &i[2], &i[3 + 0 * i[2]], &i[3 + 1 * i[2]], &i[3 + 2 * i[2]],
+ &i[3 + 3 * i[2]], &i[3 + 4 * i[2]]};
767
ompi_datatype_set_args( datatype, 4 * i[2] + 4, a_i, 0, NULL, 1, d, MPI_COMBINER_DARRAY);
768
}
769
break;
0 commit comments