Skip to content

Commit dc22b30

Browse files
committed
fortran: build MPI_Sizeof() interface in use-mpi-tkr bindings
whenever possible. Add the missing OMPI_FORTRAN_BUILD_SIZEOF macro to Fortran and add a missing dependency. Thanks Themos Tsikas for reporting this issue. Refs open-mpi#5085 Signed-off-by: Gilles Gouaillardet <[email protected]> (cherry picked from commit open-mpi/ompi@2abeada)
1 parent 5e894c4 commit dc22b30

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ompi/mpi/fortran/configure-fortran-output.h.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
! Copyright (c) 2006-2014 Cisco Systems, Inc. All rights reserved.
44
! Copyright (c) 2009-2012 Los Alamos National Security, LLC.
55
! All rights reserved.
6-
! Copyright (c) 2017 Research Organization for Information Science
6+
! Copyright (c) 2017-2018 Research Organization for Information Science
77
! and Technology (RIST). All rights reserved.
88
!
99
! $COPYRIGHT$
@@ -46,6 +46,8 @@
4646
! Line 2 of the ignore TKR syntax
4747
#define OMPI_FORTRAN_IGNORE_TKR_TYPE @OMPI_FORTRAN_IGNORE_TKR_TYPE@
4848
49+
50+
#define OMPI_FORTRAN_BUILD_SIZEOF @OMPI_FORTRAN_BUILD_SIZEOF@
4951
! Integers
5052
5153
#define OMPI_HAVE_FORTRAN_INTEGER1 @OMPI_HAVE_FORTRAN_INTEGER1@

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ if BUILD_FORTRAN_SIZEOF
8989
nodist_lib@OMPI_LIBMPI_NAME@_usempi_la_SOURCES += \
9090
mpi-tkr-sizeof.h \
9191
mpi-tkr-sizeof.f90
92+
93+
mpi.lo: mpi-tkr-sizeof.h
9294
endif
9395

9496
# Note that we invoke some OPAL functions directly in

0 commit comments

Comments
 (0)