Skip to content

Commit 0388204

Browse files
markalleggouaillardet
authored andcommitted
romio341: continuation of modernize MPICH 3.4.1 romio
The official mpich romio PRs I checked into included old-style MPI calls, so those needed modernized same as an earlier commit. I do think both of the modernize PRs could be put into mpich. Signed-off-by: Mark Allen <[email protected]>
1 parent 5c357ef commit 0388204

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

3rd-party/romio341/adio/common/ad_darray.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ static int MPIOI_Type_block(int *array_of_gsizes, int dim, int ndims, int nprocs
196196
if (mysize == 0)
197197
*st_offset = 0;
198198

199-
MPI_Aint ex;
200-
MPI_Type_extent(type_old, &ex);
199+
MPI_Aint lb, ex;
200+
MPI_Type_get_extent(type_old, &lb, &ex);
201201
MPI_Datatype type_tmp;
202202
MPI_Type_create_resized(*type_new, 0, array_of_gsizes[dim] * ex, &type_tmp);
203203
MPI_Type_free(type_new);
@@ -300,8 +300,8 @@ static int MPIOI_Type_cyclic(int *array_of_gsizes, int dim, int ndims, int nproc
300300
if (local_size == 0)
301301
*st_offset = 0;
302302

303-
MPI_Aint ex;
304-
MPI_Type_extent(type_old, &ex);
303+
MPI_Aint lb, ex;
304+
MPI_Type_get_extent(type_old, &lb, &ex);
305305
MPI_Type_create_resized(*type_new, 0, array_of_gsizes[dim] * ex, &type_tmp);
306306
MPI_Type_free(type_new);
307307
*type_new = type_tmp;

0 commit comments

Comments
 (0)