Skip to content

Commit 6d4070a

Browse files
authored
Merge pull request #12451 from devreal/win_shared_query_ptrdiff
Fix incorrect disp_unit type passed to osc_win_shared_query
2 parents 3b04f06 + f60b866 commit 6d4070a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ompi/mpi/c/win_shared_query.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
* Copyright (c) 2012-2013 Sandia National Laboratories. All rights reserved.
33
* Copyright (c) 2015-2017 Research Organization for Information Science
44
* and Technology (RIST). All rights reserved.
5+
* Copyright (c) 2024 The University of Tennessee and The University
6+
* of Tennessee Research Foundation. All rights
7+
* reserved.
58
* $COPYRIGHT$
69
*
710
* Additional copyrights may follow
@@ -33,6 +36,7 @@ int MPI_Win_shared_query(MPI_Win win, int rank, MPI_Aint *size, int *disp_unit,
3336
{
3437
int rc;
3538
size_t tsize;
39+
ptrdiff_t du;
3640

3741
if (MPI_PARAM_CHECK) {
3842
OMPI_ERR_INIT_FINALIZE(FUNC_NAME);
@@ -45,8 +49,9 @@ int MPI_Win_shared_query(MPI_Win win, int rank, MPI_Aint *size, int *disp_unit,
4549
}
4650

4751
if (NULL != win->w_osc_module->osc_win_shared_query) {
48-
rc = win->w_osc_module->osc_win_shared_query(win, rank, &tsize, disp_unit, baseptr);
52+
rc = win->w_osc_module->osc_win_shared_query(win, rank, &tsize, &du, baseptr);
4953
*size = tsize;
54+
*disp_unit = du;
5055
} else {
5156
rc = MPI_ERR_RMA_FLAVOR;
5257
}

0 commit comments

Comments
 (0)