Skip to content

Commit 558d34a

Browse files
committed
MPI_Win_{get,set}_info : add Fortran bindings
1 parent 9600e2b commit 558d34a

File tree

8 files changed

+115
-0
lines changed

8 files changed

+115
-0
lines changed

ompi/mpi/fortran/mpif-h/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,12 +408,14 @@ libmpi_mpifh_la_SOURCES += \
408408
win_get_attr_f.c \
409409
win_get_errhandler_f.c \
410410
win_get_group_f.c \
411+
win_get_info_f.c \
411412
win_get_name_f.c \
412413
win_lock_f.c \
413414
win_lock_all_f.c \
414415
win_post_f.c \
415416
win_set_attr_f.c \
416417
win_set_errhandler_f.c \
418+
win_set_info_f.c \
417419
win_set_name_f.c \
418420
win_shared_query_f.c \
419421
win_start_f.c \

ompi/mpi/fortran/mpif-h/profile/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,12 +333,14 @@ linked_files = \
333333
pwin_get_attr_f.c \
334334
pwin_get_errhandler_f.c \
335335
pwin_get_group_f.c \
336+
pwin_get_info_f.c \
336337
pwin_get_name_f.c \
337338
pwin_lock_f.c \
338339
pwin_lock_all_f.c \
339340
pwin_post_f.c \
340341
pwin_set_attr_f.c \
341342
pwin_set_errhandler_f.c \
343+
pwin_set_info_f.c \
342344
pwin_set_name_f.c \
343345
pwin_shared_query_f.c \
344346
pwin_start_f.c \

ompi/mpi/fortran/mpif-h/profile/defines.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,12 +367,14 @@
367367
#define ompi_win_get_attr_f pompi_win_get_attr_f
368368
#define ompi_win_get_errhandler_f pompi_win_get_errhandler_f
369369
#define ompi_win_get_group_f pompi_win_get_group_f
370+
#define ompi_win_get_info_f pompi_win_get_info_f
370371
#define ompi_win_get_name_f pompi_win_get_name_f
371372
#define ompi_win_lock_f pompi_win_lock_f
372373
#define ompi_win_lock_all_f pompi_win_lock_all_f
373374
#define ompi_win_post_f pompi_win_post_f
374375
#define ompi_win_set_attr_f pompi_win_set_attr_f
375376
#define ompi_win_set_errhandler_f pompi_win_set_errhandler_f
377+
#define ompi_win_set_info_f pompi_win_set_info_f
376378
#define ompi_win_set_name_f pompi_win_set_name_f
377379
#define ompi_win_shared_query_f pompi_win_shared_query_f
378380
#define ompi_win_shared_query_cptr_f pompi_win_shared_query_cptr_f

