2012-01-03 21:25:37 +04:00
|
|
|
Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
|
|
|
|
University Research and Technology
|
|
|
|
Corporation. All rights reserved.
|
|
|
|
Copyright (c) 2004-2007 The University of Tennessee and The University
|
|
|
|
of Tennessee Research Foundation. All rights
|
|
|
|
reserved.
|
|
|
|
Copyright (c) 2004-2008 High Performance Computing Center Stuttgart,
|
|
|
|
University of Stuttgart. All rights reserved.
|
|
|
|
Copyright (c) 2004-2007 The Regents of the University of California.
|
|
|
|
All rights reserved.
|
2014-01-28 08:44:19 +04:00
|
|
|
Copyright (c) 2006-2014 Cisco Systems, Inc. All rights reserved.
|
2012-01-03 21:25:37 +04:00
|
|
|
Copyright (c) 2006-2011 Mellanox Technologies. All rights reserved.
|
2012-01-24 19:50:45 +04:00
|
|
|
Copyright (c) 2006-2012 Oracle and/or its affiliates. All rights reserved.
|
2012-01-03 21:25:37 +04:00
|
|
|
Copyright (c) 2007 Myricom, Inc. All rights reserved.
|
|
|
|
Copyright (c) 2008 IBM Corporation. All rights reserved.
|
|
|
|
Copyright (c) 2010 Oak Ridge National Labs. All rights reserved.
|
2013-10-07 23:20:26 +04:00
|
|
|
Copyright (c) 2011 University of Houston. All rights reserved.
|
2014-01-18 19:33:08 +04:00
|
|
|
Copyright (c) 2013-2014 Intel, Inc. All rights reserved
|
2012-01-03 21:25:37 +04:00
|
|
|
$COPYRIGHT$
|
2004-11-22 04:38:40 +03:00
|
|
|
|
2012-01-03 21:25:37 +04:00
|
|
|
Additional copyrights may follow
|
|
|
|
|
|
|
|
$HEADER$
|
|
|
|
|
|
|
|
===========================================================================
|
|
|
|
|
|
|
|
When submitting questions and problems, be sure to include as much
|
|
|
|
extra information as possible. This web page details all the
|
|
|
|
information that we request in order to provide assistance:
|
|
|
|
|
|
|
|
http://www.open-mpi.org/community/help/
|
|
|
|
|
|
|
|
The best way to report bugs, send comments, or ask questions is to
|
|
|
|
sign up on the user's and/or developer's mailing list (for user-level
|
|
|
|
and developer-level questions; when in doubt, send to the user's
|
|
|
|
list):
|
|
|
|
|
|
|
|
users@open-mpi.org
|
|
|
|
devel@open-mpi.org
|
|
|
|
|
|
|
|
Because of spam, only subscribers are allowed to post to these lists
|
|
|
|
(ensure that you subscribe with and post from exactly the same e-mail
|
|
|
|
address -- joe@example.com is considered different than
|
|
|
|
joe@mycomputer.example.com!). Visit these pages to subscribe to the
|
|
|
|
lists:
|
|
|
|
|
|
|
|
http://www.open-mpi.org/mailman/listinfo.cgi/users
|
|
|
|
http://www.open-mpi.org/mailman/listinfo.cgi/devel
|
|
|
|
|
|
|
|
Thanks for your time.
|
|
|
|
|
|
|
|
===========================================================================
|
|
|
|
|
|
|
|
Much, much more information is also available in the Open MPI FAQ:
|
|
|
|
|
|
|
|
http://www.open-mpi.org/faq/
|
|
|
|
|
|
|
|
===========================================================================
|
|
|
|
|
|
|
|
The following abbreviated list of release notes applies to this code
|
2014-04-19 04:30:38 +04:00
|
|
|
base as of this writing (April 2014):
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
General notes
|
|
|
|
-------------
|
|
|
|
|
2013-11-07 21:14:28 +04:00
|
|
|
- Open MPI now includes two public software layers: MPI and OpenSHMEM.
|
|
|
|
Throughout this document, references to Open MPI implicitly include
|
|
|
|
both of these layers. When distinction between these two layers is
|
|
|
|
necessary, we will reference them as the "MPI" and "OSHMEM" layers
|
|
|
|
respectively.
|
|
|
|
|
2014-03-20 00:50:28 +04:00
|
|
|
- OpenSHMEM is a collaborative effort between academia, industry, and
|
|
|
|
the U.S. Government to create a specification for a standardized API
|
|
|
|
for parallel programming in the Partitioned Global Address Space
|
|
|
|
(PGAS). For more information about the OpenSHMEM project, including
|
|
|
|
access to the current OpenSHMEM specification, please visit:
|
2013-11-07 21:14:28 +04:00
|
|
|
|
|
|
|
http://openshmem.org/
|
|
|
|
|
2014-03-20 00:50:28 +04:00
|
|
|
This OpenSHMEM implementation is provided on an experimental basis;
|
|
|
|
it has been lightly tested and will only work in Linux environments.
|
|
|
|
Although this implementation attempts to be portable to multiple
|
|
|
|
different environments and networks, it is still new and will likely
|
|
|
|
experience growing pains typical of any new software package.
|
2014-03-20 00:57:37 +04:00
|
|
|
End-user feedback is greatly appreciated.
|
2014-03-20 00:50:28 +04:00
|
|
|
|
2014-03-20 00:57:37 +04:00
|
|
|
This implementation will currently most likely provide optimal
|
|
|
|
performance on Mellanox hardware and software stacks. Overall
|
|
|
|
performance is expected to improve as other network vendors and/or
|
|
|
|
institutions contribute platform specific optimizations.
|
2014-03-20 00:50:28 +04:00
|
|
|
|
|
|
|
See below for details on how to enable the OpenSHMEM implementation.
|
2013-11-07 21:14:28 +04:00
|
|
|
|
2012-01-03 21:25:37 +04:00
|
|
|
- Open MPI includes support for a wide variety of supplemental
|
|
|
|
hardware and software package. When configuring Open MPI, you may
|
|
|
|
need to supply additional flags to the "configure" script in order
|
|
|
|
to tell Open MPI where the header files, libraries, and any other
|
|
|
|
required files are located. As such, running "configure" by itself
|
|
|
|
may not include support for all the devices (etc.) that you expect,
|
|
|
|
especially if their support headers / libraries are installed in
|
|
|
|
non-standard locations. Network interconnects are an easy example
|
|
|
|
to discuss -- Myrinet and OpenFabrics networks, for example, both
|
|
|
|
have supplemental headers and libraries that must be found before
|
|
|
|
Open MPI can build support for them. You must specify where these
|
|
|
|
files are with the appropriate options to configure. See the
|
|
|
|
listing of configure command-line switches, below, for more details.
|
|
|
|
|
|
|
|
- The majority of Open MPI's documentation is here in this file, the
|
|
|
|
included man pages, and on the web site FAQ
|
|
|
|
(http://www.open-mpi.org/). This will eventually be supplemented
|
|
|
|
with cohesive installation and user documentation files.
|
|
|
|
|
|
|
|
- Note that Open MPI documentation uses the word "component"
|
|
|
|
frequently; the word "plugin" is probably more familiar to most
|
|
|
|
users. As such, end users can probably completely substitute the
|
|
|
|
word "plugin" wherever you see "component" in our documentation.
|
|
|
|
For what it's worth, we use the word "component" for historical
|
|
|
|
reasons, mainly because it is part of our acronyms and internal API
|
2013-11-07 21:14:28 +04:00
|
|
|
function calls.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
- The run-time systems that are currently supported are:
|
|
|
|
- rsh / ssh
|
|
|
|
- LoadLeveler
|
2012-02-24 15:03:40 +04:00
|
|
|
- PBS Pro, Torque
|
2012-01-03 21:25:37 +04:00
|
|
|
- Platform LSF (v7.0.2 and later)
|
|
|
|
- SLURM
|
2014-09-30 22:27:29 +04:00
|
|
|
- Cray XE and XC
|
2012-02-24 00:39:10 +04:00
|
|
|
- Oracle Grid Engine (OGE) 6.1, 6.2 and open source Grid Engine
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
- Systems that have been tested are:
|
2013-10-07 23:20:26 +04:00
|
|
|
- Linux (various flavors/distros), 32 bit, with gcc
|
2012-01-03 21:25:37 +04:00
|
|
|
- Linux (various flavors/distros), 64 bit (x86), with gcc, Absoft,
|
2013-10-07 23:20:26 +04:00
|
|
|
Intel, and Portland (*)
|
2014-01-11 04:03:32 +04:00
|
|
|
- OS X (10.6, 10.7, 10.8, 10.9), 32 and 64 bit (x86_64), with gcc and
|
2012-02-24 00:39:10 +04:00
|
|
|
Absoft compilers (*)
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
(*) Be sure to read the Compiler Notes, below.
|
|
|
|
|
|
|
|
- Other systems have been lightly (but not fully tested):
|
2013-10-04 16:12:18 +04:00
|
|
|
- Cygwin 32 & 64 bit with gcc
|
2013-01-29 18:03:32 +04:00
|
|
|
- ARMv4, ARMv5, ARMv6, ARMv7 (when using non-inline assembly; only
|
|
|
|
ARMv7 is fully supported when -DOMPI_DISABLE_INLINE_ASM is used).
|
2012-01-03 21:25:37 +04:00
|
|
|
- Other 64 bit platforms (e.g., Linux on PPC64)
|
2013-10-07 23:20:26 +04:00
|
|
|
- Oracle Solaris 10 and 11, 32 and 64 bit (SPARC, i386, x86_64),
|
|
|
|
with Oracle Solaris Studio 12.2 and 12.3
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
Compiler Notes
|
|
|
|
--------------
|
|
|
|
|
|
|
|
- Mixing compilers from different vendors when building Open MPI
|
== Highlights ==
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.
2012-04-18 19:57:29 +04:00
|
|
|
(e.g., using the C/C++ compiler from one vendor and the Fortran
|
2012-01-03 21:25:37 +04:00
|
|
|
compiler from a different vendor) has been successfully employed by
|
|
|
|
some Open MPI users (discussed on the Open MPI user's mailing list),
|
|
|
|
but such configurations are not tested and not documented. For
|
|
|
|
example, such configurations may require additional compiler /
|
|
|
|
linker flags to make Open MPI build properly.
|
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
- In general, the latest versions of compilers of a given vendor's
|
|
|
|
series have the least bugs. We have seen cases where Vendor XYZ's
|
|
|
|
compiler version A.B fails to compile Open MPI, but version A.C
|
|
|
|
(where C>B) works just fine. If you run into a compile failure, you
|
|
|
|
might want to double check that you have the latest bug fixes and
|
|
|
|
patches for your compiler.
|
|
|
|
|
2014-01-18 01:39:59 +04:00
|
|
|
- Users have reported issues with older versions of the Fortran PGI
|
|
|
|
compiler suite when using Open MPI's (non-default) --enable-debug
|
|
|
|
configure option. Per the above advice of using the most recent
|
|
|
|
version of a compiler series, the Open MPI team recommends using the
|
|
|
|
latest version of the PGI suite, and/or not using the --enable-debug
|
2014-01-17 19:26:51 +04:00
|
|
|
configure option. If it helps, here's what we have found with some
|
|
|
|
(not comprehensive) testing of various versions of the PGI compiler
|
|
|
|
suite:
|
|
|
|
|
|
|
|
pgi-8 : NO known good version with --enable-debug
|
|
|
|
pgi-9 : 9.0-4 known GOOD
|
|
|
|
pgi-10: 10.0-0 known GOOD
|
|
|
|
pgi-11: NO known good version with --enable-debug
|
|
|
|
pgi-12: 12.10 known GOOD (and 12.8 and 12.9 both known BAD with
|
|
|
|
--enable-debug)
|
|
|
|
pgi-13: 13.10 known GOOD
|
|
|
|
|
2014-01-18 01:39:59 +04:00
|
|
|
- Similarly, there is a known Fortran PGI compiler issue with long
|
2014-01-28 19:36:52 +04:00
|
|
|
source directory path names that was resolved in 9.0-4 (9.0-3 is
|
|
|
|
known to be broken in this regard).
|
2014-01-17 19:26:51 +04:00
|
|
|
|
2014-08-16 01:25:51 +04:00
|
|
|
- IBM's xlf compilers: NO known good version that can build/link
|
|
|
|
the MPI f08 bindings or build/link the OSHMEM Fortran bindings.
|
|
|
|
|
2014-01-14 22:59:26 +04:00
|
|
|
- On NetBSD-6 (at least AMD64 and i386), and possibly on OpenBSD,
|
|
|
|
libtool misidentifies properties of f95/g95, leading to obscure
|
|
|
|
compile-time failures if used to build Open MPI. You can work
|
|
|
|
around this issue by ensuring that libtool will not use f95/g95
|
|
|
|
(e.g., by specifying FC=<some_other_compiler>, or otherwise ensuring
|
|
|
|
a different Fortran compiler will be found earlier in the path than
|
|
|
|
f95/g95), or by disabling the Fortran MPI bindings with
|
|
|
|
--disable-mpi-fortran.
|
2014-01-13 21:06:35 +04:00
|
|
|
|
2012-09-05 22:45:38 +04:00
|
|
|
- Absoft 11.5.2 plus a service pack from September 2012 (which Absoft
|
|
|
|
says is available upon request), or a version later than 11.5.2
|
|
|
|
(e.g., 11.5.3), is required to compile the new Fortran mpi_f08
|
|
|
|
module.
|
|
|
|
|
2012-01-24 19:50:45 +04:00
|
|
|
- Open MPI does not support the Sparc v8 CPU target. However,
|
|
|
|
as of Solaris Studio 12.1, and later compilers, one should not
|
|
|
|
specify -xarch=v8plus or -xarch=v9. The use of the options
|
|
|
|
-m32 and -m64 for producing 32 and 64 bit targets, respectively,
|
2014-01-31 06:39:39 +04:00
|
|
|
are now preferred by the Solaris Studio compilers. GCC may
|
|
|
|
require either "-m32" or "-mcpu=v9 -m32", depending on GCC version.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2012-01-26 15:28:42 +04:00
|
|
|
- It has been noticed that if one uses CXX=sunCC, in which sunCC
|
|
|
|
is a link in the Solaris Studio compiler release, that the OMPI
|
|
|
|
build system has issue with sunCC and does not build libmpi_cxx.so.
|
|
|
|
Therefore the make install fails. So we suggest that one should
|
|
|
|
use CXX=CC, which works, instead of CXX=sunCC.
|
|
|
|
|
2012-02-10 23:25:23 +04:00
|
|
|
- If one tries to build OMPI on Ubuntu with Solaris Studio using the C++
|
2012-02-24 00:39:10 +04:00
|
|
|
compiler and the -m32 option, you might see a warning:
|
|
|
|
|
|
|
|
CC: Warning: failed to detect system linker version, falling back to
|
|
|
|
custom linker usage
|
|
|
|
|
|
|
|
And the build will fail. One can overcome this error by either
|
2012-02-10 23:25:23 +04:00
|
|
|
setting LD_LIBRARY_PATH to the location of the 32 bit libraries (most
|
2012-02-24 00:39:10 +04:00
|
|
|
likely /lib32), or giving LDFLAGS="-L/lib32 -R/lib32" to the configure
|
|
|
|
command. Officially, Solaris Studio is not supported on Ubuntu Linux
|
|
|
|
distributions, so additional problems might be incurred.
|
|
|
|
|
|
|
|
- The Solaris Studio 12.2 compilers may have a problem compiling
|
|
|
|
VampirTrace on some Linux platforms. You can either upgrade to a
|
|
|
|
later version of the Solaris Studio compilers (e.g., 12.3 does not
|
|
|
|
have this problem), or disable building VampirTrace.
|
2012-02-10 23:25:23 +04:00
|
|
|
|
2012-02-24 15:03:40 +04:00
|
|
|
- Open MPI does not support the gccfss compiler (GCC For SPARC
|
|
|
|
Systems; a now-defunct compiler project from Sun).
|
|
|
|
|
2012-01-03 21:25:37 +04:00
|
|
|
- At least some versions of the Intel 8.1 compiler seg fault while
|
|
|
|
compiling certain Open MPI source code files. As such, it is not
|
|
|
|
supported.
|
|
|
|
|
|
|
|
- The Intel 9.0 v20051201 compiler on IA64 platforms seems to have a
|
|
|
|
problem with optimizing the ptmalloc2 memory manager component (the
|
|
|
|
generated code will segv). As such, the ptmalloc2 component will
|
|
|
|
automatically disable itself if it detects that it is on this
|
|
|
|
platform/compiler combination. The only effect that this should
|
|
|
|
have is that the MCA parameter mpi_leave_pinned will be inoperative.
|
|
|
|
|
2012-09-12 18:59:32 +04:00
|
|
|
- It has been reported that the Intel 9.1 and 10.0 compilers fail to
|
|
|
|
compile Open MPI on IA64 platforms. As of 12 Sep 2012, there is
|
|
|
|
very little (if any) testing performed on IA64 platforms (with any
|
|
|
|
compiler). Support is "best effort" for these platforms, but it is
|
|
|
|
doubtful that any effort will be expended to fix the Intel 9.1 /
|
|
|
|
10.0 compiler issuers on this platform.
|
|
|
|
|
2012-02-01 23:32:19 +04:00
|
|
|
- Early versions of the Intel 12.1 Linux compiler suite on x86_64 seem
|
|
|
|
to have a bug that prevents Open MPI from working. Symptoms
|
|
|
|
including immediate segv of the wrapper compilers (e.g., mpicc) and
|
|
|
|
MPI applications. As of 1 Feb 2012, if you upgrade to the latest
|
|
|
|
version of the Intel 12.1 Linux compiler suite, the problem will go
|
|
|
|
away.
|
|
|
|
|
2012-01-03 21:25:37 +04:00
|
|
|
- Early versions of the Portland Group 6.0 compiler have problems
|
|
|
|
creating the C++ MPI bindings as a shared library (e.g., v6.0-1).
|
|
|
|
Tests with later versions show that this has been fixed (e.g.,
|
|
|
|
v6.0-5).
|
|
|
|
|
|
|
|
- The Portland Group compilers prior to version 7.0 require the
|
|
|
|
"-Msignextend" compiler flag to extend the sign bit when converting
|
|
|
|
from a shorter to longer integer. This is is different than other
|
|
|
|
compilers (such as GNU). When compiling Open MPI with the Portland
|
|
|
|
compiler suite, the following flags should be passed to Open MPI's
|
|
|
|
configure script:
|
|
|
|
|
|
|
|
shell$ ./configure CFLAGS=-Msignextend CXXFLAGS=-Msignextend \
|
|
|
|
--with-wrapper-cflags=-Msignextend \
|
|
|
|
--with-wrapper-cxxflags=-Msignextend ...
|
|
|
|
|
|
|
|
This will both compile Open MPI with the proper compile flags and
|
|
|
|
also automatically add "-Msignextend" when the C and C++ MPI wrapper
|
|
|
|
compilers are used to compile user MPI applications.
|
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
- Using the MPI C++ bindings with older versions of the Pathscale
|
|
|
|
compiler on some platforms is an old issue that seems to be a
|
|
|
|
problem when Pathscale uses a back-end GCC 3.x compiler. Here's a
|
|
|
|
proposed solution from the Pathscale support team (from July 2010):
|
|
|
|
|
|
|
|
The proposed work-around is to install gcc-4.x on the system and
|
|
|
|
use the pathCC -gnu4 option. Newer versions of the compiler (4.x
|
|
|
|
and beyond) should have this fixed, but we'll have to test to
|
|
|
|
confirm it's actually fixed and working correctly.
|
|
|
|
|
|
|
|
We don't anticipate that this will be much of a problem for Open MPI
|
|
|
|
users these days (our informal testing shows that not many users are
|
|
|
|
still using GCC 3.x). Contact Pathscale support if you continue to
|
|
|
|
have problems with Open MPI's C++ bindings.
|
|
|
|
|
2012-01-03 21:25:37 +04:00
|
|
|
- Using the Absoft compiler to build the MPI Fortran bindings on Suse
|
|
|
|
9.3 is known to fail due to a Libtool compatibility issue.
|
|
|
|
|
== Highlights ==
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.
2012-04-18 19:57:29 +04:00
|
|
|
- MPI Fortran API support has been completely overhauled since the
|
|
|
|
Open MPI v1.5/v1.6 series.
|
|
|
|
|
|
|
|
********************************************************************
|
|
|
|
********************************************************************
|
2014-03-20 00:50:28 +04:00
|
|
|
*** There is now only a single Fortran MPI wrapper compiler and a
|
|
|
|
*** single Fortran OSHMEM wrapper compiler: mpifort and oshfort,
|
|
|
|
*** respectively. mpif77 and mpif90 still exist, but they are
|
|
|
|
*** symbolic links to mpifort.
|
== Highlights ==
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.
2012-04-18 19:57:29 +04:00
|
|
|
********************************************************************
|
2013-11-07 21:14:28 +04:00
|
|
|
*** Similarly, Open MPI's configure script only recognizes the FC
|
== Highlights ==
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.
2012-04-18 19:57:29 +04:00
|
|
|
*** and FCFLAGS environment variables (to specify the Fortran
|
|
|
|
*** compiler and compiler flags, respectively). The F77 and FFLAGS
|
|
|
|
*** environment variables are IGNORED.
|
|
|
|
********************************************************************
|
|
|
|
********************************************************************
|
2014-01-25 01:00:00 +04:00
|
|
|
|
|
|
|
As a direct result, it is STRONGLY recommended that you specify a
|
|
|
|
Fortran compiler that uses file suffixes to determine Fortran code
|
|
|
|
layout (e.g., free form vs. fixed). For example, with some versions
|
|
|
|
of the IBM XLF compiler, it is preferable to use FC=xlf instead of
|
|
|
|
FC=xlf90, because xlf will automatically determine the difference
|
|
|
|
between free form and fixed Fortran source code.
|
|
|
|
|
2014-01-28 19:36:52 +04:00
|
|
|
However, many Fortran compilers allow specifying additional
|
2014-01-25 01:00:00 +04:00
|
|
|
command-line arguments to indicate which Fortran dialect to use.
|
|
|
|
For example, if FC=xlf90, you may need to use "mpifort --qfixed ..."
|
|
|
|
to compile fixed format Fortran source files.
|
== Highlights ==
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.
2012-04-18 19:57:29 +04:00
|
|
|
|
2013-11-07 21:14:28 +04:00
|
|
|
You can use either ompi_info or oshmem_info to see with which Fortran
|
|
|
|
compiler Open MPI was configured and compiled.
|
== Highlights ==
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.
2012-04-18 19:57:29 +04:00
|
|
|
|
|
|
|
There are up to three sets of Fortran MPI bindings that may be
|
2013-11-07 21:14:28 +04:00
|
|
|
provided depending on your Fortran compiler):
|
== Highlights ==
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.
2012-04-18 19:57:29 +04:00
|
|
|
|
|
|
|
- mpif.h: This is the first MPI Fortran interface that was defined
|
|
|
|
in MPI-1. It is a file that is included in Fortran source code.
|
|
|
|
Open MPI's mpif.h does not declare any MPI subroutines; they are
|
|
|
|
all implicit.
|
|
|
|
|
|
|
|
- mpi module: The mpi module file was added in MPI-2. It provides
|
|
|
|
strong compile-time parameter type checking for MPI subroutines.
|
|
|
|
|
|
|
|
- mpi_f08 module: The mpi_f08 module was added in MPI-3. It
|
|
|
|
provides many advantages over the mpif.h file and mpi module. For
|
|
|
|
example, MPI handles have distinct types (vs. all being integers).
|
|
|
|
See the MPI-3 document for more details.
|
|
|
|
|
|
|
|
*** The mpi_f08 module is STRONGLY is recommended for all new MPI
|
|
|
|
Fortran subroutines and applications. Note that the mpi_f08
|
|
|
|
module can be used in conjunction with the other two Fortran
|
|
|
|
MPI bindings in the same application (only one binding can be
|
|
|
|
used per subroutine/function, however). Full interoperability
|
|
|
|
between mpif.h/mpi module and mpi_f08 module MPI handle types
|
|
|
|
is provided, allowing mpi_f08 to be used in new subroutines in
|
|
|
|
legacy MPI applications.
|
|
|
|
|
2013-11-07 21:14:28 +04:00
|
|
|
Per the OSHMEM specification, there is only one Fortran OSHMEM binding
|
|
|
|
provided:
|
|
|
|
|
|
|
|
- shmem.fh: All Fortran OpenSHMEM programs **should** include 'shmem.fh',
|
|
|
|
and Fortran OSHMEM programs that use constants defined by OpenSHMEM
|
|
|
|
**MUST** include 'shmem.fh'.
|
|
|
|
|
== Highlights ==
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.
2012-04-18 19:57:29 +04:00
|
|
|
The following notes apply to the above-listed Fortran bindings:
|
|
|
|
|
Fortran: Fix MPI_SIZEOF. What a disaster. :-(
What started as a simple ticket ended up reaching the way up to the
MPI Forum.
It turns out that we are supposed to have MPI_SIZEOF for all Fortran
interfaces: mpif.h, the mpi module, and the mpi_f08 module.
It further turns out that to properly support MPI_SIZEOF, your Fortran
compiler *has* support the INTERFACE keyword and ISO_FORTRAN_ENV. We
can't use "ignore TKR" functionality, because the whole point of
MPI_SIZEOF is that the implementation knows what type was passed to it
("ignore TKR" functionality, by definition, throws that information
away). Hence, we have to have an MPI_SIZEOF interface+implementation
for all intrinsic types, kinds, and ranks.
This commit therefore adds a perl script that generates both the
interfaces and implementations for MPI_SIZEOF in each of mpif.h, the
mpi module, and mpi_f08 module (yay consolidation!).
The perl script uses the results of some new configure tests:
* check if the Fortran compiler supports the INTERFACE keyword
* check if the Fortran compiler supports ISO_FORTRAN_ENV
* find the max array rank (i.e., dimension) that the compiler supports
If the Fortran compiler supports both INTERFACE and ISO_FORTRAN_ENV,
then we'll build the MPI_SIZEOF interfaces. If not, we'll skip
MPI_SIZEOF in mpif.h and the mpi module. Note that we won't build the
mpi_f08 module -- to include the MPI_SIZEOF interfaces -- if the
Fortran compiler doesn't support INTERFACE, ISO_FORTRAN_ENV, and a
whole bunch of ther modern Fortran stuff.
Since MPI_SIZEOF interfaces are now generated by the perl script, this
commit also removes all the old MPI_SIZEOF implementations (which were
laden with a zillion #if blocks).
cmr=v1.8.3
This commit was SVN r32764.
2014-09-19 17:44:52 +04:00
|
|
|
- All Fortran compilers support the mpif.h/shmem.fh-based bindings,
|
|
|
|
with one exception: the MPI_SIZEOF interfaces will only be present
|
|
|
|
when Open MPI is built with a Fortran compiler that support the
|
|
|
|
INTERFACE keyword and ISO_FORTRAN_ENV. Most notably, this
|
|
|
|
excludes the GNU Fortran compiler suite before version 4.9.
|
2014-01-28 19:36:52 +04:00
|
|
|
|
|
|
|
- The level of support provided by the mpi module is based on your
|
|
|
|
Fortran compiler.
|
|
|
|
|
|
|
|
If Open MPI is built with a non-GNU Fortran compiler, or if Open
|
|
|
|
MPI is built with the GNU Fortran compiler >= v4.9, all MPI
|
|
|
|
subroutines will be prototyped in the mpi module. All calls to
|
|
|
|
MPI subroutines will therefore have their parameter types checked
|
|
|
|
at compile time.
|
|
|
|
|
|
|
|
If Open MPI is built with an old gfortran (i.e., < v4.9), a
|
|
|
|
limited "mpi" module will be built. Due to the limitations of
|
|
|
|
these compilers, and per guidance from the MPI-3 specification,
|
|
|
|
all MPI subroutines with "choice" buffers are specifically *not*
|
|
|
|
included in the "mpi" module, and their parameters will not be
|
|
|
|
checked at compile time. Specifically, all MPI subroutines with
|
|
|
|
no "choice" buffers are prototyped and will receive strong
|
|
|
|
parameter type checking at run-time (e.g., MPI_INIT,
|
|
|
|
MPI_COMM_RANK, etc.).
|
|
|
|
|
Fortran: Fix MPI_SIZEOF. What a disaster. :-(
What started as a simple ticket ended up reaching the way up to the
MPI Forum.
It turns out that we are supposed to have MPI_SIZEOF for all Fortran
interfaces: mpif.h, the mpi module, and the mpi_f08 module.
It further turns out that to properly support MPI_SIZEOF, your Fortran
compiler *has* support the INTERFACE keyword and ISO_FORTRAN_ENV. We
can't use "ignore TKR" functionality, because the whole point of
MPI_SIZEOF is that the implementation knows what type was passed to it
("ignore TKR" functionality, by definition, throws that information
away). Hence, we have to have an MPI_SIZEOF interface+implementation
for all intrinsic types, kinds, and ranks.
This commit therefore adds a perl script that generates both the
interfaces and implementations for MPI_SIZEOF in each of mpif.h, the
mpi module, and mpi_f08 module (yay consolidation!).
The perl script uses the results of some new configure tests:
* check if the Fortran compiler supports the INTERFACE keyword
* check if the Fortran compiler supports ISO_FORTRAN_ENV
* find the max array rank (i.e., dimension) that the compiler supports
If the Fortran compiler supports both INTERFACE and ISO_FORTRAN_ENV,
then we'll build the MPI_SIZEOF interfaces. If not, we'll skip
MPI_SIZEOF in mpif.h and the mpi module. Note that we won't build the
mpi_f08 module -- to include the MPI_SIZEOF interfaces -- if the
Fortran compiler doesn't support INTERFACE, ISO_FORTRAN_ENV, and a
whole bunch of ther modern Fortran stuff.
Since MPI_SIZEOF interfaces are now generated by the perl script, this
commit also removes all the old MPI_SIZEOF implementations (which were
laden with a zillion #if blocks).
cmr=v1.8.3
This commit was SVN r32764.
2014-09-19 17:44:52 +04:00
|
|
|
Similar to the mpif.h interface, MPI_SIZEOF is only supported on
|
|
|
|
Fortran compilers that support INTERFACE and ISO_FORTRAN_ENV.
|
|
|
|
|
== Highlights ==
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.
2012-04-18 19:57:29 +04:00
|
|
|
- The mpi_f08 module is new and has been tested with the Intel
|
2014-04-19 04:30:38 +04:00
|
|
|
Fortran compiler and gfortran >= 4.9. Other modern Fortran
|
|
|
|
compilers may also work (but are, as yet, only lightly tested).
|
|
|
|
It is expected that this support will mature over time.
|
== Highlights ==
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.
2012-04-18 19:57:29 +04:00
|
|
|
|
2014-01-28 19:36:52 +04:00
|
|
|
Many older Fortran compilers do not provide enough modern Fortran
|
|
|
|
features to support the mpi_f08 module. For example, gfortran <
|
|
|
|
v4.9 does provide enough support for the mpi_f08 module.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
Fortran: Fix MPI_SIZEOF. What a disaster. :-(
What started as a simple ticket ended up reaching the way up to the
MPI Forum.
It turns out that we are supposed to have MPI_SIZEOF for all Fortran
interfaces: mpif.h, the mpi module, and the mpi_f08 module.
It further turns out that to properly support MPI_SIZEOF, your Fortran
compiler *has* support the INTERFACE keyword and ISO_FORTRAN_ENV. We
can't use "ignore TKR" functionality, because the whole point of
MPI_SIZEOF is that the implementation knows what type was passed to it
("ignore TKR" functionality, by definition, throws that information
away). Hence, we have to have an MPI_SIZEOF interface+implementation
for all intrinsic types, kinds, and ranks.
This commit therefore adds a perl script that generates both the
interfaces and implementations for MPI_SIZEOF in each of mpif.h, the
mpi module, and mpi_f08 module (yay consolidation!).
The perl script uses the results of some new configure tests:
* check if the Fortran compiler supports the INTERFACE keyword
* check if the Fortran compiler supports ISO_FORTRAN_ENV
* find the max array rank (i.e., dimension) that the compiler supports
If the Fortran compiler supports both INTERFACE and ISO_FORTRAN_ENV,
then we'll build the MPI_SIZEOF interfaces. If not, we'll skip
MPI_SIZEOF in mpif.h and the mpi module. Note that we won't build the
mpi_f08 module -- to include the MPI_SIZEOF interfaces -- if the
Fortran compiler doesn't support INTERFACE, ISO_FORTRAN_ENV, and a
whole bunch of ther modern Fortran stuff.
Since MPI_SIZEOF interfaces are now generated by the perl script, this
commit also removes all the old MPI_SIZEOF implementations (which were
laden with a zillion #if blocks).
cmr=v1.8.3
This commit was SVN r32764.
2014-09-19 17:44:52 +04:00
|
|
|
You can examine the output of the following command to see all
|
|
|
|
the Fortran features that are/are not enabled in your Open MPI
|
|
|
|
installation:
|
|
|
|
|
|
|
|
shell$ ompi_info | grep -i fort
|
|
|
|
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
General Run-Time Support Notes
|
|
|
|
------------------------------
|
|
|
|
|
|
|
|
- The Open MPI installation must be in your PATH on all nodes (and
|
2013-11-07 21:14:28 +04:00
|
|
|
potentially LD_LIBRARY_PATH (or DYLD_LIBRARY_PATH), if libmpi/libshmem
|
|
|
|
is a shared library), unless using the --prefix or
|
2012-02-24 00:39:10 +04:00
|
|
|
--enable-mpirun-prefix-by-default functionality (see below).
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
- Open MPI's run-time behavior can be customized via MCA ("MPI
|
|
|
|
Component Architecture") parameters (see below for more information
|
|
|
|
on how to get/set MCA parameter values). Some MCA parameters can be
|
|
|
|
set in a way that renders Open MPI inoperable (see notes about MCA
|
|
|
|
parameters later in this file). In particular, some parameters have
|
|
|
|
required options that must be included.
|
|
|
|
|
|
|
|
- If specified, the "btl" parameter must include the "self"
|
|
|
|
component, or Open MPI will not be able to deliver messages to the
|
|
|
|
same rank as the sender. For example: "mpirun --mca btl tcp,self
|
|
|
|
..."
|
|
|
|
- If specified, the "btl_tcp_if_exclude" paramater must include the
|
|
|
|
loopback device ("lo" on many Linux platforms), or Open MPI will
|
|
|
|
not be able to route MPI messages using the TCP BTL. For example:
|
|
|
|
"mpirun --mca btl_tcp_if_exclude lo,eth1 ..."
|
|
|
|
|
|
|
|
- Running on nodes with different endian and/or different datatype
|
|
|
|
sizes within a single parallel job is supported in this release.
|
|
|
|
However, Open MPI does not resize data when datatypes differ in size
|
|
|
|
(for example, sending a 4 byte MPI_DOUBLE and receiving an 8 byte
|
|
|
|
MPI_DOUBLE will fail).
|
|
|
|
|
|
|
|
|
|
|
|
MPI Functionality and Features
|
|
|
|
------------------------------
|
|
|
|
|
2014-01-28 19:36:52 +04:00
|
|
|
- All MPI-2.2 and nearly all MPI-3 functionality is supported. The
|
|
|
|
only MPI-3 functionality that is missing is the new MPI-3 remote
|
|
|
|
memory access (aka "one-sided") functionality.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
- When using MPI deprecated functions, some compilers will emit
|
|
|
|
warnings. For example:
|
|
|
|
|
|
|
|
shell$ cat deprecated_example.c
|
|
|
|
#include <mpi.h>
|
|
|
|
void foo(void) {
|
|
|
|
MPI_Datatype type;
|
|
|
|
MPI_Type_struct(1, NULL, NULL, NULL, &type);
|
|
|
|
}
|
|
|
|
shell$ mpicc -c deprecated_example.c
|
|
|
|
deprecated_example.c: In function 'foo':
|
|
|
|
deprecated_example.c:4: warning: 'MPI_Type_struct' is deprecated (declared at /opt/openmpi/include/mpi.h:1522)
|
|
|
|
shell$
|
|
|
|
|
2012-01-03 21:25:37 +04:00
|
|
|
- MPI_THREAD_MULTIPLE support is included, but is only lightly tested.
|
|
|
|
It likely does not work for thread-intensive applications. Note
|
|
|
|
that *only* the MPI point-to-point communication functions for the
|
2012-02-24 00:39:10 +04:00
|
|
|
BTL's listed here are considered thread safe. Other support
|
|
|
|
functions (e.g., MPI attributes) have not been certified as safe
|
|
|
|
when simultaneously used by multiple threads.
|
|
|
|
- tcp
|
|
|
|
- sm
|
|
|
|
- self
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
Note that Open MPI's thread support is in a fairly early stage; the
|
2013-10-04 16:12:18 +04:00
|
|
|
above devices may *work*, but the latency is likely to be fairly
|
|
|
|
high. Specifically, efforts so far have concentrated on
|
2012-01-03 21:25:37 +04:00
|
|
|
*correctness*, not *performance* (yet).
|
|
|
|
|
2014-01-28 19:36:52 +04:00
|
|
|
YMMV.
|
|
|
|
|
2012-01-03 21:25:37 +04:00
|
|
|
- MPI_REAL16 and MPI_COMPLEX32 are only supported on platforms where a
|
|
|
|
portable C datatype can be found that matches the Fortran type
|
|
|
|
REAL*16, both in size and bit representation.
|
|
|
|
|
|
|
|
- The "libompitrace" library is bundled in Open MPI and is installed
|
|
|
|
by default (it can be disabled via the --disable-libompitrace
|
|
|
|
flag). This library provides a simplistic tracing of select MPI
|
|
|
|
function calls via the MPI profiling interface. Linking it in to
|
|
|
|
your appliation via (e.g., via -lompitrace) will automatically
|
|
|
|
output to stderr when some MPI functions are invoked:
|
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
shell$ mpicc hello_world.c -o hello_world -lompitrace
|
|
|
|
shell$ mpirun -np 1 hello_world.c
|
2012-01-03 21:25:37 +04:00
|
|
|
MPI_INIT: argc 1
|
|
|
|
Hello, world, I am 0 of 1
|
|
|
|
MPI_BARRIER[0]: comm MPI_COMM_WORLD
|
|
|
|
MPI_FINALIZE[0]
|
2012-02-24 00:39:10 +04:00
|
|
|
shell$
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
Keep in mind that the output from the trace library is going to
|
|
|
|
stderr, so it may output in a slightly different order than the
|
|
|
|
stdout from your application.
|
|
|
|
|
|
|
|
This library is being offered as a "proof of concept" / convenience
|
|
|
|
from Open MPI. If there is interest, it is trivially easy to extend
|
|
|
|
it to printf for other MPI functions. Patches and/or suggestions
|
|
|
|
would be greatfully appreciated on the Open MPI developer's list.
|
|
|
|
|
2013-11-07 21:14:28 +04:00
|
|
|
OSHMEM Functionality and Features
|
|
|
|
------------------------------
|
|
|
|
|
|
|
|
- All OpenSHMEM-1.0 functionality is supported.
|
|
|
|
|
|
|
|
|
|
|
|
MPI Collectives
|
2012-01-03 21:25:37 +04:00
|
|
|
-----------
|
|
|
|
|
|
|
|
- The "hierarch" coll component (i.e., an implementation of MPI
|
|
|
|
collective operations) attempts to discover network layers of
|
|
|
|
latency in order to segregate individual "local" and "global"
|
|
|
|
operations as part of the overall collective operation. In this
|
|
|
|
way, network traffic can be reduced -- or possibly even minimized
|
|
|
|
(similar to MagPIe). The current "hierarch" component only
|
|
|
|
separates MPI processes into on- and off-node groups.
|
|
|
|
|
|
|
|
Hierarch has had sufficient correctness testing, but has not
|
|
|
|
received much performance tuning. As such, hierarch is not
|
|
|
|
activated by default -- it must be enabled manually by setting its
|
|
|
|
priority level to 100:
|
|
|
|
|
|
|
|
mpirun --mca coll_hierarch_priority 100 ...
|
|
|
|
|
|
|
|
We would appreciate feedback from the user community about how well
|
|
|
|
hierarch works for your applications.
|
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
- The "fca" coll component: the Mellanox Fabric Collective Accelerator
|
|
|
|
(FCA) is a solution for offloading collective operations from the
|
|
|
|
MPI process onto Mellanox QDR InfiniBand switch CPUs and HCAs.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2012-08-22 01:09:36 +04:00
|
|
|
- The "ML" coll component is an implementation of MPI collective
|
|
|
|
operations that takes advantage of communication hierarchies
|
|
|
|
in modern systems. A ML collective operation is implemented by
|
|
|
|
combining multiple independently progressing collective primitives
|
|
|
|
implemented over different communication hierarchies, hence a ML
|
2014-03-18 22:38:38 +04:00
|
|
|
collective operation is also referred to as a hierarchical collective
|
2012-08-22 01:09:36 +04:00
|
|
|
operation. The number of collective primitives that are included in a
|
|
|
|
ML collective operation is a function of subgroups(hierarchies).
|
|
|
|
Typically, MPI processes in a single communication hierarchy such as
|
|
|
|
CPU socket, node, or subnet are grouped together into a single subgroup
|
|
|
|
(hierarchy). The number of subgroups are configurable at runtime,
|
|
|
|
and each different collective operation could be configured to have
|
|
|
|
a different of number of subgroups.
|
|
|
|
|
|
|
|
The component frameworks and components used by\required for a
|
|
|
|
"ML" collective operation.
|
|
|
|
|
|
|
|
Frameworks:
|
|
|
|
* "sbgp" - Provides functionality for grouping processes into subgroups
|
|
|
|
* "bcol" - Provides collective primitives optimized for a particular
|
|
|
|
communication hierarchy
|
|
|
|
|
|
|
|
Components:
|
2013-01-09 15:50:23 +04:00
|
|
|
* sbgp components - Provides grouping functionality over a CPU socket
|
|
|
|
("basesocket"), shared memory ("basesmuma"),
|
2012-08-22 01:09:36 +04:00
|
|
|
Mellanox's ConnectX HCA ("ibnet"), and other
|
|
|
|
interconnects supported by PML ("p2p")
|
|
|
|
|
|
|
|
* BCOL components - Provides optimized collective primitives for
|
|
|
|
shared memory ("basesmuma"), Mellanox's ConnectX
|
|
|
|
HCA ("iboffload"), and other interconnects supported
|
|
|
|
by PML ("ptpcoll")
|
|
|
|
|
2013-01-09 15:50:23 +04:00
|
|
|
* "ofacm" - Provides connection manager functionality for
|
|
|
|
InfiniBand communications
|
2012-08-22 01:09:36 +04:00
|
|
|
* "verbs" - Provides commonly used verbs utilities
|
|
|
|
* "netpatterns" - Provides an implementation of algorithm patterns
|
|
|
|
* "commpatterns" - Provides collectives for bootstrap
|
|
|
|
|
|
|
|
|
2013-11-07 21:14:28 +04:00
|
|
|
OSHMEM Collectives
|
|
|
|
-----------
|
|
|
|
|
|
|
|
- The "fca" scoll component: the Mellanox Fabric Collective Accelerator
|
|
|
|
(FCA) is a solution for offloading collective operations from the
|
|
|
|
MPI process onto Mellanox QDR InfiniBand switch CPUs and HCAs.
|
|
|
|
|
|
|
|
- The "basic" scoll component: Reference implementation of all OSHMEM
|
|
|
|
collective operations.
|
|
|
|
|
|
|
|
|
2012-01-03 21:25:37 +04:00
|
|
|
Network Support
|
|
|
|
---------------
|
|
|
|
|
2013-07-23 02:02:40 +04:00
|
|
|
- There are two MPI network models available: "ob1", and "cm". "ob1"
|
2013-07-22 23:16:59 +04:00
|
|
|
uses BTL ("Byte Transfer Layer") components for each supported network.
|
|
|
|
"cm" uses MTL ("Matching Tranport Layer") components for each supported
|
|
|
|
network.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
- "ob1" supports a variety of networks that can be used in
|
|
|
|
combination with each other (per OS constraints; e.g., there are
|
|
|
|
reports that the GM and OpenFabrics kernel drivers do not operate
|
|
|
|
well together):
|
2012-02-24 00:39:10 +04:00
|
|
|
|
|
|
|
- OpenFabrics: InfiniBand, iWARP, and RoCE
|
2012-01-03 21:25:37 +04:00
|
|
|
- Loopback (send-to-self)
|
|
|
|
- Shared memory
|
|
|
|
- TCP
|
2014-01-10 09:03:00 +04:00
|
|
|
- Intel Phi SCIF
|
|
|
|
- SMCUDA
|
2013-07-20 02:14:49 +04:00
|
|
|
- Cisco usNIC
|
2013-07-22 23:16:59 +04:00
|
|
|
- uGNI (Cray Gemini, Ares)
|
2013-07-23 02:02:40 +04:00
|
|
|
- vader (XPMEM)
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
- "cm" supports a smaller number of networks (and they cannot be
|
2013-07-23 02:16:05 +04:00
|
|
|
used together), but may provide better overall MPI performance:
|
2012-02-24 00:39:10 +04:00
|
|
|
|
|
|
|
- Myrinet MX and Open-MX
|
2012-01-03 21:25:37 +04:00
|
|
|
- InfiniPath PSM
|
|
|
|
- Mellanox MXM
|
2014-01-10 09:03:00 +04:00
|
|
|
- Portals4
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
Open MPI will, by default, choose to use "cm" when the InfiniPath
|
|
|
|
PSM or the Mellanox MXM MTL can be used. Otherwise, "ob1" will be
|
2013-07-22 23:16:59 +04:00
|
|
|
used and the corresponding BTLs will be selected. Users can force
|
|
|
|
the use of ob1 or cm if desired by setting the "pml" MCA parameter
|
|
|
|
at run-time:
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
shell$ mpirun --mca pml ob1 ...
|
|
|
|
or
|
|
|
|
shell$ mpirun --mca pml cm ...
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2014-01-28 19:36:52 +04:00
|
|
|
- Similarly, there are two OSHMEM network models available: "yoda",
|
|
|
|
and "ikrit". "yoda" also uses the BTL components for many supported
|
|
|
|
network. "ikrit" interfaces directly with Mellanox MXM.
|
2013-11-07 21:14:28 +04:00
|
|
|
|
|
|
|
- "yoda" supports a variety of networks that can be used:
|
|
|
|
|
|
|
|
- OpenFabrics: InfiniBand, iWARP, and RoCE
|
|
|
|
- Loopback (send-to-self)
|
|
|
|
- Shared memory
|
|
|
|
- TCP
|
|
|
|
|
|
|
|
- "ikrit" only supports Mellanox MXM.
|
|
|
|
|
2014-01-28 19:36:52 +04:00
|
|
|
- MXM is the Mellanox Messaging Accelerator library utilizing a full
|
|
|
|
range of IB transports to provide the following messaging services
|
|
|
|
to the upper level MPI/OSHMEM libraries:
|
2012-02-24 00:39:10 +04:00
|
|
|
|
2012-01-03 21:25:37 +04:00
|
|
|
- Usage of all available IB transports
|
|
|
|
- Native RDMA support
|
|
|
|
- Progress thread
|
|
|
|
- Shared memory communication
|
2012-02-24 00:39:10 +04:00
|
|
|
- Hardware-assisted reliability
|
|
|
|
|
2013-07-20 02:14:49 +04:00
|
|
|
- The usnic BTL is support for Cisco's usNIC device ("userspace NIC")
|
|
|
|
on Cisco UCS servers with the Virtualized Interface Card (VIC).
|
|
|
|
Although the usNIC is accessed via the OpenFabrics / Verbs API
|
|
|
|
stack, this BTL is specific to the Cisco usNIC device.
|
|
|
|
|
2013-07-22 23:16:59 +04:00
|
|
|
- uGNI is a Cray library for communicating over the Gemini and Ares
|
|
|
|
interconnects.
|
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
- The OpenFabrics Enterprise Distribution (OFED) software package v1.0
|
|
|
|
will not work properly with Open MPI v1.2 (and later) due to how its
|
|
|
|
Mellanox InfiniBand plugin driver is created. The problem is fixed
|
|
|
|
OFED v1.1 (and later).
|
|
|
|
|
|
|
|
- Better memory management support is available for OFED-based
|
|
|
|
transports using the "ummunotify" Linux kernel module. OFED memory
|
|
|
|
managers are necessary for better bandwidth when re-using the same
|
|
|
|
buffers for large messages (e.g., benchmarks and some applications).
|
|
|
|
|
|
|
|
Unfortunately, the ummunotify module was not accepted by the Linux
|
|
|
|
kernel community (and is still not distributed by OFED). But it
|
|
|
|
still remains the best memory management solution for MPI
|
|
|
|
applications that used the OFED network transports. If Open MPI is
|
|
|
|
able to find the <linux/ummunotify.h> header file, it will build
|
|
|
|
support for ummunotify and include it by default. If MPI processes
|
2013-10-04 16:12:18 +04:00
|
|
|
then find the ummunotify kernel module loaded and active, then their
|
2012-02-24 00:39:10 +04:00
|
|
|
memory managers (which have been shown to be problematic in some
|
|
|
|
cases) will be disabled and ummunotify will be used. Otherwise, the
|
|
|
|
same memory managers from prior versions of Open MPI will be used.
|
|
|
|
The ummunotify Linux kernel module can be downloaded from:
|
|
|
|
|
|
|
|
http://lwn.net/Articles/343351/
|
|
|
|
|
|
|
|
- The use of fork() with OpenFabrics-based networks (i.e., the openib
|
|
|
|
BTL) is only partially supported, and only on Linux kernels >=
|
|
|
|
v2.6.15 with libibverbs v1.1 or later (first released as part of
|
|
|
|
OFED v1.2), per restrictions imposed by the OFED network stack.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2014-01-28 19:36:52 +04:00
|
|
|
- The Myrinet MX BTL has been removed; MX support is now only
|
|
|
|
available through the MX MTL. Please use a prior version of Open
|
2014-09-30 22:27:29 +04:00
|
|
|
MPI if you need the MX BTL support.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
- Linux "knem" support is used when the "sm" (shared memory) BTL is
|
|
|
|
compiled with knem support (see the --with-knem configure option)
|
|
|
|
and the knem Linux module is loaded in the running kernel. If the
|
|
|
|
knem Linux kernel module is not loaded, the knem support is (by
|
|
|
|
default) silently deactivated during Open MPI jobs.
|
|
|
|
|
|
|
|
See http://runtime.bordeaux.inria.fr/knem/ for details on Knem.
|
|
|
|
|
2013-07-22 23:16:59 +04:00
|
|
|
- XPMEM is used by the vader shared-memory BTL when the XPMEM
|
|
|
|
libraries are installed. XPMEM allows Open MPI to map pages from
|
|
|
|
other processes into the current process' memory space. This
|
|
|
|
allows single-copy semantics for shared memory without the need
|
|
|
|
for a system call.
|
2012-02-24 00:39:10 +04:00
|
|
|
|
2012-01-03 21:25:37 +04:00
|
|
|
Open MPI Extensions
|
|
|
|
-------------------
|
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
- An MPI "extensions" framework has been added (but is not enabled by
|
|
|
|
default). See the "Open MPI API Extensions" section below for more
|
|
|
|
information on compiling and using MPI extensions.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
- The following extensions are included in this version of Open MPI:
|
|
|
|
|
|
|
|
- affinity: Provides the OMPI_Affinity_str() routine on retrieving
|
|
|
|
a string that contains what resources a process is bound to. See
|
|
|
|
its man page for more details.
|
|
|
|
- cr: Provides routines to access to checkpoint restart routines.
|
|
|
|
See ompi/mpiext/cr/mpiext_cr_c.h for a listing of availble
|
|
|
|
functions.
|
|
|
|
- example: A non-functional extension; its only purpose is to
|
|
|
|
provide an example for how to create other extensions.
|
|
|
|
|
|
|
|
===========================================================================
|
|
|
|
|
|
|
|
Building Open MPI
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
Open MPI uses a traditional configure script paired with "make" to
|
|
|
|
build. Typical installs can be of the pattern:
|
|
|
|
|
|
|
|
---------------------------------------------------------------------------
|
|
|
|
shell$ ./configure [...options...]
|
|
|
|
shell$ make all install
|
|
|
|
---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
There are many available configure options (see "./configure --help"
|
2014-01-28 19:36:52 +04:00
|
|
|
for a full list); a summary of the more commonly used ones is included
|
|
|
|
below.
|
|
|
|
|
|
|
|
Note that for many of Open MPI's --with-<foo> options, Open MPI will,
|
|
|
|
by default, search for header files and/or libraries for <foo>. If
|
|
|
|
the relevant files are found, Open MPI will built support for <foo>;
|
|
|
|
if they are not found, Open MPI will skip building support for <foo>.
|
|
|
|
However, if you specify --with-<foo> on the configure command line and
|
|
|
|
Open MPI is unable to find relevant support for <foo>, configure will
|
|
|
|
assume that it was unable to provide a feature that was specifically
|
|
|
|
requested and will abort so that a human can resolve out the issue.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
INSTALLATION OPTIONS
|
|
|
|
|
2012-01-03 21:25:37 +04:00
|
|
|
--prefix=<directory>
|
|
|
|
Install Open MPI into the base directory named <directory>. Hence,
|
|
|
|
Open MPI will place its executables in <directory>/bin, its header
|
|
|
|
files in <directory>/include, its libraries in <directory>/lib, etc.
|
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
--disable-shared
|
2013-11-07 21:14:28 +04:00
|
|
|
By default, libmpi and libshmem are built as a shared library, and
|
|
|
|
all components are built as dynamic shared objects (DSOs). This
|
|
|
|
switch disables this default; it is really only useful when used with
|
2012-02-24 00:39:10 +04:00
|
|
|
--enable-static. Specifically, this option does *not* imply
|
|
|
|
--enable-static; enabling static libraries and disabling shared
|
|
|
|
libraries are two independent options.
|
|
|
|
|
|
|
|
--enable-static
|
2013-11-07 21:14:28 +04:00
|
|
|
Build libmpi and libshmem as static libraries, and statically link in all
|
2012-02-24 00:39:10 +04:00
|
|
|
components. Note that this option does *not* imply
|
|
|
|
--disable-shared; enabling static libraries and disabling shared
|
|
|
|
libraries are two independent options.
|
|
|
|
|
|
|
|
Be sure to read the description of --without-memory-manager, below;
|
|
|
|
it may have some effect on --enable-static.
|
|
|
|
|
2013-05-11 04:49:17 +04:00
|
|
|
--disable-wrapper-rpath
|
|
|
|
By default, the wrapper compilers (e.g., mpicc) will enable "rpath"
|
|
|
|
support in generated executables on systems that support it. That
|
|
|
|
is, they will include a file reference to the location of Open MPI's
|
2013-11-07 21:14:28 +04:00
|
|
|
libraries in the application executable itself. This means that
|
2013-05-11 04:49:17 +04:00
|
|
|
the user does not have to set LD_LIBRARY_PATH to find Open MPI's
|
|
|
|
libraries (e.g., if they are installed in a location that the
|
|
|
|
run-time linker does not search by default).
|
|
|
|
|
|
|
|
On systems that utilize the GNU ld linker, recent enough versions
|
|
|
|
will actually utilize "runpath" functionality, not "rpath". There
|
|
|
|
is an important difference between the two:
|
|
|
|
|
|
|
|
"rpath": the location of the Open MPI libraries is hard-coded into
|
2013-11-07 21:14:28 +04:00
|
|
|
the MPI/OSHMEM application and cannot be overridden at run-time.
|
2013-05-11 04:49:17 +04:00
|
|
|
"runpath": the location of the Open MPI libraries is hard-coded into
|
2013-11-07 21:14:28 +04:00
|
|
|
the MPI/OSHMEM application, but can be overridden at run-time by
|
2013-05-11 04:49:17 +04:00
|
|
|
setting the LD_LIBRARY_PATH environment variable.
|
|
|
|
|
|
|
|
For example, consider that you install Open MPI vA.B.0 and
|
2013-11-07 21:14:28 +04:00
|
|
|
compile/link your MPI/OSHMEM application against it. Later, you install
|
2013-05-11 04:49:17 +04:00
|
|
|
Open MPI vA.B.1 to a different installation prefix (e.g.,
|
|
|
|
/opt/openmpi/A.B.1 vs. /opt/openmpi/A.B.0), and you leave the old
|
|
|
|
installation intact.
|
|
|
|
|
|
|
|
In the rpath case, your MPI application will always use the
|
|
|
|
libraries from your A.B.0 installation. In the runpath case, you
|
|
|
|
can set the LD_LIBRARY_PATH environment variable to point to the
|
|
|
|
A.B.1 installation, and then your MPI application will use those
|
|
|
|
libraries.
|
|
|
|
|
|
|
|
Note that in both cases, however, if you remove the original A.B.0
|
|
|
|
installation and set LD_LIBRARY_PATH to point to the A.B.1
|
|
|
|
installation, your application will use the A.B.1 libraries.
|
|
|
|
|
|
|
|
This rpath/runpath behavior can be disabled via
|
|
|
|
--disable-wrapper-rpath.
|
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
--enable-dlopen
|
|
|
|
Build all of Open MPI's components as standalone Dynamic Shared
|
2014-01-28 19:36:52 +04:00
|
|
|
Objects (DSO's) that are loaded at run-time (this is the default).
|
|
|
|
The opposite of this option, --disable-dlopen, causes two things:
|
2012-02-24 00:39:10 +04:00
|
|
|
|
|
|
|
1. All of Open MPI's components will be built as part of Open MPI's
|
|
|
|
normal libraries (e.g., libmpi).
|
|
|
|
2. Open MPI will not attempt to open any DSO's at run-time.
|
|
|
|
|
|
|
|
Note that this option does *not* imply that OMPI's libraries will be
|
|
|
|
built as static objects (e.g., libmpi.a). It only specifies the
|
|
|
|
location of OMPI's components: standalone DSOs or folded into the
|
|
|
|
Open MPI libraries. You can control whether Open MPI's libraries
|
|
|
|
are build as static or dynamic via --enable|disable-static and
|
|
|
|
--enable|disable-shared.
|
|
|
|
|
|
|
|
--with-platform=FILE
|
|
|
|
Load configure options for the build from FILE. Options on the
|
|
|
|
command line that are not in FILE are also used. Options on the
|
|
|
|
command line and in FILE are replaced by what is in FILE.
|
|
|
|
|
|
|
|
NETWORKING SUPPORT / OPTIONS
|
|
|
|
|
|
|
|
--with-fca=<directory>
|
|
|
|
Specify the directory where the Mellanox FCA library and
|
|
|
|
header files are located.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
FCA is the support library for Mellanox QDR switches and HCAs.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2014-02-08 22:56:18 +04:00
|
|
|
--with-hcoll=<directory>
|
|
|
|
Specify the directory where the Mellanox hcoll library and header
|
|
|
|
files are located. This option is generally only necessary if the
|
|
|
|
hcoll headers and libraries are not in default compiler/linker
|
|
|
|
search paths.
|
|
|
|
|
|
|
|
hcoll is the support library for MPI collective operation offload on
|
|
|
|
Mellanox ConnectX-3 HCAs (and later).
|
|
|
|
|
2012-01-03 21:25:37 +04:00
|
|
|
--with-knem=<directory>
|
|
|
|
Specify the directory where the knem libraries and header files are
|
2012-02-24 00:39:10 +04:00
|
|
|
located. This option is generally only necessary if the knem headers
|
2012-01-03 21:25:37 +04:00
|
|
|
and libraries are not in default compiler/linker search paths.
|
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
knem is a Linux kernel module that allows direct process-to-process
|
2012-01-03 21:25:37 +04:00
|
|
|
memory copies (optionally using hardware offload), potentially
|
|
|
|
increasing bandwidth for large messages sent between messages on the
|
|
|
|
same server. See http://runtime.bordeaux.inria.fr/knem/ for
|
|
|
|
details.
|
|
|
|
|
|
|
|
--with-mx=<directory>
|
|
|
|
Specify the directory where the MX libraries and header files are
|
|
|
|
located. This option is generally only necessary if the MX headers
|
|
|
|
and libraries are not in default compiler/linker search paths.
|
|
|
|
|
|
|
|
MX is the support library for Myrinet-based networks. An open
|
|
|
|
source software package named Open-MX provides the same
|
|
|
|
functionality on Ethernet-based clusters (Open-MX can provide
|
|
|
|
MPI performance improvements compared to TCP messaging).
|
|
|
|
|
|
|
|
--with-mx-libdir=<directory>
|
|
|
|
Look in directory for the MX libraries. By default, Open MPI will
|
|
|
|
look in <mx directory>/lib and <mx directory>/lib64, which covers
|
|
|
|
most cases. This option is only needed for special configurations.
|
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
--with-mxm=<directory>
|
|
|
|
Specify the directory where the Mellanox MXM library and header
|
|
|
|
files are located. This option is generally only necessary if the
|
|
|
|
MXM headers and libraries are not in default compiler/linker search
|
|
|
|
paths.
|
|
|
|
|
|
|
|
MXM is the support library for Mellanox Network adapters.
|
|
|
|
|
|
|
|
--with-mxm-libdir=<directory>
|
|
|
|
Look in directory for the MXM libraries. By default, Open MPI will
|
|
|
|
look in <mxm directory>/lib and <mxm directory>/lib64, which covers
|
|
|
|
most cases. This option is only needed for special configurations.
|
|
|
|
|
2014-08-08 17:57:54 +04:00
|
|
|
--with-usnic
|
|
|
|
Abort configure if Cisco usNIC support cannot be built.
|
|
|
|
|
This commit unifies the configury of some verbs-lovin' components.
* Add new configure command line options and deprecate some old ones:
* --with-verbs replaces --with-openib
* --with-verbs-libdir replaces --with-openib-libdir
* If you specify --with-openib[-libdir] without
--with-verbs[-libdir], you'll get a "these options have been
deprecated!" warning, but then they'll act just like
--with-verbs[--libdir].
'''Sidenote:''' Note that we are not renaming any components at this
time, nor are we renaming the top-level OMPI_CHECK_OPENIB m4 macro
(which is pretty strongly tied to the openib BTL and is bastaridzed
by the ofud BTL). Note that there will likely be more changes in
this area coming soon (next week?) when some long-standing changes
move to the SVN trunk: some openib BTL infrastructure will move to
ompi/mca/common, and its configury gets split up / refactored.
We extend our philosophy of other --with-<foo> configure options of
--with-verbs to ''all'' verbs-lovin components:
* If you specify --with-verbs, then all verbs-lovin' components must
configure successfully (or abort). This currently means: OOB ud,
BTL ofud, BTL openib.
* If you specify --with-verbs=DIR, then all verbs-lovin' component
must configure successfully (or abort), and will use DIR to find
verbs headers and libraries.
* If you specify --without-verbs, then all verbs-lovin' components
will be ignored.
This commit also fixes a problem where the --with-openib=DIR form
would not use DIR for ''all'' verbs-lovin' components (I think only
BTL openib and BTL ofud used that DIR). Now all of them do, as does
hwloc (because hwloc has some !OpenFabrics helper functions that
require ibv types from verbs.h).
There's a little new m4 infrastructure worth mentioning:
* If you create a new verbs-lovin' component (i.e., a component that
need verbs), your configure.m4 should
AC_REQUIRE([OPAL_CHECK_VERBS_DIR]).
* You can then use three global shell variables: $opal_want_verbs,
$opal_verbs_dir, $opal_verbs_libdir, which will be set as follows:
* opal_want_verbs will be "yes" and opal_verbs_dir and
opal_verbs_libdir will both be set to directory values, '''OR'''
* opal_want_verbs will be "no" and opal_verbs_dir and
opal_verbs_libdir will both be set empty
This commit was SVN r26640.
2012-06-22 23:53:56 +04:00
|
|
|
--with-verbs=<directory>
|
|
|
|
Specify the directory where the verbs (also know as OpenFabrics, and
|
|
|
|
previously known as OpenIB) libraries and header files are located.
|
|
|
|
This option is generally only necessary if the verbs headers and
|
|
|
|
libraries are not in default compiler/linker search paths.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2013-07-20 02:14:49 +04:00
|
|
|
"OpenFabrics" refers to operating system bypass networks, such as
|
|
|
|
InfiniBand, usNIC, iWARP, and RoCE (aka "IBoIP").
|
2012-01-03 21:25:37 +04:00
|
|
|
|
This commit unifies the configury of some verbs-lovin' components.
* Add new configure command line options and deprecate some old ones:
* --with-verbs replaces --with-openib
* --with-verbs-libdir replaces --with-openib-libdir
* If you specify --with-openib[-libdir] without
--with-verbs[-libdir], you'll get a "these options have been
deprecated!" warning, but then they'll act just like
--with-verbs[--libdir].
'''Sidenote:''' Note that we are not renaming any components at this
time, nor are we renaming the top-level OMPI_CHECK_OPENIB m4 macro
(which is pretty strongly tied to the openib BTL and is bastaridzed
by the ofud BTL). Note that there will likely be more changes in
this area coming soon (next week?) when some long-standing changes
move to the SVN trunk: some openib BTL infrastructure will move to
ompi/mca/common, and its configury gets split up / refactored.
We extend our philosophy of other --with-<foo> configure options of
--with-verbs to ''all'' verbs-lovin components:
* If you specify --with-verbs, then all verbs-lovin' components must
configure successfully (or abort). This currently means: OOB ud,
BTL ofud, BTL openib.
* If you specify --with-verbs=DIR, then all verbs-lovin' component
must configure successfully (or abort), and will use DIR to find
verbs headers and libraries.
* If you specify --without-verbs, then all verbs-lovin' components
will be ignored.
This commit also fixes a problem where the --with-openib=DIR form
would not use DIR for ''all'' verbs-lovin' components (I think only
BTL openib and BTL ofud used that DIR). Now all of them do, as does
hwloc (because hwloc has some !OpenFabrics helper functions that
require ibv types from verbs.h).
There's a little new m4 infrastructure worth mentioning:
* If you create a new verbs-lovin' component (i.e., a component that
need verbs), your configure.m4 should
AC_REQUIRE([OPAL_CHECK_VERBS_DIR]).
* You can then use three global shell variables: $opal_want_verbs,
$opal_verbs_dir, $opal_verbs_libdir, which will be set as follows:
* opal_want_verbs will be "yes" and opal_verbs_dir and
opal_verbs_libdir will both be set to directory values, '''OR'''
* opal_want_verbs will be "no" and opal_verbs_dir and
opal_verbs_libdir will both be set empty
This commit was SVN r26640.
2012-06-22 23:53:56 +04:00
|
|
|
--with-verbs-libdir=<directory>
|
2014-10-29 16:02:33 +03:00
|
|
|
Look in directory for the verbs libraries. By default, Open MPI
|
|
|
|
will look in <verbs_directory>/lib and <verbs_ directory>/lib64,
|
|
|
|
which covers most cases. This option is only needed for special
|
|
|
|
configurations.
|
This commit unifies the configury of some verbs-lovin' components.
* Add new configure command line options and deprecate some old ones:
* --with-verbs replaces --with-openib
* --with-verbs-libdir replaces --with-openib-libdir
* If you specify --with-openib[-libdir] without
--with-verbs[-libdir], you'll get a "these options have been
deprecated!" warning, but then they'll act just like
--with-verbs[--libdir].
'''Sidenote:''' Note that we are not renaming any components at this
time, nor are we renaming the top-level OMPI_CHECK_OPENIB m4 macro
(which is pretty strongly tied to the openib BTL and is bastaridzed
by the ofud BTL). Note that there will likely be more changes in
this area coming soon (next week?) when some long-standing changes
move to the SVN trunk: some openib BTL infrastructure will move to
ompi/mca/common, and its configury gets split up / refactored.
We extend our philosophy of other --with-<foo> configure options of
--with-verbs to ''all'' verbs-lovin components:
* If you specify --with-verbs, then all verbs-lovin' components must
configure successfully (or abort). This currently means: OOB ud,
BTL ofud, BTL openib.
* If you specify --with-verbs=DIR, then all verbs-lovin' component
must configure successfully (or abort), and will use DIR to find
verbs headers and libraries.
* If you specify --without-verbs, then all verbs-lovin' components
will be ignored.
This commit also fixes a problem where the --with-openib=DIR form
would not use DIR for ''all'' verbs-lovin' components (I think only
BTL openib and BTL ofud used that DIR). Now all of them do, as does
hwloc (because hwloc has some !OpenFabrics helper functions that
require ibv types from verbs.h).
There's a little new m4 infrastructure worth mentioning:
* If you create a new verbs-lovin' component (i.e., a component that
need verbs), your configure.m4 should
AC_REQUIRE([OPAL_CHECK_VERBS_DIR]).
* You can then use three global shell variables: $opal_want_verbs,
$opal_verbs_dir, $opal_verbs_libdir, which will be set as follows:
* opal_want_verbs will be "yes" and opal_verbs_dir and
opal_verbs_libdir will both be set to directory values, '''OR'''
* opal_want_verbs will be "no" and opal_verbs_dir and
opal_verbs_libdir will both be set empty
This commit was SVN r26640.
2012-06-22 23:53:56 +04:00
|
|
|
|
2014-01-10 09:03:00 +04:00
|
|
|
--with-portals4=<directory>
|
|
|
|
Specify the directory where the Portals4 libraries and header files
|
|
|
|
are located. This option is generally only necessary if the Portals4
|
2012-01-03 21:25:37 +04:00
|
|
|
headers and libraries are not in default compiler/linker search
|
|
|
|
paths.
|
|
|
|
|
2014-01-10 09:03:00 +04:00
|
|
|
Portals4 is the support library for Cray interconnects, but is also
|
|
|
|
available on other platforms (e.g., there is a Portals4 library
|
2012-01-03 21:25:37 +04:00
|
|
|
implemented over regular TCP).
|
|
|
|
|
2014-01-28 19:36:52 +04:00
|
|
|
--with-portals4-libdir=<directory>
|
2014-01-10 09:03:00 +04:00
|
|
|
Location of libraries to link with for Portals4 support.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2014-01-10 09:03:00 +04:00
|
|
|
--with-portals4-max-md-size=SIZE
|
|
|
|
--with-portals4-max-va-size=SIZE
|
|
|
|
Set configuration values for Portals 4
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
--with-psm=<directory>
|
|
|
|
Specify the directory where the QLogic InfiniPath PSM library and
|
|
|
|
header files are located. This option is generally only necessary
|
|
|
|
if the InfiniPath headers and libraries are not in default
|
|
|
|
compiler/linker search paths.
|
|
|
|
|
|
|
|
PSM is the support library for QLogic InfiniPath network adapters.
|
|
|
|
|
|
|
|
--with-psm-libdir=<directory>
|
|
|
|
Look in directory for the PSM libraries. By default, Open MPI will
|
|
|
|
look in <psm directory>/lib and <psm directory>/lib64, which covers
|
|
|
|
most cases. This option is only needed for special configurations.
|
|
|
|
|
|
|
|
--with-sctp=<directory>
|
|
|
|
Specify the directory where the SCTP libraries and header files are
|
|
|
|
located. This option is generally only necessary if the SCTP headers
|
|
|
|
and libraries are not in default compiler/linker search paths.
|
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
SCTP is a special network stack over Ethernet networks.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
--with-sctp-libdir=<directory>
|
|
|
|
Look in directory for the SCTP libraries. By default, Open MPI will
|
|
|
|
look in <sctp directory>/lib and <sctp directory>/lib64, which covers
|
|
|
|
most cases. This option is only needed for special configurations.
|
|
|
|
|
2014-01-10 09:03:00 +04:00
|
|
|
--with-scif=<dir>
|
|
|
|
Look in directory for Intel SCIF support libraries
|
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
RUN-TIME SYSTEM SUPPORT
|
|
|
|
|
|
|
|
--enable-mpirun-prefix-by-default
|
|
|
|
This option forces the "mpirun" command to always behave as if
|
|
|
|
"--prefix $prefix" was present on the command line (where $prefix is
|
|
|
|
the value given to the --prefix option to configure). This prevents
|
|
|
|
most rsh/ssh-based users from needing to modify their shell startup
|
|
|
|
files to set the PATH and/or LD_LIBRARY_PATH for Open MPI on remote
|
|
|
|
nodes. Note, however, that such users may still desire to set PATH
|
|
|
|
-- perhaps even in their shell startup files -- so that executables
|
|
|
|
such as mpicc and mpirun can be found without needing to type long
|
|
|
|
path names. --enable-orterun-prefix-by-default is a synonym for
|
|
|
|
this option.
|
|
|
|
|
2013-10-04 18:11:43 +04:00
|
|
|
--enable-sensors
|
2014-01-28 19:36:52 +04:00
|
|
|
Enable internal sensors (default: disabled).
|
2013-10-04 18:11:43 +04:00
|
|
|
|
|
|
|
--enable-orte-static-ports
|
2014-01-28 19:36:52 +04:00
|
|
|
Enable orte static ports for tcp oob (default: enabled).
|
2013-10-04 18:11:43 +04:00
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
--with-alps
|
|
|
|
Force the building of for the Cray Alps run-time environment. If
|
|
|
|
Alps support cannot be found, configure will abort.
|
|
|
|
|
|
|
|
--with-loadleveler
|
|
|
|
Force the building of LoadLeveler scheduler support. If LoadLeveler
|
|
|
|
support cannot be found, configure will abort.
|
|
|
|
|
2012-01-03 21:25:37 +04:00
|
|
|
--with-lsf=<directory>
|
|
|
|
Specify the directory where the LSF libraries and header files are
|
|
|
|
located. This option is generally only necessary if the LSF headers
|
|
|
|
and libraries are not in default compiler/linker search paths.
|
|
|
|
|
|
|
|
LSF is a resource manager system, frequently used as a batch
|
|
|
|
scheduler in HPC systems.
|
|
|
|
|
|
|
|
NOTE: If you are using LSF version 7.0.5, you will need to add
|
|
|
|
"LIBS=-ldl" to the configure command line. For example:
|
|
|
|
|
|
|
|
./configure LIBS=-ldl --with-lsf ...
|
|
|
|
|
|
|
|
This workaround should *only* be needed for LSF 7.0.5.
|
|
|
|
|
|
|
|
--with-lsf-libdir=<directory>
|
|
|
|
Look in directory for the LSF libraries. By default, Open MPI will
|
|
|
|
look in <lsf directory>/lib and <lsf directory>/lib64, which covers
|
|
|
|
most cases. This option is only needed for special configurations.
|
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
--with-pmi
|
2014-09-30 22:27:29 +04:00
|
|
|
Build PMI support (by default on non-Cray XE/XC systems, it is not built).
|
|
|
|
On Cray XE/XC systems, the location of pmi is detected automatically as
|
|
|
|
part of the configure process. For non-Cray systems, if the pmi2.h header
|
|
|
|
is found in addition to pmi.h, then support for PMI2 will be built.
|
2012-02-24 00:39:10 +04:00
|
|
|
|
|
|
|
--with-slurm
|
2014-01-28 19:36:52 +04:00
|
|
|
Force the building of SLURM scheduler support.
|
2012-02-24 00:39:10 +04:00
|
|
|
|
|
|
|
--with-sge
|
|
|
|
Specify to build support for the Oracle Grid Engine (OGE) resource
|
2014-01-28 19:36:52 +04:00
|
|
|
manager and/or the Open Grid Engine. OGE support is disabled by
|
2012-02-24 00:39:10 +04:00
|
|
|
default; this option must be specified to build OMPI's OGE support.
|
|
|
|
|
|
|
|
The Oracle Grid Engine (OGE) and open Grid Engine packages are
|
|
|
|
resource manager systems, frequently used as a batch scheduler in
|
|
|
|
HPC systems.
|
|
|
|
|
2012-01-03 21:25:37 +04:00
|
|
|
--with-tm=<directory>
|
|
|
|
Specify the directory where the TM libraries and header files are
|
|
|
|
located. This option is generally only necessary if the TM headers
|
|
|
|
and libraries are not in default compiler/linker search paths.
|
|
|
|
|
|
|
|
TM is the support library for the Torque and PBS Pro resource
|
|
|
|
manager systems, both of which are frequently used as a batch
|
|
|
|
scheduler in HPC systems.
|
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
MISCELLANEOUS SUPPORT LIBRARIES
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
--with-blcr=<directory>
|
|
|
|
Specify the directory where the Berkeley Labs Checkpoint / Restart
|
|
|
|
(BLCR) libraries and header files are located. This option is
|
|
|
|
generally only necessary if the BLCR headers and libraries are not
|
|
|
|
in default compiler/linker search paths.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
This option is only meaningful if the --with-ft option is also used
|
|
|
|
to active Open MPI's fault tolerance behavior.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
--with-blcr-libdir=<directory>
|
|
|
|
Look in directory for the BLCR libraries. By default, Open MPI will
|
|
|
|
look in <blcr directory>/lib and <blcr directory>/lib64, which
|
|
|
|
covers most cases. This option is only needed for special
|
|
|
|
configurations.
|
|
|
|
|
2012-03-22 16:01:46 +04:00
|
|
|
--with-dmtcp=<directory>
|
|
|
|
Specify the directory where the Distributed MultiThreaded
|
|
|
|
Checkpointing (DMTCP) libraries and header files are located. This
|
|
|
|
option is generally only necessary if the DMTCP headers and
|
|
|
|
libraries are not in default compiler/linker search paths.
|
|
|
|
|
|
|
|
This option is only meaningful if the --with-ft option is also used
|
|
|
|
to active Open MPI's fault tolerance behavior.
|
|
|
|
|
|
|
|
--with-dmtcp-libdir=<directory>
|
|
|
|
Look in directory for the DMTCP libraries. By default, Open MPI
|
|
|
|
will look in <dmtcp directory>/lib and <dmtcp directory>/lib64,
|
|
|
|
which covers most cases. This option is only needed for special
|
|
|
|
configurations.
|
|
|
|
|
2014-01-28 19:36:52 +04:00
|
|
|
--with-libevent(=value)
|
|
|
|
This option specifies where to find the libevent support headers and
|
|
|
|
library. The following VALUEs are permitted:
|
2012-02-24 00:39:10 +04:00
|
|
|
|
2014-01-28 19:36:52 +04:00
|
|
|
internal: Use Open MPI's internal copy of libevent.
|
|
|
|
external: Use an external libevent installation (rely on default
|
|
|
|
compiler and linker paths to find it)
|
|
|
|
<no value>: Same as "internal".
|
|
|
|
<directory>: Specify the location of a specific libevent
|
|
|
|
installation to use
|
2012-02-24 00:39:10 +04:00
|
|
|
|
2014-01-28 19:36:52 +04:00
|
|
|
By default (or if --with-libevent is specified with no VALUE), Open
|
|
|
|
MPI will build and use the copy of libeveny that it has in its
|
|
|
|
source tree. However, if the VALUE is "external", Open MPI will
|
|
|
|
look for the relevant libevent header file and library in default
|
|
|
|
compiler / linker locations. Or, VALUE can be a directory tree
|
|
|
|
where the libevent header file and library can be found. This
|
|
|
|
option allows operating systems to include Open MPI and use their
|
|
|
|
default libevent installation instead of Open MPI's bundled libevent.
|
2014-01-28 08:44:19 +04:00
|
|
|
|
|
|
|
libevent is a support library that provides event-based processing,
|
2014-01-28 19:36:52 +04:00
|
|
|
timers, and signal handlers. Open MPI requires libevent to build;
|
|
|
|
passing --without-libevent will cause configure to abort.
|
2014-01-28 08:44:19 +04:00
|
|
|
|
|
|
|
--with-libevent-libdir=<directory>
|
|
|
|
Look in directory for the libevent libraries. This option is only
|
|
|
|
usable when building Open MPI against an external libevent
|
|
|
|
installation. Just like other --with-FOO-libdir configure options,
|
|
|
|
this option is only needed for special configurations.
|
|
|
|
|
2014-01-28 19:36:52 +04:00
|
|
|
--with-hwloc(=value)
|
|
|
|
Build hwloc support (default: enabled). This option specifies where
|
|
|
|
to find the hwloc support headers and library. The following values
|
|
|
|
are permitted:
|
|
|
|
|
|
|
|
internal: Use Open MPI's internal copy of hwloc.
|
|
|
|
external: Use an external hwloc installation (rely on default
|
|
|
|
compiler and linker paths to find it)
|
|
|
|
<no value>: Same as "internal".
|
|
|
|
<directory>: Specify the location of a specific hwloc
|
|
|
|
installation to use
|
|
|
|
|
|
|
|
By default (or if --with-hwloc is specified with no VALUE), Open MPI
|
|
|
|
will build and use the copy of hwloc that it has in its source tree.
|
|
|
|
However, if the VALUE is "external", Open MPI will look for the
|
|
|
|
relevant hwloc header files and library in default compiler / linker
|
|
|
|
locations. Or, VALUE can be a directory tree where the hwloc header
|
|
|
|
file and library can be found. This option allows operating systems
|
|
|
|
to include Open MPI and use their default hwloc installation instead
|
|
|
|
of Open MPI's bundled hwloc.
|
2012-02-24 00:39:10 +04:00
|
|
|
|
|
|
|
hwloc is a support library that provides processor and memory
|
|
|
|
affinity information for NUMA platforms.
|
|
|
|
|
|
|
|
--with-hwloc-libdir=<directory>
|
|
|
|
Look in directory for the hwloc libraries. This option is only
|
|
|
|
usable when building Open MPI against an external hwloc
|
|
|
|
installation. Just like other --with-FOO-libdir configure options,
|
|
|
|
this option is only needed for special configurations.
|
|
|
|
|
2012-03-22 15:30:57 +04:00
|
|
|
--disable-hwloc-pci
|
|
|
|
Disable building hwloc's PCI device-sensing capabilities. On some
|
|
|
|
platforms (e.g., SusE 10 SP1, x86-64), the libpci support library is
|
|
|
|
broken. Open MPI's configure script should usually detect when
|
|
|
|
libpci is not usable due to such brokenness and turn off PCI
|
|
|
|
support, but there may be cases when configure mistakenly enables
|
|
|
|
PCI support in the presence of a broken libpci. These cases may
|
|
|
|
result in "make" failing with warnings about relocation symbols in
|
|
|
|
libpci. The --disable-hwloc-pci switch can be used to force Open
|
|
|
|
MPI to not build hwloc's PCI device-sensing capabilities in these
|
|
|
|
cases.
|
|
|
|
|
|
|
|
Similarly, if Open MPI incorrectly decides that libpci is broken,
|
|
|
|
you can force Open MPI to build hwloc's PCI device-sensing
|
|
|
|
capabilities by using --enable-hwloc-pci.
|
|
|
|
|
|
|
|
hwloc can discover PCI devices and locality, which can be useful for
|
|
|
|
Open MPI in assigning message passing resources to MPI processes.
|
|
|
|
|
2014-01-28 19:36:52 +04:00
|
|
|
--with-libltdl(=value)
|
2012-02-24 00:39:10 +04:00
|
|
|
This option specifies where to find the GNU Libtool libltdl support
|
2014-01-28 19:36:52 +04:00
|
|
|
library. The following values are permitted:
|
2012-02-24 00:39:10 +04:00
|
|
|
|
|
|
|
internal: Use Open MPI's internal copy of libltdl.
|
|
|
|
external: Use an external libltdl installation (rely on default
|
|
|
|
compiler and linker paths to find it)
|
|
|
|
<no value>: Same as "internal".
|
|
|
|
<directory>: Specify the location of a specific libltdl
|
|
|
|
installation to use
|
|
|
|
|
|
|
|
By default (or if --with-libltdl is specified with no VALUE), Open
|
|
|
|
MPI will build and use the copy of libltdl that it has in its source
|
|
|
|
tree. However, if the VALUE is "external", Open MPI will look for
|
|
|
|
the relevant libltdl header file and library in default compiler /
|
|
|
|
linker locations. Or, VALUE can be a directory tree where the
|
|
|
|
libltdl header file and library can be found. This option allows
|
|
|
|
operating systems to include Open MPI and use their default libltdl
|
|
|
|
installation instead of Open MPI's bundled libltdl.
|
|
|
|
|
|
|
|
Note that this option is ignored if --disable-dlopen is specified.
|
|
|
|
|
|
|
|
--disable-libompitrace
|
|
|
|
Disable building the simple "libompitrace" library (see note above
|
|
|
|
about libompitrace)
|
|
|
|
|
2014-01-28 19:36:52 +04:00
|
|
|
--with-valgrind(=<directory>)
|
2012-02-24 00:39:10 +04:00
|
|
|
Directory where the valgrind software is installed. If Open MPI
|
2014-01-28 19:36:52 +04:00
|
|
|
finds Valgrind's header files, it will include additional support
|
|
|
|
for Valgrind's memory-checking debugger.
|
2012-02-24 00:39:10 +04:00
|
|
|
|
|
|
|
Specifically, it will eliminate a lot of false positives from
|
2014-01-28 19:36:52 +04:00
|
|
|
running Valgrind on MPI applications. There is a minor performance
|
|
|
|
penalty for enabling this option.
|
2012-02-24 00:39:10 +04:00
|
|
|
|
|
|
|
--disable-vt
|
2014-01-28 19:36:52 +04:00
|
|
|
Disable building the VampirTrace that is bundled with Open MPI.
|
2012-02-24 00:39:10 +04:00
|
|
|
|
|
|
|
MPI FUNCTIONALITY
|
|
|
|
|
|
|
|
--with-mpi-param-check(=value)
|
2014-01-28 19:36:52 +04:00
|
|
|
Whether or not to check MPI function parameters for errors at
|
|
|
|
runtime. The following values are permitted:
|
|
|
|
|
|
|
|
always: MPI function parameters are always checked for errors
|
|
|
|
never: MPI function parameters are never checked for errors
|
|
|
|
runtime: Whether MPI function parameters are checked depends on
|
|
|
|
the value of the MCA parameter mpi_param_check (default:
|
|
|
|
yes).
|
|
|
|
yes: Synonym for "always" (same as --with-mpi-param-check).
|
|
|
|
no: Synonym for "none" (same as --without-mpi-param-check).
|
|
|
|
|
|
|
|
If --with-mpi-param is not specified, "runtime" is the default.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
--with-threads=value
|
|
|
|
Since thread support is only partially tested, it is disabled by
|
|
|
|
default. To enable threading, use "--with-threads=posix". This is
|
|
|
|
most useful when combined with --enable-mpi-thread-multiple.
|
|
|
|
|
|
|
|
--enable-mpi-thread-multiple
|
|
|
|
Allows the MPI thread level MPI_THREAD_MULTIPLE. See
|
|
|
|
--with-threads; this is currently disabled by default. Enabling
|
|
|
|
this feature will automatically --enable-opal-multi-threads.
|
|
|
|
|
|
|
|
--enable-opal-multi-threads
|
|
|
|
Enables thread lock support in the OPAL and ORTE layers. Does
|
|
|
|
not enable MPI_THREAD_MULTIPLE - see above option for that feature.
|
|
|
|
This is currently disabled by default.
|
|
|
|
|
2013-01-07 23:58:19 +04:00
|
|
|
--enable-mpi-cxx
|
2014-01-28 19:36:52 +04:00
|
|
|
Enable building the C++ MPI bindings (default: disabled).
|
2013-01-07 23:58:19 +04:00
|
|
|
|
2014-01-28 19:36:52 +04:00
|
|
|
The MPI C++ bindings were deprecated in MPI-2.2, and removed from
|
|
|
|
the MPI standard in MPI-3.0.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2013-01-09 17:09:03 +04:00
|
|
|
--enable-mpi-java
|
|
|
|
Enable building of an EXPERIMENTAL Java MPI interface (disabled by
|
|
|
|
default). You may also need to specify --with-jdk-dir,
|
|
|
|
--with-jdk-bindir, and/or --with-jdk-headers. See README.JAVA.txt
|
|
|
|
for details.
|
|
|
|
|
|
|
|
Note that this Java interface is INCOMPLETE (meaning: it does not
|
|
|
|
support all MPI functionality) and LIKELY TO CHANGE. The Open MPI
|
|
|
|
developers would very much like to hear your feedback about this
|
|
|
|
interface. See README.JAVA.txt for more details.
|
|
|
|
|
2014-01-28 19:36:52 +04:00
|
|
|
--enable-mpi-fortran(=value)
|
2014-01-23 05:28:55 +04:00
|
|
|
By default, Open MPI will attempt to build all 3 Fortran bindings:
|
|
|
|
mpif.h, the "mpi" module, and the "mpi_f08" module. The following
|
2014-01-28 19:36:52 +04:00
|
|
|
values are permitted:
|
|
|
|
|
|
|
|
all: Synonym for "yes".
|
|
|
|
yes: Attempt to build all 3 Fortran bindings; skip
|
|
|
|
any binding that cannot be built (same as
|
|
|
|
--enable-mpi-fortran).
|
|
|
|
mpifh: Build mpif.h support.
|
|
|
|
usempi: Build mpif.h and "mpi" module support.
|
|
|
|
usempif08: Build mpif.h, "mpi" module, and "mpi_f08"
|
|
|
|
module support.
|
|
|
|
none: Synonym for "no".
|
|
|
|
no: Do not build any MPI Fortran support (same as
|
|
|
|
--disable-mpi-fortran). This is mutually exclusive
|
2014-03-20 00:50:28 +04:00
|
|
|
with building the OSHMEM Fortran interface.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
--enable-mpi-ext(=<list>)
|
|
|
|
Enable Open MPI's non-portable API extensions. If no <list> is
|
|
|
|
specified, all of the extensions are enabled.
|
|
|
|
|
|
|
|
See "Open MPI API Extensions", below, for more details.
|
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
--with-io-romio-flags=flags
|
|
|
|
Pass flags to the ROMIO distribution configuration script. This
|
|
|
|
option is usually only necessary to pass
|
|
|
|
parallel-filesystem-specific preprocessor/compiler/linker flags back
|
|
|
|
to the ROMIO system.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
--enable-sparse-groups
|
|
|
|
Enable the usage of sparse groups. This would save memory
|
|
|
|
significantly especially if you are creating large
|
|
|
|
communicators. (Disabled by default)
|
|
|
|
|
2014-03-20 00:50:28 +04:00
|
|
|
OSHMEM FUNCTIONALITY
|
|
|
|
|
2014-03-20 00:57:37 +04:00
|
|
|
--disable-oshmem
|
|
|
|
Disable building the OpenSHMEM implementation (by default, it is
|
|
|
|
enabled).
|
2014-03-20 00:50:28 +04:00
|
|
|
|
|
|
|
--disable-oshmem-fortran
|
2014-08-16 01:25:51 +04:00
|
|
|
Disable building only the Fortran OSHMEM bindings. Please see
|
|
|
|
the "Compiler Notes" section herein which contains further
|
|
|
|
details on known issues with various Fortran compilers.
|
2014-03-20 00:50:28 +04:00
|
|
|
|
|
|
|
MISCELLANEOUS FUNCTIONALITY
|
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
--without-memory-manager
|
|
|
|
Disable building Open MPI's memory manager. Open MPI's memory
|
|
|
|
manager is usually built on Linux based platforms, and is generally
|
2013-07-20 02:14:49 +04:00
|
|
|
only used for optimizations with some OpenFabrics-based networks (it
|
|
|
|
is not *necessary* for OpenFabrics networks, but some performance
|
|
|
|
loss may be observed without it).
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
However, it may be necessary to disable the memory manager in order
|
|
|
|
to build Open MPI statically.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
--with-ft=TYPE
|
|
|
|
Specify the type of fault tolerance to enable. Options: LAM
|
|
|
|
(LAM/MPI-like), cr (Checkpoint/Restart). Fault tolerance support is
|
|
|
|
disabled unless this option is specified.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
--enable-peruse
|
|
|
|
Enable the PERUSE MPI data analysis interface.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
--enable-heterogeneous
|
|
|
|
Enable support for running on heterogeneous clusters (e.g., machines
|
|
|
|
with different endian representations). Heterogeneous support is
|
|
|
|
disabled by default because it imposes a minor performance penalty.
|
|
|
|
|
2014-01-28 19:36:52 +04:00
|
|
|
*** THIS FUNCTIONALITY IS CURRENTLY BROKEN - DO NOT USE ***
|
|
|
|
|
2012-01-03 21:25:37 +04:00
|
|
|
--with-wrapper-cflags=<cflags>
|
|
|
|
--with-wrapper-cxxflags=<cxxflags>
|
|
|
|
--with-wrapper-fflags=<fflags>
|
|
|
|
--with-wrapper-fcflags=<fcflags>
|
|
|
|
--with-wrapper-ldflags=<ldflags>
|
|
|
|
--with-wrapper-libs=<libs>
|
|
|
|
Add the specified flags to the default flags that used are in Open
|
|
|
|
MPI's "wrapper" compilers (e.g., mpicc -- see below for more
|
|
|
|
information about Open MPI's wrapper compilers). By default, Open
|
|
|
|
MPI's wrapper compilers use the same compilers used to build Open
|
2014-01-28 19:36:52 +04:00
|
|
|
MPI and specify a minimum set of additional flags that are necessary
|
|
|
|
to compile/link MPI applications. These configure options give
|
|
|
|
system administrators the ability to embed additional flags in
|
2012-01-03 21:25:37 +04:00
|
|
|
OMPI's wrapper compilers (which is a local policy decision). The
|
|
|
|
meanings of the different flags are:
|
|
|
|
|
2014-01-28 19:36:52 +04:00
|
|
|
<cflags>: Flags passed by the mpicc wrapper to the C compiler
|
2012-01-03 21:25:37 +04:00
|
|
|
<cxxflags>: Flags passed by the mpic++ wrapper to the C++ compiler
|
2014-01-28 19:36:52 +04:00
|
|
|
<fcflags>: Flags passed by the mpifort wrapper to the Fortran compiler
|
|
|
|
<ldflags>: Flags passed by all the wrappers to the linker
|
|
|
|
<libs>: Flags passed by all the wrappers to the linker
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
There are other ways to configure Open MPI's wrapper compiler
|
|
|
|
behavior; see the Open MPI FAQ for more information.
|
|
|
|
|
|
|
|
There are many other options available -- see "./configure --help".
|
|
|
|
|
|
|
|
Changing the compilers that Open MPI uses to build itself uses the
|
|
|
|
standard Autoconf mechanism of setting special environment variables
|
|
|
|
either before invoking configure or on the configure command line.
|
|
|
|
The following environment variables are recognized by configure:
|
|
|
|
|
|
|
|
CC - C compiler to use
|
|
|
|
CFLAGS - Compile flags to pass to the C compiler
|
|
|
|
CPPFLAGS - Preprocessor flags to pass to the C compiler
|
|
|
|
|
|
|
|
CXX - C++ compiler to use
|
|
|
|
CXXFLAGS - Compile flags to pass to the C++ compiler
|
|
|
|
CXXCPPFLAGS - Preprocessor flags to pass to the C++ compiler
|
|
|
|
|
== Highlights ==
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.
2012-04-18 19:57:29 +04:00
|
|
|
FC - Fortran compiler to use
|
|
|
|
FCFLAGS - Compile flags to pass to the Fortran compiler
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
LDFLAGS - Linker flags to pass to all compilers
|
|
|
|
LIBS - Libraries to pass to all compilers (it is rarely
|
|
|
|
necessary for users to need to specify additional LIBS)
|
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
PKG_CONFIG - Path to the pkg-config utility
|
|
|
|
|
2012-01-03 21:25:37 +04:00
|
|
|
For example:
|
|
|
|
|
== Highlights ==
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.
2012-04-18 19:57:29 +04:00
|
|
|
shell$ ./configure CC=mycc CXX=myc++ FC=myfortran ...
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2013-10-04 16:12:18 +04:00
|
|
|
*** NOTE: We generally suggest using the above command line form for
|
|
|
|
setting different compilers (vs. setting environment variables and
|
|
|
|
then invoking "./configure"). The above form will save all
|
|
|
|
variables and values in the config.log file, which makes
|
2014-01-28 19:36:52 +04:00
|
|
|
post-mortem analysis easier if problems occur.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2012-02-14 23:34:04 +04:00
|
|
|
Note that if you intend to compile Open MPI with a "make" other than
|
|
|
|
the default one in your PATH, then you must either set the $MAKE
|
|
|
|
environment variable before invoking Open MPI's configure script, or
|
|
|
|
pass "MAKE=your_make_prog" to configure. For example:
|
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
shell$ ./configure MAKE=/path/to/my/make ...
|
2012-02-14 23:34:04 +04:00
|
|
|
|
|
|
|
This could be the case, for instance, if you have a shell alias for
|
|
|
|
"make", or you always type "gmake" out of habit. Failure to tell
|
|
|
|
configure which non-default "make" you will use to compile Open MPI
|
|
|
|
can result in undefined behavior (meaning: don't do that).
|
|
|
|
|
2012-01-03 21:25:37 +04:00
|
|
|
Note that you may also want to ensure that the value of
|
|
|
|
LD_LIBRARY_PATH is set appropriately (or not at all) for your build
|
|
|
|
(or whatever environment variable is relevant for your operating
|
|
|
|
system). For example, some users have been tripped up by setting to
|
== Highlights ==
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.
2012-04-18 19:57:29 +04:00
|
|
|
use a non-default Fortran compiler via FC, but then failing to set
|
|
|
|
LD_LIBRARY_PATH to include the directory containing that non-default
|
|
|
|
Fortran compiler's support libraries. This causes Open MPI's
|
|
|
|
configure script to fail when it tries to compile / link / run simple
|
|
|
|
Fortran programs.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
It is required that the compilers specified be compile and link
|
|
|
|
compatible, meaning that object files created by one compiler must be
|
|
|
|
able to be linked with object files from the other compilers and
|
|
|
|
produce correctly functioning executables.
|
|
|
|
|
|
|
|
Open MPI supports all the "make" targets that are provided by GNU
|
|
|
|
Automake, such as:
|
|
|
|
|
|
|
|
all - build the entire Open MPI package
|
|
|
|
install - install Open MPI
|
|
|
|
uninstall - remove all traces of Open MPI from the $prefix
|
|
|
|
clean - clean out the build tree
|
|
|
|
|
|
|
|
Once Open MPI has been built and installed, it is safe to run "make
|
|
|
|
clean" and/or remove the entire build tree.
|
|
|
|
|
|
|
|
VPATH and parallel builds are fully supported.
|
|
|
|
|
|
|
|
Generally speaking, the only thing that users need to do to use Open
|
|
|
|
MPI is ensure that <prefix>/bin is in their PATH and <prefix>/lib is
|
|
|
|
in their LD_LIBRARY_PATH. Users may need to ensure to set the PATH
|
|
|
|
and LD_LIBRARY_PATH in their shell setup files (e.g., .bashrc, .cshrc)
|
|
|
|
so that non-interactive rsh/ssh-based logins will be able to find the
|
|
|
|
Open MPI executables.
|
|
|
|
|
|
|
|
===========================================================================
|
|
|
|
|
|
|
|
Open MPI Version Numbers and Binary Compatibility
|
|
|
|
-------------------------------------------------
|
|
|
|
|
|
|
|
Open MPI has two sets of version numbers that are likely of interest
|
|
|
|
to end users / system administrator:
|
|
|
|
|
|
|
|
* Software version number
|
|
|
|
* Shared library version numbers
|
|
|
|
|
|
|
|
Both are described below, followed by a discussion of application
|
|
|
|
binary interface (ABI) compatibility implications.
|
|
|
|
|
|
|
|
Software Version Number
|
|
|
|
-----------------------
|
|
|
|
|
2014-10-02 16:02:00 +04:00
|
|
|
The version number of Open MPI distribution tarballs are the union of
|
|
|
|
several different values: major, minor, release, and an optional
|
|
|
|
quantifier.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
* Major: The major number is the first integer in the version string
|
|
|
|
(e.g., v1.2.3). Changes in the major number typically indicate a
|
|
|
|
significant change in the code base and/or end-user
|
|
|
|
functionality. The major number is always included in the version
|
|
|
|
number.
|
|
|
|
|
|
|
|
* Minor: The minor number is the second integer in the version
|
|
|
|
string (e.g., v1.2.3). Changes in the minor number typically
|
|
|
|
indicate a incremental change in the code base and/or end-user
|
|
|
|
functionality. The minor number is always included in the version
|
|
|
|
number. Starting with Open MPI v1.3.0, the minor release number
|
|
|
|
took on additional significance (see this wiki page for more
|
|
|
|
details):
|
|
|
|
|
|
|
|
o Even minor release numbers are part of "super-stable"
|
|
|
|
release series (e.g., v1.4.0). Releases in super stable series
|
|
|
|
are well-tested, time-tested, and mature. Such releases are
|
|
|
|
recomended for production sites. Changes between subsequent
|
|
|
|
releases in super stable series are expected to be fairly small.
|
|
|
|
o Odd minor release numbers are part of "feature" release
|
|
|
|
series (e.g., 1.3.7). Releases in feature releases are
|
|
|
|
well-tested, but they are not necessarily time-tested or as
|
|
|
|
mature as super stable releases. Changes between subsequent
|
|
|
|
releases in feature series may be large.
|
|
|
|
|
|
|
|
* Release: The release number is the third integer in the version
|
|
|
|
string (e.g., v1.2.3). Changes in the release number typically
|
|
|
|
indicate a bug fix in the code base and/or end-user
|
|
|
|
functionality. If the release number is 0, it is omitted from the
|
|
|
|
version number (e.g., v1.2 has a release number of 0).
|
|
|
|
|
|
|
|
* Quantifier: Open MPI version numbers sometimes have an arbitrary
|
|
|
|
string affixed to the end of the version number. Common strings
|
|
|
|
include:
|
|
|
|
|
|
|
|
o aX: Indicates an alpha release. X is an integer indicating
|
|
|
|
the number of the alpha release (e.g., v1.2.3a5 indicates the
|
|
|
|
5th alpha release of version 1.2.3).
|
|
|
|
o bX: Indicates a beta release. X is an integer indicating
|
|
|
|
the number of the beta release (e.g., v1.2.3b3 indicates the 3rd
|
|
|
|
beta release of version 1.2.3).
|
|
|
|
o rcX: Indicates a release candidate. X is an integer
|
|
|
|
indicating the number of the release candidate (e.g., v1.2.3rc4
|
|
|
|
indicates the 4th release candidate of version 1.2.3).
|
2014-10-02 16:02:00 +04:00
|
|
|
o Prior to October 2014, nightly snapshot tarballs would include a
|
|
|
|
repository version number as well, such as r1234, indicating
|
|
|
|
that that snapshot tarball was built at Subversion r1234).
|
|
|
|
|
|
|
|
Starting in October 2014, although the major, minor, and release
|
|
|
|
values (and optional quantifiers) are reported in Open MPI nightly
|
|
|
|
snapshot tarballs, the filenames of these snapshot tarballs follow a
|
|
|
|
slightly different convention.
|
|
|
|
|
|
|
|
Specifically, the snapshot tarball filename contains three distinct
|
|
|
|
values:
|
|
|
|
|
|
|
|
* Most recent Git tag name on the branch from which the tarball was
|
|
|
|
created.
|
|
|
|
|
|
|
|
* An integer indicating how many Git commits have occurred since
|
|
|
|
that Git tag.
|
|
|
|
|
|
|
|
* The Git hash of the tip of the branch.
|
|
|
|
|
|
|
|
For example, a snapshot tarball filename of
|
|
|
|
"openmpi-v1.8.2-57-gb9f1fd9.tar.bz2" indicates that this tarball was
|
|
|
|
created from the v1.8 branch, 57 Git commits after the "v1.8.2" tag,
|
|
|
|
specifically at Git hash gb9f1fd9.
|
|
|
|
|
|
|
|
Open MPI's Git master branch contains a single "dev" tag. For
|
|
|
|
example, "openmpi-dev-8-gf21c349.tar.bz2" represents a snapshot
|
|
|
|
tarball created from the master branch, 8 Git commits after the "dev"
|
|
|
|
tag, specifically at Git hash gf21c349.
|
|
|
|
|
|
|
|
The exact value of the "number of Git commits past a tag" integer is
|
|
|
|
fairly meaningless; its sole purpose is to provide an easy,
|
|
|
|
human-recognizable ordering for snapshot tarballs.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
Shared Library Version Number
|
|
|
|
-----------------------------
|
|
|
|
|
|
|
|
Open MPI started using the GNU Libtool shared library versioning
|
|
|
|
scheme with the release of v1.3.2.
|
|
|
|
|
|
|
|
NOTE: Only official releases of Open MPI adhere to this versioning
|
|
|
|
scheme. "Beta" releases, release candidates, and nightly
|
|
|
|
tarballs, developer snapshots, and Subversion/Mercurial snapshot
|
|
|
|
tarballs likely will all have arbitrary/meaningless shared
|
|
|
|
library version numbers.
|
|
|
|
|
|
|
|
For deep voodoo technical reasons, only the MPI API libraries were
|
|
|
|
versioned until Open MPI v1.5 was released (i.e., libmpi*so --
|
|
|
|
libopen-rte.so or libopen-pal.so were not versioned until v1.5).
|
|
|
|
Please see https://svn.open-mpi.org/trac/ompi/ticket/2092 for more
|
|
|
|
details.
|
|
|
|
|
|
|
|
NOTE: This policy change will cause an ABI incompatibility between MPI
|
|
|
|
applications compiled/linked against the Open MPI v1.4 series;
|
|
|
|
such applications will not be able to upgrade to the Open MPI
|
|
|
|
v1.5 series without re-linking. Sorry folks!
|
|
|
|
|
|
|
|
The GNU Libtool official documentation details how the versioning
|
|
|
|
scheme works. The quick version is that the shared library versions
|
|
|
|
are a triple of integers: (current,revision,age), or "c:r:a". This
|
|
|
|
triple is not related to the Open MPI software version number. There
|
|
|
|
are six simple rules for updating the values (taken almost verbatim
|
|
|
|
from the Libtool docs):
|
|
|
|
|
|
|
|
1. Start with version information of "0:0:0" for each shared library.
|
|
|
|
|
|
|
|
2. Update the version information only immediately before a public
|
|
|
|
release of your software. More frequent updates are unnecessary,
|
|
|
|
and only guarantee that the current interface number gets larger
|
|
|
|
faster.
|
|
|
|
|
|
|
|
3. If the library source code has changed at all since the last
|
|
|
|
update, then increment revision ("c:r:a" becomes "c:r+1:a").
|
|
|
|
|
|
|
|
4. If any interfaces have been added, removed, or changed since the
|
|
|
|
last update, increment current, and set revision to 0.
|
|
|
|
|
|
|
|
5. If any interfaces have been added since the last public release,
|
|
|
|
then increment age.
|
|
|
|
|
|
|
|
6. If any interfaces have been removed since the last public release,
|
|
|
|
then set age to 0.
|
|
|
|
|
|
|
|
Here's how we apply those rules specifically to Open MPI:
|
|
|
|
|
|
|
|
1. The above rules do not apply to MCA components (a.k.a. "plugins");
|
|
|
|
MCA component .so versions stay unspecified.
|
|
|
|
|
|
|
|
2. The above rules apply exactly as written to the following
|
|
|
|
libraries starting with Open MPI version v1.5 (prior to v1.5,
|
|
|
|
libopen-pal and libopen-rte were still at 0:0:0 for reasons
|
|
|
|
discussed in bug ticket #2092
|
|
|
|
https://svn.open-mpi.org/trac/ompi/ticket/2092):
|
|
|
|
|
|
|
|
* libopen-rte
|
|
|
|
* libopen-pal
|
|
|
|
* libmca_common_*
|
|
|
|
|
|
|
|
3. The following libraries use a slightly modified version of the
|
|
|
|
above rules: rules 4, 5, and 6 only apply to the official MPI
|
|
|
|
interfaces (functions, global variables). The rationale for this
|
|
|
|
decision is that the vast majority of our users only care about
|
|
|
|
the official/public MPI interfaces; we therefore want the .so
|
|
|
|
version number to reflect only changes to the official MPI API.
|
|
|
|
Put simply: non-MPI API / internal changes to the
|
|
|
|
MPI-application-facing libraries are irrelevant to pure MPI
|
|
|
|
applications.
|
|
|
|
|
|
|
|
* libmpi
|
== Highlights ==
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.
2012-04-18 19:57:29 +04:00
|
|
|
* libmpi_mpifh
|
|
|
|
* libmpi_usempi_tkr
|
|
|
|
* libmpi_usempi_ignore_tkr
|
|
|
|
* libmpi_usempif08
|
2012-01-03 21:25:37 +04:00
|
|
|
* libmpi_cxx
|
|
|
|
|
|
|
|
4. Note, however, that libmpi.so can have its "revision" number
|
|
|
|
incremented if libopen-rte or libopen-pal change (because these
|
|
|
|
two libraries are wholly included in libmpi.so). Specifically:
|
|
|
|
the revision will change, but since we have defined that the only
|
|
|
|
relevant API interface in libmpi.so is the official MPI API,
|
|
|
|
updates to libopen-rte and libopen-pal do not change the "current"
|
|
|
|
or "age" numbers of libmpi.so.
|
|
|
|
|
|
|
|
Application Binary Interface (ABI) Compatibility
|
|
|
|
------------------------------------------------
|
|
|
|
|
|
|
|
Open MPI provided forward application binary interface (ABI)
|
|
|
|
compatibility for MPI applications starting with v1.3.2. Prior to
|
|
|
|
that version, no ABI guarantees were provided.
|
|
|
|
|
|
|
|
Starting with v1.3.2, Open MPI provides forward ABI compatibility in
|
|
|
|
all versions of a given feature release series and its corresponding
|
|
|
|
super stable series. For example, on a single platform, an MPI
|
2014-01-28 19:36:52 +04:00
|
|
|
application linked against Open MPI v1.7.2 shared libraries can be
|
|
|
|
updated to point to the shared libraries in any successive v1.7.x or
|
|
|
|
v1.8 release and still work properly (e.g., via the LD_LIBRARY_PATH
|
2012-01-03 21:25:37 +04:00
|
|
|
environment variable or other operating system mechanism).
|
|
|
|
|
2014-01-29 02:40:14 +04:00
|
|
|
* A bug that causes an ABI compatibility issue was discovered after
|
|
|
|
v1.7.3 was released. The bug only affects users who configure their
|
|
|
|
Fortran compilers to use "large" INTEGERs by default, but still have
|
|
|
|
"normal" ints for C (e.g., 8 byte Fortran INTEGERs and 4 byte C
|
|
|
|
ints). In this case, the Fortran MPI_STATUS_SIZE value was computed
|
|
|
|
incorrectly.
|
|
|
|
|
|
|
|
Fixing this issue breakes ABI *only in the sizeof(INTEGER) !=
|
|
|
|
sizeof(int) case*. However, since Open MPI provides ABI guarantees
|
|
|
|
for the v1.7/v1.8 series, this bug is only fixed if Open MPI is
|
|
|
|
configured with the --enable-abi-breaking-fortran-status-i8-fix
|
|
|
|
flag, which, as its name implies, breaks ABI. For example:
|
|
|
|
|
|
|
|
shell$ ./configure --enable-abi-breaking-fortran-status-i8-fix \
|
|
|
|
CC=icc F77=ifort FC=ifort CXX=icpc \
|
|
|
|
FFLAGS=i8 FCFLAGS=-i8 ...
|
|
|
|
|
|
|
|
* A second bug was discovered after v1.7.3 was released that causes
|
|
|
|
ABI to be broken for gfortran users who are using the "mpi" Fortran
|
|
|
|
module. In short, for versions of gfortran that do not support
|
|
|
|
"ignore TKR" functionality (i.e., gfortran <=v4.8), Open MPI was
|
|
|
|
providing interfaces for MPI subroutines with choice buffers (e.g.,
|
|
|
|
MPI_Send) in the Fortran mpi module. The MPI-3.0 specification
|
|
|
|
expressly states not to do this. To be consistent with MPI-3, Open
|
|
|
|
MPI v1.7.4 therefore removed all MPI interfaces with choice buffers
|
|
|
|
from the no-ignore-TKR version of the Fortran mpi module, even
|
|
|
|
though this breaks ABI between v1.7.3 and v1.7.4. Affected users
|
|
|
|
should be able to recompile their MPI applications with v1.7.4 with
|
|
|
|
no changes.
|
|
|
|
|
|
|
|
Other Fortran compilers that provide "ignore TKR" functionality are
|
|
|
|
not affected by this change.
|
2012-02-24 00:39:10 +04:00
|
|
|
|
2012-01-03 21:25:37 +04:00
|
|
|
Open MPI reserves the right to break ABI compatibility at new feature
|
|
|
|
release series. For example, the same MPI application from above
|
2014-01-28 19:36:52 +04:00
|
|
|
(linked against Open MPI v1.7.2 shared libraries) will likely *not*
|
|
|
|
work with Open MPI v1.9 shared libraries.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
===========================================================================
|
|
|
|
|
|
|
|
Checking Your Open MPI Installation
|
|
|
|
-----------------------------------
|
|
|
|
|
|
|
|
The "ompi_info" command can be used to check the status of your Open
|
|
|
|
MPI installation (located in <prefix>/bin/ompi_info). Running it with
|
|
|
|
no arguments provides a summary of information about your Open MPI
|
|
|
|
installation.
|
|
|
|
|
|
|
|
Note that the ompi_info command is extremely helpful in determining
|
|
|
|
which components are installed as well as listing all the run-time
|
|
|
|
settable parameters that are available in each component (as well as
|
|
|
|
their default values).
|
|
|
|
|
|
|
|
The following options may be helpful:
|
|
|
|
|
|
|
|
--all Show a *lot* of information about your Open MPI
|
|
|
|
installation.
|
|
|
|
--parsable Display all the information in an easily
|
|
|
|
grep/cut/awk/sed-able format.
|
|
|
|
--param <framework> <component>
|
|
|
|
A <framework> of "all" and a <component> of "all" will
|
|
|
|
show all parameters to all components. Otherwise, the
|
|
|
|
parameters of all the components in a specific framework,
|
|
|
|
or just the parameters of a specific component can be
|
|
|
|
displayed by using an appropriate <framework> and/or
|
|
|
|
<component> name.
|
2013-10-04 15:01:50 +04:00
|
|
|
--level <level>
|
2014-01-28 19:36:52 +04:00
|
|
|
By default, ompi_info only shows "Level 1" MCA parameters
|
|
|
|
-- parameters that can affect whether MPI processes can
|
|
|
|
run successfully or not (e.g., determining which network
|
|
|
|
interfaces to use). The --level option will display all
|
|
|
|
MCA parameters from level 1 to <level> (the max <level>
|
|
|
|
value is 9). Use "ompi_info --param <framework>
|
|
|
|
<component> --level 9" to see *all* MCA parameters for a
|
|
|
|
given component. See "The Modular Component Architecture
|
|
|
|
(MCA)" section, below, for a fuller explanation.
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
Changing the values of these parameters is explained in the "The
|
|
|
|
Modular Component Architecture (MCA)" section, below.
|
|
|
|
|
2013-11-07 21:14:28 +04:00
|
|
|
When verifying a new Open MPI installation, we recommend running six
|
2012-02-24 00:39:10 +04:00
|
|
|
tests:
|
|
|
|
|
|
|
|
1. Use "mpirun" to launch a non-MPI program (e.g., hostname or uptime)
|
|
|
|
across multiple nodes.
|
|
|
|
|
|
|
|
2. Use "mpirun" to launch a trivial MPI program that does no MPI
|
|
|
|
communication (e.g., the hello_c program in the examples/ directory
|
|
|
|
in the Open MPI distribution).
|
|
|
|
|
|
|
|
3. Use "mpirun" to launch a trivial MPI program that sends and
|
|
|
|
receives a few MPI messages (e.g., the ring_c program in the
|
|
|
|
examples/ directory in the Open MPI distribution).
|
|
|
|
|
2013-11-07 21:14:28 +04:00
|
|
|
4. Use "oshrun" to launch a non-OSHMEM program across multiple nodes.
|
|
|
|
|
|
|
|
5. Use "oshrun" to launch a trivial MPI program that does no OSHMEM
|
|
|
|
communication (e.g., hello_shmem.c program in the examples/ directory
|
|
|
|
in the Open MPI distribution.)
|
|
|
|
|
|
|
|
6. Use "oshrun" to launch a trivial OSHMEM program that puts and gets
|
|
|
|
a few messages. (e.g., the ring_shmem.c in the examples/ directory
|
|
|
|
in the Open MPI distribution.)
|
|
|
|
|
|
|
|
If you can run all six of these tests successfully, that is a good
|
2012-02-24 00:39:10 +04:00
|
|
|
indication that Open MPI built and installed properly.
|
|
|
|
|
2012-01-03 21:25:37 +04:00
|
|
|
===========================================================================
|
|
|
|
|
|
|
|
Open MPI API Extensions
|
|
|
|
-----------------------
|
|
|
|
|
|
|
|
Open MPI contains a framework for extending the MPI API that is
|
|
|
|
available to applications. Each extension is usually a standalone set of
|
|
|
|
functionality that is distinct from other extensions (similar to how
|
|
|
|
Open MPI's plugins are usually unrelated to each other). These
|
|
|
|
extensions provide new functions and/or constants that are available
|
|
|
|
to MPI applications.
|
|
|
|
|
|
|
|
WARNING: These extensions are neither standard nor portable to other
|
|
|
|
MPI implementations!
|
|
|
|
|
|
|
|
Compiling the extensions
|
|
|
|
------------------------
|
|
|
|
|
|
|
|
Open MPI extensions are not enabled by default; they must be enabled
|
|
|
|
by Open MPI's configure script. The --enable-mpi-ext command line
|
|
|
|
switch accepts a comma-delimited list of extensions to enable, or, if
|
|
|
|
it is specified without a list, all extensions are enabled.
|
|
|
|
|
|
|
|
Since extensions are meant to be used by advanced users only, this
|
|
|
|
file does not document which extensions are available or what they
|
|
|
|
do. Look in the ompi/mpiext/ directory to see the extensions; each
|
|
|
|
subdirectory of that directory contains an extension. Each has a
|
|
|
|
README file that describes what it does.
|
|
|
|
|
|
|
|
Using the extensions
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
To reinforce the fact that these extensions are non-standard, you must
|
|
|
|
include a separate header file after <mpi.h> to obtain the function
|
|
|
|
prototypes, constant declarations, etc. For example:
|
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
-----
|
2012-01-03 21:25:37 +04:00
|
|
|
#include <mpi.h>
|
|
|
|
#if defined(OPEN_MPI) && OPEN_MPI
|
|
|
|
#include <mpi-ext.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
MPI_Init(NULL, NULL);
|
2012-02-24 00:39:10 +04:00
|
|
|
|
2012-01-03 21:25:37 +04:00
|
|
|
#if defined(OPEN_MPI) && OPEN_MPI
|
|
|
|
{
|
|
|
|
char ompi_bound[OMPI_AFFINITY_STRING_MAX];
|
|
|
|
char current_binding[OMPI_AFFINITY_STRING_MAX];
|
|
|
|
char exists[OMPI_AFFINITY_STRING_MAX];
|
2012-02-24 00:39:10 +04:00
|
|
|
OMPI_Affinity_str(OMPI_AFFINITY_LAYOUT_FMT, ompi_bound,
|
|
|
|
current_bindings, exists);
|
2012-01-03 21:25:37 +04:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
MPI_Finalize();
|
|
|
|
return 0;
|
|
|
|
}
|
2012-02-24 00:39:10 +04:00
|
|
|
-----
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
Notice that the Open MPI-specific code is surrounded by the #if
|
|
|
|
statement to ensure that it is only ever compiled by Open MPI.
|
|
|
|
|
|
|
|
The Open MPI wrapper compilers (mpicc and friends) should
|
|
|
|
automatically insert all relevant compiler and linker flags necessary
|
|
|
|
to use the extensions. No special flags or steps should be necessary
|
|
|
|
compared to "normal" MPI applications.
|
|
|
|
|
|
|
|
===========================================================================
|
|
|
|
|
|
|
|
Compiling Open MPI Applications
|
|
|
|
-------------------------------
|
|
|
|
|
|
|
|
Open MPI provides "wrapper" compilers that should be used for
|
2013-11-07 21:14:28 +04:00
|
|
|
compiling MPI and OSHMEM applications:
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2013-11-07 21:14:28 +04:00
|
|
|
C: mpicc, oshcc
|
|
|
|
C++: mpiCC, oshCC (or mpic++ if your filesystem is case-insensitive)
|
|
|
|
Fortran: mpifort, oshfort
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
For example:
|
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
shell$ mpicc hello_world_mpi.c -o hello_world_mpi -g
|
|
|
|
shell$
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2013-11-07 21:14:28 +04:00
|
|
|
For OSHMEM applications:
|
|
|
|
|
|
|
|
shell$ oshcc hello_shmem.c -o hello_shmem -g
|
|
|
|
shell$
|
|
|
|
|
2012-01-03 21:25:37 +04:00
|
|
|
All the wrapper compilers do is add a variety of compiler and linker
|
|
|
|
flags to the command line and then invoke a back-end compiler. To be
|
|
|
|
specific: the wrapper compilers do not parse source code at all; they
|
|
|
|
are solely command-line manipulators, and have nothing to do with the
|
|
|
|
actual compilation or linking of programs. The end result is an MPI
|
|
|
|
executable that is properly linked to all the relevant libraries.
|
|
|
|
|
|
|
|
Customizing the behavior of the wrapper compilers is possible (e.g.,
|
|
|
|
changing the compiler [not recommended] or specifying additional
|
|
|
|
compiler/linker flags); see the Open MPI FAQ for more information.
|
|
|
|
|
2014-01-28 19:36:52 +04:00
|
|
|
Alternatively, Open MPI also installs pkg-config(1) configuration
|
|
|
|
files under $libdir/pkgconfig. If pkg-config is configured to find
|
|
|
|
these files, then compiling / linking Open MPI programs can be
|
|
|
|
performed like this:
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
shell$ gcc hello_world_mpi.c -o hello_world_mpi -g \
|
|
|
|
`pkg-config ompi-c --cflags --libs`
|
|
|
|
shell$
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
Open MPI supplies multiple pkg-config(1) configuration files; one for
|
|
|
|
each different wrapper compiler (language):
|
|
|
|
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
ompi Synonym for "ompi-c"; Open MPI applications using the C
|
|
|
|
MPI bindings
|
|
|
|
ompi-c Open MPI applications using the C MPI bindings
|
|
|
|
ompi-cxx Open MPI applications using the C or C++ MPI bindings
|
== Highlights ==
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.
2012-04-18 19:57:29 +04:00
|
|
|
ompi-fort Open MPI applications using the Fortran MPI bindings
|
2012-01-03 21:25:37 +04:00
|
|
|
------------------------------------------------------------------------
|
|
|
|
|
|
|
|
The following pkg-config(1) configuration files *may* be installed,
|
|
|
|
depending on which command line options were specified to Open MPI's
|
|
|
|
configure script. They are not necessary for MPI applications, but
|
|
|
|
may be used by applications that use Open MPI's lower layer support
|
|
|
|
libraries.
|
|
|
|
|
|
|
|
orte: Open MPI Run-Time Environment applicaions
|
|
|
|
opal: Open Portable Access Layer applications
|
|
|
|
|
|
|
|
===========================================================================
|
|
|
|
|
|
|
|
Running Open MPI Applications
|
|
|
|
-----------------------------
|
|
|
|
|
|
|
|
Open MPI supports both mpirun and mpiexec (they are exactly
|
2013-11-07 21:14:28 +04:00
|
|
|
equivalent) to launch MPI applications. For example:
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
shell$ mpirun -np 2 hello_world_mpi
|
|
|
|
or
|
|
|
|
shell$ mpiexec -np 1 hello_world_mpi : -np 1 hello_world_mpi
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
are equivalent. Some of mpiexec's switches (such as -host and -arch)
|
|
|
|
are not yet functional, although they will not error if you try to use
|
|
|
|
them.
|
|
|
|
|
2013-10-04 16:12:18 +04:00
|
|
|
The rsh launcher (which defaults to using ssh) accepts a -hostfile
|
|
|
|
parameter (the option "-machinefile" is equivalent); you can specify a
|
|
|
|
-hostfile parameter indicating an standard mpirun-style hostfile (one
|
|
|
|
hostname per line):
|
2012-01-03 21:25:37 +04:00
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
shell$ mpirun -hostfile my_hostfile -np 2 hello_world_mpi
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
If you intend to run more than one process on a node, the hostfile can
|
|
|
|
use the "slots" attribute. If "slots" is not specified, a count of 1
|
|
|
|
is assumed. For example, using the following hostfile:
|
|
|
|
|
|
|
|
---------------------------------------------------------------------------
|
|
|
|
node1.example.com
|
|
|
|
node2.example.com
|
|
|
|
node3.example.com slots=2
|
|
|
|
node4.example.com slots=4
|
|
|
|
---------------------------------------------------------------------------
|
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
shell$ mpirun -hostfile my_hostfile -np 8 hello_world_mpi
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
will launch MPI_COMM_WORLD rank 0 on node1, rank 1 on node2, ranks 2
|
|
|
|
and 3 on node3, and ranks 4 through 7 on node4.
|
|
|
|
|
|
|
|
Other starters, such as the resource manager / batch scheduling
|
|
|
|
environments, do not require hostfiles (and will ignore the hostfile
|
|
|
|
if it is supplied). They will also launch as many processes as slots
|
|
|
|
have been allocated by the scheduler if no "-np" argument has been
|
|
|
|
provided. For example, running a SLURM job with 8 processors:
|
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
shell$ salloc -n 8 mpirun a.out
|
2012-01-03 21:25:37 +04:00
|
|
|
|
|
|
|
The above command will reserve 8 processors and run 1 copy of mpirun,
|
|
|
|
which will, in turn, launch 8 copies of a.out in a single
|
|
|
|
MPI_COMM_WORLD on the processors that were allocated by SLURM.
|
|
|
|
|
|
|
|
Note that the values of component parameters can be changed on the
|
|
|
|
mpirun / mpiexec command line. This is explained in the section
|
|
|
|
below, "The Modular Component Architecture (MCA)".
|
|
|
|
|
2013-11-07 21:14:28 +04:00
|
|
|
Open MPI supports oshrun to launch OSHMEM applications. For example:
|
|
|
|
|
|
|
|
shell$ oshrun -np 2 hello_world_oshmem
|
|
|
|
|
|
|
|
OSHMEM applications may also be launched directly by resource managers such as
|
|
|
|
SLURM. For example, when OMPI is configured --with-pmi and --with-slurm one may
|
|
|
|
launch OSHMEM applications via srun
|
|
|
|
|
|
|
|
shell$ srun -N 2 hello_world_oshmem
|
|
|
|
|
|
|
|
|
2012-01-03 21:25:37 +04:00
|
|
|
===========================================================================
|
|
|
|
|
|
|
|
The Modular Component Architecture (MCA)
|
|
|
|
|
|
|
|
The MCA is the backbone of Open MPI -- most services and functionality
|
|
|
|
are implemented through MCA components. Here is a list of all the
|
|
|
|
component frameworks in Open MPI:
|
|
|
|
|
|
|
|
---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
MPI component frameworks:
|
|
|
|
-------------------------
|
|
|
|
|
|
|
|
allocator - Memory allocator
|
2013-10-04 15:01:50 +04:00
|
|
|
bcol - Base collective operations
|
2012-01-03 21:25:37 +04:00
|
|
|
bml - BTL management layer
|
|
|
|
btl - MPI point-to-point Byte Transfer Layer, used for MPI
|
|
|
|
point-to-point messages on some types of networks
|
|
|
|
coll - MPI collective algorithms
|
|
|
|
crcp - Checkpoint/restart coordination protocol
|
|
|
|
dpm - MPI-2 dynamic process management
|
2012-01-03 21:58:25 +04:00
|
|
|
fbtl - file byte transfer layer: abstraction for individual
|
|
|
|
read/write operations for OMPIO
|
2011-12-22 23:42:00 +04:00
|
|
|
fcoll - collective read and write operations for MPI I/O
|
|
|
|
fs - file system functions for MPI I/O
|
2005-08-26 17:17:01 +04:00
|
|
|
io - MPI-2 I/O
|
|
|
|
mpool - Memory pooling
|
2006-11-10 20:41:42 +03:00
|
|
|
mtl - Matching transport layer, used for MPI point-to-point
|
|
|
|
messages on some types of networks
|
2009-04-15 00:58:59 +04:00
|
|
|
op - Back end computations for intrinsic MPI_Op operators
|
2007-02-27 23:01:38 +03:00
|
|
|
osc - MPI-2 one-sided communications
|
2005-08-26 17:17:01 +04:00
|
|
|
pml - MPI point-to-point management layer
|
2008-11-15 18:27:05 +03:00
|
|
|
pubsub - MPI-2 publish/subscribe management
|
2005-10-10 23:13:54 +04:00
|
|
|
rcache - Memory registration cache
|
2013-10-04 15:01:50 +04:00
|
|
|
rte - Run-time environment operations
|
|
|
|
sbgp - Collective operation sub-group
|
2011-12-22 23:42:00 +04:00
|
|
|
sharedfp - shared file pointer operations for MPI I/O
|
2005-08-26 17:17:01 +04:00
|
|
|
topo - MPI topology routines
|
2011-12-14 19:44:32 +04:00
|
|
|
vprotocol - Protocols for the "v" PML
|
2005-08-05 16:21:32 +04:00
|
|
|
|
2013-11-07 21:14:28 +04:00
|
|
|
OSHMEM component frameworks:
|
|
|
|
-------------------------
|
|
|
|
|
|
|
|
atomic - OSHMEM atomic operations
|
|
|
|
memheap - OSHMEM memory allocators that support the
|
|
|
|
PGAS memory model
|
|
|
|
scoll - OSHMEM collective operations
|
|
|
|
spml - OSHMEM "pml-like" layer: supports one-sided,
|
|
|
|
point-to-point operations
|
|
|
|
|
|
|
|
|
2009-12-16 04:17:02 +03:00
|
|
|
Back-end run-time environment (RTE) component frameworks:
|
|
|
|
---------------------------------------------------------
|
2005-08-05 16:21:32 +04:00
|
|
|
|
2014-01-28 19:36:52 +04:00
|
|
|
dfs - Distributed file system
|
2005-08-26 17:17:01 +04:00
|
|
|
errmgr - RTE error manager
|
2008-11-15 18:27:05 +03:00
|
|
|
ess - RTE environment-specfic services
|
|
|
|
filem - Remote file management
|
|
|
|
grpcomm - RTE group communications
|
2005-08-26 17:17:01 +04:00
|
|
|
iof - I/O forwarding
|
2006-11-10 20:41:42 +03:00
|
|
|
odls - OpenRTE daemon local launch subsystem
|
2005-08-26 17:17:01 +04:00
|
|
|
oob - Out of band messaging
|
2008-11-15 18:27:05 +03:00
|
|
|
plm - Process lifecycle management
|
2005-08-26 17:17:01 +04:00
|
|
|
ras - Resource allocation system
|
|
|
|
rmaps - Resource mapping system
|
|
|
|
rml - RTE message layer
|
2008-11-15 18:27:05 +03:00
|
|
|
routed - Routing table for the RML
|
2011-12-14 22:26:24 +04:00
|
|
|
sensor - Software and hardware health monitoring
|
2008-11-15 19:03:07 +03:00
|
|
|
snapc - Snapshot coordination
|
2011-12-14 22:26:24 +04:00
|
|
|
sstore - Distributed scalable storage
|
2013-10-04 15:01:50 +04:00
|
|
|
state - RTE state machine
|
2005-08-05 16:21:32 +04:00
|
|
|
|
|
|
|
Miscellaneous frameworks:
|
|
|
|
-------------------------
|
|
|
|
|
2008-11-15 18:27:05 +03:00
|
|
|
backtrace - Debugging call stack backtrace support
|
2011-12-14 19:44:32 +04:00
|
|
|
compress - Compression algorithms
|
2008-11-15 18:27:05 +03:00
|
|
|
crs - Checkpoint and restart service
|
2013-10-04 15:01:50 +04:00
|
|
|
db - Internal database support
|
2011-12-14 19:44:32 +04:00
|
|
|
event - Event library (libevent) versioning support
|
|
|
|
hwloc - Hardware locality (hwloc) versioning support
|
|
|
|
if - OS IP interface support
|
2008-11-15 18:27:05 +03:00
|
|
|
installdirs - Installation directory relocation services
|
|
|
|
memchecker - Run-time memory checking
|
|
|
|
memcpy - Memopy copy support
|
|
|
|
memory - Memory management hooks
|
2009-04-15 00:58:59 +04:00
|
|
|
pstat - Process status
|
2013-11-07 21:14:28 +04:00
|
|
|
shmem - Shared memory support (NOT related to OSHMEM)
|
2008-11-15 18:27:05 +03:00
|
|
|
timer - High-resolution timers
|
2005-08-26 17:17:01 +04:00
|
|
|
|
2005-08-05 16:21:32 +04:00
|
|
|
---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
Each framework typically has one or more components that are used at
|
2008-11-15 18:27:05 +03:00
|
|
|
run-time. For example, the btl framework is used by the MPI layer to
|
|
|
|
send bytes across different types underlying networks. The tcp btl,
|
|
|
|
for example, sends messages across TCP-based networks; the openib btl
|
|
|
|
sends messages across OpenFabrics-based networks; the MX btl sends
|
2010-01-14 22:21:41 +03:00
|
|
|
messages across Myrinet MX / Open-MX networks.
|
2005-08-05 16:21:32 +04:00
|
|
|
|
|
|
|
Each component typically has some tunable parameters that can be
|
|
|
|
changed at run-time. Use the ompi_info command to check a component
|
|
|
|
to see what its tunable parameters are. For example:
|
|
|
|
|
2012-02-24 00:39:10 +04:00
|
|
|
shell$ ompi_info --param btl tcp
|
2005-08-05 16:21:32 +04:00
|
|
|
|
2013-10-04 15:01:50 +04:00
|
|
|
shows a some of parameters (and default values) for the tcp btl
|
|
|
|
component.
|
|
|
|
|
|
|
|
Note that ompi_info only shows a small number a component's MCA
|
|
|
|
parameters by default. Each MCA parameter has a "level" value from 1
|
|
|
|
to 9, corresponding to the MPI-3 MPI_T tool interface levels. In Open
|
|
|
|
MPI, we have interpreted these nine levels as three groups of three:
|
|
|
|
|
|
|
|
1. End user / basic
|
|
|
|
2. End user / detailed
|
|
|
|
3. End user / all
|
|
|
|
|
|
|
|
4. Application tuner / basic
|
|
|
|
5. Application tuner / detailed
|
|
|
|
6. Application tuner / all
|
|
|
|
|
2013-11-07 21:14:28 +04:00
|
|
|
7. MPI/OSHMEM developer / basic
|
|
|
|
8. MPI/OSHMEM developer / detailed
|
|
|
|
9. MPI/OSHMEM developer / all
|
2013-10-04 15:01:50 +04:00
|
|
|
|
|
|
|
Here's how the three sub-groups are defined:
|
|
|
|
|
|
|
|
1. End user: Generally, these are parameters that are required for
|
|
|
|
correctness, meaning that someone may need to set these just to
|
2013-11-07 21:14:28 +04:00
|
|
|
get their MPI/OSHMEM application to run correctly.
|
2013-10-04 15:01:50 +04:00
|
|
|
2. Application tuner: Generally, these are parameters that can be
|
|
|
|
used to tweak MPI application performance.
|
2013-11-07 21:14:28 +04:00
|
|
|
3. MPI/OSHMEM developer: Parameters that either don't fit in the other two,
|
2013-10-04 15:01:50 +04:00
|
|
|
or are specifically intended for debugging / development of Open
|
|
|
|
MPI itself.
|
|
|
|
|
|
|
|
Each sub-group is broken down into three classifications:
|
|
|
|
|
|
|
|
1. Basic: For parameters that everyone in this category will want to
|
|
|
|
see.
|
|
|
|
2. Detailed: Parameters that are useful, but you probably won't need
|
|
|
|
to change them often.
|
|
|
|
3. All: All other parameters -- probably including some fairly
|
|
|
|
esoteric parameters.
|
|
|
|
|
|
|
|
To see *all* available parameters for a given component, specify that
|
|
|
|
ompi_info should use level 9:
|
|
|
|
|
|
|
|
shell$ ompi_info --param btl tcp --level 9
|
2005-08-05 16:21:32 +04:00
|
|
|
|
|
|
|
These values can be overridden at run-time in several ways. At
|
|
|
|
run-time, the following locations are examined (in order) for new
|
|
|
|
values of parameters:
|
|
|
|
|
|
|
|
1. <prefix>/etc/openmpi-mca-params.conf
|
|
|
|
|
|
|
|
This file is intended to set any system-wide default MCA parameter
|
|
|
|
values -- it will apply, by default, to all users who use this Open
|
|
|
|
MPI installation. The default file that is installed contains many
|
|
|
|
comments explaining its format.
|
|
|
|
|
|
|
|
2. $HOME/.openmpi/mca-params.conf
|
|
|
|
|
|
|
|
If this file exists, it should be in the same format as
|
|
|
|
<prefix>/etc/openmpi-mca-params.conf. It is intended to provide
|
|
|
|
per-user default parameter values.
|
|
|
|
|
|
|
|
3. environment variables of the form OMPI_MCA_<name> set equal to a
|
|
|
|
<value>
|
|
|
|
|
|
|
|
Where <name> is the name of the parameter. For example, set the
|
2005-08-08 19:25:59 +04:00
|
|
|
variable named OMPI_MCA_btl_tcp_frag_size to the value 65536
|
2005-08-05 16:21:32 +04:00
|
|
|
(Bourne-style shells):
|
|
|
|
|
2005-08-08 19:25:59 +04:00
|
|
|
shell$ OMPI_MCA_btl_tcp_frag_size=65536
|
|
|
|
shell$ export OMPI_MCA_btl_tcp_frag_size
|
2005-08-05 16:21:32 +04:00
|
|
|
|
2013-11-07 21:14:28 +04:00
|
|
|
4. the mpirun/oshrun command line: --mca <name> <value>
|
2005-08-05 16:21:32 +04:00
|
|
|
|
|
|
|
Where <name> is the name of the parameter. For example:
|
|
|
|
|
2005-08-08 19:25:59 +04:00
|
|
|
shell$ mpirun --mca btl_tcp_frag_size 65536 -np 2 hello_world_mpi
|
2005-08-05 16:21:32 +04:00
|
|
|
|
|
|
|
These locations are checked in order. For example, a parameter value
|
|
|
|
passed on the mpirun command line will override an environment
|
|
|
|
variable; an environment variable will override the system-wide
|
|
|
|
defaults.
|
|
|
|
|
2009-12-16 04:17:02 +03:00
|
|
|
Each component typically activates itself when relavant. For example,
|
|
|
|
the MX component will detect that MX devices are present and will
|
|
|
|
automatically be used for MPI communications. The SLURM component
|
|
|
|
will automatically detect when running inside a SLURM job and activate
|
|
|
|
itself. And so on.
|
|
|
|
|
|
|
|
Components can be manually activated or deactivated if necessary, of
|
|
|
|
course. The most common components that are manually activated,
|
|
|
|
deactivated, or tuned are the "BTL" components -- components that are
|
|
|
|
used for MPI point-to-point communications on many types common
|
|
|
|
networks.
|
|
|
|
|
|
|
|
For example, to *only* activate the TCP and "self" (process loopback)
|
|
|
|
components are used for MPI communications, specify them in a
|
|
|
|
comma-delimited list to the "btl" MCA parameter:
|
|
|
|
|
|
|
|
shell$ mpirun --mca btl tcp,self hello_world_mpi
|
|
|
|
|
|
|
|
To add shared memory support, add "sm" into the command-delimited list
|
|
|
|
(list order does not matter):
|
|
|
|
|
|
|
|
shell$ mpirun --mca btl tcp,sm,self hello_world_mpi
|
|
|
|
|
|
|
|
To specifically deactivate a specific component, the comma-delimited
|
|
|
|
list can be prepended with a "^" to negate it:
|
|
|
|
|
|
|
|
shell$ mpirun --mca btl ^tcp hello_mpi_world
|
|
|
|
|
|
|
|
The above command will use any other BTL component other than the tcp
|
|
|
|
component.
|
|
|
|
|
2005-08-05 16:21:32 +04:00
|
|
|
===========================================================================
|
|
|
|
|
|
|
|
Common Questions
|
|
|
|
----------------
|
|
|
|
|
2005-08-26 17:17:01 +04:00
|
|
|
Many common questions about building and using Open MPI are answered
|
|
|
|
on the FAQ:
|
2005-08-08 19:25:59 +04:00
|
|
|
|
2005-08-26 17:17:01 +04:00
|
|
|
http://www.open-mpi.org/faq/
|
2005-08-05 16:21:32 +04:00
|
|
|
|
|
|
|
===========================================================================
|
|
|
|
|
|
|
|
Got more questions?
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
Found a bug? Got a question? Want to make a suggestion? Want to
|
|
|
|
contribute to Open MPI? Please let us know!
|
|
|
|
|
2009-04-15 00:58:59 +04:00
|
|
|
When submitting questions and problems, be sure to include as much
|
|
|
|
extra information as possible. This web page details all the
|
|
|
|
information that we request in order to provide assistance:
|
|
|
|
|
|
|
|
http://www.open-mpi.org/community/help/
|
|
|
|
|
2005-08-05 16:21:32 +04:00
|
|
|
User-level questions and comments should generally be sent to the
|
|
|
|
user's mailing list (users@open-mpi.org). Because of spam, only
|
|
|
|
subscribers are allowed to post to this list (ensure that you
|
|
|
|
subscribe with and post from *exactly* the same e-mail address --
|
|
|
|
joe@example.com is considered different than
|
|
|
|
joe@mycomputer.example.com!). Visit this page to subscribe to the
|
|
|
|
user's list:
|
|
|
|
|
|
|
|
http://www.open-mpi.org/mailman/listinfo.cgi/users
|
|
|
|
|
|
|
|
Developer-level bug reports, questions, and comments should generally
|
|
|
|
be sent to the developer's mailing list (devel@open-mpi.org). Please
|
|
|
|
do not post the same question to both lists. As with the user's list,
|
|
|
|
only subscribers are allowed to post to the developer's list. Visit
|
|
|
|
the following web page to subscribe:
|
|
|
|
|
|
|
|
http://www.open-mpi.org/mailman/listinfo.cgi/devel
|
|
|
|
|
2007-02-27 23:01:38 +03:00
|
|
|
Make today an Open MPI day!
|