fortran/mpif-h: keep include path for extension short
in order to cope with the 72 characters per line limit, move openmpi/ompi/mpiext/FOO/mpif-h/mpiext_FOO_mpifh.h to openmpi/ompi/mpiext/FOO_mpifh.h Refs. open-mpi/ompi#6019 Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
Этот коммит содержится в:
родитель
7be8a075ed
Коммит
848a868f7b
@ -409,7 +409,7 @@ AC_DEFUN([EXT_CONFIGURE_M4_CONFIG_COMPONENT],[
|
|||||||
# - c/libmpiext_<component>.la: convneience library slurped into libmpi.la
|
# - c/libmpiext_<component>.la: convneience library slurped into libmpi.la
|
||||||
#
|
#
|
||||||
# mpi.f.h:
|
# mpi.f.h:
|
||||||
# - mpif-h/mpiext_<component>_mpifh.h: is included mpi mpif_ext.h
|
# - mpif-h/<component>_mpifh.h: is included mpi mpif_ext.h
|
||||||
# - mpif-h/libmpiext_<component>_mpifh.la: convenience library slurped
|
# - mpif-h/libmpiext_<component>_mpifh.la: convenience library slurped
|
||||||
# into libmpi_mpifh.la
|
# into libmpi_mpifh.la
|
||||||
#
|
#
|
||||||
@ -497,7 +497,7 @@ EOF
|
|||||||
# Test if this extension has mpif.h bindings
|
# Test if this extension has mpif.h bindings
|
||||||
# If not, skip this step.
|
# If not, skip this step.
|
||||||
#
|
#
|
||||||
test_header="${srcdir}/ompi/mpiext/$component/mpif-h/mpiext_${component}_mpifh.h"
|
test_header="${srcdir}/ompi/mpiext/$component/mpif-h/${component}_mpifh.h"
|
||||||
enabled_mpifh=0
|
enabled_mpifh=0
|
||||||
|
|
||||||
AC_MSG_CHECKING([if MPI Extension $component has mpif.h bindings])
|
AC_MSG_CHECKING([if MPI Extension $component has mpif.h bindings])
|
||||||
@ -507,10 +507,10 @@ EOF
|
|||||||
enabled_mpifh=1
|
enabled_mpifh=1
|
||||||
|
|
||||||
# JMS Where is this needed?
|
# JMS Where is this needed?
|
||||||
EXT_MPIFH_HEADERS="$EXT_MPIFH_HEADERS mpiext/$component/mpif-h/mpiext_${component}_mpifh.h"
|
EXT_MPIFH_HEADERS="$EXT_MPIFH_HEADERS mpiext/${component}_mpifh.h"
|
||||||
$4="$$4 $component"
|
$4="$$4 $component"
|
||||||
|
|
||||||
component_header="mpiext_${component}_mpifh.h"
|
component_header="${component}_mpifh.h"
|
||||||
|
|
||||||
cat >> $mpif_ext_h <<EOF
|
cat >> $mpif_ext_h <<EOF
|
||||||
!
|
!
|
||||||
@ -519,7 +519,7 @@ EOF
|
|||||||
integer $component_define
|
integer $component_define
|
||||||
parameter ($component_define=1)
|
parameter ($component_define=1)
|
||||||
|
|
||||||
include 'openmpi/ompi/mpiext/$component/mpif-h/$component_header'
|
include 'openmpi/ompi/mpiext/$component_header'
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
else
|
else
|
||||||
@ -566,7 +566,7 @@ EOF
|
|||||||
# srcdir is needed to find the header.
|
# srcdir is needed to find the header.
|
||||||
#
|
#
|
||||||
if test "$enabled_mpifh" = 1; then
|
if test "$enabled_mpifh" = 1; then
|
||||||
mpifh_component_header="mpiext_${component}_mpifh.h"
|
mpifh_component_header="${component}_mpifh.h"
|
||||||
cat >> $mpiusempi_ext_h <<EOF
|
cat >> $mpiusempi_ext_h <<EOF
|
||||||
#include "${srcdir}/ompi/mpiext/$component/mpif-h/$mpifh_component_header"
|
#include "${srcdir}/ompi/mpiext/$component/mpif-h/$mpifh_component_header"
|
||||||
EOF
|
EOF
|
||||||
@ -619,7 +619,7 @@ EOF
|
|||||||
# the srcdir is needed to find the header.
|
# the srcdir is needed to find the header.
|
||||||
#
|
#
|
||||||
if test "$enabled_mpifh" = 1; then
|
if test "$enabled_mpifh" = 1; then
|
||||||
mpifh_component_header="mpiext_${component}_mpifh.h"
|
mpifh_component_header="${component}_mpifh.h"
|
||||||
cat >> $mpiusempif08_ext_h <<EOF
|
cat >> $mpiusempif08_ext_h <<EOF
|
||||||
#include "${srcdir}/ompi/mpiext/$component/mpif-h/$mpifh_component_header"
|
#include "${srcdir}/ompi/mpiext/$component/mpif-h/$mpifh_component_header"
|
||||||
EOF
|
EOF
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
# Corporation. All rights reserved.
|
# Corporation. All rights reserved.
|
||||||
# Copyright (c) 2011 Oak Ridge National Labs. All rights reserved.
|
# Copyright (c) 2011 Oak Ridge National Labs. All rights reserved.
|
||||||
# Copyright (c) 2011-2012 Cisco Systems, Inc. All rights reserved.
|
# Copyright (c) 2011-2012 Cisco Systems, Inc. All rights reserved.
|
||||||
|
# Copyright (c) 2018 Research Organization for Information Science
|
||||||
|
# and Technology (RIST). All rights reserved.
|
||||||
# $COPYRIGHT$
|
# $COPYRIGHT$
|
||||||
#
|
#
|
||||||
# Additional copyrights may follow
|
# Additional copyrights may follow
|
||||||
@ -26,7 +28,7 @@ noinst_LTLIBRARIES =
|
|||||||
|
|
||||||
# Directory where the header file to be included in mpif-ext.h must be
|
# Directory where the header file to be included in mpif-ext.h must be
|
||||||
# installed.
|
# installed.
|
||||||
ompidir = $(ompiincludedir)/ompi/mpiext/example/mpif-h
|
ompidir = $(ompiincludedir)/ompi/mpiext
|
||||||
|
|
||||||
# Just like noinst_LTLIBRARIES, set this macro to empty and
|
# Just like noinst_LTLIBRARIES, set this macro to empty and
|
||||||
# conditionally add to it later.
|
# conditionally add to it later.
|
||||||
@ -41,7 +43,7 @@ if OMPI_BUILD_FORTRAN_MPIFH_BINDINGS
|
|||||||
noinst_LTLIBRARIES += libmpiext_example_mpifh.la
|
noinst_LTLIBRARIES += libmpiext_example_mpifh.la
|
||||||
|
|
||||||
# This is the header file that is installed.
|
# This is the header file that is installed.
|
||||||
ompi_HEADERS += mpiext_example_mpifh.h
|
ompi_HEADERS += example_mpifh.h
|
||||||
|
|
||||||
# Sources for the convenience libtool library.
|
# Sources for the convenience libtool library.
|
||||||
libmpiext_example_mpifh_la_SOURCES = \
|
libmpiext_example_mpifh_la_SOURCES = \
|
||||||
|
@ -31,7 +31,7 @@ noinst_LTLIBRARIES =
|
|||||||
|
|
||||||
# Directory where the header file to be included in mpif-ext.h must be
|
# Directory where the header file to be included in mpif-ext.h must be
|
||||||
# installed.
|
# installed.
|
||||||
ompidir = $(ompiincludedir)/ompi/mpiext/pcollreq/mpif-h
|
ompidir = $(ompiincludedir)/ompi/mpiext
|
||||||
|
|
||||||
# Just like noinst_LTLIBRARIES, set this macro to empty and
|
# Just like noinst_LTLIBRARIES, set this macro to empty and
|
||||||
# conditionally add to it later.
|
# conditionally add to it later.
|
||||||
@ -46,7 +46,7 @@ if OMPI_BUILD_FORTRAN_MPIFH_BINDINGS
|
|||||||
noinst_LTLIBRARIES += libmpiext_pcollreq_mpifh.la
|
noinst_LTLIBRARIES += libmpiext_pcollreq_mpifh.la
|
||||||
|
|
||||||
# This is the header file that is installed.
|
# This is the header file that is installed.
|
||||||
ompi_HEADERS += mpiext_pcollreq_mpifh.h
|
ompi_HEADERS += pcollreq_mpifh.h
|
||||||
|
|
||||||
noinst_HEADERS = mpiext_pcollreq_prototypes.h
|
noinst_HEADERS = mpiext_pcollreq_prototypes.h
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user