ompi/mpi/fortran/mpif-h/prototypes_mpi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,12 +424,14 @@ PN2(void, MPI_Win_free_keyval, mpi_win_free_keyval, MPI_WIN_FREE_KEYVAL, (MPI_Fi
424424
PN2(void, MPI_Win_get_attr, mpi_win_get_attr, MPI_WIN_GET_ATTR, (MPI_Fint *win, MPI_Fint *win_keyval, MPI_Aint *attribute_val, ompi_fortran_logical_t *flag, MPI_Fint *ierr));
425425
PN2(void, MPI_Win_get_errhandler, mpi_win_get_errhandler, MPI_WIN_GET_ERRHANDLER, (MPI_Fint *win, MPI_Fint *errhandler, MPI_Fint *ierr));
426426
PN2(void, MPI_Win_get_group, mpi_win_get_group, MPI_WIN_GET_GROUP, (MPI_Fint *win, MPI_Fint *group, MPI_Fint *ierr));
427+
PN2(void, MPI_Win_get_info, mpi_win_get_info, MPI_WIN_GET_INFO, (MPI_Fint *win, MPI_Fint *info, MPI_Fint *ierr));
427428
PN2(void, MPI_Win_get_name, mpi_win_get_name, MPI_WIN_GET_NAME, (MPI_Fint *win, char *win_name, MPI_Fint *resultlen, MPI_Fint *ierr, int name_len));
428429
PN2(void, MPI_Win_lock, mpi_win_lock, MPI_WIN_LOCK, (MPI_Fint *lock_type, MPI_Fint *rank, MPI_Fint *assert, MPI_Fint *win, MPI_Fint *ierr));
429430
PN2(void, MPI_Win_lock_all, mpi_win_lock_all, MPI_WIN_LOCK_ALL, (MPI_Fint *assert, MPI_Fint *win, MPI_Fint *ierr));
430431
PN2(void, MPI_Win_post, mpi_win_post, MPI_WIN_POST, (MPI_Fint *group, MPI_Fint *assert, MPI_Fint *win, MPI_Fint *ierr));
431432
PN2(void, MPI_Win_set_attr, mpi_win_set_attr, MPI_WIN_SET_ATTR, (MPI_Fint *win, MPI_Fint *win_keyval, MPI_Aint *attribute_val, MPI_Fint *ierr));
432433
PN2(void, MPI_Win_set_errhandler, mpi_win_set_errhandler, MPI_WIN_SET_ERRHANDLER, (MPI_Fint *win, MPI_Fint *errhandler, MPI_Fint *ierr));
434+
PN2(void, MPI_Win_set_info, mpi_win_set_info, MPI_WIN_SET_INFO, (MPI_Fint *win, MPI_Fint *info, MPI_Fint *ierr));
433435
PN2(void, MPI_Win_set_name, mpi_win_set_name, MPI_WIN_SET_NAME, (MPI_Fint *win, char *win_name, MPI_Fint *ierr, int name_len));
434436
PN2(void, MPI_Win_shared_query, mpi_win_shared_query, MPI_WIN_SHARED_QUERY, (MPI_Fint *win, MPI_Fint *rank, MPI_Aint *size, MPI_Fint *disp_unit, char *baseptr, MPI_Fint *ierr));
435437
PN2(void, MPI_Win_shared_query_cptr, mpi_win_shared_query_cptr, MPI_WIN_SHARED_QUERY_CPTR, (MPI_Fint *win, MPI_Fint *rank, MPI_Aint *size, MPI_Fint *disp_unit, char *baseptr, MPI_Fint *ierr));

ompi/mpi/fortran/use-mpi-f08/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,12 +356,14 @@ mpi_api_files = \
356356
win_get_attr_f08.F90 \
357357
win_get_errhandler_f08.F90 \
358358
win_get_group_f08.F90 \
359+
win_get_info_f08.F90 \
359360
win_get_name_f08.F90 \
360361
win_lock_f08.F90 \
361362
win_lock_all_f08.F90 \
362363
win_post_f08.F90 \
363364
win_set_attr_f08.F90 \
364365
win_set_errhandler_f08.F90 \
366+
win_set_info_f08.F90 \
365367
win_set_name_f08.F90 \
366368
win_shared_query_f08.F90 \
367369
win_start_f08.F90 \

ompi/mpi/fortran/use-mpi-f08/mpi-f-interfaces-bind.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2452,6 +2452,14 @@ subroutine ompi_win_get_group_f(win,group,ierror) &
24522452
INTEGER, INTENT(OUT) :: ierror
24532453
end subroutine ompi_win_get_group_f
24542454

2455+
subroutine ompi_win_get_info_f(comm,info,ierror) &
2456+
BIND(C, name="ompi_win_get_info_f")
2457+
implicit none
2458+
INTEGER, INTENT(IN) :: comm
2459+
INTEGER, INTENT(OUT) :: info
2460+
INTEGER, INTENT(OUT) :: ierror
2461+
end subroutine ompi_win_get_info_f
2462+
24552463
subroutine ompi_win_lock_f(lock_type,rank,assert,win,ierror) &
24562464
BIND(C, name="ompi_win_lock_f")
24572465
implicit none
@@ -2477,6 +2485,14 @@ subroutine ompi_win_post_f(group,assert,win,ierror) &
24772485
INTEGER, INTENT(OUT) :: ierror
24782486
end subroutine ompi_win_post_f
24792487

2488+
subroutine ompi_win_set_info_f(comm,info,ierror) &
2489+
BIND(C, name="ompi_win_set_info_f")
2490+
implicit none
2491+
INTEGER, INTENT(IN) :: comm
2492+
INTEGER, INTENT(IN) :: info
2493+
INTEGER, INTENT(OUT) :: ierror
2494+
end subroutine ompi_win_set_info_f
2495+
24802496
subroutine ompi_win_shared_query_f(win, rank, size, disp_unit, baseptr,&
24812497
ierror) BIND(C, name="ompi_win_shared_query_f")
24822498
USE, INTRINSIC :: ISO_C_BINDING, ONLY : C_PTR

ompi/mpi/fortran/use-mpi-f08/mpi-f08-interfaces.F90

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2180,6 +2180,16 @@ subroutine MPI_Win_get_attr_f08(win,win_keyval,attribute_val,flag,ierror)
21802180
end subroutine MPI_Win_get_attr_f08
21812181
end interface MPI_Win_get_attr
21822182

2183+
interface MPI_Win_get_info
2184+
subroutine MPI_Win_get_info_f08(win,info,ierror)
2185+
use :: mpi_f08_types, only : MPI_Win, MPI_Info
2186+
implicit none
2187+
TYPE(MPI_Win), INTENT(IN) :: win
2188+
TYPE(MPI_Info), INTENT(OUT) :: info
2189+
INTEGER, OPTIONAL, INTENT(OUT) :: ierror
2190+
end subroutine MPI_Win_get_info_f08
2191+
end interface MPI_Win_get_info
2192+
21832193
interface MPI_Win_get_name
21842194
subroutine MPI_Win_get_name_f08(win,win_name,resultlen,ierror)
21852195
use :: mpi_f08_types, only : MPI_Win, MPI_MAX_OBJECT_NAME
@@ -2202,6 +2212,16 @@ subroutine MPI_Win_set_attr_f08(win,win_keyval,attribute_val,ierror)
22022212
end subroutine MPI_Win_set_attr_f08
22032213
end interface MPI_Win_set_attr
22042214

2215+
interface MPI_Win_set_info
2216+
subroutine MPI_Win_set_info_f08(win,info,ierror)
2217+
use :: mpi_f08_types, only : MPI_Win, MPI_Info
2218+
implicit none
2219+
TYPE(MPI_Win), INTENT(IN) :: win
2220+
TYPE(MPI_Info), INTENT(IN) :: info
2221+
INTEGER, OPTIONAL, INTENT(OUT) :: ierror
2222+
end subroutine MPI_Win_set_info_f08
2223+
end interface MPI_Win_set_info
2224+
22052225
interface MPI_Win_set_name
22062226
subroutine MPI_Win_set_name_f08(win,win_name,ierror)
22072227
use :: mpi_f08_types, only : MPI_Win

ompi/mpi/fortran/use-mpi-ignore-tkr/mpi-ignore-tkr-interfaces.h.in

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,6 +1465,29 @@ end subroutine PMPI_Comm_set_errhandler
14651465
end interface
14661466

14671467

1468+
interface MPI_Comm_set_info
1469+
1470+
subroutine MPI_Comm_set_info(comm, info, ierror)
1471+
include 'mpif-config.h'
1472+
integer, intent(in) :: comm
1473+
integer, intent(in) :: info
1474+
integer, intent(out) :: ierror
1475+
end subroutine MPI_Comm_set_info
1476+
1477+
end interface
1478+
1479+
interface PMPI_Comm_set_info
1480+
1481+
subroutine PMPI_Comm_set_info(comm, info, ierror)
1482+
include 'mpif-config.h'
1483+
integer, intent(in) :: comm
1484+
integer, intent(in) :: info
1485+
integer, intent(out) :: ierror
1486+
end subroutine PMPI_Comm_set_info
1487+
1488+
end interface
1489+
1490+
14681491
interface MPI_Comm_set_name
14691492

14701493
subroutine MPI_Comm_set_name(comm, comm_name, ierror)
@@ -7742,6 +7765,29 @@ end subroutine PMPI_Win_get_group
77427765
end interface
77437766

77447767

7768+
interface MPI_Win_get_info
7769+
7770+
subroutine MPI_Win_get_info(comm, info, ierror)
7771+
include 'mpif-config.h'
7772+
integer, intent(in) :: comm
7773+
integer, intent(in) :: info
7774+
integer, intent(out) :: ierror
7775+
end subroutine MPI_Win_get_info
7776+
7777+
end interface
7778+
7779+
interface PMPI_Win_get_info
7780+
7781+
subroutine PMPI_Win_get_info(comm, info, ierror)
7782+
include 'mpif-config.h'
7783+
integer, intent(in) :: comm
7784+
integer, intent(in) :: info
7785+
integer, intent(out) :: ierror
7786+
end subroutine PMPI_Win_get_info
7787+
7788+
end interface
7789+
7790+
77457791
interface MPI_Win_get_name
77467792

77477793
subroutine MPI_Win_get_name(win, win_name, resultlen, ierror)
@@ -7859,6 +7905,29 @@ end subroutine PMPI_Win_set_errhandler
78597905
end interface
78607906

78617907

7908+
interface MPI_Win_set_info
7909+
7910+
subroutine MPI_Win_set_info(comm, info, ierror)
7911+
include 'mpif-config.h'
7912+
integer, intent(in) :: comm
7913+
integer, intent(in) :: info
7914+
integer, intent(out) :: ierror
7915+
end subroutine MPI_Win_set_info
7916+
7917+
end interface
7918+
7919+
interface PMPI_Win_set_info
7920+
7921+
subroutine PMPI_Win_set_info(comm, info, ierror)
7922+
include 'mpif-config.h'
7923+
integer, intent(in) :: comm
7924+
integer, intent(in) :: info
7925+
integer, intent(out) :: ierror
7926+
end subroutine PMPI_Win_set_info
7927+
7928+
end interface
7929+
7930+
78627931
interface MPI_Win_set_name
78637932

78647933
subroutine MPI_Win_set_name(win, win_name, ierror)

0 commit comments

Comments
 (0)