Skip to content

Commit f45244d

Browse files
committed
MPI_Win_create_dynamic : add Fortran bindings
1 parent 16abe2e commit f45244d

File tree

8 files changed

+58
-0
lines changed

8 files changed

+58
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ libmpi_mpifh_la_SOURCES += \
395395
win_allocate_shared_f.c \
396396
win_call_errhandler_f.c \
397397
win_complete_f.c \
398+
win_create_dynamic_errhandler_f.c \
398399
win_create_errhandler_f.c \
399400
win_create_f.c \
400401
win_create_keyval_f.c \

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ linked_files = \
320320
pwin_allocate_shared_f.c \
321321
pwin_call_errhandler_f.c \
322322
pwin_complete_f.c \
323+
pwin_create_dynamic_f.c \
323324
pwin_create_errhandler_f.c \
324325
pwin_create_f.c \
325326
pwin_create_keyval_f.c \

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@
351351
#define ompi_win_call_errhandler_f pompi_win_call_errhandler_f
352352
#define ompi_win_complete_f pompi_win_complete_f
353353
#define ompi_win_create_f pompi_win_create_f
354+
#define ompi_win_create_dynamic_f pompi_win_create_dynamic_f
354355
#define ompi_win_create_errhandler_f pompi_win_create_errhandler_f
355356
#define ompi_win_create_keyval_f pompi_win_create_keyval_f
356357
#define ompi_win_delete_attr_f pompi_win_delete_attr_f

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ PN2(void, MPI_Win_allocate_shared_cptr, mpi_win_allocate_shared_cptr, MPI_WIN_AL
408408
PN2(void, MPI_Win_call_errhandler, mpi_win_call_errhandler, MPI_WIN_CALL_ERRHANDLER, (MPI_Fint *win, MPI_Fint *errorcode, MPI_Fint *ierr));
409409
PN2(void, MPI_Win_complete, mpi_win_complete, MPI_WIN_COMPLETE, (MPI_Fint *win, MPI_Fint *ierr));
410410
PN2(void, MPI_Win_create, mpi_win_create, MPI_WIN_CREATE, (char *base, MPI_Aint *size, MPI_Fint *disp_unit, MPI_Fint *info, MPI_Fint *comm, MPI_Fint *win, MPI_Fint *ierr));
411+
PN2(void, MPI_Win_create_dynamic, mpi_win_create_dynamic, MPI_WIN_CREATE_DYNAMIC, (MPI_Fint *info, MPI_Fint *comm, MPI_Fint *win, MPI_Fint *ierr));
411412
PN2(void, MPI_Win_create_errhandler, mpi_win_create_errhandler, MPI_WIN_CREATE_ERRHANDLER, (ompi_errhandler_fortran_handler_fn_t* function, MPI_Fint *errhandler, MPI_Fint *ierr));
412413
PN2(void, MPI_Win_create_keyval, mpi_win_create_keyval, MPI_WIN_CREATE_KEYVAL, (ompi_mpi2_fortran_copy_attr_function* win_copy_attr_fn, ompi_mpi2_fortran_delete_attr_function* win_delete_attr_fn, MPI_Fint *win_keyval, MPI_Aint *extra_state, MPI_Fint *ierr));
413414
PN2(void, MPI_Win_delete_attr, mpi_win_delete_attr, MPI_WIN_DELETE_ATTR, (MPI_Fint *win, MPI_Fint *win_keyval, MPI_Fint *ierr));

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ mpi_api_files = \
339339
win_allocate_shared_f08.F90 \
340340
win_call_errhandler_f08.F90 \
341341
win_complete_f08.F90 \
342+
win_create_dynamic_f08.F90 \
342343
win_create_errhandler_f08.F90 \
343344
win_create_f08.F90 \
344345
win_create_keyval_f08.F90 \

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
! of Tennessee Research Foundation. All rights
88
! reserved.
99
! Copyright (c) 2012 Inria. All rights reserved.
10+
! Copyright (c) 2015 Research Organization for Information Science
11+
! and Technology (RIST). All rights reserved.
1012
! $COPYRIGHT$
1113
!
1214
! This file provides the interface specifications for the MPI Fortran
@@ -2369,6 +2371,15 @@ subroutine ompi_win_create_f(base,size,disp_unit,info,comm,win,ierror) &
23692371
INTEGER, INTENT(OUT) :: ierror
23702372
end subroutine ompi_win_create_f
23712373

2374+
subroutine ompi_win_create_dynamic_f(info,comm,win,ierror) &
2375+
BIND(C, name="ompi_win_create_dynamic_f")
2376+
implicit none
2377+
INTEGER, INTENT(IN) :: info
2378+
INTEGER, INTENT(IN) :: comm
2379+
INTEGER, INTENT(OUT) :: win
2380+
INTEGER, INTENT(OUT) :: ierror
2381+
end subroutine ompi_win_create_dynamic_f
2382+
23722383
subroutine ompi_win_flush_f(rank,win,ierror) &
23732384
BIND(C, name="ompi_win_flush_f")
23742385
implicit none

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
! of Tennessee Research Foundation. All rights
88
! reserved.
99
! Copyright (c) 2012 Inria. All rights reserved.
10+
! Copyright (c) 2015 Research Organization for Information Science
11+
! and Technology (RIST). All rights reserved.
1012
! $COPYRIGHT$
1113
!
1214
! This file provides the interface specifications for the MPI Fortran
@@ -3203,6 +3205,17 @@ subroutine MPI_Win_create_f08(base,size,disp_unit,info,comm,win,ierror)
32033205
end subroutine MPI_Win_create_f08
32043206
end interface MPI_Win_create
32053207

3208+
interface MPI_Win_create_dynamic
3209+
subroutine MPI_Win_create_dynamic_f08(info,comm,win,ierror)
3210+
use :: mpi_f08_types, only : MPI_Info, MPI_Comm, MPI_Win
3211+
implicit none
3212+
TYPE(MPI_Info), INTENT(IN) :: info
3213+
TYPE(MPI_Comm), INTENT(IN) :: comm
3214+
TYPE(MPI_Win), INTENT(OUT) :: win
3215+
INTEGER, OPTIONAL, INTENT(OUT) :: ierror
3216+
end subroutine MPI_Win_create_dynamic_f08
3217+
end interface MPI_Win_create_dynamic
3218+
32063219
interface MPI_Win_fence
32073220
subroutine MPI_Win_fence_f08(assert,win,ierror)
32083221
use :: mpi_f08_types, only : MPI_Win

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
! Copyright (c) 2012 Inria. All rights reserved.
1010
! Copyright (c) 2013-2014 Los Alamos National Security, LLC. All rights
1111
! reserved.
12+
! Copyright (c) 2015 Research Organization for Information Science
13+
! and Technology (RIST). All rights reserved.
1214
! $COPYRIGHT$
1315
!
1416
! Additional copyrights may follow
@@ -7389,6 +7391,33 @@ end subroutine PMPI_Win_create
73897391
end interface
73907392

73917393

7394+
interface MPI_Win_create_dynamic
7395+
7396+
subroutine MPI_Win_create_dynamic(info, comm, &
7397+
win, ierror)
7398+
include 'mpif-config.h'
7399+
integer, intent(in) :: info
7400+
integer, intent(in) :: comm
7401+
integer, intent(out) :: win
7402+
integer, intent(out) :: ierror
7403+
end subroutine MPI_Win_create_dynamic
7404+
7405+
end interface
7406+
7407+
interface PMPI_Win_create_dynamic
7408+
7409+
subroutine PMPI_Win_create_dynamic(info, comm, &
7410+
win, ierror)
7411+
include 'mpif-config.h'
7412+
integer, intent(in) :: info
7413+
integer, intent(in) :: comm
7414+
integer, intent(out) :: win
7415+
integer, intent(out) :: ierror
7416+
end subroutine PMPI_Win_create_dynamic
7417+
7418+
end interface
7419+
7420+
73927421
interface MPI_Win_create_errhandler
73937422

73947423
subroutine MPI_Win_create_errhandler(function, errhandler, ierror)

0 commit comments

Comments
 (0)