Skip to content

Commit d656500

Browse files
authored
Merge pull request #5865 from kawashima-fj/pr/v3.0.x/correct-f08-signatures
v3.0.x: fortran/use-mpi-f08: Correct f08 routine signatures
2 parents 3ee180e + 0c7247a commit d656500

File tree

77 files changed

+138
-109
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+138
-109
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77

88
#include "ompi/mpi/fortran/configure-fortran-output.h"
99

10-
function MPI_Aint_add_f08(addr1, addr2)
10+
function MPI_Aint_add_f08(base, disp)
1111
use :: mpi_f08_types, only : MPI_ADDRESS_KIND
1212
use :: mpi_f08, only : ompi_aint_add_f
1313
implicit none
1414
INTEGER(MPI_ADDRESS_KIND) :: MPI_Aint_add_f08
15-
INTEGER(MPI_ADDRESS_KIND), INTENT(IN) :: addr1
16-
INTEGER(MPI_ADDRESS_KIND), INTENT(IN) :: addr2
17-
MPI_Aint_add_f08 = ompi_aint_add_f(addr1, addr2)
15+
INTEGER(MPI_ADDRESS_KIND), INTENT(IN) :: base
16+
INTEGER(MPI_ADDRESS_KIND), INTENT(IN) :: disp
17+
MPI_Aint_add_f08 = ompi_aint_add_f(base, disp)
1818
end function MPI_Aint_add_f08

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ subroutine MPI_Bcast_f08(buffer,count,datatype,root,comm,ierror)
2121
call ompi_bcast_f(buffer,count,datatype%MPI_VAL,root,comm%MPI_VAL,c_ierror)
2222
if (present(ierror)) ierror = c_ierror
2323

24-
end subroutine MPI_Bcast_f08
24+
end subroutine MPI_Bcast_f08

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
subroutine MPI_Buffer_attach_f08(buffer,size,ierror)
1111
use :: mpi_f08, only : ompi_buffer_attach_f
1212
implicit none
13-
OMPI_FORTRAN_IGNORE_TKR_TYPE, INTENT(IN) :: buffer
13+
OMPI_FORTRAN_IGNORE_TKR_TYPE :: buffer
1414
INTEGER, INTENT(IN) :: size
1515
INTEGER, OPTIONAL, INTENT(OUT) :: ierror
1616
integer :: c_ierror

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
#include "ompi/mpi/fortran/configure-fortran-output.h"
99

