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 ab976a7 + 6c040b0 commit d59ad12Copy full SHA for d59ad12
ompi/datatype/ompi_datatype_args.c
@@ -756,12 +756,12 @@ static ompi_datatype_t* __ompi_datatype_create_from_args( int32_t* i, MPI_Aint*
756
/******************************************************************/
757
case MPI_COMBINER_DARRAY:
758
ompi_datatype_create_darray( i[0] /* size */, i[1] /* rank */, i[2] /* ndims */,
759
- &i[3 + 0 * i[0]], &i[3 + 1 * i[0]],
760
- &i[3 + 2 * i[0]], &i[3 + 3 * i[0]],
761
- 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 );
762
{
763
- 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]],
764
- &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]]};
765
ompi_datatype_set_args( datatype, 4 * i[2] + 4, a_i, 0, NULL, 1, d, MPI_COMBINER_DARRAY);
766
}
767
break;
0 commit comments