Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit 57cbd79

Browse files
committed
fortran: Add missing PMPI interfaces
(cherry picked from commit open-mpi/ompi@f3b9a49)
1 parent f7be7c8 commit 57cbd79

File tree

1 file changed

+111
-0
lines changed

1 file changed

+111
-0
lines changed

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

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,6 +1122,18 @@ end subroutine MPI_Comm_create_group
11221122

11231123
end interface
11241124

1125+
interface PMPI_Comm_create_group
1126+
1127+
subroutine PMPI_Comm_create_group(comm, group, tag, newcomm, ierror)
1128+
integer, intent(in) :: comm
1129+
integer, intent(in) :: group
1130+
integer, intent(in) :: tag
1131+
integer, intent(out) :: newcomm
1132+
integer, intent(out) :: ierror
1133+
end subroutine PMPI_Comm_create_group
1134+
1135+
end interface
1136+
11251137

11261138
interface MPI_Comm_create_keyval
11271139

@@ -1222,6 +1234,17 @@ end subroutine MPI_Comm_dup_with_info
12221234

12231235
end interface
12241236

1237+
interface PMPI_Comm_dup_with_info
1238+
1239+
subroutine PMPI_Comm_dup_with_info(comm, info, newcomm, ierror)
1240+
integer, intent(in) :: comm
1241+
integer, intent(in) :: info
1242+
integer, intent(out) :: newcomm
1243+
integer, intent(out) :: ierror
1244+
end subroutine PMPI_Comm_dup_with_info
1245+
1246+
end interface
1247+
12251248

12261249
interface MPI_Comm_free
12271250

@@ -1383,6 +1406,17 @@ end subroutine MPI_Comm_idup
13831406

13841407
end interface
13851408

1409+
interface PMPI_Comm_idup
1410+
1411+
subroutine PMPI_Comm_idup(comm, newcomm, request, ierror)
1412+
integer, intent(in) :: comm
1413+
integer, intent(out) :: newcomm
1414+
integer, intent(out) :: request
1415+
integer, intent(out) :: ierror
1416+
end subroutine PMPI_Comm_idup
1417+
1418+
end interface
1419+
13861420

13871421
interface MPI_Comm_join
13881422

@@ -7369,6 +7403,31 @@ end subroutine MPI_Win_allocate_cptr
73697403

73707404
end interface
73717405

7406+
interface PMPI_Win_allocate
7407+
7408+
subroutine PMPI_Win_allocate(size, disp_unit, info, comm, &
7409+
baseptr, win, ierror)
7410+
include 'mpif-config.h'
7411+
integer(KIND=MPI_ADDRESS_KIND), intent(in) :: size
7412+
integer, intent(in) :: disp_unit
7413+
integer, intent(in) :: info
7414+
integer, intent(in) :: comm
7415+
integer(KIND=MPI_ADDRESS_KIND), intent(out) :: baseptr
7416+
integer, intent(out) :: win
7417+
integer, intent(out) :: ierror
7418+
end subroutine PMPI_Win_allocate
7419+
7420+
subroutine PMPI_Win_allocate_cptr(size, disp_unit, info, comm, &
7421+
baseptr, win, ierror)
7422+
use, intrinsic :: iso_c_binding, only : c_ptr
7423+
include 'mpif-config.h'
7424+
integer :: disp_unit, info, comm, win, ierror
7425+
integer(KIND=MPI_ADDRESS_KIND) :: size
7426+
type(C_PTR) :: baseptr
7427+
end subroutine PMPI_Win_allocate_cptr
7428+
7429+
end interface
7430+
73727431

73737432
interface MPI_Win_allocate_shared
73747433

@@ -7395,6 +7454,31 @@ end subroutine MPI_Win_allocate_shared_cptr
73957454

73967455
end interface
73977456

7457+
interface PMPI_Win_allocate_shared
7458+
7459+
subroutine PMPI_Win_allocate_shared(size, disp_unit, info, comm, &
7460+
baseptr, win, ierror)
7461+
include 'mpif-config.h'
7462+
integer(KIND=MPI_ADDRESS_KIND), intent(in) :: size
7463+
integer, intent(in) :: disp_unit
7464+
integer, intent(in) :: info
7465+
integer, intent(in) :: comm
7466+
integer(KIND=MPI_ADDRESS_KIND), intent(out) :: baseptr
7467+
integer, intent(out) :: win
7468+
integer, intent(out) :: ierror
7469+
end subroutine PMPI_Win_allocate_shared
7470+
7471+
subroutine PMPI_Win_allocate_shared_cptr(size, disp_unit, info, comm, &
7472+
baseptr, win, ierror)
7473+
use, intrinsic :: iso_c_binding, only : c_ptr
7474+
include 'mpif-config.h'
7475+
integer :: disp_unit, info, comm, win, ierror
7476+
integer(KIND=MPI_ADDRESS_KIND) :: size
7477+
type(C_PTR) :: baseptr
7478+
end subroutine PMPI_Win_allocate_shared_cptr
7479+
7480+
end interface
7481+
73987482

73997483
interface MPI_Win_attach
74007484

@@ -8038,6 +8122,33 @@ end subroutine MPI_Win_shared_query_cptr
80388122

80398123
end interface
80408124

8125+
interface PMPI_Win_shared_query
8126+
8127+
subroutine PMPI_Win_shared_query(win, rank, size, disp_unit, baseptr,&
8128+
ierror)
8129+
include 'mpif-config.h'
8130+
integer, intent(in) :: win
8131+
integer, intent(in) :: rank
8132+
integer(KIND=MPI_ADDRESS_KIND), intent(out) :: size
8133+
integer, intent(out) :: disp_unit
8134+
integer(KIND=MPI_ADDRESS_KIND), intent(out) :: baseptr
8135+
integer, intent(out) :: ierror
8136+
end subroutine PMPI_Win_shared_query
8137+
8138+
subroutine PMPI_Win_shared_query_cptr(win, rank, size, disp_unit, baseptr,&
8139+
ierror)
8140+
use, intrinsic :: iso_c_binding, only : c_ptr
8141+
include 'mpif-config.h'
8142+
integer, intent(in) :: win
8143+
integer, intent(in) :: rank
8144+
integer(KIND=MPI_ADDRESS_KIND), intent(out) :: size
8145+
integer, intent(out) :: disp_unit
8146+
type(C_PTR), intent(out) :: baseptr
8147+
integer, intent(out) :: ierror
8148+
end subroutine PMPI_Win_shared_query_cptr
8149+
8150+
end interface
8151+
80418152

80428153
interface MPI_Win_start
80438154

0 commit comments

Comments
 (0)