Skip to content

Commit 325b207

Browse files
committed
mpif-externals.h: add missing MPI_AINT_ADD/MPI_AINT_DIFF
MPI_AINT_ADD and MPI_AINT_DIFF are functions and must be declared as externals with the proper return type. This is already done properly in the mpi and mpi_f08 modules; these declarations for these functions were only missing from mpif.h (i.e., mpif-externals.h). Thanks to Aboorva Devarajan (@AboorvaDevarajan) for the bug report. Signed-off-by: Jeff Squyres <[email protected]> (cherry picked from commit d32eff6)
1 parent 67a89c1 commit 325b207

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ompi/include/mpif-externals.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
! University of Stuttgart. All rights reserved.
1111
! Copyright (c) 2004-2005 The Regents of the University of California.
1212
! All rights reserved.
13-
! Copyright (c) 2006-2012 Cisco Systems, Inc. All rights reserved.
13+
! Copyright (c) 2006-2017 Cisco Systems, Inc. All rights reserved
1414
! $COPYRIGHT$
1515
!
1616
! Additional copyrights may follow
@@ -41,4 +41,8 @@
4141
!
4242
external MPI_WTIME, MPI_WTICK , PMPI_WTICK, PMPI_WTIME
4343
double precision MPI_WTIME, MPI_WTICK , PMPI_WTICK, PMPI_WTIME
44-
44+
!
45+
! address integer functions
46+
!
47+
external MPI_AINT_ADD, MPI_AINT_DIFF
48+
integer(kind=MPI_ADDRESS_KIND) MPI_AINT_ADD, MPI_AINT_DIFF

0 commit comments

Comments
 (0)