Skip to content

Commit 61fe2cc

Browse files
committed
win: add support for returning non_locks info key
Signed-off-by: Nathan Hjelm <[email protected]>
1 parent e8a8a6d commit 61fe2cc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ompi/mpi/c/win_get_info.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,15 @@ int MPI_Win_get_info(MPI_Win win, MPI_Info *info_used)
4444
OPAL_CR_ENTER_LIBRARY();
4545

4646
ret = win->w_osc_module->osc_get_info(win, info_used);
47+
48+
if (OMPI_SUCCESS == ret && *info_used) {
49+
/* set standard info keys based on what the OSC module is using */
50+
if (win->w_flags & OMPI_WIN_NO_LOCKS) {
51+
ompi_info_set (*info_used, "no_locks", "true");
52+
} else {
53+
ompi_info_set (*info_used, "no_locks", "false");
54+
}
55+
}
56+
4757
OMPI_ERRHANDLER_RETURN(ret, win, ret, FUNC_NAME);
4858
}

0 commit comments

Comments
 (0)