forked from open-mpi/ompi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged in nathanweeks/ulfm2/feature/mpi_f08 (pull request open-mpi#6)
Add mpi_f08 bindings for ULFM routines Approved-by: George Bosilca <[email protected]>
- Loading branch information
Showing
18 changed files
with
310 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,5 @@ | |
# $HEADER$ | ||
# | ||
|
||
SUBDIRS = c mpif-h use-mpi | ||
SUBDIRS = c mpif-h use-mpi use-mpi-f08 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# | ||
# Copyright (c) 2011-2012 Cisco Systems, Inc. All rights reserved. | ||
# Copyright (c) 2017 Research Organization for Information Science | ||
# and Technology (RIST). All rights reserved. | ||
# $COPYRIGHT$ | ||
# | ||
# Additional copyrights may follow | ||
# | ||
# $HEADER$ | ||
# | ||
|
||
AM_FCFLAGS = $(OMPI_FC_MODULE_FLAG)$(top_builddir)/ompi/mpi/fortran/use-mpi-f08/mod \ | ||
-I$(top_srcdir) $(FCFLAGS_f90) | ||
|
||
noinst_LTLIBRARIES = | ||
|
||
if OMPI_BUILD_FORTRAN_USEMPIF08_BINDINGS | ||
|
||
# If we are, build the convenience libtool library that will be | ||
# slurped up into libmpi_usempif08.la. | ||
noinst_LTLIBRARIES += libmpiext_ftmpi_usempif08.la | ||
|
||
noinst_HEADERS = mpiext_ftmpi_usempif08.h | ||
|
||
# Sources for the convenience libtool library. | ||
libmpiext_ftmpi_usempif08_la_SOURCES = comm_agree_f08.F90 \ | ||
comm_failure_ack_f08.F90 \ | ||
comm_failure_get_acked_f08.F90 \ | ||
comm_iagree_f08.F90 \ | ||
comm_revoke_f08.F90 \ | ||
comm_shrink_f08.F90 | ||
libmpiext_ftmpi_usempif08_la_LDFLAGS = -module -avoid-version | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
! -*- f90 -*- | ||
! | ||
! $COPYRIGHT$ | ||
! | ||
|
||
subroutine MPIX_Comm_agree_f08(comm, flag, ierror) | ||
use :: mpi_f08_types, only : MPI_Comm | ||
implicit none | ||
interface | ||
subroutine MPIX_Comm_agree_f(comm, flag, ierror) & | ||
BIND(C, name="MPIX_Comm_agree_f") | ||
implicit none | ||
INTEGER, INTENT(IN) :: comm | ||
INTEGER, INTENT(INOUT) :: flag | ||
INTEGER, INTENT(OUT) :: ierror | ||
end subroutine MPIX_Comm_agree_f | ||
end interface | ||
TYPE(MPI_Comm), INTENT(IN) :: comm | ||
INTEGER, INTENT(INOUT) :: flag | ||
INTEGER, OPTIONAL, INTENT(OUT) :: ierror | ||
integer :: c_ierror | ||
|
||
call MPIX_Comm_agree_f(comm%MPI_VAL, flag, c_ierror) | ||
if (present(ierror)) ierror = c_ierror | ||
|
||
end subroutine MPIX_Comm_agree_f08 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
! -*- f90 -*- | ||
! | ||
! Copyright (c) 2009-2012 Cisco Systems, Inc. All rights reserved. | ||
! Copyright (c) 2009-2012 Los Alamos National Security, LLC. | ||
! All rights reserved. | ||
! $COPYRIGHT$ | ||
! | ||
|
||
subroutine MPIX_Comm_failure_ack_f08(comm, ierror) | ||
use :: mpi_f08_types, only : MPI_Comm | ||
implicit none | ||
interface | ||
subroutine MPIX_Comm_failure_ack_f(comm, ierror) & | ||
BIND(C, name="MPIX_Comm_failure_ack_f") | ||
implicit none | ||
INTEGER, INTENT(IN) :: comm | ||
INTEGER, INTENT(OUT) :: ierror | ||
end subroutine MPIX_Comm_failure_ack_f | ||
end interface | ||
TYPE(MPI_Comm), INTENT(IN) :: comm | ||
INTEGER, OPTIONAL, INTENT(OUT) :: ierror | ||
integer :: c_ierror | ||
|
||
call MPIX_Comm_failure_ack_f(comm%MPI_VAL, c_ierror) | ||
if (present(ierror)) ierror = c_ierror | ||
|
||
end subroutine MPIX_Comm_failure_ack_f08 |
28 changes: 28 additions & 0 deletions
28
ompi/mpiext/ftmpi/use-mpi-f08/comm_failure_get_acked_f08.F90
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
! -*- f90 -*- | ||
! | ||
! Copyright (c) 2009-2012 Cisco Systems, Inc. All rights reserved. | ||
! Copyright (c) 2009-2012 Los Alamos National Security, LLC. | ||
! All rights reserved. | ||
! $COPYRIGHT$ | ||
! | ||
|
||
subroutine MPIX_Comm_failure_get_acked_f08(comm, failedgrp, ierror) | ||
use :: mpi_f08_types, only : MPI_Comm, MPI_Group | ||
implicit none | ||
interface | ||
subroutine MPIX_Comm_failure_get_acked_f(comm, failedgrp, ierror) & | ||
BIND(C, name="MPIX_Comm_failure_get_acked_f") | ||
implicit none | ||
INTEGER, INTENT(IN) :: comm | ||
INTEGER, INTENT(OUT) :: failedgrp, ierror | ||
end subroutine MPIX_Comm_failure_get_acked_f | ||
end interface | ||
TYPE(MPI_Comm), INTENT(IN) :: comm | ||
TYPE(MPI_Group), INTENT(OUT) :: failedgrp | ||
INTEGER, OPTIONAL, INTENT(OUT) :: ierror | ||
integer :: c_ierror | ||
|
||
call MPIX_Comm_failure_get_acked_f(comm%MPI_VAL, failedgrp%MPI_VAL, c_ierror) | ||
if (present(ierror)) ierror = c_ierror | ||
|
||
end subroutine MPIX_Comm_failure_get_acked_f08 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
! -*- f90 -*- | ||
! | ||
! $COPYRIGHT$ | ||
! | ||
|
||
#include "ompi/mpi/fortran/configure-fortran-output.h" | ||
|
||
subroutine MPIX_Comm_iagree_f08(comm, flag, request, ierror) | ||
use :: mpi_f08_types, only : MPI_Comm, MPI_Request | ||
implicit none | ||
interface | ||
subroutine MPIX_Comm_iagree_f(comm, flag, request, ierror) & | ||
BIND(C, name="MPIX_Comm_iagree_f") | ||
implicit none | ||
INTEGER, INTENT(IN) :: comm | ||
INTEGER, INTENT(INOUT) :: flag | ||
INTEGER, INTENT(OUT) :: request | ||
INTEGER, INTENT(OUT) :: ierror | ||
end subroutine MPIX_Comm_iagree_f | ||
end interface | ||
TYPE(MPI_Comm), INTENT(IN) :: comm | ||
INTEGER, INTENT(INOUT) OMPI_ASYNCHRONOUS :: flag | ||
TYPE(MPI_Request), INTENT(OUT) :: request | ||
INTEGER, OPTIONAL, INTENT(OUT) :: ierror | ||
integer :: c_ierror | ||
|
||
call MPIX_Comm_iagree_f(comm%MPI_VAL, flag, request%MPI_VAL, c_ierror) | ||
if (present(ierror)) ierror = c_ierror | ||
|
||
end subroutine MPIX_Comm_iagree_f08 |
Oops, something went wrong.