253444c6d0
1. New mpifort wrapper compiler: you can utilize mpif.h, use mpi, and use mpi_f08 through this one wrapper compiler 1. mpif77 and mpif90 still exist, but are sym links to mpifort and may be removed in a future release 1. The mpi module has been re-implemented and is significantly "mo' bettah" 1. The mpi_f08 module offers many, many improvements over mpif.h and the mpi module This stuff is coming from a VERY long-lived mercurial branch (3 years!); it'll almost certainly take a few SVN commits and a bunch of testing before I get it correctly committed to the SVN trunk. == More details == Craig Rasmussen and I have been working with the MPI-3 Fortran WG and Fortran J3 committees for a long, long time to make a prototype MPI-3 Fortran bindings implementation. We think we're at a stable enough state to bring this stuff back to the trunk, with the goal of including it in OMPI v1.7. Special thanks go out to everyone who has been incredibly patient and helpful to us in this journey: * Rolf Rabenseifner/HLRS (mastermind/genius behind the entire MPI-3 Fortran effort) * The Fortran J3 committee * Tobias Burnus/gfortran * Tony !Goetz/Absoft * Terry !Donte/Oracle * ...and probably others whom I'm forgetting :-( There's still opportunities for optimization in the mpi_f08 implementation, but by and large, it is as far along as it can be until Fortran compilers start implementing the new F08 dimension(..) syntax. Note that gfortran is currently unsupported for the mpi_f08 module and the new mpi module. gfortran users will a) fall back to the same mpi module implementation that is in OMPI v1.5.x, and b) not get the new mpi_f08 module. The gfortran maintainers are actively working hard to add the necessary features to support both the new mpi_f08 module and the new mpi module implementations. This will take some time. As mentioned above, ompi/mpi/f77 and ompi/mpi/f90 no longer exist. All the fortran bindings implementations have been collated under ompi/mpi/fortran; each implementation has its own subdirectory: {{{ ompi/mpi/fortran/ base/ - glue code mpif-h/ - what used to be ompi/mpi/f77 use-mpi-tkr/ - what used to be ompi/mpi/f90 use-mpi-ignore-tkr/ - new mpi module implementation use-mpi-f08/ - new mpi_f08 module implementation }}} There's also a prototype 6-function-MPI implementation under use-mpi-f08-desc that emulates the new F08 dimension(..) syntax that isn't fully available in Fortran compilers yet. We did that to prove it to ourselves that it could be done once the compilers fully support it. This directory/implementation will likely eventually replace the use-mpi-f08 version. Other things that were done: * ompi_info grew a few new output fields to describe what level of Fortran support is included * Existing Fortran examples in examples/ were renamed; new mpi_f08 examples were added * The old Fortran MPI libraries were renamed: * libmpi_f77 -> libmpi_mpifh * libmpi_f90 -> libmpi_usempi * The configury for Fortran was consolidated and significantly slimmed down. Note that the F77 env variable is now IGNORED for configure; you should only use FC. Example: {{{ shell$ ./configure CC=icc CXX=icpc FC=ifort ... }}} All of this work was done in a Mercurial branch off the SVN trunk, and hosted at Bitbucket. This branch has got to be one of OMPI's longest-running branches. Its first commit was Tue Apr 07 23:01:46 2009 -0400 -- it's over 3 years old! :-) We think we've pulled in all relevant changes from the OMPI trunk (e.g., Fortran implementations of the new MPI-3 MPROBE stuff for mpif.h, use mpi, and use mpi_f08, and the recent Fujitsu Fortran patches). I anticipate some instability when we bring this stuff into the trunk, simply because it touches a LOT of code in the MPI layer in the OMPI code base. We'll try our best to make it as pain-free as possible, but please bear with us when it is committed. This commit was SVN r26283.
194 строки
6.3 KiB
Makefile
194 строки
6.3 KiB
Makefile
#
|
|
# Copyright (c) 2004-2009 The Trustees of Indiana University and Indiana
|
|
# University Research and Technology
|
|
# Corporation. All rights reserved.
|
|
# Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
# of Tennessee Research Foundation. All rights
|
|
# reserved.
|
|
# Copyright (c) 2004-2009 High Performance Computing Center Stuttgart,
|
|
# University of Stuttgart. All rights reserved.
|
|
# Copyright (c) 2004-2005 The Regents of the University of California.
|
|
# All rights reserved.
|
|
# Copyright (c) 2008-2012 Cisco Systems, Inc. All rights reserved.
|
|
# Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved.
|
|
# Copyright (c) 2010-2011 Sandia National Laboratories. All rights reserved.
|
|
# $COPYRIGHT$
|
|
#
|
|
# Additional copyrights may follow
|
|
#
|
|
# $HEADER$
|
|
#
|
|
|
|
EXTRA_DIST = CMakeLists.txt
|
|
|
|
# We always have C bindings, but do we have profiling?
|
|
|
|
if BUILD_MPI_BINDINGS_LAYER
|
|
c_mpi_lib = mpi/c/libmpi_c_mpi.la
|
|
else
|
|
c_mpi_lib =
|
|
endif
|
|
if BUILD_PMPI_BINDINGS_LAYER
|
|
c_pmpi_lib = mpi/c/profile/libmpi_c_pmpi.la
|
|
else
|
|
c_pmpi_lib =
|
|
endif
|
|
|
|
# See if we have Fortran mpif.h MPI bindings
|
|
|
|
if OMPI_BUILD_FORTRAN_MPIFH_BINDINGS
|
|
mpi_fortran_base_lib = mpi/fortran/base/libmpi_fortran_base.la
|
|
else
|
|
mpi_fortran_base_lib =
|
|
endif
|
|
|
|
# Note that the ordering of "." in SUBDIRS is important: the C++,
|
|
# Fortran mpif.h, and use mpi/use mpi_f08 bindings are all in
|
|
# standalone .la files that depend on libmpi.la. So we must fully
|
|
# build libmpi.la first.
|
|
|
|
# NOTE: A handful of files in mpi/fortran/base must be included in
|
|
# libmpi.la. But we wanted to keep all the Fortran sources together
|
|
# in the same tree, so we moved those sources to a separate
|
|
# subdirectory with its own Makefile.include that is included in this
|
|
# Makefile.am (NOTE: it did *not* work to put all the files -- base
|
|
# and non-base -- into mpi/fortran/mpif-h and have both a regular
|
|
# Makefile.am for building the mpif.h bindings library and a separate
|
|
# Makefile.include that was included in this top-level Makefile.am;
|
|
# problems occurred with "make distclean" and files in the
|
|
# ompi/mpi/fortran/mpif-h/.deps directory -- it's not clear whether
|
|
# this is an AM bug or whether this behavior is simply not supported).
|
|
# This ompi/mpi/fortran/base/Makefile.include file makes a convenience
|
|
# LT library that is then sucked into libmpi.la (the
|
|
# ompi/mpi/fortran/base sources must be compiled with special
|
|
# CPPFLAGS; we can't just add the raw sources to libmpi_la_SOURCES,
|
|
# unfortunately).
|
|
|
|
# The end of the result is that libmpi.la -- including a few sources
|
|
# from mpi/fortran/base -- is fully built before the C++, mpif.h, and
|
|
# use mpi/use mpi_f08 bindings are built. Therefore, the C++, mpif.h
|
|
# and use mpi/use mpi_f08 bindings libraries can all link against
|
|
# libmpi.la.
|
|
|
|
# NOTE: The ordering of this list is VERY CAREFULLY CRAFTED! Do not
|
|
# change the ordering unless you really know what you're doing. :-)
|
|
|
|
SUBDIRS = \
|
|
include \
|
|
datatype \
|
|
debuggers \
|
|
etc \
|
|
mpi/c \
|
|
$(OMPI_MPIEXT_C_DIRS) \
|
|
mpi/fortran/base/ \
|
|
$(MCA_ompi_FRAMEWORKS_SUBDIRS) \
|
|
$(MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS) \
|
|
. \
|
|
mpi/cxx \
|
|
$(OMPI_MPIEXT_MPIFH_DIRS) \
|
|
mpi/fortran/mpif-h \
|
|
$(OMPI_FORTRAN_USEMPI_DIR) \
|
|
$(OMPI_MPIEXT_USEMPIF08_DIRS) \
|
|
$(OMPI_FORTRAN_USEMPIF08_DIR) \
|
|
mpi/fortran/mpiext \
|
|
mpi/java \
|
|
$(MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS) \
|
|
$(OMPI_CONTRIB_SUBDIRS)
|
|
|
|
# The ordering of the DIST_SUBDIRS isn't as important, but note that
|
|
# its contents *are* different than SUBDIRS. In particular, the
|
|
# MPIEXT subdirs has a different value that is *not* equivalent to the
|
|
# union of the various $(OMPI_MPIEXT_*_DIRS) variables from SUBDIRS!
|
|
|
|
DIST_SUBDIRS = \
|
|
include \
|
|
datatype \
|
|
debuggers \
|
|
etc \
|
|
mpi/c \
|
|
mpi/cxx \
|
|
mpi/fortran/base \
|
|
mpi/fortran/mpif-h \
|
|
mpi/fortran/use-mpi-tkr \
|
|
mpi/fortran/use-mpi-ignore-tkr \
|
|
mpi/fortran/use-mpi-f08 \
|
|
mpi/fortran/use-mpi-f08-desc \
|
|
mpi/fortran/mpiext \
|
|
mpi/java \
|
|
$(OMPI_MPIEXT_ALL_SUBDIRS) \
|
|
$(MCA_ompi_FRAMEWORKS_SUBDIRS) \
|
|
$(MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS) \
|
|
$(OMPI_CONTRIB_DIST_SUBDIRS)
|
|
|
|
# Build the main MPI library
|
|
|
|
lib_LTLIBRARIES = libmpi.la
|
|
libmpi_la_SOURCES =
|
|
libmpi_la_LIBADD = \
|
|
datatype/libdatatype.la \
|
|
debuggers/libdebuggers.la \
|
|
mpi/c/libmpi_c.la \
|
|
$(c_mpi_lib) \
|
|
$(c_pmpi_lib) \
|
|
$(mpi_fortran_base_lib) \
|
|
$(MCA_ompi_FRAMEWORK_LIBS) \
|
|
$(OMPI_MPIEXT_C_LIBS) \
|
|
$(OMPI_LIBMPI_EXTRA_LIBS) \
|
|
$(top_ompi_builddir)/orte/libopen-rte-lt.la
|
|
libmpi_la_DEPENDENCIES = $(libmpi_la_LIBADD)
|
|
libmpi_la_LDFLAGS = \
|
|
-version-info $(libmpi_so_version) \
|
|
$(OMPI_LIBMPI_EXTRA_LDFLAGS)
|
|
|
|
# included subdirectory Makefile.am's and appended-to variables
|
|
headers =
|
|
noinst_LTLIBRARIES =
|
|
include_HEADERS =
|
|
dist_pkgdata_DATA =
|
|
libmpi_la_SOURCES += $(headers)
|
|
nodist_man_MANS =
|
|
|
|
# Conditionally install the header files
|
|
|
|
if WANT_INSTALL_HEADERS
|
|
ompidir = $(includedir)/openmpi/$(subdir)
|
|
nobase_ompi_HEADERS = $(headers)
|
|
endif
|
|
|
|
include class/Makefile.am
|
|
include attribute/Makefile.am
|
|
include communicator/Makefile.am
|
|
include errhandler/Makefile.am
|
|
include file/Makefile.am
|
|
include group/Makefile.am
|
|
include info/Makefile.am
|
|
include message/Makefile.am
|
|
include op/Makefile.am
|
|
include peruse/Makefile.am
|
|
include proc/Makefile.am
|
|
include request/Makefile.am
|
|
include runtime/Makefile.am
|
|
include win/Makefile.am
|
|
include tools/Makefile.am
|
|
include mpi/Makefile.am
|
|
include mpi/man/man3/Makefile.extra
|
|
include mpiext/Makefile.am
|
|
|
|
# Ensure that the man page directory exists before we try to make man
|
|
# page files (because ompi/mpi/man/man3 has no config.status-generated
|
|
# Makefile)
|
|
dir_stamp = $(top_builddir)/$(subdir)/mpi/man/man3/.dir-stamp
|
|
|
|
# Also ensure that the man pages are rebuilt if the opal_config.h file
|
|
# changes (e.g., configure was run again, meaning that the release
|
|
# date or version may have changed)
|
|
$(nodist_man_MANS): $(dir_stamp) $(top_builddir)/opal/include/opal_config.h
|
|
|
|
$(dir_stamp):
|
|
$(mkdir_p) `dirname $@`
|
|
touch "$@"
|
|
|
|
# Remove the generated man pages
|
|
distclean-local:
|
|
rm -f $(nodist_man_MANS) $(dir_stamp) mpiext/static-components.h
|