Skip to content

Commit fdf3367

Browse files
committed
Merge pull request #1532 from kmroz/wip-hindexed-cleanup-1
romio,java: cleanup deprecated hindexed call
2 parents 2374d8f + f8ecdbd commit fdf3367

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

ompi/mca/io/romio314/romio/adio/common/ad_coll_build_req_new.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ int ADIOI_Build_agg_reqs(ADIO_File fd, int rw_type, int nprocs,
844844
{
845845
if (client_comm_sz_arr[i] > 0)
846846
{
847-
MPI_Type_hindexed(client_ol_ct_arr[i], client_blk_arr[i],
847+
MPI_Type_create_hindexed(client_ol_ct_arr[i], client_blk_arr[i],
848848
client_disp_arr[i], MPI_BYTE,
849849
&(client_comm_dtype_arr[i]));
850850
MPI_Type_commit(&(client_comm_dtype_arr[i]));
@@ -863,7 +863,7 @@ int ADIOI_Build_agg_reqs(ADIO_File fd, int rw_type, int nprocs,
863863
if (agg_ol_ct == 1)
864864
MPI_Type_contiguous (agg_blk_arr[0], MPI_BYTE, agg_dtype_p);
865865
else if (agg_ol_ct > 1)
866-
MPI_Type_hindexed(agg_ol_ct, agg_blk_arr, agg_disp_arr, MPI_BYTE,
866+
MPI_Type_create_hindexed(agg_ol_ct, agg_blk_arr, agg_disp_arr, MPI_BYTE,
867867
agg_dtype_p);
868868

869869
MPI_Type_commit(agg_dtype_p);
@@ -1203,7 +1203,7 @@ int ADIOI_Build_client_reqs(ADIO_File fd,
12031203
{
12041204
if (agg_comm_sz_arr[i] > 0)
12051205
{
1206-
MPI_Type_hindexed(agg_ol_ct_arr[i], agg_blk_arr[i],
1206+
MPI_Type_create_hindexed(agg_ol_ct_arr[i], agg_blk_arr[i],
12071207
agg_disp_arr[i], MPI_BYTE,
12081208
&(agg_comm_dtype_arr[i]));
12091209
MPI_Type_commit(&(agg_comm_dtype_arr[i]));
@@ -2063,7 +2063,7 @@ int ADIOI_Build_client_req(ADIO_File fd,
20632063
/* Create the aggregator MPI_Datatype */
20642064
if (agg_comm_sz > 0)
20652065
{
2066-
MPI_Type_hindexed(agg_ol_ct, agg_blk_arr, agg_disp_arr, MPI_BYTE,
2066+
MPI_Type_create_hindexed(agg_ol_ct, agg_blk_arr, agg_disp_arr, MPI_BYTE,
20672067
agg_comm_dtype_p);
20682068
MPI_Type_commit(agg_comm_dtype_p);
20692069
}

ompi/mca/io/romio314/romio/adio/common/utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ int ADIOI_Type_create_hindexed_x(int count,
9393
ret = MPI_Type_create_struct(count, blocklens, array_of_displacements,
9494
types, newtype);
9595
} else {
96-
ret = MPI_Type_hindexed(count, blocklens,
96+
ret = MPI_Type_create_hindexed(count, blocklens,
9797
array_of_displacements, oldtype, newtype);
9898
}
9999
for (i=0; i< count; i++)

ompi/mca/io/romio314/romio/test/types_with_zeros.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static int test_indexed_with_zeros(char *filename, int testcase)
7070
MPI_Type_indexed(num, blocklen, indices, MPI_INT, &filetype);
7171
break;
7272
case HINDEXED:
73-
MPI_Type_hindexed(num, blocklen, addrs, MPI_INT, &filetype);
73+
MPI_Type_create_hindexed(num, blocklen, addrs, MPI_INT, &filetype);
7474
break;
7575
case STRUCT:
7676
MPI_Type_create_struct(num, blocklen, addrs, types, &filetype);

ompi/mpi/java/c/mpi_Datatype.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ JNIEXPORT jlong JNICALL Java_mpi_Datatype_getHIndexed(
226226
for(i = 0; i < count; i++)
227227
cDisps[i] = jDisps[i];
228228

229-
int rc = MPI_Type_hindexed(count, cBlockLengths, cDisps,
229+
int rc = MPI_Type_create_hindexed(count, cBlockLengths, cDisps,
230230
(MPI_Datatype)oldType, &type);
231231

232232
ompi_java_exceptionCheck(env, rc);

0 commit comments

Comments
 (0)