1010
subroutine MPI_Buffer_detach_f08(buffer_addr,size,ierror)
11-
use :: mpi_f08, only : ompi_buffer_detach_f
1211
USE, INTRINSIC :: ISO_C_BINDING, ONLY : C_PTR
12+
use :: mpi_f08, only : ompi_buffer_detach_f
1313
implicit none
1414
TYPE(C_PTR), INTENT(OUT) :: buffer_addr
1515
INTEGER, INTENT(OUT) :: size

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ subroutine MPI_Comm_spawn_f08(command,argv,maxprocs,info,root,comm,intercomm, &
1010
use :: mpi_f08_types, only : MPI_Info, MPI_Comm
1111
use :: mpi_f08, only : ompi_comm_spawn_f
1212
implicit none
13-
CHARACTER(LEN=*), INTENT(IN) :: command, argv
13+
CHARACTER(LEN=*), INTENT(IN) :: command, argv(*)
1414
INTEGER, INTENT(IN) :: maxprocs, root
1515
TYPE(MPI_Info), INTENT(IN) :: info
1616
TYPE(MPI_Comm), INTENT(IN) :: comm

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ subroutine MPI_Comm_spawn_multiple_f08(count,array_of_commands,array_of_argv, &
1515
implicit none
1616
INTEGER, INTENT(IN) :: count, root
1717
INTEGER, INTENT(IN) :: array_of_maxprocs(count)
18-
CHARACTER(LEN=*), INTENT(IN) :: array_of_commands(count), array_of_argv(count)
18+
CHARACTER(LEN=*), INTENT(IN) :: array_of_commands(count), array_of_argv(count, *)
1919
TYPE(MPI_Info), INTENT(IN) :: array_of_info(count)
2020
TYPE(MPI_Comm), INTENT(IN) :: comm
2121
TYPE(MPI_Comm), INTENT(OUT) :: intercomm

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ subroutine MPI_Ialltoallw_f08(sendbuf,sendcounts,sdispls,sendtypes,&
1515
OMPI_FORTRAN_IGNORE_TKR_TYPE, INTENT(IN), ASYNCHRONOUS :: sendbuf
1616
OMPI_FORTRAN_IGNORE_TKR_TYPE, ASYNCHRONOUS :: recvbuf
1717
INTEGER, INTENT(IN), ASYNCHRONOUS :: sendcounts(*), sdispls(*), recvcounts(*), rdispls(*)
18-
TYPE(MPI_Datatype), INTENT(IN), ASYNCHRONOUS :: sendtypes(*)
19-
TYPE(MPI_Datatype), INTENT(IN), ASYNCHRONOUS :: recvtypes(*)
18+
TYPE(MPI_Datatype), INTENT(IN), ASYNCHRONOUS :: sendtypes(*), recvtypes(*)
2019
TYPE(MPI_Comm), INTENT(IN) :: comm
2120
TYPE(MPI_Request), INTENT(OUT) :: request
2221
INTEGER, OPTIONAL, INTENT(OUT) :: ierror

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ subroutine MPI_Ibcast_f08(buffer,count,datatype,root,comm,request,ierror)
1111
use :: mpi_f08_types, only : MPI_Datatype, MPI_Comm, MPI_Request
1212
use :: mpi_f08, only : ompi_ibcast_f
1313
implicit none
14-
OMPI_FORTRAN_IGNORE_TKR_TYPE, INTENT(IN), ASYNCHRONOUS :: buffer
14+
OMPI_FORTRAN_IGNORE_TKR_TYPE, ASYNCHRONOUS :: buffer
1515
INTEGER, INTENT(IN) :: count, root
1616
TYPE(MPI_Datatype), INTENT(IN) :: datatype
1717
TYPE(MPI_Comm), INTENT(IN) :: comm
@@ -22,4 +22,4 @@ subroutine MPI_Ibcast_f08(buffer,count,datatype,root,comm,request,ierror)
2222
call ompi_ibcast_f(buffer,count,datatype%MPI_VAL,root,comm%MPI_VAL,request%MPI_VAL,c_ierror)
2323
if (present(ierror)) ierror = c_ierror
2424

25-
end subroutine MPI_Ibcast_f08
25+
end subroutine MPI_Ibcast_f08

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ end subroutine PMPI_Improbe
3333

3434
call PMPI_Improbe(source,tag,comm%MPI_VAL,flag,message%MPI_VAL,status,c_ierror)
3535
if (present(ierror)) ierror = c_ierror
36+
3637
end subroutine MPI_Improbe_f08

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ subroutine MPI_Ineighbor_allgather_f08(sendbuf,sendcount,sendtype,recvbuf,recvco
1111
use :: mpi_f08_types, only : MPI_Datatype, MPI_Comm, MPI_Request
1212
use :: mpi_f08, only : ompi_ineighbor_allgather_f
1313
implicit none
14-
OMPI_FORTRAN_IGNORE_TKR_TYPE, INTENT(IN) :: sendbuf, recvbuf
14+
OMPI_FORTRAN_IGNORE_TKR_TYPE, INTENT(IN) :: sendbuf
15+
OMPI_FORTRAN_IGNORE_TKR_TYPE :: recvbuf
1516
INTEGER, INTENT(IN) :: sendcount, recvcount
1617
TYPE(MPI_Datatype), INTENT(IN) :: sendtype
1718
TYPE(MPI_Datatype), INTENT(IN) :: recvtype

0 commit comments

Comments
 (0)