2003-11-22 19:36:58 +03:00
|
|
|
/*
|
2005-11-05 22:57:48 +03:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
2013-07-01 16:40:08 +04:00
|
|
|
* Copyright (c) 2004-2013 The University of Tennessee and The University
|
2005-11-05 22:57:48 +03:00
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2009-05-27 16:46:04 +04:00
|
|
|
* Copyright (c) 2004-2007 High Performance Computing Center Stuttgart,
|
2004-11-28 23:09:25 +03:00
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 15:43:37 +03:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
Fixes trac:4205: ensure sizeof(MPI_Count) <= sizeof(size_t)
- Move the ptrdiff_t tests up higher in configure.ac to be with the
rest of the type tests.
- Create new OMPI_FIND_MPI_AINT_COUNT_OFFSET for finding the
corresponding types of MPI_Aint, MPI_Count, and MPI_Offset.
Consolidate all the old C and Fortran tests into this new macro (and
.m4 file).
- Fix Fortran MPI_*_KIND tests that incorrectly keyed off assumed
types (e.g., int64_t) rather than whatever the corresponding C
MPI_Aint, MPI_Count, MPI_Offset types turned out to be.
- Add new logic to ensure that sizeof(MPI_Count) <= sizeof(size_t),
because our entire PML, BTL, and convertor infrastructure requires
this. As a side effect, just like MPI_Offset the same type of
MPI_Count (because MPI_Count has to be able to hold an MPI_Offset,
so we can't let MPI_Offset be larger than a MPI_Count).
This commit was SVN r30776.
The following Trac tickets were found above:
Ticket 4205 --> https://svn.open-mpi.org/trac/ompi/ticket/4205
2014-02-20 03:04:34 +04:00
|
|
|
* Copyright (c) 2007-2014 Cisco Systems, Inc. All rights reserved.
|
2009-02-24 20:17:33 +03:00
|
|
|
* Copyright (c) 2008-2009 Sun Microsystems, Inc. All rights reserved.
|
2012-06-23 00:54:12 +04:00
|
|
|
* Copyright (c) 2009-2012 Oak Rigde National Laboratory. All rights reserved.
|
2012-02-06 21:35:21 +04:00
|
|
|
* Copyright (c) 2011 Sandia National Laboratories. All rights reserved.
|
2014-02-25 21:36:43 +04:00
|
|
|
* Copyright (c) 2012-2014 Los Alamos Nat Security, LLC. All rights reserved.
|
2013-07-01 16:40:08 +04:00
|
|
|
* Copyright (c) 2011-2013 INRIA. All rights reserved.
|
2004-11-22 04:38:40 +03:00
|
|
|
* $COPYRIGHT$
|
2009-05-27 16:46:04 +04:00
|
|
|
*
|
2004-11-22 04:38:40 +03:00
|
|
|
* Additional copyrights may follow
|
2009-05-27 16:46:04 +04:00
|
|
|
*
|
2004-01-07 10:53:25 +03:00
|
|
|
* $HEADER$
|
2003-11-22 19:36:58 +03:00
|
|
|
*/
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
#ifndef OMPI_MPI_H
|
|
|
|
#define OMPI_MPI_H
|
2003-11-22 19:36:58 +03:00
|
|
|
|
2006-02-14 07:44:00 +03:00
|
|
|
/* The comment below (and the ending partner) are for building fat
|
|
|
|
distributions on platforms that support it. Please do not remove */
|
|
|
|
|
|
|
|
/* @OMPI_BEGIN_CONFIGURE_SECTION@ */
|
|
|
|
|
2005-08-25 04:41:26 +04:00
|
|
|
#ifndef OMPI_CONFIG_H
|
|
|
|
|
|
|
|
/* Only include these if OMPI_CONFIG_H isn't defined (meaning if
|
|
|
|
ompi_config.h hasn't already been included). Otherwise, we'll
|
|
|
|
duplicate all those symbols. OMPI coding standards say that
|
|
|
|
ompi_config.h must be included before all other files, so this
|
|
|
|
should be good enough */
|
|
|
|
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
/* The compiler id which OMPI was built with */
|
|
|
|
#undef OPAL_BUILD_PLATFORM_COMPILER_FAMILYID
|
|
|
|
|
|
|
|
/* The compiler version which OMPI was built with */
|
|
|
|
#undef OPAL_BUILD_PLATFORM_COMPILER_VERSION
|
|
|
|
|
2008-02-26 04:45:32 +03:00
|
|
|
/* Define to 1 if you have the ANSI C header files. */
|
2009-05-07 00:11:28 +04:00
|
|
|
#undef OPAL_STDC_HEADERS
|
2008-02-26 04:45:32 +03:00
|
|
|
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
/* Whether your compiler has __attribute__ deprecated or not */
|
|
|
|
#undef OPAL_HAVE_ATTRIBUTE_DEPRECATED
|
|
|
|
|
|
|
|
/* Whether your compiler has __attribute__ deprecated with the optional argument */
|
|
|
|
#undef OPAL_HAVE_ATTRIBUTE_DEPRECATED_ARGUMENT
|
|
|
|
|
2008-02-26 04:45:32 +03:00
|
|
|
/* Define to 1 if you have the <sys/time.h> header file. */
|
2009-05-07 00:11:28 +04:00
|
|
|
#undef OPAL_HAVE_SYS_TIME_H
|
2008-02-26 04:45:32 +03:00
|
|
|
|
2008-09-10 16:58:30 +04:00
|
|
|
/* Define to 1 if you have the <sys/synch.h> header file. */
|
2009-05-07 00:11:28 +04:00
|
|
|
#undef OPAL_HAVE_SYS_SYNCH_H
|
2008-09-10 16:58:30 +04:00
|
|
|
|
2008-02-26 04:45:32 +03:00
|
|
|
/* Define to 1 if the system has the type `long long'. */
|
2009-05-07 00:11:28 +04:00
|
|
|
#undef OPAL_HAVE_LONG_LONG
|
2008-02-26 04:45:32 +03:00
|
|
|
|
|
|
|
/* The size of a `bool', as computed by sizeof. */
|
2009-05-07 00:11:28 +04:00
|
|
|
#undef OPAL_SIZEOF_BOOL
|
2008-02-26 04:45:32 +03:00
|
|
|
|
|
|
|
/* The size of a `int', as computed by sizeof. */
|
2009-05-07 00:11:28 +04:00
|
|
|
#undef OPAL_SIZEOF_INT
|
2008-02-26 04:45:32 +03:00
|
|
|
|
2009-05-27 16:54:40 +04:00
|
|
|
/* Maximum length of datarep string (default is 128) */
|
|
|
|
#undef OPAL_MAX_DATAREP_STRING
|
|
|
|
|
|
|
|
/* Maximum length of error strings (default is 256) */
|
|
|
|
#undef OPAL_MAX_ERROR_STRING
|
|
|
|
|
|
|
|
/* Maximum length of info keys (default is 36) */
|
|
|
|
#undef OPAL_MAX_INFO_KEY
|
|
|
|
|
|
|
|
/* Maximum length of info vals (default is 256) */
|
|
|
|
#undef OPAL_MAX_INFO_VAL
|
|
|
|
|
|
|
|
/* Maximum length of object names (default is 64) */
|
|
|
|
#undef OPAL_MAX_OBJECT_NAME
|
|
|
|
|
|
|
|
/* Maximum length of port names (default is 1024) */
|
|
|
|
#undef OPAL_MAX_PORT_NAME
|
|
|
|
|
|
|
|
/* Maximum length of processor names (default is 256) */
|
|
|
|
#undef OPAL_MAX_PROCESSOR_NAME
|
|
|
|
|
2008-02-16 21:05:07 +03:00
|
|
|
/* Whether we have FORTRAN LOGICAL*1 or not */
|
2009-06-01 23:02:34 +04:00
|
|
|
#undef OMPI_HAVE_FORTRAN_LOGICAL1
|
2008-02-16 21:05:07 +03:00
|
|
|
|
|
|
|
/* Whether we have FORTRAN LOGICAL*2 or not */
|
2009-06-01 23:02:34 +04:00
|
|
|
#undef OMPI_HAVE_FORTRAN_LOGICAL2
|
2008-02-16 21:05:07 +03:00
|
|
|
|
|
|
|
/* Whether we have FORTRAN LOGICAL*4 or not */
|
2009-06-01 23:02:34 +04:00
|
|
|
#undef OMPI_HAVE_FORTRAN_LOGICAL4
|
2008-02-16 21:05:07 +03:00
|
|
|
|
|
|
|
/* Whether we have FORTRAN LOGICAL*8 or not */
|
2009-06-01 23:02:34 +04:00
|
|
|
#undef OMPI_HAVE_FORTRAN_LOGICAL8
|
2008-02-16 21:05:07 +03:00
|
|
|
|
2005-08-25 04:41:26 +04:00
|
|
|
/* Whether we have FORTRAN INTEGER*1 or not */
|
2009-06-01 23:02:34 +04:00
|
|
|
#undef OMPI_HAVE_FORTRAN_INTEGER1
|
2005-08-25 04:41:26 +04:00
|
|
|
|
|
|
|
/* Whether we have FORTRAN INTEGER*16 or not */
|
2009-06-01 23:02:34 +04:00
|
|
|
#undef OMPI_HAVE_FORTRAN_INTEGER16
|
2005-08-25 04:41:26 +04:00
|
|
|
|
|
|
|
/* Whether we have FORTRAN INTEGER*2 or not */
|
2009-06-01 23:02:34 +04:00
|
|
|
#undef OMPI_HAVE_FORTRAN_INTEGER2
|
2005-08-25 04:41:26 +04:00
|
|
|
|
|
|
|
/* Whether we have FORTRAN INTEGER*4 or not */
|
2009-06-01 23:02:34 +04:00
|
|
|
#undef OMPI_HAVE_FORTRAN_INTEGER4
|
2005-08-25 04:41:26 +04:00
|
|
|
|
|
|
|
/* Whether we have FORTRAN INTEGER*8 or not */
|
2009-06-01 23:02:34 +04:00
|
|
|
#undef OMPI_HAVE_FORTRAN_INTEGER8
|
2005-08-25 04:41:26 +04:00
|
|
|
|
|
|
|
/* Whether we have FORTRAN REAL*16 or not */
|
2009-06-01 23:02:34 +04:00
|
|
|
#undef OMPI_HAVE_FORTRAN_REAL16
|
2005-08-25 04:41:26 +04:00
|
|
|
|
2007-06-19 09:03:11 +04:00
|
|
|
/* Whether we have FORTRAN REAL*2 or not */
|
2009-06-01 23:02:34 +04:00
|
|
|
#undef OMPI_HAVE_FORTRAN_REAL2
|
2007-06-19 09:03:11 +04:00
|
|
|
|
2005-08-25 04:41:26 +04:00
|
|
|
/* Whether we have FORTRAN REAL*4 or not */
|
2009-06-01 23:02:34 +04:00
|
|
|
#undef OMPI_HAVE_FORTRAN_REAL4
|
2005-08-25 04:41:26 +04:00
|
|
|
|
|
|
|
/* Whether we have FORTRAN REAL*8 or not */
|
2009-06-01 23:02:34 +04:00
|
|
|
#undef OMPI_HAVE_FORTRAN_REAL8
|
2005-08-25 04:41:26 +04:00
|
|
|
|
2011-01-13 09:08:54 +03:00
|
|
|
/* Whether we have float _Complex or not */
|
|
|
|
#undef HAVE_FLOAT__COMPLEX
|
|
|
|
|
|
|
|
/* Whether we have double _Complex or not */
|
|
|
|
#undef HAVE_DOUBLE__COMPLEX
|
|
|
|
|
|
|
|
/* Whether we have long double _Complex or not */
|
|
|
|
#undef HAVE_LONG_DOUBLE__COMPLEX
|
|
|
|
|
Fixes trac:4205: ensure sizeof(MPI_Count) <= sizeof(size_t)
- Move the ptrdiff_t tests up higher in configure.ac to be with the
rest of the type tests.
- Create new OMPI_FIND_MPI_AINT_COUNT_OFFSET for finding the
corresponding types of MPI_Aint, MPI_Count, and MPI_Offset.
Consolidate all the old C and Fortran tests into this new macro (and
.m4 file).
- Fix Fortran MPI_*_KIND tests that incorrectly keyed off assumed
types (e.g., int64_t) rather than whatever the corresponding C
MPI_Aint, MPI_Count, MPI_Offset types turned out to be.
- Add new logic to ensure that sizeof(MPI_Count) <= sizeof(size_t),
because our entire PML, BTL, and convertor infrastructure requires
this. As a side effect, just like MPI_Offset the same type of
MPI_Count (because MPI_Count has to be able to hold an MPI_Offset,
so we can't let MPI_Offset be larger than a MPI_Count).
This commit was SVN r30776.
The following Trac tickets were found above:
Ticket 4205 --> https://svn.open-mpi.org/trac/ompi/ticket/4205
2014-02-20 03:04:34 +04:00
|
|
|
/* Type of MPI_Aint */
|
|
|
|
#undef OMPI_MPI_AINT_TYPE
|
|
|
|
|
|
|
|
/* Type of MPI_Offset */
|
2005-11-30 06:16:24 +03:00
|
|
|
#undef OMPI_MPI_OFFSET_TYPE
|
2005-08-25 04:41:26 +04:00
|
|
|
|
2011-01-13 09:08:54 +03:00
|
|
|
/* MPI datatype corresponding to MPI_Offset */
|
|
|
|
#undef OMPI_OFFSET_DATATYPE
|
|
|
|
|
|
|
|
/* Size of the MPI_Offset corresponding type */
|
|
|
|
#undef OMPI_MPI_OFFSET_SIZE
|
|
|
|
|
2013-07-23 19:35:14 +04:00
|
|
|
/* Type of MPI_Count */
|
|
|
|
#undef OMPI_MPI_COUNT_TYPE
|
|
|
|
|
2006-10-20 07:24:59 +04:00
|
|
|
/* type to use for ptrdiff_t, if it does not exist, set to ptrdiff_t if it does exist */
|
2009-05-07 00:11:28 +04:00
|
|
|
#undef OPAL_PTRDIFF_TYPE
|
2006-10-20 07:24:59 +04:00
|
|
|
|
2005-08-25 04:41:26 +04:00
|
|
|
/* Whether we want MPI cxx support or not */
|
== 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
|
|
|
#undef OMPI_BUILD_CXX_BINDINGS
|
2005-08-25 04:41:26 +04:00
|
|
|
|
2006-10-16 03:50:24 +04:00
|
|
|
/* do we want to try to work around C++ bindings SEEK_* issue? */
|
|
|
|
#undef OMPI_WANT_MPI_CXX_SEEK
|
|
|
|
|
2006-08-20 02:55:59 +04:00
|
|
|
/* Whether a const_cast on a 2-d array will work with the C++ compiler */
|
|
|
|
#undef OMPI_CXX_SUPPORTS_2D_CONST_CAST
|
|
|
|
|
2012-04-27 05:09:37 +04:00
|
|
|
/* Whether OMPI was built with parameter checking or not */
|
|
|
|
#undef OMPI_PARAM_CHECK
|
2005-08-25 04:41:26 +04:00
|
|
|
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
/* Enable warnings in wrong usage (e.g. deprecated) in user-level code */
|
|
|
|
/* XXX This __disabled__ by default for Open MPI-1.5, but will be __enabled__ for Open MPI-1.7 by default */
|
|
|
|
/* Users should be notified about this proposed change. */
|
|
|
|
#ifndef OMPI_WANT_MPI_INTERFACE_WARNING
|
|
|
|
#undef OMPI_WANT_MPI_INTERFACE_WARNING
|
|
|
|
#endif
|
|
|
|
|
2005-08-25 04:41:26 +04:00
|
|
|
/* Whether or not we have compiled with C++ exceptions support */
|
|
|
|
#undef OMPI_HAVE_CXX_EXCEPTION_SUPPORT
|
|
|
|
|
2007-02-07 06:19:44 +03:00
|
|
|
/* Major, minor, and release version of Open MPI */
|
|
|
|
#undef OMPI_MAJOR_VERSION
|
|
|
|
#undef OMPI_MINOR_VERSION
|
|
|
|
#undef OMPI_RELEASE_VERSION
|
|
|
|
|
2005-08-25 18:07:28 +04:00
|
|
|
/* A type that allows us to have sentinel type values that are still
|
|
|
|
valid */
|
2009-06-01 23:02:34 +04:00
|
|
|
#undef ompi_fortran_bogus_type_t
|
2005-08-25 18:07:28 +04:00
|
|
|
|
2005-08-25 04:41:26 +04:00
|
|
|
/* C type corresponding to FORTRAN INTEGER */
|
2009-06-01 23:02:34 +04:00
|
|
|
#undef ompi_fortran_integer_t
|
2005-08-25 04:41:26 +04:00
|
|
|
|
2007-05-04 13:03:37 +04:00
|
|
|
/* Whether C compiler supports -fvisibility */
|
2009-05-07 00:11:28 +04:00
|
|
|
#undef OPAL_C_HAVE_VISIBILITY
|
2007-05-04 13:03:37 +04:00
|
|
|
|
2007-08-19 01:35:51 +04:00
|
|
|
/* Whether OMPI should provide MPI File interface */
|
|
|
|
#undef OMPI_PROVIDE_MPI_FILE_INTERFACE
|
|
|
|
|
2005-08-25 04:41:26 +04:00
|
|
|
#ifndef OMPI_DECLSPEC
|
2007-05-04 13:03:37 +04:00
|
|
|
# if defined(WIN32) || defined(_WIN32)
|
2007-09-12 19:32:54 +04:00
|
|
|
# if defined(OMPI_IMPORTS)
|
|
|
|
# define OMPI_DECLSPEC __declspec(dllimport)
|
|
|
|
# else
|
|
|
|
# define OMPI_DECLSPEC
|
|
|
|
# endif /* defined(OMPI_IMPORTS) */
|
2007-05-04 13:03:37 +04:00
|
|
|
# else
|
2009-05-07 00:11:28 +04:00
|
|
|
# if OPAL_C_HAVE_VISIBILITY == 1
|
2007-05-04 13:03:37 +04:00
|
|
|
# define OMPI_DECLSPEC __attribute__((visibility("default")))
|
|
|
|
# else
|
|
|
|
# define OMPI_DECLSPEC
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
# endif
|
2007-05-04 13:03:37 +04:00
|
|
|
# endif
|
2005-08-25 04:41:26 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef MPI_Fint
|
2009-06-01 23:02:34 +04:00
|
|
|
/* MPI_Fint is the same as ompi_fortran_INTEGER_t */
|
|
|
|
#define MPI_Fint ompi_fortran_integer_t
|
2005-08-25 04:41:26 +04:00
|
|
|
#endif
|
|
|
|
|
2006-10-20 07:24:59 +04:00
|
|
|
#endif /* #ifndef OMPI_CONFIG_H */
|
2005-08-25 04:41:26 +04:00
|
|
|
|
2006-02-14 07:44:00 +03:00
|
|
|
/* @OMPI_END_CONFIGURE_SECTION@ */
|
|
|
|
|
2006-10-20 07:24:59 +04:00
|
|
|
/* include for ptrdiff_t */
|
2009-05-07 00:11:28 +04:00
|
|
|
#ifdef OPAL_STDC_HEADERS
|
2006-10-20 07:24:59 +04:00
|
|
|
#include <stddef.h>
|
|
|
|
#endif
|
|
|
|
|
clean up the OMPI_BUILDING #define. Rather than being defined to 1 if
we are part of the source tree and not defined otherwise, we are going
with an always defined if ompi_config.h is included policy. If
ompi_config.h is included before mpi.h or before OMPI_BUILDING is set,
it will set OMPI_BUILDING to 1 and enable all the internal code that
is in ompi_config_bottom.h. Otherwise, it will only include the
system configuration data (enough for defining the C and C++ interfaces
to MPI, but not perturbing the user environment).
This should fix the problems with bool and the like that the Eclipse
folks were seeing. It also cleans up some build system hacks that
we had along the way.
Also, don't use int64_t as the default size of MPI_Offset, because it
requires us including stdint.h in mpi.h, which is something we really
shouldn't be doing.
And finally, fix a ROMIO Makefile that didn't set -DOMPI_BUILDING=1,
as ROMIO includes mpi.h, but not ompi_config.h
This commit was SVN r5430.
2005-04-19 07:51:20 +04:00
|
|
|
#ifndef OMPI_BUILDING
|
|
|
|
#define OMPI_BUILDING 0
|
|
|
|
#endif
|
|
|
|
|
2004-01-08 16:36:59 +03:00
|
|
|
|
2004-01-10 11:17:22 +03:00
|
|
|
/*
|
|
|
|
* Just in case you need it. :-)
|
|
|
|
*/
|
2005-04-27 14:23:32 +04:00
|
|
|
#define OPEN_MPI 1
|
2004-01-07 10:53:25 +03:00
|
|
|
|
2004-01-10 11:17:22 +03:00
|
|
|
/*
|
|
|
|
* MPI version
|
|
|
|
*/
|
2014-03-12 03:01:58 +04:00
|
|
|
#define MPI_VERSION 3
|
|
|
|
#define MPI_SUBVERSION 0
|
2004-01-10 11:17:22 +03:00
|
|
|
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Do we want MPI interface deprecated function warnings? This is
|
|
|
|
* only relevant if we're not building Open MPI (i.e., we're compiling an
|
|
|
|
* MPI application).
|
|
|
|
*/
|
|
|
|
#if !(OMPI_BUILDING || \
|
|
|
|
(defined(OMPI_BUILDING_CXX_BINDINGS_LIBRARY) && \
|
|
|
|
OMPI_BUILDING_CXX_BINDINGS_LIBRARY))
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Figure out which compiler is being invoked (in order to compare if
|
|
|
|
* it was different than what OMPI was built with).
|
|
|
|
*/
|
|
|
|
# include "mpi_portable_platform.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* If we're currently using the same compiler that was used to
|
|
|
|
* build Open MPI, enable compile-time warning of user-level code
|
|
|
|
* (e.g. usage of deprecated functions).
|
|
|
|
*/
|
|
|
|
# if (OPAL_BUILD_PLATFORM_COMPILER_FAMILYID == PLATFORM_COMPILER_FAMILYID) && \
|
|
|
|
(OPAL_BUILD_PLATFORM_COMPILER_VERSION == PLATFORM_COMPILER_VERSION)
|
|
|
|
|
|
|
|
# if OMPI_WANT_MPI_INTERFACE_WARNING
|
|
|
|
# if OPAL_HAVE_ATTRIBUTE_DEPRECATED
|
|
|
|
# if OPAL_HAVE_ATTRIBUTE_DEPRECATED_ARGUMENT
|
|
|
|
# define __mpi_interface_deprecated__(msg) __attribute__((__deprecated__(msg)))
|
|
|
|
# else
|
|
|
|
# define __mpi_interface_deprecated__(msg) __attribute__((__deprecated__))
|
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* If we didn't define __mpi_interface_deprecated__ above, then we
|
|
|
|
* don't want it, so define it to empty (can't use #undef in the logic
|
2009-05-27 16:46:04 +04:00
|
|
|
* above because autoconf will comment it out).
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
*/
|
|
|
|
#if !defined(__mpi_interface_deprecated__)
|
|
|
|
# define __mpi_interface_deprecated__(msg)
|
|
|
|
#endif
|
|
|
|
|
2004-09-14 14:55:10 +04:00
|
|
|
/*
|
|
|
|
* To accomodate programs written for MPI implementations that use a
|
|
|
|
* straight ROMIO import
|
|
|
|
*/
|
2007-08-19 01:35:51 +04:00
|
|
|
#if !OMPI_BUILDING && OMPI_PROVIDE_MPI_FILE_INTERFACE
|
2004-09-14 14:55:10 +04:00
|
|
|
#define MPIO_Request MPI_Request
|
|
|
|
#define MPIO_Test MPI_Test
|
|
|
|
#define MPIO_Wait MPI_Wait
|
|
|
|
#endif
|
|
|
|
|
2009-05-05 20:41:26 +04:00
|
|
|
/*
|
|
|
|
* When initializing global pointers to Open MPI internally-defined
|
|
|
|
* structs, some compilers warn about type-punning to incomplete
|
|
|
|
* types. Therefore, when full struct definitions are unavailable
|
|
|
|
* (when not building Open MPI), cast to an opaque (void *) pointer to
|
|
|
|
* disable any strict-aliasing optimizations. Don't cast to (void *)
|
|
|
|
* when building Open MPI so that we actually get the benefit of type
|
|
|
|
* checking (because we *do* have the full type definitions available
|
|
|
|
* when building OMPI).
|
|
|
|
*/
|
|
|
|
#if !OMPI_BUILDING
|
|
|
|
#define OMPI_PREDEFINED_GLOBAL(type, global) ((type) ((void *) &(global)))
|
|
|
|
#else
|
|
|
|
#define OMPI_PREDEFINED_GLOBAL(type, global) ((type) &(global))
|
|
|
|
#endif
|
|
|
|
|
2004-10-21 02:31:03 +04:00
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2012-06-23 00:54:12 +04:00
|
|
|
|
2004-01-10 11:17:22 +03:00
|
|
|
/*
|
|
|
|
* Typedefs
|
|
|
|
*/
|
2006-10-20 07:24:59 +04:00
|
|
|
|
Fixes trac:4205: ensure sizeof(MPI_Count) <= sizeof(size_t)
- Move the ptrdiff_t tests up higher in configure.ac to be with the
rest of the type tests.
- Create new OMPI_FIND_MPI_AINT_COUNT_OFFSET for finding the
corresponding types of MPI_Aint, MPI_Count, and MPI_Offset.
Consolidate all the old C and Fortran tests into this new macro (and
.m4 file).
- Fix Fortran MPI_*_KIND tests that incorrectly keyed off assumed
types (e.g., int64_t) rather than whatever the corresponding C
MPI_Aint, MPI_Count, MPI_Offset types turned out to be.
- Add new logic to ensure that sizeof(MPI_Count) <= sizeof(size_t),
because our entire PML, BTL, and convertor infrastructure requires
this. As a side effect, just like MPI_Offset the same type of
MPI_Count (because MPI_Count has to be able to hold an MPI_Offset,
so we can't let MPI_Offset be larger than a MPI_Count).
This commit was SVN r30776.
The following Trac tickets were found above:
Ticket 4205 --> https://svn.open-mpi.org/trac/ompi/ticket/4205
2014-02-20 03:04:34 +04:00
|
|
|
typedef OMPI_MPI_AINT_TYPE MPI_Aint;
|
2005-11-30 06:16:24 +03:00
|
|
|
typedef OMPI_MPI_OFFSET_TYPE MPI_Offset;
|
2013-07-23 19:35:14 +04:00
|
|
|
typedef OMPI_MPI_COUNT_TYPE MPI_Count;
|
2004-06-07 19:33:53 +04:00
|
|
|
typedef struct ompi_communicator_t *MPI_Comm;
|
|
|
|
typedef struct ompi_datatype_t *MPI_Datatype;
|
|
|
|
typedef struct ompi_errhandler_t *MPI_Errhandler;
|
2007-08-19 01:35:51 +04:00
|
|
|
#if OMPI_PROVIDE_MPI_FILE_INTERFACE
|
2004-06-07 19:33:53 +04:00
|
|
|
typedef struct ompi_file_t *MPI_File;
|
2007-08-19 01:35:51 +04:00
|
|
|
#endif
|
2004-06-07 19:33:53 +04:00
|
|
|
typedef struct ompi_group_t *MPI_Group;
|
|
|
|
typedef struct ompi_info_t *MPI_Info;
|
|
|
|
typedef struct ompi_op_t *MPI_Op;
|
|
|
|
typedef struct ompi_request_t *MPI_Request;
|
2012-02-06 21:35:21 +04:00
|
|
|
typedef struct ompi_message_t *MPI_Message;
|
2004-06-07 19:33:53 +04:00
|
|
|
typedef struct ompi_status_public_t MPI_Status;
|
|
|
|
typedef struct ompi_win_t *MPI_Win;
|
2013-04-24 19:59:23 +04:00
|
|
|
typedef struct mca_base_var_enum_t *MPI_T_enum;
|
|
|
|
typedef struct ompi_mpit_cvar_handle_t *MPI_T_cvar_handle;
|
2013-07-16 20:02:13 +04:00
|
|
|
typedef struct mca_base_pvar_handle_t *MPI_T_pvar_handle;
|
|
|
|
typedef struct mca_base_pvar_session_t *MPI_T_pvar_session;
|
2004-01-10 11:17:22 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* MPI_Status
|
|
|
|
*/
|
2009-05-27 16:46:04 +04:00
|
|
|
struct ompi_status_public_t {
|
2010-07-22 05:59:33 +04:00
|
|
|
/* These fields are publicly defined in the MPI specification.
|
|
|
|
User applications may freely read from these fields. */
|
|
|
|
int MPI_SOURCE;
|
|
|
|
int MPI_TAG;
|
|
|
|
int MPI_ERROR;
|
|
|
|
/* The following two fields are internal to the Open MPI
|
|
|
|
implementation and should not be accessed by MPI applications.
|
|
|
|
They are subject to change at any time. These are not the
|
|
|
|
droids you're looking for. */
|
|
|
|
int _cancelled;
|
|
|
|
size_t _ucount;
|
2004-01-10 21:09:15 +03:00
|
|
|
};
|
2004-06-07 19:33:53 +04:00
|
|
|
typedef struct ompi_status_public_t ompi_status_public_t;
|
2004-01-10 11:17:22 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* User typedefs
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
*
|
|
|
|
* Even though MPI_Copy_function and MPI_Delete_function are
|
|
|
|
* deprecated, we do not use the attributes marking them as such,
|
|
|
|
* because otherwise the compiler will warn for all the functions that
|
|
|
|
* are declared using them (e.g., MPI_Keyval_create).
|
2004-01-10 11:17:22 +03:00
|
|
|
*/
|
2004-10-22 21:47:53 +04:00
|
|
|
typedef int (MPI_Copy_function)(MPI_Comm, int, void *,
|
|
|
|
void *, void *, int *);
|
|
|
|
typedef int (MPI_Delete_function)(MPI_Comm, int, void *, void *);
|
|
|
|
typedef int (MPI_Datarep_extent_function)(MPI_Datatype, MPI_Aint *, void *);
|
2009-05-27 16:46:04 +04:00
|
|
|
typedef int (MPI_Datarep_conversion_function)(void *, MPI_Datatype,
|
2004-10-22 21:47:53 +04:00
|
|
|
int, void *, MPI_Offset, void *);
|
2009-10-22 20:50:45 +04:00
|
|
|
typedef void (MPI_Comm_errhandler_function)(MPI_Comm *, int *, ...);
|
|
|
|
typedef MPI_Comm_errhandler_function MPI_Comm_errhandler_fn
|
|
|
|
__mpi_interface_deprecated__("MPI_Comm_errhandler_fn was deprecated in MPI-2.2; use MPI_Comm_errhandler_function instead");
|
|
|
|
|
2007-08-19 01:35:51 +04:00
|
|
|
#if OMPI_PROVIDE_MPI_FILE_INTERFACE
|
|
|
|
/* This is a little hackish, but errhandler.h needs space for a
|
|
|
|
MPI_File_errhandler_fn. While it could just be removed, this
|
|
|
|
allows us to maintain a stable ABI within OMPI, at least for
|
|
|
|
apps that don't use MPI I/O. */
|
|
|
|
typedef void (ompi_file_errhandler_fn)(MPI_File *, int *, ...);
|
2009-10-22 20:50:45 +04:00
|
|
|
typedef ompi_file_errhandler_fn MPI_File_errhandler_fn
|
|
|
|
__mpi_interface_deprecated__("MPI_File_errhandler_fn was deprecated in MPI-2.2; use MPI_File_errhandler_function instead");
|
|
|
|
typedef ompi_file_errhandler_fn MPI_File_errhandler_function;
|
2007-08-19 01:35:51 +04:00
|
|
|
#else
|
|
|
|
struct ompi_file_t;
|
|
|
|
typedef void (ompi_file_errhandler_fn)(struct ompi_file_t**, int *, ...);
|
|
|
|
#endif
|
2009-10-22 20:50:45 +04:00
|
|
|
typedef void (MPI_Win_errhandler_function)(MPI_Win *, int *, ...);
|
|
|
|
typedef MPI_Win_errhandler_function MPI_Win_errhandler_fn
|
|
|
|
__mpi_interface_deprecated__("MPI_Win_errhandler_fn was deprecated in MPI-2.2; use MPI_Win_errhandler_function instead");
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
/* MPI_Handler_function is deprecated, but we don't mark it as
|
|
|
|
such because otherwise the MPI_Errhandler_create() declaration
|
|
|
|
would cause a warning to be issued */
|
2004-10-22 21:47:53 +04:00
|
|
|
typedef void (MPI_Handler_function)(MPI_Comm *, int *, ...);
|
|
|
|
typedef void (MPI_User_function)(void *, void *, int *, MPI_Datatype *);
|
|
|
|
typedef int (MPI_Comm_copy_attr_function)(MPI_Comm, int, void *,
|
2004-01-10 11:17:22 +03:00
|
|
|
void *, void *, int *);
|
2004-10-22 21:47:53 +04:00
|
|
|
typedef int (MPI_Comm_delete_attr_function)(MPI_Comm, int, void *, void *);
|
|
|
|
typedef int (MPI_Type_copy_attr_function)(MPI_Datatype, int, void *,
|
2004-01-10 11:17:22 +03:00
|
|
|
void *, void *, int *);
|
2004-10-22 21:47:53 +04:00
|
|
|
typedef int (MPI_Type_delete_attr_function)(MPI_Datatype, int,
|
2004-01-10 11:17:22 +03:00
|
|
|
void *, void *);
|
2004-10-22 21:47:53 +04:00
|
|
|
typedef int (MPI_Win_copy_attr_function)(MPI_Win, int, void *,
|
2004-01-10 11:17:22 +03:00
|
|
|
void *, void *, int *);
|
2004-10-22 21:47:53 +04:00
|
|
|
typedef int (MPI_Win_delete_attr_function)(MPI_Win, int, void *, void *);
|
|
|
|
typedef int (MPI_Grequest_query_function)(void *, MPI_Status *);
|
|
|
|
typedef int (MPI_Grequest_free_function)(void *);
|
2009-05-27 16:46:04 +04:00
|
|
|
typedef int (MPI_Grequest_cancel_function)(void *, int);
|
2003-11-22 19:36:58 +03:00
|
|
|
|
2004-01-10 11:17:22 +03:00
|
|
|
/*
|
|
|
|
* Miscellaneous constants
|
|
|
|
*/
|
2009-05-27 16:54:40 +04:00
|
|
|
#define MPI_ANY_SOURCE -1 /* match any source rank */
|
|
|
|
#define MPI_PROC_NULL -2 /* rank of null process */
|
|
|
|
#define MPI_ROOT -4 /* special value for intercomms */
|
|
|
|
#define MPI_ANY_TAG -1 /* match any message tag */
|
|
|
|
#define MPI_MAX_PROCESSOR_NAME OPAL_MAX_PROCESSOR_NAME /* max proc. name length */
|
|
|
|
#define MPI_MAX_ERROR_STRING OPAL_MAX_ERROR_STRING /* max error message length */
|
|
|
|
#define MPI_MAX_OBJECT_NAME OPAL_MAX_OBJECT_NAME /* max object name length */
|
2012-02-03 03:57:09 +04:00
|
|
|
#define MPI_MAX_LIBRARY_VERSION_STRING 256 /* max length of library version string */
|
2009-05-27 16:54:40 +04:00
|
|
|
#define MPI_UNDEFINED -32766 /* undefined stuff */
|
2013-07-01 16:40:08 +04:00
|
|
|
#define MPI_DIST_GRAPH 3 /* dist graph topology */
|
2009-05-27 16:54:40 +04:00
|
|
|
#define MPI_CART 1 /* cartesian topology */
|
|
|
|
#define MPI_GRAPH 2 /* graph topology */
|
|
|
|
#define MPI_KEYVAL_INVALID -1 /* invalid key value */
|
2004-01-10 11:17:22 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* More constants
|
|
|
|
*/
|
2013-07-01 16:40:08 +04:00
|
|
|
#define MPI_UNWEIGHTED ((void *) 2) /* unweighted graph */
|
2009-05-27 16:54:40 +04:00
|
|
|
#define MPI_BOTTOM ((void *) 0) /* base reference address */
|
|
|
|
#define MPI_IN_PLACE ((void *) 1) /* in place buffer */
|
|
|
|
#define MPI_BSEND_OVERHEAD 128 /* size of bsend header + ptr */
|
|
|
|
#define MPI_MAX_INFO_KEY OPAL_MAX_INFO_KEY /* max info key length */
|
|
|
|
#define MPI_MAX_INFO_VAL OPAL_MAX_INFO_VAL /* max info value length */
|
|
|
|
#define MPI_ARGV_NULL ((char **) 0) /* NULL argument vector */
|
|
|
|
#define MPI_ARGVS_NULL ((char ***) 0) /* NULL argument vectors */
|
|
|
|
#define MPI_ERRCODES_IGNORE ((int *) 0) /* don't return error codes */
|
|
|
|
#define MPI_MAX_PORT_NAME OPAL_MAX_PORT_NAME /* max port name length */
|
|
|
|
#define MPI_ORDER_C 0 /* C row major order */
|
|
|
|
#define MPI_ORDER_FORTRAN 1 /* Fortran column major order */
|
|
|
|
#define MPI_DISTRIBUTE_BLOCK 0 /* block distribution */
|
|
|
|
#define MPI_DISTRIBUTE_CYCLIC 1 /* cyclic distribution */
|
|
|
|
#define MPI_DISTRIBUTE_NONE 2 /* not distributed */
|
|
|
|
#define MPI_DISTRIBUTE_DFLT_DARG (-1) /* default distribution arg */
|
2004-01-10 11:17:22 +03:00
|
|
|
|
2007-08-19 01:35:51 +04:00
|
|
|
#if OMPI_PROVIDE_MPI_FILE_INTERFACE
|
2004-09-14 14:55:10 +04:00
|
|
|
/*
|
|
|
|
* Since these values are arbitrary to Open MPI, we might as well make
|
|
|
|
* them the same as ROMIO for ease of mapping. These values taken
|
|
|
|
* from ROMIO's mpio.h file.
|
|
|
|
*/
|
2009-05-27 16:46:04 +04:00
|
|
|
#define MPI_MODE_CREATE 1 /* ADIO_CREATE */
|
2004-09-14 14:55:10 +04:00
|
|
|
#define MPI_MODE_RDONLY 2 /* ADIO_RDONLY */
|
|
|
|
#define MPI_MODE_WRONLY 4 /* ADIO_WRONLY */
|
|
|
|
#define MPI_MODE_RDWR 8 /* ADIO_RDWR */
|
|
|
|
#define MPI_MODE_DELETE_ON_CLOSE 16 /* ADIO_DELETE_ON_CLOSE */
|
|
|
|
#define MPI_MODE_UNIQUE_OPEN 32 /* ADIO_UNIQUE_OPEN */
|
|
|
|
#define MPI_MODE_EXCL 64 /* ADIO_EXCL */
|
|
|
|
#define MPI_MODE_APPEND 128 /* ADIO_APPEND */
|
|
|
|
#define MPI_MODE_SEQUENTIAL 256 /* ADIO_SEQUENTIAL */
|
|
|
|
|
|
|
|
#define MPI_DISPLACEMENT_CURRENT -54278278
|
|
|
|
|
2009-05-27 16:54:40 +04:00
|
|
|
#define MPI_SEEK_SET 600
|
|
|
|
#define MPI_SEEK_CUR 602
|
|
|
|
#define MPI_SEEK_END 604
|
2004-09-14 14:55:10 +04:00
|
|
|
|
2009-06-01 17:58:37 +04:00
|
|
|
/* Max data representation length */
|
2013-09-27 01:55:08 +04:00
|
|
|
#define MPI_MAX_DATAREP_STRING OPAL_MAX_DATAREP_STRING
|
2007-08-19 01:35:51 +04:00
|
|
|
|
2009-06-01 17:58:37 +04:00
|
|
|
#endif /* #if OMPI_PROVIDE_MPI_FILE_INTERFACE */
|
2009-06-01 16:44:53 +04:00
|
|
|
|
2006-01-28 18:38:37 +03:00
|
|
|
/*
|
|
|
|
* MPI-2 One-Sided Communications asserts
|
|
|
|
*/
|
|
|
|
#define MPI_MODE_NOCHECK 1
|
|
|
|
#define MPI_MODE_NOPRECEDE 2
|
|
|
|
#define MPI_MODE_NOPUT 4
|
|
|
|
#define MPI_MODE_NOSTORE 8
|
|
|
|
#define MPI_MODE_NOSUCCEED 16
|
|
|
|
|
|
|
|
#define MPI_LOCK_EXCLUSIVE 1
|
|
|
|
#define MPI_LOCK_SHARED 2
|
|
|
|
|
2014-02-25 21:36:43 +04:00
|
|
|
#define MPI_WIN_FLAVOR_CREATE 1
|
|
|
|
#define MPI_WIN_FLAVOR_ALLOCATE 2
|
|
|
|
#define MPI_WIN_FLAVOR_DYNAMIC 3
|
|
|
|
#define MPI_WIN_FLAVOR_SHARED 4
|
|
|
|
|
|
|
|
#define MPI_WIN_UNIFIED 0
|
|
|
|
#define MPI_WIN_SEPARATE 1
|
2004-09-14 14:55:10 +04:00
|
|
|
|
2004-01-10 11:17:22 +03:00
|
|
|
/*
|
|
|
|
* Predefined attribute keyvals
|
2004-09-16 04:00:09 +04:00
|
|
|
*
|
|
|
|
* DO NOT CHANGE THE ORDER WITHOUT ALSO CHANGING THE ORDER IN
|
2005-09-27 21:47:21 +04:00
|
|
|
* src/attribute/attribute_predefined.c and mpif.h.in.
|
2004-01-10 11:17:22 +03:00
|
|
|
*/
|
|
|
|
enum {
|
2004-09-16 04:00:09 +04:00
|
|
|
/* MPI-1 */
|
|
|
|
MPI_TAG_UB,
|
|
|
|
MPI_HOST,
|
|
|
|
MPI_IO,
|
|
|
|
MPI_WTIME_IS_GLOBAL,
|
|
|
|
|
|
|
|
/* MPI-2 */
|
|
|
|
MPI_APPNUM,
|
|
|
|
MPI_LASTUSEDCODE,
|
|
|
|
MPI_UNIVERSE_SIZE,
|
|
|
|
MPI_WIN_BASE,
|
|
|
|
MPI_WIN_SIZE,
|
|
|
|
MPI_WIN_DISP_UNIT,
|
2014-02-25 21:36:43 +04:00
|
|
|
MPI_WIN_CREATE_FLAVOR,
|
|
|
|
MPI_WIN_MODEL,
|
2004-09-16 04:00:09 +04:00
|
|
|
|
|
|
|
/* Even though these four are IMPI attributes, they need to be there
|
|
|
|
for all MPI jobs */
|
|
|
|
IMPI_CLIENT_SIZE,
|
|
|
|
IMPI_CLIENT_COLOR,
|
|
|
|
IMPI_HOST_SIZE,
|
|
|
|
IMPI_HOST_COLOR
|
2004-01-10 11:17:22 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
2004-06-18 02:38:45 +04:00
|
|
|
* Error classes and codes
|
2005-09-27 21:47:21 +04:00
|
|
|
* Do not change the values of these without also modifying mpif.h.in.
|
2004-01-10 11:17:22 +03:00
|
|
|
*/
|
2009-05-27 16:46:04 +04:00
|
|
|
#define MPI_SUCCESS 0
|
2004-06-18 02:38:45 +04:00
|
|
|
#define MPI_ERR_BUFFER 1
|
|
|
|
#define MPI_ERR_COUNT 2
|
|
|
|
#define MPI_ERR_TYPE 3
|
|
|
|
#define MPI_ERR_TAG 4
|
|
|
|
#define MPI_ERR_COMM 5
|
|
|
|
#define MPI_ERR_RANK 6
|
|
|
|
#define MPI_ERR_REQUEST 7
|
|
|
|
#define MPI_ERR_ROOT 8
|
|
|
|
#define MPI_ERR_GROUP 9
|
|
|
|
#define MPI_ERR_OP 10
|
|
|
|
#define MPI_ERR_TOPOLOGY 11
|
|
|
|
#define MPI_ERR_DIMS 12
|
|
|
|
#define MPI_ERR_ARG 13
|
|
|
|
#define MPI_ERR_UNKNOWN 14
|
|
|
|
#define MPI_ERR_TRUNCATE 15
|
|
|
|
#define MPI_ERR_OTHER 16
|
|
|
|
#define MPI_ERR_INTERN 17
|
|
|
|
#define MPI_ERR_IN_STATUS 18
|
|
|
|
#define MPI_ERR_PENDING 19
|
|
|
|
#define MPI_ERR_ACCESS 20
|
|
|
|
#define MPI_ERR_AMODE 21
|
|
|
|
#define MPI_ERR_ASSERT 22
|
|
|
|
#define MPI_ERR_BAD_FILE 23
|
|
|
|
#define MPI_ERR_BASE 24
|
|
|
|
#define MPI_ERR_CONVERSION 25
|
|
|
|
#define MPI_ERR_DISP 26
|
|
|
|
#define MPI_ERR_DUP_DATAREP 27
|
|
|
|
#define MPI_ERR_FILE_EXISTS 28
|
|
|
|
#define MPI_ERR_FILE_IN_USE 29
|
|
|
|
#define MPI_ERR_FILE 30
|
|
|
|
#define MPI_ERR_INFO_KEY 31
|
|
|
|
#define MPI_ERR_INFO_NOKEY 32
|
|
|
|
#define MPI_ERR_INFO_VALUE 33
|
|
|
|
#define MPI_ERR_INFO 34
|
|
|
|
#define MPI_ERR_IO 35
|
|
|
|
#define MPI_ERR_KEYVAL 36
|
2004-06-25 01:09:55 +04:00
|
|
|
#define MPI_ERR_LOCKTYPE 37
|
2004-06-18 02:38:45 +04:00
|
|
|
#define MPI_ERR_NAME 38
|
|
|
|
#define MPI_ERR_NO_MEM 39
|
|
|
|
#define MPI_ERR_NOT_SAME 40
|
|
|
|
#define MPI_ERR_NO_SPACE 41
|
|
|
|
#define MPI_ERR_NO_SUCH_FILE 42
|
|
|
|
#define MPI_ERR_PORT 43
|
|
|
|
#define MPI_ERR_QUOTA 44
|
|
|
|
#define MPI_ERR_READ_ONLY 45
|
|
|
|
#define MPI_ERR_RMA_CONFLICT 46
|
|
|
|
#define MPI_ERR_RMA_SYNC 47
|
|
|
|
#define MPI_ERR_SERVICE 48
|
|
|
|
#define MPI_ERR_SIZE 49
|
|
|
|
#define MPI_ERR_SPAWN 50
|
|
|
|
#define MPI_ERR_UNSUPPORTED_DATAREP 51
|
|
|
|
#define MPI_ERR_UNSUPPORTED_OPERATION 52
|
|
|
|
#define MPI_ERR_WIN 53
|
2013-04-24 19:59:23 +04:00
|
|
|
#define MPI_T_ERR_MEMORY 54
|
|
|
|
#define MPI_T_ERR_NOT_INITIALIZED 55
|
|
|
|
#define MPI_T_ERR_CANNOT_INIT 56
|
|
|
|
#define MPI_T_ERR_INVALID_INDEX 57
|
|
|
|
#define MPI_T_ERR_INVALID_ITEM 58
|
|
|
|
#define MPI_T_ERR_INVALID_HANDLE 59
|
|
|
|
#define MPI_T_ERR_OUT_OF_HANDLES 60
|
|
|
|
#define MPI_T_ERR_OUT_OF_SESSIONS 61
|
|
|
|
#define MPI_T_ERR_INVALID_SESSION 62
|
|
|
|
#define MPI_T_ERR_CVAR_SET_NOT_NOW 63
|
|
|
|
#define MPI_T_ERR_CVAR_SET_NEVER 64
|
|
|
|
#define MPI_T_ERR_PVAR_NO_STARTSTOP 65
|
|
|
|
#define MPI_T_ERR_PVAR_NO_WRITE 66
|
|
|
|
#define MPI_T_ERR_PVAR_NO_ATOMIC 67
|
2014-02-25 21:36:43 +04:00
|
|
|
#define MPI_ERR_RMA_RANGE 68
|
|
|
|
#define MPI_ERR_RMA_ATTACH 69
|
|
|
|
#define MPI_ERR_RMA_FLAVOR 70
|
|
|
|
|
2013-03-27 05:32:27 +04:00
|
|
|
/* Per MPI-3 p349 47, MPI_ERR_LASTCODE must be >= the last predefined
|
|
|
|
MPI_ERR_<foo> code. So just set it equal to the last code --
|
2014-02-25 21:36:43 +04:00
|
|
|
MPI_ERR_RMA_FLAVOR, in this case. */
|
|
|
|
#define MPI_ERR_LASTCODE MPI_ERR_RMA_FLAVOR
|
2004-06-18 02:38:45 +04:00
|
|
|
|
|
|
|
#define MPI_ERR_SYSRESOURCE -2
|
2003-11-22 19:36:58 +03:00
|
|
|
|
2004-01-10 11:17:22 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Comparison results. Don't change the order of these, the group
|
|
|
|
* comparison functions rely on it.
|
2005-09-27 21:47:21 +04:00
|
|
|
* Do not change the order of these without also modifying mpif.h.in.
|
2004-01-10 11:17:22 +03:00
|
|
|
*/
|
|
|
|
enum {
|
|
|
|
MPI_IDENT,
|
|
|
|
MPI_CONGRUENT,
|
|
|
|
MPI_SIMILAR,
|
|
|
|
MPI_UNEQUAL
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* MPI_Init_thread constants
|
2005-09-27 21:47:21 +04:00
|
|
|
* Do not change the order of these without also modifying mpif.h.in.
|
2004-01-10 11:17:22 +03:00
|
|
|
*/
|
|
|
|
enum {
|
|
|
|
MPI_THREAD_SINGLE,
|
|
|
|
MPI_THREAD_FUNNELED,
|
|
|
|
MPI_THREAD_SERIALIZED,
|
|
|
|
MPI_THREAD_MULTIPLE
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Datatype combiners.
|
2005-09-27 21:47:21 +04:00
|
|
|
* Do not change the order of these without also modifying mpif.h.in.
|
== 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
|
|
|
* (see also mpif-common.h.fin).
|
2004-01-10 11:17:22 +03:00
|
|
|
*/
|
2005-04-19 18:33:02 +04:00
|
|
|
enum {
|
2004-01-10 11:17:22 +03:00
|
|
|
MPI_COMBINER_NAMED,
|
|
|
|
MPI_COMBINER_DUP,
|
|
|
|
MPI_COMBINER_CONTIGUOUS,
|
|
|
|
MPI_COMBINER_VECTOR,
|
|
|
|
MPI_COMBINER_HVECTOR_INTEGER,
|
|
|
|
MPI_COMBINER_HVECTOR,
|
|
|
|
MPI_COMBINER_INDEXED,
|
|
|
|
MPI_COMBINER_HINDEXED_INTEGER,
|
|
|
|
MPI_COMBINER_HINDEXED,
|
2004-06-25 01:09:55 +04:00
|
|
|
MPI_COMBINER_INDEXED_BLOCK,
|
2004-01-10 11:17:22 +03:00
|
|
|
MPI_COMBINER_STRUCT_INTEGER,
|
|
|
|
MPI_COMBINER_STRUCT,
|
|
|
|
MPI_COMBINER_SUBARRAY,
|
|
|
|
MPI_COMBINER_DARRAY,
|
|
|
|
MPI_COMBINER_F90_REAL,
|
|
|
|
MPI_COMBINER_F90_COMPLEX,
|
|
|
|
MPI_COMBINER_F90_INTEGER,
|
2012-08-07 16:48:30 +04:00
|
|
|
MPI_COMBINER_RESIZED,
|
|
|
|
MPI_COMBINER_HINDEXED_BLOCK
|
2004-01-10 11:17:22 +03:00
|
|
|
};
|
|
|
|
|
2013-09-27 01:55:08 +04:00
|
|
|
/*
|
2012-01-19 03:35:21 +04:00
|
|
|
* Communicator split type constants.
|
== 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
|
|
|
* Do not change the order of these without also modifying mpif.h.in
|
|
|
|
* (see also mpif-common.h.fin).
|
2012-01-19 03:35:21 +04:00
|
|
|
*/
|
|
|
|
enum {
|
|
|
|
MPI_COMM_TYPE_SHARED
|
|
|
|
};
|
|
|
|
|
2013-04-24 19:59:23 +04:00
|
|
|
/*
|
|
|
|
* MPIT Verbosity Levels
|
|
|
|
*/
|
|
|
|
enum {
|
|
|
|
MPI_T_VERBOSITY_USER_BASIC,
|
|
|
|
MPI_T_VERBOSITY_USER_DETAIL,
|
|
|
|
MPI_T_VERBOSITY_USER_ALL,
|
|
|
|
MPI_T_VERBOSITY_TUNER_BASIC,
|
|
|
|
MPI_T_VERBOSITY_TUNER_DETAIL,
|
|
|
|
MPI_T_VERBOSITY_TUNER_ALL,
|
|
|
|
MPI_T_VERBOSITY_MPIDEV_BASIC,
|
|
|
|
MPI_T_VERBOSITY_MPIDEV_DETAIL,
|
|
|
|
MPI_T_VERBOSITY_MPIDEV_ALL
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* MPIT Scopes
|
|
|
|
*/
|
|
|
|
enum {
|
|
|
|
MPI_T_SCOPE_CONSTANT,
|
|
|
|
MPI_T_SCOPE_READONLY,
|
|
|
|
MPI_T_SCOPE_LOCAL,
|
|
|
|
MPI_T_SCOPE_GROUP,
|
|
|
|
MPI_T_SCOPE_GROUP_EQ,
|
|
|
|
MPI_T_SCOPE_ALL,
|
|
|
|
MPI_T_SCOPE_ALL_EQ
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* MPIT Object Binding
|
|
|
|
*/
|
|
|
|
enum {
|
|
|
|
MPI_T_BIND_NO_OBJECT,
|
|
|
|
MPI_T_BIND_MPI_COMM,
|
|
|
|
MPI_T_BIND_MPI_DATATYPE,
|
|
|
|
MPI_T_BIND_MPI_ERRHANDLER,
|
|
|
|
MPI_T_BIND_MPI_FILE,
|
|
|
|
MPI_T_BIND_MPI_GROUP,
|
|
|
|
MPI_T_BIND_MPI_OP,
|
|
|
|
MPI_T_BIND_MPI_REQUEST,
|
|
|
|
MPI_T_BIND_MPI_WIN,
|
|
|
|
MPI_T_BIND_MPI_MESSAGE,
|
|
|
|
MPI_T_BIND_MPI_INFO
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* MPIT pvar classes
|
|
|
|
*/
|
|
|
|
enum {
|
|
|
|
MPI_T_PVAR_CLASS_STATE,
|
|
|
|
MPI_T_PVAR_CLASS_LEVEL,
|
|
|
|
MPI_T_PVAR_CLASS_SIZE,
|
|
|
|
MPI_T_PVAR_CLASS_PERCENTAGE,
|
|
|
|
MPI_T_PVAR_CLASS_HIGHWATERMARK,
|
|
|
|
MPI_T_PVAR_CLASS_LOWWATERMARK,
|
|
|
|
MPI_T_PVAR_CLASS_COUNTER,
|
|
|
|
MPI_T_PVAR_CLASS_AGGREGATE,
|
|
|
|
MPI_T_PVAR_CLASS_TIMER,
|
|
|
|
MPI_T_PVAR_CLASS_GENERIC
|
|
|
|
};
|
2012-01-19 03:35:21 +04:00
|
|
|
|
2004-01-10 11:17:22 +03:00
|
|
|
/*
|
|
|
|
* NULL handles
|
|
|
|
*/
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_GROUP_NULL OMPI_PREDEFINED_GLOBAL(MPI_Group, ompi_mpi_group_null)
|
|
|
|
#define MPI_COMM_NULL OMPI_PREDEFINED_GLOBAL(MPI_Comm, ompi_mpi_comm_null)
|
|
|
|
#define MPI_REQUEST_NULL OMPI_PREDEFINED_GLOBAL(MPI_Request, ompi_request_null)
|
2012-02-06 21:35:21 +04:00
|
|
|
#define MPI_MESSAGE_NULL OMPI_PREDEFINED_GLOBAL(MPI_Message, ompi_message_null)
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_OP_NULL OMPI_PREDEFINED_GLOBAL(MPI_Op, ompi_mpi_op_null)
|
|
|
|
#define MPI_ERRHANDLER_NULL OMPI_PREDEFINED_GLOBAL(MPI_Errhandler, ompi_mpi_errhandler_null)
|
|
|
|
#define MPI_INFO_NULL OMPI_PREDEFINED_GLOBAL(MPI_Info, ompi_mpi_info_null)
|
|
|
|
#define MPI_WIN_NULL OMPI_PREDEFINED_GLOBAL(MPI_Win, ompi_mpi_win_null)
|
2007-08-19 01:35:51 +04:00
|
|
|
#if OMPI_PROVIDE_MPI_FILE_INTERFACE
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_FILE_NULL OMPI_PREDEFINED_GLOBAL(MPI_File, ompi_mpi_file_null)
|
2007-08-19 01:35:51 +04:00
|
|
|
#endif
|
2013-07-16 20:02:13 +04:00
|
|
|
#define MPI_T_ENUM_NULL ((MPI_T_enum) NULL)
|
2004-01-10 11:17:22 +03:00
|
|
|
|
2012-08-12 05:28:23 +04:00
|
|
|
/*
|
2012-08-12 09:00:57 +04:00
|
|
|
* MPI_INFO_ENV handle
|
2012-08-12 05:28:23 +04:00
|
|
|
*/
|
2012-08-12 09:00:57 +04:00
|
|
|
#define MPI_INFO_ENV OMPI_PREDEFINED_GLOBAL(MPI_Info, ompi_mpi_info_env)
|
2012-08-12 05:28:23 +04:00
|
|
|
|
2004-01-10 11:17:22 +03:00
|
|
|
#define MPI_STATUS_IGNORE ((MPI_Status *) 0)
|
|
|
|
#define MPI_STATUSES_IGNORE ((MPI_Status *) 0)
|
|
|
|
|
2013-07-16 20:02:13 +04:00
|
|
|
/*
|
|
|
|
* Special MPI_T handles
|
|
|
|
*/
|
|
|
|
#define MPI_T_PVAR_ALL_HANDLES ((MPI_T_pvar_handle) -1)
|
|
|
|
#define MPI_T_PVAR_HANDLE_NULL ((MPI_T_pvar_handle) 0)
|
2013-07-16 20:03:33 +04:00
|
|
|
#define MPI_T_CVAR_HANDLE_NULL ((MPI_T_cvar_handle) 0)
|
2013-07-16 20:02:13 +04:00
|
|
|
|
2004-07-18 00:10:03 +04:00
|
|
|
/* MPI-2 specifies that the name "MPI_TYPE_NULL_DELETE_FN" (and all
|
|
|
|
related friends) must be accessible in C, C++, and Fortran. This is
|
|
|
|
unworkable if the back-end Fortran compiler uses all caps for its
|
|
|
|
linker symbol convention -- it results in two functions with
|
|
|
|
different signatures that have the same name (i.e., both C and
|
|
|
|
Fortran use the symbol MPI_TYPE_NULL_DELETE_FN). So we have to
|
|
|
|
#define the C names to be something else, so that they names are
|
|
|
|
*accessed* through MPI_TYPE_NULL_DELETE_FN, but their actual symbol
|
|
|
|
name is different.
|
|
|
|
|
|
|
|
However, this file is included when the fortran wrapper functions
|
|
|
|
are compiled in Open MPI, so we do *not* want these #defines in
|
|
|
|
this case (i.e., we need the Fortran wrapper function to be
|
|
|
|
compiled as MPI_TYPE_NULL_DELETE_FN). So add some #if kinds of
|
|
|
|
protection for this case. */
|
|
|
|
|
2012-04-27 05:09:37 +04:00
|
|
|
#if !defined(OMPI_COMPILING_FORTRAN_WRAPPERS)
|
2004-07-18 00:10:03 +04:00
|
|
|
#define MPI_NULL_DELETE_FN OMPI_C_MPI_NULL_DELETE_FN
|
|
|
|
#define MPI_NULL_COPY_FN OMPI_C_MPI_NULL_COPY_FN
|
|
|
|
#define MPI_DUP_FN OMPI_C_MPI_DUP_FN
|
|
|
|
|
|
|
|
#define MPI_TYPE_NULL_DELETE_FN OMPI_C_MPI_TYPE_NULL_DELETE_FN
|
|
|
|
#define MPI_TYPE_NULL_COPY_FN OMPI_C_MPI_TYPE_NULL_COPY_FN
|
|
|
|
#define MPI_TYPE_DUP_FN OMPI_C_MPI_TYPE_DUP_FN
|
|
|
|
|
|
|
|
#define MPI_COMM_NULL_DELETE_FN OMPI_C_MPI_COMM_NULL_DELETE_FN
|
|
|
|
#define MPI_COMM_NULL_COPY_FN OMPI_C_MPI_COMM_NULL_COPY_FN
|
|
|
|
#define MPI_COMM_DUP_FN OMPI_C_MPI_COMM_DUP_FN
|
|
|
|
|
|
|
|
#define MPI_WIN_NULL_DELETE_FN OMPI_C_MPI_WIN_NULL_DELETE_FN
|
|
|
|
#define MPI_WIN_NULL_COPY_FN OMPI_C_MPI_WIN_NULL_COPY_FN
|
|
|
|
#define MPI_WIN_DUP_FN OMPI_C_MPI_WIN_DUP_FN
|
2007-12-07 16:09:07 +03:00
|
|
|
|
|
|
|
/* MPI_CONVERSION_FN_NULL is a sentinel value, but it has to be large
|
|
|
|
enough to be the same size as a valid function pointer. It
|
|
|
|
therefore shares many characteristics between Fortran constants and
|
|
|
|
Fortran sentinel functions. For example, it shares the problem of
|
|
|
|
having Fortran compilers have all-caps versions of the symbols that
|
|
|
|
must be able to be present, and therefore has to be in this
|
|
|
|
conditional block in mpi.h. */
|
|
|
|
#define MPI_CONVERSION_FN_NULL ((MPI_Datarep_conversion_function*) 0)
|
2004-07-18 00:10:03 +04:00
|
|
|
#endif
|
|
|
|
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int OMPI_C_MPI_TYPE_NULL_DELETE_FN( MPI_Datatype datatype,
|
2005-03-26 06:51:55 +03:00
|
|
|
int type_keyval,
|
2009-05-27 16:46:04 +04:00
|
|
|
void* attribute_val_out,
|
2005-03-26 06:51:55 +03:00
|
|
|
void* extra_state );
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int OMPI_C_MPI_TYPE_NULL_COPY_FN( MPI_Datatype datatype,
|
|
|
|
int type_keyval,
|
2004-10-22 21:47:53 +04:00
|
|
|
void* extra_state,
|
2009-05-27 16:46:04 +04:00
|
|
|
void* attribute_val_in,
|
|
|
|
void* attribute_val_out,
|
2005-03-26 06:51:55 +03:00
|
|
|
int* flag );
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int OMPI_C_MPI_TYPE_DUP_FN( MPI_Datatype datatype,
|
|
|
|
int type_keyval,
|
|
|
|
void* extra_state,
|
|
|
|
void* attribute_val_in,
|
|
|
|
void* attribute_val_out,
|
2005-03-26 06:51:55 +03:00
|
|
|
int* flag );
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int OMPI_C_MPI_COMM_NULL_DELETE_FN( MPI_Comm comm,
|
2005-03-26 06:51:55 +03:00
|
|
|
int comm_keyval,
|
2009-05-27 16:46:04 +04:00
|
|
|
void* attribute_val_out,
|
2005-03-26 06:51:55 +03:00
|
|
|
void* extra_state );
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int OMPI_C_MPI_COMM_NULL_COPY_FN( MPI_Comm comm,
|
|
|
|
int comm_keyval,
|
|
|
|
void* extra_state,
|
2005-03-26 06:51:55 +03:00
|
|
|
void* attribute_val_in,
|
2009-05-27 16:46:04 +04:00
|
|
|
void* attribute_val_out,
|
2005-03-26 06:51:55 +03:00
|
|
|
int* flag );
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int OMPI_C_MPI_COMM_DUP_FN( MPI_Comm comm, int comm_keyval,
|
2005-03-26 06:51:55 +03:00
|
|
|
void* extra_state,
|
2009-05-27 16:46:04 +04:00
|
|
|
void* attribute_val_in,
|
2005-03-26 06:51:55 +03:00
|
|
|
void* attribute_val_out,
|
2004-10-22 21:47:53 +04:00
|
|
|
int* flag );
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int OMPI_C_MPI_NULL_DELETE_FN( MPI_Comm comm, int comm_keyval,
|
2009-05-27 16:46:04 +04:00
|
|
|
void* attribute_val_out,
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
void* extra_state )
|
|
|
|
__mpi_interface_deprecated__("MPI_NULL_DELETE_FN is deprecated in MPI-2.0");
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int OMPI_C_MPI_NULL_COPY_FN( MPI_Comm comm, int comm_keyval,
|
2005-03-26 06:51:55 +03:00
|
|
|
void* extra_state,
|
2009-05-27 16:46:04 +04:00
|
|
|
void* attribute_val_in,
|
2005-03-26 06:51:55 +03:00
|
|
|
void* attribute_val_out,
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
int* flag )
|
|
|
|
__mpi_interface_deprecated__("MPI_NULL_COPY_FN is deprecated in MPI-2.0");
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int OMPI_C_MPI_DUP_FN( MPI_Comm comm, int comm_keyval,
|
2005-03-26 06:51:55 +03:00
|
|
|
void* extra_state,
|
2009-05-27 16:46:04 +04:00
|
|
|
void* attribute_val_in,
|
2005-03-26 06:51:55 +03:00
|
|
|
void* attribute_val_out,
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
int* flag )
|
|
|
|
__mpi_interface_deprecated__("MPI_DUP_FN is deprecated in MPI-2.0");
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int OMPI_C_MPI_WIN_NULL_DELETE_FN( MPI_Win window,
|
2005-03-26 06:51:55 +03:00
|
|
|
int win_keyval,
|
2009-05-27 16:46:04 +04:00
|
|
|
void* attribute_val_out,
|
2005-03-26 06:51:55 +03:00
|
|
|
void* extra_state );
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int OMPI_C_MPI_WIN_NULL_COPY_FN( MPI_Win window, int win_keyval,
|
|
|
|
void* extra_state,
|
2005-03-26 06:51:55 +03:00
|
|
|
void* attribute_val_in,
|
2009-05-27 16:46:04 +04:00
|
|
|
void* attribute_val_out,
|
2005-03-26 06:51:55 +03:00
|
|
|
int* flag );
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int OMPI_C_MPI_WIN_DUP_FN( MPI_Win window, int win_keyval,
|
2005-03-26 06:51:55 +03:00
|
|
|
void* extra_state,
|
2009-05-27 16:46:04 +04:00
|
|
|
void* attribute_val_in,
|
2005-03-26 06:51:55 +03:00
|
|
|
void* attribute_val_out,
|
2004-10-22 21:47:53 +04:00
|
|
|
int* flag );
|
2004-01-10 11:17:22 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* External variables
|
2009-02-24 20:17:33 +03:00
|
|
|
*
|
|
|
|
* The below externs use the ompi_predefined_xxx_t structures to maintain
|
|
|
|
* back compatibility between MPI library versions.
|
|
|
|
* See ompi/communicator/communicator.h comments with struct ompi_communicator_t
|
|
|
|
* for full explanation why we chose to use the ompi_predefined_xxx_t structure.
|
2004-01-10 11:17:22 +03:00
|
|
|
*/
|
2009-02-24 20:17:33 +03:00
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_communicator_t ompi_mpi_comm_world;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_communicator_t ompi_mpi_comm_self;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_communicator_t ompi_mpi_comm_null;
|
|
|
|
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_group_t ompi_mpi_group_empty;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_group_t ompi_mpi_group_null;
|
|
|
|
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_request_t ompi_request_null;
|
2012-03-08 17:27:01 +04:00
|
|
|
|
2012-02-06 21:35:21 +04:00
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_message_t ompi_message_null;
|
2012-03-08 17:27:01 +04:00
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_message_t ompi_message_no_proc;
|
2009-02-24 20:17:33 +03:00
|
|
|
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_op_t ompi_mpi_op_null;
|
2009-08-20 15:12:45 +04:00
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_op_t ompi_mpi_op_min;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_op_t ompi_mpi_op_max;
|
2009-02-24 20:17:33 +03:00
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_op_t ompi_mpi_op_sum;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_op_t ompi_mpi_op_prod;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_op_t ompi_mpi_op_land;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_op_t ompi_mpi_op_band;
|
2009-08-20 15:12:45 +04:00
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_op_t ompi_mpi_op_lor;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_op_t ompi_mpi_op_bor;
|
2009-02-24 20:17:33 +03:00
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_op_t ompi_mpi_op_lxor;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_op_t ompi_mpi_op_bxor;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_op_t ompi_mpi_op_maxloc;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_op_t ompi_mpi_op_minloc;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_op_t ompi_mpi_op_replace;
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_op_t ompi_mpi_op_no_op;
|
2009-02-24 20:17:33 +03:00
|
|
|
|
2009-07-13 08:59:13 +04:00
|
|
|
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_datatype_null;
|
|
|
|
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_lb __mpi_interface_deprecated__("MPI_LB is deprecated in MPI-2.0");
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_ub __mpi_interface_deprecated__("MPI_UB is deprecated in MPI-2.0");
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_char;
|
2009-02-24 20:17:33 +03:00
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_signed_char;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_unsigned_char;
|
2009-07-13 08:59:13 +04:00
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_byte;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_short;
|
2009-02-24 20:17:33 +03:00
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_unsigned_short;
|
2009-07-13 08:59:13 +04:00
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_int;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_unsigned;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_long;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_unsigned_long;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_long_long_int;
|
2009-02-24 20:17:33 +03:00
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_unsigned_long_long;
|
2009-07-13 08:59:13 +04:00
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_float;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_double;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_long_double;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_wchar;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_packed;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Following are the C++/C99 datatypes
|
|
|
|
*/
|
2009-02-24 20:17:33 +03:00
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_cxx_bool;
|
2009-07-13 08:59:13 +04:00
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_cxx_cplex;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_cxx_dblcplex;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_cxx_ldblcplex;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Following are the Fortran datatypes
|
|
|
|
*/
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_logical;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_character;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_integer;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_real;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_dblprec;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_cplex;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_dblcplex;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_ldblcplex;
|
|
|
|
|
|
|
|
/* Aggregate struct datatypes are not const */
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_2int;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_2integer;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_2real;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_2dblprec;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_2cplex;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_2dblcplex;
|
|
|
|
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_float_int;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_double_int;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_longdbl_int;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_short_int;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_long_int;
|
|
|
|
|
|
|
|
/* Optional MPI2 datatypes, always declared and defined, but not "exported" as MPI_LOGICAL1 */
|
2009-02-24 20:17:33 +03:00
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_logical1;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_logical2;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_logical4;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_logical8;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_integer1;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_integer2;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_integer4;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_integer8;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_integer16;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_real2;
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_real4;
|
2009-02-24 20:17:33 +03:00
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_real8;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_real16;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_complex8;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_complex16;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_complex32;
|
2009-07-13 08:59:13 +04:00
|
|
|
|
2011-01-13 09:08:54 +03:00
|
|
|
/* New datatypes from the MPI 2.2 standard */
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_int8_t;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_uint8_t;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_int16_t;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_uint16_t;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_int32_t;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_uint32_t;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_int64_t;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_uint64_t;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_aint;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_offset;
|
2013-07-23 19:35:14 +04:00
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_count;
|
2011-01-13 09:08:54 +03:00
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_c_bool;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_c_complex;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_c_float_complex;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_c_double_complex;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_datatype_t ompi_mpi_c_long_double_complex;
|
2004-01-29 22:33:19 +03:00
|
|
|
|
2009-02-24 20:17:33 +03:00
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_errhandler_t ompi_mpi_errhandler_null;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_errhandler_t ompi_mpi_errors_are_fatal;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_errhandler_t ompi_mpi_errors_return;
|
2004-01-10 11:17:22 +03:00
|
|
|
|
2009-02-24 20:17:33 +03:00
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_win_t ompi_mpi_win_null;
|
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_file_t ompi_mpi_file_null;
|
2004-08-14 05:56:05 +04:00
|
|
|
|
2009-02-24 20:17:33 +03:00
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_info_t ompi_mpi_info_null;
|
2012-08-12 09:00:57 +04:00
|
|
|
OMPI_DECLSPEC extern struct ompi_predefined_info_t ompi_mpi_info_env;
|
2004-08-12 20:56:24 +04:00
|
|
|
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC extern MPI_Fint *MPI_F_STATUS_IGNORE;
|
|
|
|
OMPI_DECLSPEC extern MPI_Fint *MPI_F_STATUSES_IGNORE;
|
2004-01-10 11:17:22 +03:00
|
|
|
|
2012-06-23 00:54:12 +04:00
|
|
|
|
2004-01-10 11:17:22 +03:00
|
|
|
/*
|
|
|
|
* MPI predefined handles
|
|
|
|
*/
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_COMM_WORLD OMPI_PREDEFINED_GLOBAL( MPI_Comm, ompi_mpi_comm_world)
|
|
|
|
#define MPI_COMM_SELF OMPI_PREDEFINED_GLOBAL(MPI_Comm, ompi_mpi_comm_self)
|
|
|
|
|
|
|
|
#define MPI_GROUP_EMPTY OMPI_PREDEFINED_GLOBAL(MPI_Group, ompi_mpi_group_empty)
|
|
|
|
|
2012-03-08 17:27:01 +04:00
|
|
|
#define MPI_MESSAGE_NO_PROC OMPI_PREDEFINED_GLOBAL(MPI_Message, ompi_message_no_proc)
|
|
|
|
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_MAX OMPI_PREDEFINED_GLOBAL(MPI_Op, ompi_mpi_op_max)
|
|
|
|
#define MPI_MIN OMPI_PREDEFINED_GLOBAL(MPI_Op, ompi_mpi_op_min)
|
|
|
|
#define MPI_SUM OMPI_PREDEFINED_GLOBAL(MPI_Op, ompi_mpi_op_sum)
|
|
|
|
#define MPI_PROD OMPI_PREDEFINED_GLOBAL(MPI_Op, ompi_mpi_op_prod)
|
|
|
|
#define MPI_LAND OMPI_PREDEFINED_GLOBAL(MPI_Op, ompi_mpi_op_land)
|
|
|
|
#define MPI_BAND OMPI_PREDEFINED_GLOBAL(MPI_Op, ompi_mpi_op_band)
|
|
|
|
#define MPI_LOR OMPI_PREDEFINED_GLOBAL(MPI_Op, ompi_mpi_op_lor)
|
|
|
|
#define MPI_BOR OMPI_PREDEFINED_GLOBAL(MPI_Op, ompi_mpi_op_bor)
|
|
|
|
#define MPI_LXOR OMPI_PREDEFINED_GLOBAL(MPI_Op, ompi_mpi_op_lxor)
|
|
|
|
#define MPI_BXOR OMPI_PREDEFINED_GLOBAL(MPI_Op, ompi_mpi_op_bxor)
|
|
|
|
#define MPI_MAXLOC OMPI_PREDEFINED_GLOBAL(MPI_Op, ompi_mpi_op_maxloc)
|
|
|
|
#define MPI_MINLOC OMPI_PREDEFINED_GLOBAL(MPI_Op, ompi_mpi_op_minloc)
|
|
|
|
#define MPI_REPLACE OMPI_PREDEFINED_GLOBAL(MPI_Op, ompi_mpi_op_replace)
|
2014-02-25 21:36:43 +04:00
|
|
|
#define MPI_NO_OP OMPI_PREDEFINED_GLOBAL(MPI_Op, ompi_mpi_op_no_op)
|
2004-01-29 22:33:19 +03:00
|
|
|
|
2005-06-23 14:38:18 +04:00
|
|
|
/* C datatypes */
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_DATATYPE_NULL OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_datatype_null)
|
|
|
|
#define MPI_BYTE OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_byte)
|
|
|
|
#define MPI_PACKED OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_packed)
|
|
|
|
#define MPI_CHAR OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_char)
|
|
|
|
#define MPI_SHORT OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_short)
|
|
|
|
#define MPI_INT OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_int)
|
|
|
|
#define MPI_LONG OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_long)
|
|
|
|
#define MPI_FLOAT OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_float)
|
|
|
|
#define MPI_DOUBLE OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_double)
|
|
|
|
#define MPI_LONG_DOUBLE OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_long_double)
|
|
|
|
#define MPI_UNSIGNED_CHAR OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_unsigned_char)
|
|
|
|
#define MPI_SIGNED_CHAR OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_signed_char)
|
|
|
|
#define MPI_UNSIGNED_SHORT OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_unsigned_short)
|
|
|
|
#define MPI_UNSIGNED_LONG OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_unsigned_long)
|
|
|
|
#define MPI_UNSIGNED OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_unsigned)
|
|
|
|
#define MPI_FLOAT_INT OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_float_int)
|
|
|
|
#define MPI_DOUBLE_INT OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_double_int)
|
|
|
|
#define MPI_LONG_DOUBLE_INT OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_longdbl_int)
|
|
|
|
#define MPI_LONG_INT OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_long_int)
|
|
|
|
#define MPI_SHORT_INT OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_short_int)
|
|
|
|
#define MPI_2INT OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_2int)
|
|
|
|
#define MPI_UB OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_ub)
|
|
|
|
#define MPI_LB OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_lb)
|
|
|
|
#define MPI_WCHAR OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_wchar)
|
2009-05-07 00:11:28 +04:00
|
|
|
#if OPAL_HAVE_LONG_LONG
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_LONG_LONG_INT OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_long_long_int)
|
|
|
|
#define MPI_LONG_LONG OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_long_long_int)
|
|
|
|
#define MPI_UNSIGNED_LONG_LONG OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_unsigned_long_long)
|
2009-05-07 00:11:28 +04:00
|
|
|
#endif /* OPAL_HAVE_LONG_LONG */
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_2COMPLEX OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_2cplex)
|
|
|
|
#define MPI_2DOUBLE_COMPLEX OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_2dblcplex)
|
2004-04-21 02:18:26 +04:00
|
|
|
|
2004-09-19 14:16:00 +04:00
|
|
|
/* Fortran datatype bindings */
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_CHARACTER OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_character)
|
2009-07-13 08:59:13 +04:00
|
|
|
#define MPI_LOGICAL OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_logical)
|
2009-06-01 23:02:34 +04:00
|
|
|
#if OMPI_HAVE_FORTRAN_LOGICAL1
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_LOGICAL1 OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_logical1)
|
2008-02-16 01:54:20 +03:00
|
|
|
#endif
|
2009-06-01 23:02:34 +04:00
|
|
|
#if OMPI_HAVE_FORTRAN_LOGICAL2
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_LOGICAL2 OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_logical2)
|
2008-02-16 01:54:20 +03:00
|
|
|
#endif
|
2009-06-01 23:02:34 +04:00
|
|
|
#if OMPI_HAVE_FORTRAN_LOGICAL4
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_LOGICAL4 OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_logical4)
|
2008-02-16 01:54:20 +03:00
|
|
|
#endif
|
2009-06-01 23:02:34 +04:00
|
|
|
#if OMPI_HAVE_FORTRAN_LOGICAL8
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_LOGICAL8 OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_logical8)
|
2008-02-16 01:54:20 +03:00
|
|
|
#endif
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_INTEGER OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_integer)
|
2009-06-01 23:02:34 +04:00
|
|
|
#if OMPI_HAVE_FORTRAN_INTEGER1
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_INTEGER1 OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_integer1)
|
2005-04-28 15:42:42 +04:00
|
|
|
#endif
|
2009-06-01 23:02:34 +04:00
|
|
|
#if OMPI_HAVE_FORTRAN_INTEGER2
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_INTEGER2 OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_integer2)
|
2005-04-28 15:42:42 +04:00
|
|
|
#endif
|
2009-06-01 23:02:34 +04:00
|
|
|
#if OMPI_HAVE_FORTRAN_INTEGER4
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_INTEGER4 OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_integer4)
|
2005-04-28 15:42:42 +04:00
|
|
|
#endif
|
2009-06-01 23:02:34 +04:00
|
|
|
#if OMPI_HAVE_FORTRAN_INTEGER8
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_INTEGER8 OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_integer8)
|
2005-04-28 15:42:42 +04:00
|
|
|
#endif
|
2009-06-01 23:02:34 +04:00
|
|
|
#if OMPI_HAVE_FORTRAN_INTEGER16
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_INTEGER16 OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_integer16)
|
2005-04-28 15:42:42 +04:00
|
|
|
#endif
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_REAL OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_real)
|
2009-06-01 23:02:34 +04:00
|
|
|
#if OMPI_HAVE_FORTRAN_REAL4
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_REAL4 OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_real4)
|
2005-04-28 15:42:42 +04:00
|
|
|
#endif
|
2009-06-01 23:02:34 +04:00
|
|
|
#if OMPI_HAVE_FORTRAN_REAL8
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_REAL8 OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_real8)
|
2005-04-28 15:42:42 +04:00
|
|
|
#endif
|
2009-06-01 23:02:34 +04:00
|
|
|
#if OMPI_HAVE_FORTRAN_REAL16
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_REAL16 OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_real16)
|
2005-04-28 15:42:42 +04:00
|
|
|
#endif
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_DOUBLE_PRECISION OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_dblprec)
|
|
|
|
#define MPI_COMPLEX OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_cplex)
|
2009-06-01 23:02:34 +04:00
|
|
|
#if OMPI_HAVE_FORTRAN_REAL4
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_COMPLEX8 OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_complex8)
|
2005-04-28 15:42:42 +04:00
|
|
|
#endif
|
2009-06-01 23:02:34 +04:00
|
|
|
#if OMPI_HAVE_FORTRAN_REAL8
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_COMPLEX16 OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_complex16)
|
2005-04-28 15:42:42 +04:00
|
|
|
#endif
|
2009-06-01 23:02:34 +04:00
|
|
|
#if OMPI_HAVE_FORTRAN_REAL16
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_COMPLEX32 OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_complex32)
|
2005-04-28 15:42:42 +04:00
|
|
|
#endif
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_DOUBLE_COMPLEX OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_dblcplex)
|
|
|
|
#define MPI_2REAL OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_2real)
|
|
|
|
#define MPI_2DOUBLE_PRECISION OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_2dblprec)
|
|
|
|
#define MPI_2INTEGER OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_2integer)
|
2004-09-19 14:16:00 +04:00
|
|
|
|
2011-01-13 09:08:54 +03:00
|
|
|
/* New datatypes from the MPI 2.2 standard */
|
|
|
|
#define MPI_INT8_T OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_int8_t)
|
|
|
|
#define MPI_UINT8_T OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_uint8_t)
|
|
|
|
#define MPI_INT16_T OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_int16_t)
|
|
|
|
#define MPI_UINT16_T OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_uint16_t)
|
|
|
|
#define MPI_INT32_T OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_int32_t)
|
|
|
|
#define MPI_UINT32_T OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_uint32_t)
|
|
|
|
#define MPI_INT64_T OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_int64_t)
|
|
|
|
#define MPI_UINT64_T OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_uint64_t)
|
|
|
|
#define MPI_AINT OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_aint)
|
|
|
|
#define MPI_OFFSET OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_offset)
|
|
|
|
#define MPI_C_BOOL OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_c_bool)
|
|
|
|
#if HAVE_FLOAT__COMPLEX
|
|
|
|
#define MPI_C_COMPLEX OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_c_complex)
|
|
|
|
#define MPI_C_FLOAT_COMPLEX OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_c_float_complex)
|
|
|
|
#endif
|
|
|
|
#if HAVE_DOUBLE__COMPLEX
|
|
|
|
#define MPI_C_DOUBLE_COMPLEX OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_c_double_complex)
|
|
|
|
#endif
|
|
|
|
#if HAVE_LONG_DOUBLE__COMPLEX
|
|
|
|
#define MPI_C_LONG_DOUBLE_COMPLEX OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_c_long_double_complex)
|
|
|
|
#endif
|
2013-07-23 03:45:45 +04:00
|
|
|
#define MPI_CXX_BOOL OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_cxx_bool)
|
|
|
|
#define MPI_CXX_FLOAT_COMPLEX OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_cxx_cplex)
|
|
|
|
#define MPI_CXX_DOUBLE_COMPLEX OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_cxx_dblcplex)
|
|
|
|
#define MPI_CXX_LONG_DOUBLE_COMPLEX OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_cxx_ldblcplex)
|
2011-01-13 09:08:54 +03:00
|
|
|
|
2013-07-23 19:35:14 +04:00
|
|
|
/* New datatypes from the 3.0 standard */
|
|
|
|
#define MPI_COUNT OMPI_PREDEFINED_GLOBAL(MPI_Datatype, ompi_mpi_count)
|
|
|
|
|
2009-05-05 20:41:26 +04:00
|
|
|
#define MPI_ERRORS_ARE_FATAL OMPI_PREDEFINED_GLOBAL(MPI_Errhandler, ompi_mpi_errors_are_fatal)
|
|
|
|
#define MPI_ERRORS_RETURN OMPI_PREDEFINED_GLOBAL(MPI_Errhandler, ompi_mpi_errors_return)
|
2004-01-10 11:17:22 +03:00
|
|
|
|
2005-02-23 11:16:09 +03:00
|
|
|
/* Typeclass definition for MPI_Type_match_size */
|
|
|
|
#define MPI_TYPECLASS_INTEGER 1
|
|
|
|
#define MPI_TYPECLASS_REAL 2
|
|
|
|
#define MPI_TYPECLASS_COMPLEX 3
|
2004-01-10 11:17:22 +03:00
|
|
|
|
2003-11-22 19:36:58 +03:00
|
|
|
|
2004-12-12 18:29:29 +03:00
|
|
|
/*
|
|
|
|
* MPI API
|
|
|
|
*/
|
2003-11-22 19:36:58 +03:00
|
|
|
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Abort(MPI_Comm comm, int errorcode);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Accumulate(const void *origin_addr, int origin_count, MPI_Datatype origin_datatype,
|
2004-10-22 21:47:53 +04:00
|
|
|
int target_rank, MPI_Aint target_disp, int target_count,
|
2009-05-27 16:46:04 +04:00
|
|
|
MPI_Datatype target_datatype, MPI_Op op, MPI_Win win);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Add_error_class(int *errorclass);
|
|
|
|
OMPI_DECLSPEC int MPI_Add_error_code(int errorclass, int *errorcode);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Add_error_string(int errorcode, const char *string);
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Address(void *location, MPI_Aint *address)
|
|
|
|
__mpi_interface_deprecated__("MPI_Address is superseded by MPI_Get_address in MPI-2.0");
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Allgather(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2009-05-27 16:46:04 +04:00
|
|
|
void *recvbuf, int recvcount,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype recvtype, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Iallgather(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2012-06-23 00:54:12 +04:00
|
|
|
void *recvbuf, int recvcount,
|
|
|
|
MPI_Datatype recvtype, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Allgatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
|
|
|
void *recvbuf, const int recvcounts[],
|
|
|
|
const int displs[], MPI_Datatype recvtype, MPI_Comm comm);
|
|
|
|
OMPI_DECLSPEC int MPI_Iallgatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
|
|
|
void *recvbuf, const int recvcounts[],
|
|
|
|
const int displs[], MPI_Datatype recvtype, MPI_Comm comm, MPI_Request *request);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Alloc_mem(MPI_Aint size, MPI_Info info,
|
2004-10-22 21:47:53 +04:00
|
|
|
void *baseptr);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Allreduce(const void *sendbuf, void *recvbuf, int count,
|
2009-05-27 16:46:04 +04:00
|
|
|
MPI_Datatype datatype, MPI_Op op, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Iallreduce(const void *sendbuf, void *recvbuf, int count,
|
2012-06-23 00:54:12 +04:00
|
|
|
MPI_Datatype datatype, MPI_Op op, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Alltoall(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2009-05-27 16:46:04 +04:00
|
|
|
void *recvbuf, int recvcount,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype recvtype, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Ialltoall(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2012-06-23 00:54:12 +04:00
|
|
|
void *recvbuf, int recvcount,
|
|
|
|
MPI_Datatype recvtype, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Alltoallv(const void *sendbuf, const int sendcounts[], const int sdispls[],
|
|
|
|
MPI_Datatype sendtype, void *recvbuf, const int recvcounts[],
|
|
|
|
const int rdispls[], MPI_Datatype recvtype, MPI_Comm comm);
|
|
|
|
OMPI_DECLSPEC int MPI_Ialltoallv(const void *sendbuf, const int sendcounts[], const int sdispls[],
|
|
|
|
MPI_Datatype sendtype, void *recvbuf, const int recvcounts[],
|
|
|
|
const int rdispls[], MPI_Datatype recvtype, MPI_Comm comm, MPI_Request *request);
|
|
|
|
OMPI_DECLSPEC int MPI_Alltoallw(const void *sendbuf, const int sendcounts[], const int sdispls[], const MPI_Datatype sendtypes[],
|
|
|
|
void *recvbuf, const int recvcounts[], const int rdispls[], const MPI_Datatype recvtypes[],
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Ialltoallw(const void *sendbuf, const int sendcounts[], const int sdispls[], const MPI_Datatype sendtypes[],
|
|
|
|
void *recvbuf, const int recvcounts[], const int rdispls[], const MPI_Datatype recvtypes[],
|
2012-06-23 00:54:12 +04:00
|
|
|
MPI_Comm comm, MPI_Request *request);
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Attr_delete(MPI_Comm comm, int keyval)
|
|
|
|
__mpi_interface_deprecated__("MPI_Attr_delete is superseded by MPI_Comm_delete_attr in MPI-2.0");
|
|
|
|
OMPI_DECLSPEC int MPI_Attr_get(MPI_Comm comm, int keyval, void *attribute_val, int *flag)
|
|
|
|
__mpi_interface_deprecated__("MPI_Attr_get is superseded by MPI_Comm_get_attr in MPI-2.0");
|
|
|
|
OMPI_DECLSPEC int MPI_Attr_put(MPI_Comm comm, int keyval, void *attribute_val)
|
|
|
|
__mpi_interface_deprecated__("MPI_Attr_put is superseded by MPI_Comm_set_attr in MPI-2.0");
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Barrier(MPI_Comm comm);
|
2012-06-23 00:54:12 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Ibarrier(MPI_Comm comm, MPI_Request *request);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Bcast(void *buffer, int count, MPI_Datatype datatype,
|
2004-10-22 21:47:53 +04:00
|
|
|
int root, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Bsend(const void *buf, int count, MPI_Datatype datatype,
|
2004-10-22 21:47:53 +04:00
|
|
|
int dest, int tag, MPI_Comm comm);
|
2012-06-23 00:54:12 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Ibcast(void *buffer, int count, MPI_Datatype datatype,
|
|
|
|
int root, MPI_Comm comm,
|
|
|
|
MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Bsend_init(const void *buf, int count, MPI_Datatype datatype,
|
2009-05-27 16:46:04 +04:00
|
|
|
int dest, int tag, MPI_Comm comm, MPI_Request *request);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Buffer_attach(void *buffer, int size);
|
|
|
|
OMPI_DECLSPEC int MPI_Buffer_detach(void *buffer, int *size);
|
|
|
|
OMPI_DECLSPEC int MPI_Cancel(MPI_Request *request);
|
2012-08-02 20:31:02 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Cart_coords(MPI_Comm comm, int rank, int maxdims, int coords[]);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Cart_create(MPI_Comm old_comm, int ndims, const int dims[],
|
|
|
|
const int periods[], int reorder, MPI_Comm *comm_cart);
|
2012-08-02 20:31:02 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Cart_get(MPI_Comm comm, int maxdims, int dims[],
|
|
|
|
int periods[], int coords[]);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Cart_map(MPI_Comm comm, int ndims, const int dims[],
|
|
|
|
const int periods[], int *newrank);
|
|
|
|
OMPI_DECLSPEC int MPI_Cart_rank(MPI_Comm comm, const int coords[], int *rank);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Cart_shift(MPI_Comm comm, int direction, int disp,
|
2004-10-22 21:47:53 +04:00
|
|
|
int *rank_source, int *rank_dest);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Cart_sub(MPI_Comm comm, const int remain_dims[], MPI_Comm *new_comm);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Cartdim_get(MPI_Comm comm, int *ndims);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Close_port(const char *port_name);
|
|
|
|
OMPI_DECLSPEC int MPI_Comm_accept(const char *port_name, MPI_Info info, int root,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Comm comm, MPI_Comm *newcomm);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC MPI_Fint MPI_Comm_c2f(MPI_Comm comm);
|
|
|
|
OMPI_DECLSPEC int MPI_Comm_call_errhandler(MPI_Comm comm, int errorcode);
|
|
|
|
OMPI_DECLSPEC int MPI_Comm_compare(MPI_Comm comm1, MPI_Comm comm2, int *result);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Comm_connect(const char *port_name, MPI_Info info, int root,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Comm comm, MPI_Comm *newcomm);
|
2009-10-22 20:50:45 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Comm_create_errhandler(MPI_Comm_errhandler_function *function,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Errhandler *errhandler);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Comm_create_keyval(MPI_Comm_copy_attr_function *comm_copy_attr_fn,
|
|
|
|
MPI_Comm_delete_attr_function *comm_delete_attr_fn,
|
2004-10-22 21:47:53 +04:00
|
|
|
int *comm_keyval, void *extra_state);
|
2013-10-02 18:26:40 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Comm_create_group(MPI_Comm comm, MPI_Group group, int tag, MPI_Comm *newcomm);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Comm_create(MPI_Comm comm, MPI_Group group, MPI_Comm *newcomm);
|
|
|
|
OMPI_DECLSPEC int MPI_Comm_delete_attr(MPI_Comm comm, int comm_keyval);
|
|
|
|
OMPI_DECLSPEC int MPI_Comm_disconnect(MPI_Comm *comm);
|
|
|
|
OMPI_DECLSPEC int MPI_Comm_dup(MPI_Comm comm, MPI_Comm *newcomm);
|
2013-10-02 18:26:40 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Comm_idup(MPI_Comm comm, MPI_Comm *newcomm, MPI_Request *request);
|
|
|
|
OMPI_DECLSPEC int MPI_Comm_dup_with_info(MPI_Comm comm, MPI_Info info, MPI_Comm *newcomm);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC MPI_Comm MPI_Comm_f2c(MPI_Fint comm);
|
|
|
|
OMPI_DECLSPEC int MPI_Comm_free_keyval(int *comm_keyval);
|
|
|
|
OMPI_DECLSPEC int MPI_Comm_free(MPI_Comm *comm);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Comm_get_attr(MPI_Comm comm, int comm_keyval,
|
2004-10-22 21:47:53 +04:00
|
|
|
void *attribute_val, int *flag);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Dist_graph_create(MPI_Comm comm_old, int n, const int nodes[],
|
|
|
|
const int degrees[], const int targets[],
|
|
|
|
const int weights[], MPI_Info info,
|
2013-07-01 16:40:08 +04:00
|
|
|
int reorder, MPI_Comm * newcomm);
|
|
|
|
OMPI_DECLSPEC int MPI_Dist_graph_create_adjacent(MPI_Comm comm_old,
|
2013-09-27 01:56:20 +04:00
|
|
|
int indegree, const int sources[],
|
|
|
|
const int sourceweights[],
|
2013-07-01 16:40:08 +04:00
|
|
|
int outdegree,
|
2013-09-27 01:56:20 +04:00
|
|
|
const int destinations[],
|
|
|
|
const int destweights[],
|
2013-07-01 16:40:08 +04:00
|
|
|
MPI_Info info, int reorder,
|
|
|
|
MPI_Comm *comm_dist_graph);
|
|
|
|
OMPI_DECLSPEC int MPI_Dist_graph_neighbors(MPI_Comm comm, int maxindegree,
|
|
|
|
int sources[], int sourceweights[],
|
2013-09-27 01:55:08 +04:00
|
|
|
int maxoutdegree,
|
2013-07-01 16:40:08 +04:00
|
|
|
int destinations[],
|
|
|
|
int destweights[]);
|
2013-09-27 01:55:08 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Dist_graph_neighbors_count(MPI_Comm comm,
|
2013-07-01 16:40:08 +04:00
|
|
|
int *inneighbors,
|
2013-09-27 01:55:08 +04:00
|
|
|
int *outneighbors,
|
2013-07-01 16:40:08 +04:00
|
|
|
int *weighted);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Comm_get_errhandler(MPI_Comm comm, MPI_Errhandler *erhandler);
|
|
|
|
OMPI_DECLSPEC int MPI_Comm_get_name(MPI_Comm comm, char *comm_name, int *resultlen);
|
|
|
|
OMPI_DECLSPEC int MPI_Comm_get_parent(MPI_Comm *parent);
|
|
|
|
OMPI_DECLSPEC int MPI_Comm_group(MPI_Comm comm, MPI_Group *group);
|
|
|
|
OMPI_DECLSPEC int MPI_Comm_join(int fd, MPI_Comm *intercomm);
|
|
|
|
OMPI_DECLSPEC int MPI_Comm_rank(MPI_Comm comm, int *rank);
|
|
|
|
OMPI_DECLSPEC int MPI_Comm_remote_group(MPI_Comm comm, MPI_Group *group);
|
|
|
|
OMPI_DECLSPEC int MPI_Comm_remote_size(MPI_Comm comm, int *size);
|
|
|
|
OMPI_DECLSPEC int MPI_Comm_set_attr(MPI_Comm comm, int comm_keyval, void *attribute_val);
|
|
|
|
OMPI_DECLSPEC int MPI_Comm_set_errhandler(MPI_Comm comm, MPI_Errhandler errhandler);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Comm_set_name(MPI_Comm comm, const char *comm_name);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Comm_size(MPI_Comm comm, int *size);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Comm_spawn(const char *command, char *argv[], int maxprocs, MPI_Info info,
|
2009-05-27 16:46:04 +04:00
|
|
|
int root, MPI_Comm comm, MPI_Comm *intercomm,
|
2013-09-27 01:56:20 +04:00
|
|
|
int array_of_errcodes[]);
|
|
|
|
OMPI_DECLSPEC int MPI_Comm_spawn_multiple(int count, char *array_of_commands[], char **array_of_argv[],
|
|
|
|
const int array_of_maxprocs[], const MPI_Info array_of_info[],
|
2009-05-27 16:46:04 +04:00
|
|
|
int root, MPI_Comm comm, MPI_Comm *intercomm,
|
2013-09-27 01:56:20 +04:00
|
|
|
int array_of_errcodes[]);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Comm_split(MPI_Comm comm, int color, int key, MPI_Comm *newcomm);
|
2012-01-19 03:35:21 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Comm_split_type(MPI_Comm comm, int split_type, int key, MPI_Info info, MPI_Comm *newcomm);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Comm_test_inter(MPI_Comm comm, int *flag);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Compare_and_swap(void *origin_addr, void *compare_addr,
|
|
|
|
void *result_addr, MPI_Datatype datatype, int target_rank,
|
|
|
|
MPI_Aint target_disp, MPI_Win win);
|
2012-08-03 05:09:59 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Dims_create(int nnodes, int ndims, int dims[]);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC MPI_Fint MPI_Errhandler_c2f(MPI_Errhandler errhandler);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Errhandler_create(MPI_Handler_function *function,
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
MPI_Errhandler *errhandler)
|
|
|
|
__mpi_interface_deprecated__("MPI_Errhandler_create is superseded by MPI_Comm_create_errhandler in MPI-2.0");
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC MPI_Errhandler MPI_Errhandler_f2c(MPI_Fint errhandler);
|
|
|
|
OMPI_DECLSPEC int MPI_Errhandler_free(MPI_Errhandler *errhandler);
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Errhandler_get(MPI_Comm comm, MPI_Errhandler *errhandler)
|
|
|
|
__mpi_interface_deprecated__("MPI_Errhandler_get is superseded by MPI_Comm_get_errhandler in MPI-2.0");
|
|
|
|
OMPI_DECLSPEC int MPI_Errhandler_set(MPI_Comm comm, MPI_Errhandler errhandler)
|
|
|
|
__mpi_interface_deprecated__("MPI_Errhandler_set is superseded by MPI_Comm_set_errhandler in MPI-2.0");
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Error_class(int errorcode, int *errorclass);
|
|
|
|
OMPI_DECLSPEC int MPI_Error_string(int errorcode, char *string, int *resultlen);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Exscan(const void *sendbuf, void *recvbuf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Op op, MPI_Comm comm);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Fetch_and_op(void *origin_addr, void *result_addr, MPI_Datatype datatype,
|
|
|
|
int target_rank, MPI_Aint target_disp, MPI_Op op, MPI_Win win);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Iexscan(const void *sendbuf, void *recvbuf, int count,
|
2012-06-23 00:54:12 +04:00
|
|
|
MPI_Datatype datatype, MPI_Op op, MPI_Comm comm, MPI_Request *request);
|
2007-08-19 01:35:51 +04:00
|
|
|
#if OMPI_PROVIDE_MPI_FILE_INTERFACE
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC MPI_Fint MPI_File_c2f(MPI_File file);
|
|
|
|
OMPI_DECLSPEC MPI_File MPI_File_f2c(MPI_Fint file);
|
|
|
|
OMPI_DECLSPEC int MPI_File_call_errhandler(MPI_File fh, int errorcode);
|
2009-10-22 20:50:45 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_create_errhandler(MPI_File_errhandler_function *function,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Errhandler *errhandler);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_set_errhandler( MPI_File file, MPI_Errhandler errhandler);
|
|
|
|
OMPI_DECLSPEC int MPI_File_get_errhandler( MPI_File file, MPI_Errhandler *errhandler);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_open(MPI_Comm comm, const char *filename, int amode,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Info info, MPI_File *fh);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_close(MPI_File *fh);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_delete(const char *filename, MPI_Info info);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_set_size(MPI_File fh, MPI_Offset size);
|
|
|
|
OMPI_DECLSPEC int MPI_File_preallocate(MPI_File fh, MPI_Offset size);
|
|
|
|
OMPI_DECLSPEC int MPI_File_get_size(MPI_File fh, MPI_Offset *size);
|
|
|
|
OMPI_DECLSPEC int MPI_File_get_group(MPI_File fh, MPI_Group *group);
|
|
|
|
OMPI_DECLSPEC int MPI_File_get_amode(MPI_File fh, int *amode);
|
|
|
|
OMPI_DECLSPEC int MPI_File_set_info(MPI_File fh, MPI_Info info);
|
|
|
|
OMPI_DECLSPEC int MPI_File_get_info(MPI_File fh, MPI_Info *info_used);
|
|
|
|
OMPI_DECLSPEC int MPI_File_set_view(MPI_File fh, MPI_Offset disp, MPI_Datatype etype,
|
2013-09-27 01:56:20 +04:00
|
|
|
MPI_Datatype filetype, const char *datarep, MPI_Info info);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_get_view(MPI_File fh, MPI_Offset *disp,
|
2009-05-27 16:46:04 +04:00
|
|
|
MPI_Datatype *etype,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype *filetype, char *datarep);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_read_at(MPI_File fh, MPI_Offset offset, void *buf,
|
2004-10-22 21:47:53 +04:00
|
|
|
int count, MPI_Datatype datatype, MPI_Status *status);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_read_at_all(MPI_File fh, MPI_Offset offset, void *buf,
|
2004-10-22 21:47:53 +04:00
|
|
|
int count, MPI_Datatype datatype, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_write_at(MPI_File fh, MPI_Offset offset, const void *buf,
|
2004-10-22 21:47:53 +04:00
|
|
|
int count, MPI_Datatype datatype, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_write_at_all(MPI_File fh, MPI_Offset offset, const void *buf,
|
2004-10-22 21:47:53 +04:00
|
|
|
int count, MPI_Datatype datatype, MPI_Status *status);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_iread_at(MPI_File fh, MPI_Offset offset, void *buf,
|
2004-10-22 21:47:53 +04:00
|
|
|
int count, MPI_Datatype datatype, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_iwrite_at(MPI_File fh, MPI_Offset offset, const void *buf,
|
2004-10-22 21:47:53 +04:00
|
|
|
int count, MPI_Datatype datatype, MPI_Request *request);
|
|
|
|
OMPI_DECLSPEC int MPI_File_read(MPI_File fh, void *buf, int count,
|
|
|
|
MPI_Datatype datatype, MPI_Status *status);
|
|
|
|
OMPI_DECLSPEC int MPI_File_read_all(MPI_File fh, void *buf, int count,
|
|
|
|
MPI_Datatype datatype, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_write(MPI_File fh, const void *buf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_write_all(MPI_File fh, const void *buf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Status *status);
|
|
|
|
OMPI_DECLSPEC int MPI_File_iread(MPI_File fh, void *buf, int count,
|
|
|
|
MPI_Datatype datatype, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_iwrite(MPI_File fh, const void *buf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Request *request);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_seek(MPI_File fh, MPI_Offset offset, int whence);
|
|
|
|
OMPI_DECLSPEC int MPI_File_get_position(MPI_File fh, MPI_Offset *offset);
|
|
|
|
OMPI_DECLSPEC int MPI_File_get_byte_offset(MPI_File fh, MPI_Offset offset,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Offset *disp);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_read_shared(MPI_File fh, void *buf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_write_shared(MPI_File fh, const void *buf, int count,
|
2009-02-24 20:17:33 +03:00
|
|
|
MPI_Datatype datatype, MPI_Status *status);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_iread_shared(MPI_File fh, void *buf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_iwrite_shared(MPI_File fh, const void *buf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Request *request);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_read_ordered(MPI_File fh, void *buf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_write_ordered(MPI_File fh, const void *buf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Status *status);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_seek_shared(MPI_File fh, MPI_Offset offset, int whence);
|
|
|
|
OMPI_DECLSPEC int MPI_File_get_position_shared(MPI_File fh, MPI_Offset *offset);
|
|
|
|
OMPI_DECLSPEC int MPI_File_read_at_all_begin(MPI_File fh, MPI_Offset offset, void *buf,
|
2004-10-22 21:47:53 +04:00
|
|
|
int count, MPI_Datatype datatype);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_read_at_all_end(MPI_File fh, void *buf, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_write_at_all_begin(MPI_File fh, MPI_Offset offset, const void *buf,
|
2004-10-22 21:47:53 +04:00
|
|
|
int count, MPI_Datatype datatype);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_write_at_all_end(MPI_File fh, const void *buf, MPI_Status *status);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_read_all_begin(MPI_File fh, void *buf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_read_all_end(MPI_File fh, void *buf, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_write_all_begin(MPI_File fh, const void *buf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_write_all_end(MPI_File fh, const void *buf, MPI_Status *status);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_read_ordered_begin(MPI_File fh, void *buf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_read_ordered_end(MPI_File fh, void *buf, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_write_ordered_begin(MPI_File fh, const void *buf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_write_ordered_end(MPI_File fh, const void *buf, MPI_Status *status);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_get_type_extent(MPI_File fh, MPI_Datatype datatype,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Aint *extent);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_File_set_atomicity(MPI_File fh, int flag);
|
|
|
|
OMPI_DECLSPEC int MPI_File_get_atomicity(MPI_File fh, int *flag);
|
|
|
|
OMPI_DECLSPEC int MPI_File_sync(MPI_File fh);
|
2007-08-19 01:35:51 +04:00
|
|
|
#endif /* #if OMPI_PROVIDE_MPI_FILE_INTERFACE */
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Finalize(void);
|
|
|
|
OMPI_DECLSPEC int MPI_Finalized(int *flag);
|
|
|
|
OMPI_DECLSPEC int MPI_Free_mem(void *base);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Gather(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2009-05-27 16:46:04 +04:00
|
|
|
void *recvbuf, int recvcount, MPI_Datatype recvtype,
|
2004-10-22 21:47:53 +04:00
|
|
|
int root, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Igather(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2012-06-23 00:54:12 +04:00
|
|
|
void *recvbuf, int recvcount, MPI_Datatype recvtype,
|
|
|
|
int root, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Gatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
|
|
|
void *recvbuf, const int recvcounts[], const int displs[],
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype recvtype, int root, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Igatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
|
|
|
void *recvbuf, const int recvcounts[], const int displs[],
|
2012-06-23 00:54:12 +04:00
|
|
|
MPI_Datatype recvtype, int root, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Get_address(const void *location, MPI_Aint *address);
|
|
|
|
OMPI_DECLSPEC int MPI_Get_count(const MPI_Status *status, MPI_Datatype datatype, int *count);
|
|
|
|
OMPI_DECLSPEC int MPI_Get_elements(const MPI_Status *status, MPI_Datatype datatype, int *count);
|
|
|
|
OMPI_DECLSPEC int MPI_Get_elements_x(const MPI_Status *status, MPI_Datatype datatype, MPI_Count *count);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Get(void *origin_addr, int origin_count,
|
|
|
|
MPI_Datatype origin_datatype, int target_rank,
|
|
|
|
MPI_Aint target_disp, int target_count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype target_datatype, MPI_Win win);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Get_accumulate(const void *origin_addr, int origin_count, MPI_Datatype origin_datatype,
|
|
|
|
void *result_addr, int result_count, MPI_Datatype result_datatype,
|
|
|
|
int target_rank, MPI_Aint target_disp, int target_count,
|
|
|
|
MPI_Datatype target_datatype, MPI_Op op, MPI_Win win);
|
2012-02-03 03:57:09 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Get_library_version(char *version, int *resultlen);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Get_processor_name(char *name, int *resultlen);
|
|
|
|
OMPI_DECLSPEC int MPI_Get_version(int *version, int *subversion);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Graph_create(MPI_Comm comm_old, int nnodes, const int index[],
|
|
|
|
const int edges[], int reorder, MPI_Comm *comm_graph);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Graph_get(MPI_Comm comm, int maxindex, int maxedges,
|
2012-08-02 20:31:02 +04:00
|
|
|
int index[], int edges[]);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Graph_map(MPI_Comm comm, int nnodes, const int index[], const int edges[],
|
2004-10-22 21:47:53 +04:00
|
|
|
int *newrank);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Graph_neighbors_count(MPI_Comm comm, int rank, int *nneighbors);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Graph_neighbors(MPI_Comm comm, int rank, int maxneighbors,
|
2012-08-02 20:31:02 +04:00
|
|
|
int neighbors[]);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Graphdims_get(MPI_Comm comm, int *nnodes, int *nedges);
|
|
|
|
OMPI_DECLSPEC int MPI_Grequest_complete(MPI_Request request);
|
|
|
|
OMPI_DECLSPEC int MPI_Grequest_start(MPI_Grequest_query_function *query_fn,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Grequest_free_function *free_fn,
|
|
|
|
MPI_Grequest_cancel_function *cancel_fn,
|
|
|
|
void *extra_state, MPI_Request *request);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC MPI_Fint MPI_Group_c2f(MPI_Group group);
|
|
|
|
OMPI_DECLSPEC int MPI_Group_compare(MPI_Group group1, MPI_Group group2, int *result);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Group_difference(MPI_Group group1, MPI_Group group2,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Group *newgroup);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Group_excl(MPI_Group group, int n, const int ranks[],
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Group *newgroup);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC MPI_Group MPI_Group_f2c(MPI_Fint group);
|
|
|
|
OMPI_DECLSPEC int MPI_Group_free(MPI_Group *group);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Group_incl(MPI_Group group, int n, const int ranks[],
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Group *newgroup);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Group_intersection(MPI_Group group1, MPI_Group group2,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Group *newgroup);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Group_range_excl(MPI_Group group, int n, int ranges[][3],
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Group *newgroup);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Group_range_incl(MPI_Group group, int n, int ranges[][3],
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Group *newgroup);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Group_rank(MPI_Group group, int *rank);
|
|
|
|
OMPI_DECLSPEC int MPI_Group_size(MPI_Group group, int *size);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Group_translate_ranks(MPI_Group group1, int n, const int ranks1[],
|
2012-08-02 20:31:02 +04:00
|
|
|
MPI_Group group2, int ranks2[]);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Group_union(MPI_Group group1, MPI_Group group2,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Group *newgroup);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Ibsend(const void *buf, int count, MPI_Datatype datatype, int dest,
|
2004-10-22 21:47:53 +04:00
|
|
|
int tag, MPI_Comm comm, MPI_Request *request);
|
2012-02-06 21:35:21 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Improbe(int source, int tag, MPI_Comm comm,
|
|
|
|
int *flag, MPI_Message *message,
|
|
|
|
MPI_Status *status);
|
|
|
|
OMPI_DECLSPEC int MPI_Imrecv(void *buf, int count, MPI_Datatype type,
|
|
|
|
MPI_Message *message, MPI_Request *request);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC MPI_Fint MPI_Info_c2f(MPI_Info info);
|
|
|
|
OMPI_DECLSPEC int MPI_Info_create(MPI_Info *info);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Info_delete(MPI_Info info, const char *key);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Info_dup(MPI_Info info, MPI_Info *newinfo);
|
|
|
|
OMPI_DECLSPEC MPI_Info MPI_Info_f2c(MPI_Fint info);
|
|
|
|
OMPI_DECLSPEC int MPI_Info_free(MPI_Info *info);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Info_get(MPI_Info info, const char *key, int valuelen,
|
2004-10-22 21:47:53 +04:00
|
|
|
char *value, int *flag);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Info_get_nkeys(MPI_Info info, int *nkeys);
|
|
|
|
OMPI_DECLSPEC int MPI_Info_get_nthkey(MPI_Info info, int n, char *key);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Info_get_valuelen(MPI_Info info, const char *key, int *valuelen,
|
2004-10-22 21:47:53 +04:00
|
|
|
int *flag);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Info_set(MPI_Info info, char *key, char *value);
|
|
|
|
OMPI_DECLSPEC int MPI_Init(int *argc, char ***argv);
|
|
|
|
OMPI_DECLSPEC int MPI_Initialized(int *flag);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Init_thread(int *argc, char ***argv, int required,
|
2004-10-22 21:47:53 +04:00
|
|
|
int *provided);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Intercomm_create(MPI_Comm local_comm, int local_leader,
|
|
|
|
MPI_Comm bridge_comm, int remote_leader,
|
2004-10-22 21:47:53 +04:00
|
|
|
int tag, MPI_Comm *newintercomm);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Intercomm_merge(MPI_Comm intercomm, int high,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Comm *newintercomm);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Iprobe(int source, int tag, MPI_Comm comm, int *flag,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Status *status);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Irecv(void *buf, int count, MPI_Datatype datatype, int source,
|
2004-10-22 21:47:53 +04:00
|
|
|
int tag, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Irsend(const void *buf, int count, MPI_Datatype datatype, int dest,
|
2004-10-22 21:47:53 +04:00
|
|
|
int tag, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Isend(const void *buf, int count, MPI_Datatype datatype, int dest,
|
2004-10-22 21:47:53 +04:00
|
|
|
int tag, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Issend(const void *buf, int count, MPI_Datatype datatype, int dest,
|
2004-10-22 21:47:53 +04:00
|
|
|
int tag, MPI_Comm comm, MPI_Request *request);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Is_thread_main(int *flag);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Keyval_create(MPI_Copy_function *copy_fn,
|
|
|
|
MPI_Delete_function *delete_fn,
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
int *keyval, void *extra_state)
|
2011-01-27 22:55:42 +03:00
|
|
|
__mpi_interface_deprecated__("MPI_Keyval_create is superseded by MPI_Comm_create_keyval in MPI-2.0");
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Keyval_free(int *keyval)
|
2011-01-27 22:55:42 +03:00
|
|
|
__mpi_interface_deprecated__("MPI_Keyval_free is superseded by MPI_Comm_free_keyval in MPI-2.0");
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Lookup_name(const char *service_name, MPI_Info info, char *port_name);
|
2012-02-06 21:35:21 +04:00
|
|
|
OMPI_DECLSPEC MPI_Fint MPI_Message_c2f(MPI_Message message);
|
|
|
|
OMPI_DECLSPEC MPI_Message MPI_Message_f2c(MPI_Fint message);
|
|
|
|
OMPI_DECLSPEC int MPI_Mprobe(int source, int tag, MPI_Comm comm,
|
|
|
|
MPI_Message *message,
|
|
|
|
MPI_Status *status);
|
|
|
|
OMPI_DECLSPEC int MPI_Mrecv(void *buf, int count, MPI_Datatype type,
|
|
|
|
MPI_Message *message, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Neighbor_allgather(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2013-09-27 01:55:08 +04:00
|
|
|
void *recvbuf, int recvcount, MPI_Datatype recvtype,
|
|
|
|
MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Ineighbor_allgather(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2013-09-27 01:55:08 +04:00
|
|
|
void *recvbuf, int recvcount, MPI_Datatype recvtype,
|
|
|
|
MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Neighbor_allgatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
|
|
|
void *recvbuf, const int recvcounts[], const int displs[],
|
2013-09-27 01:55:08 +04:00
|
|
|
MPI_Datatype recvtype, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Ineighbor_allgatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
|
|
|
void *recvbuf, const int recvcounts[], const int displs[],
|
2013-09-27 01:55:08 +04:00
|
|
|
MPI_Datatype recvtype, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Neighbor_alltoall(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2013-09-27 01:55:08 +04:00
|
|
|
void *recvbuf, int recvcount, MPI_Datatype recvtype,
|
|
|
|
MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Ineighbor_alltoall(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2013-09-27 01:55:08 +04:00
|
|
|
void *recvbuf, int recvcount, MPI_Datatype recvtype,
|
|
|
|
MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Neighbor_alltoallv(const void *sendbuf, const int sendcounts[], const int sdispls[], MPI_Datatype sendtype,
|
|
|
|
void *recvbuf, const int recvcounts[], const int rdispls[], MPI_Datatype recvtype,
|
2013-09-27 01:55:08 +04:00
|
|
|
MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Ineighbor_alltoallv(const void *sendbuf, const int sendcounts[], const int sdispls[], MPI_Datatype sendtype,
|
|
|
|
void *recvbuf, const int recvcounts[], const int rdispls[], MPI_Datatype recvtype,
|
2013-09-27 01:55:08 +04:00
|
|
|
MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Neighbor_alltoallw(const void *sendbuf, const int sendcounts[], const MPI_Aint sdispls[], const MPI_Datatype sendtypes[],
|
|
|
|
void *recvbuf, const int recvcounts[], const MPI_Aint rdispls[], const MPI_Datatype recvtypes[],
|
2013-09-27 01:55:08 +04:00
|
|
|
MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Ineighbor_alltoallw(const void *sendbuf, const int sendcounts[], const MPI_Aint sdispls[], const MPI_Datatype sendtypes[],
|
|
|
|
void *recvbuf, const int recvcounts[], const MPI_Aint rdispls[], const MPI_Datatype recvtypes[],
|
2013-09-27 01:55:08 +04:00
|
|
|
MPI_Comm comm, MPI_Request *request);
|
|
|
|
OMPI_DECLSPEC MPI_Fint MPI_Op_c2f(MPI_Op op);
|
2009-10-23 01:46:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Op_commutative(MPI_Op op, int *commute);
|
2004-10-22 21:47:53 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Op_create(MPI_User_function *function, int commute, MPI_Op *op);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Open_port(MPI_Info info, char *port_name);
|
|
|
|
OMPI_DECLSPEC MPI_Op MPI_Op_f2c(MPI_Fint op);
|
|
|
|
OMPI_DECLSPEC int MPI_Op_free(MPI_Op *op);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Pack_external(const char datarep[], const void *inbuf, int incount,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, void *outbuf,
|
|
|
|
MPI_Aint outsize, MPI_Aint *position);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Pack_external_size(const char datarep[], int incount,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Aint *size);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Pack(const void *inbuf, int incount, MPI_Datatype datatype,
|
2004-10-22 21:47:53 +04:00
|
|
|
void *outbuf, int outsize, int *position, MPI_Comm comm);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Pack_size(int incount, MPI_Datatype datatype, MPI_Comm comm,
|
2004-10-22 21:47:53 +04:00
|
|
|
int *size);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Pcontrol(const int level, ...);
|
|
|
|
OMPI_DECLSPEC int MPI_Probe(int source, int tag, MPI_Comm comm, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Publish_name(const char *service_name, MPI_Info info,
|
|
|
|
const char *port_name);
|
|
|
|
OMPI_DECLSPEC int MPI_Put(const void *origin_addr, int origin_count, MPI_Datatype origin_datatype,
|
2009-05-27 16:46:04 +04:00
|
|
|
int target_rank, MPI_Aint target_disp, int target_count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype target_datatype, MPI_Win win);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Query_thread(int *provided);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Raccumulate(void *origin_addr, int origin_count, MPI_Datatype origin_datatype,
|
|
|
|
int target_rank, MPI_Aint target_disp, int target_count,
|
|
|
|
MPI_Datatype target_datatype, MPI_Op op, MPI_Win win, MPI_Request *request);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Recv_init(void *buf, int count, MPI_Datatype datatype, int source,
|
2004-10-22 21:47:53 +04:00
|
|
|
int tag, MPI_Comm comm, MPI_Request *request);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Recv(void *buf, int count, MPI_Datatype datatype, int source,
|
2004-10-22 21:47:53 +04:00
|
|
|
int tag, MPI_Comm comm, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Reduce(const void *sendbuf, void *recvbuf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Op op, int root, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Ireduce(const void *sendbuf, void *recvbuf, int count,
|
2012-06-23 00:54:12 +04:00
|
|
|
MPI_Datatype datatype, MPI_Op op, int root, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Reduce_local(const void *inbuf, void *inoutbuf, int count,
|
Two major things in this commit:
* New "op" MPI layer framework
* Addition of the MPI_REDUCE_LOCAL proposed function (for MPI-2.2)
= Op framework =
Add new "op" framework in the ompi layer. This framework replaces the
hard-coded MPI_Op back-end functions for (MPI_Op, MPI_Datatype) tuples
for pre-defined MPI_Ops, allowing components and modules to provide
the back-end functions. The intent is that components can be written
to take advantage of hardware acceleration (GPU, FPGA, specialized CPU
instructions, etc.). Similar to other frameworks, components are
intended to be able to discover at run-time if they can be used, and
if so, elect themselves to be selected (or disqualify themselves from
selection if they cannot run). If specialized hardware is not
available, there is a default set of functions that will automatically
be used.
This framework is ''not'' used for user-defined MPI_Ops.
The new op framework is similar to the existing coll framework, in
that the final set of function pointers that are used on any given
intrinsic MPI_Op can be a mixed bag of function pointers, potentially
coming from multiple different op modules. This allows for hardware
that only supports some of the operations, not all of them (e.g., a
GPU that only supports single-precision operations).
All the hard-coded back-end MPI_Op functions for (MPI_Op,
MPI_Datatype) tuples still exist, but unlike coll, they're in the
framework base (vs. being in a separate "basic" component) and are
automatically used if no component is found at runtime that provides a
module with the necessary function pointers.
There is an "example" op component that will hopefully be useful to
those writing meaningful op components. It is currently
.ompi_ignore'd so that it doesn't impinge on other developers (it's
somewhat chatty in terms of opal_output() so that you can tell when
its functions have been invoked). See the README file in the example
op component directory. Developers of new op components are
encouraged to look at the following wiki pages:
https://svn.open-mpi.org/trac/ompi/wiki/devel/Autogen
https://svn.open-mpi.org/trac/ompi/wiki/devel/CreateComponent
https://svn.open-mpi.org/trac/ompi/wiki/devel/CreateFramework
= MPI_REDUCE_LOCAL =
Part of the MPI-2.2 proposal listed here:
https://svn.mpi-forum.org/trac/mpi-forum-web/ticket/24
is to add a new function named MPI_REDUCE_LOCAL. It is very easy to
implement, so I added it (also because it makes testing the op
framework pretty easy -- you can do it in serial rather than via
parallel reductions). There's even a man page!
This commit was SVN r20280.
2009-01-15 02:44:31 +03:00
|
|
|
MPI_Datatype datatype, MPI_Op op);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Reduce_scatter(const void *sendbuf, void *recvbuf, const int recvcounts[],
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Op op, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Ireduce_scatter(const void *sendbuf, void *recvbuf, const int recvcounts[],
|
2012-06-23 00:54:12 +04:00
|
|
|
MPI_Datatype datatype, MPI_Op op, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Reduce_scatter_block(const void *sendbuf, void *recvbuf, int recvcount,
|
2012-06-23 00:54:12 +04:00
|
|
|
MPI_Datatype datatype, MPI_Op op, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Ireduce_scatter_block(const void *sendbuf, void *recvbuf, int recvcount,
|
2012-06-23 00:54:12 +04:00
|
|
|
MPI_Datatype datatype, MPI_Op op, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Register_datarep(const char *datarep,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datarep_conversion_function *read_conversion_fn,
|
|
|
|
MPI_Datarep_conversion_function *write_conversion_fn,
|
|
|
|
MPI_Datarep_extent_function *dtype_file_extent_fn,
|
|
|
|
void *extra_state);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC MPI_Fint MPI_Request_c2f(MPI_Request request);
|
|
|
|
OMPI_DECLSPEC MPI_Request MPI_Request_f2c(MPI_Fint request);
|
|
|
|
OMPI_DECLSPEC int MPI_Request_free(MPI_Request *request);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Request_get_status(MPI_Request request, int *flag,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Status *status);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Rget(void *origin_addr, int origin_count, MPI_Datatype origin_datatype,
|
|
|
|
int target_rank, MPI_Aint target_disp, int target_count, MPI_Datatype target_datatype,
|
|
|
|
MPI_Win win, MPI_Request *request);
|
|
|
|
OMPI_DECLSPEC int MPI_Rget_accumulate(const void *origin_addr, int origin_count, MPI_Datatype origin_datatype,
|
|
|
|
void *result_addr, int result_count, MPI_Datatype result_datatype,
|
|
|
|
int target_rank, MPI_Aint target_disp, int target_count,
|
|
|
|
MPI_Datatype target_datatype, MPI_Op op,
|
|
|
|
MPI_Win win, MPI_Request *request);
|
|
|
|
OMPI_DECLSPEC int MPI_Rput(const void *origin_addr, int origin_count, MPI_Datatype origin_datatype,
|
|
|
|
int target_rank, MPI_Aint target_disp, int target_cout,
|
|
|
|
MPI_Datatype target_datatype, MPI_Win win, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Rsend(const void *ibuf, int count, MPI_Datatype datatype, int dest,
|
2004-10-22 21:47:53 +04:00
|
|
|
int tag, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Rsend_init(const void *buf, int count, MPI_Datatype datatype,
|
2009-05-27 16:46:04 +04:00
|
|
|
int dest, int tag, MPI_Comm comm,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Scan(const void *sendbuf, void *recvbuf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Op op, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Iscan(const void *sendbuf, void *recvbuf, int count,
|
2012-06-23 00:54:12 +04:00
|
|
|
MPI_Datatype datatype, MPI_Op op, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Scatter(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2009-05-27 16:46:04 +04:00
|
|
|
void *recvbuf, int recvcount, MPI_Datatype recvtype,
|
2004-10-22 21:47:53 +04:00
|
|
|
int root, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Iscatter(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2012-06-23 00:54:12 +04:00
|
|
|
void *recvbuf, int recvcount, MPI_Datatype recvtype,
|
|
|
|
int root, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Scatterv(const void *sendbuf, const int sendcounts[], const int displs[],
|
2009-05-27 16:46:04 +04:00
|
|
|
MPI_Datatype sendtype, void *recvbuf, int recvcount,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype recvtype, int root, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Iscatterv(const void *sendbuf, const int sendcounts[], const int displs[],
|
2012-06-23 00:54:12 +04:00
|
|
|
MPI_Datatype sendtype, void *recvbuf, int recvcount,
|
|
|
|
MPI_Datatype recvtype, int root, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Send_init(const void *buf, int count, MPI_Datatype datatype,
|
2009-05-27 16:46:04 +04:00
|
|
|
int dest, int tag, MPI_Comm comm,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Send(const void *buf, int count, MPI_Datatype datatype, int dest,
|
2004-10-22 21:47:53 +04:00
|
|
|
int tag, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Sendrecv(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2004-10-22 21:47:53 +04:00
|
|
|
int dest, int sendtag, void *recvbuf, int recvcount,
|
2009-05-27 16:46:04 +04:00
|
|
|
MPI_Datatype recvtype, int source, int recvtag,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Comm comm, MPI_Status *status);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Sendrecv_replace(void * buf, int count, MPI_Datatype datatype,
|
2004-10-22 21:47:53 +04:00
|
|
|
int dest, int sendtag, int source, int recvtag,
|
|
|
|
MPI_Comm comm, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Ssend_init(const void *buf, int count, MPI_Datatype datatype,
|
2009-05-27 16:46:04 +04:00
|
|
|
int dest, int tag, MPI_Comm comm,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Ssend(const void *buf, int count, MPI_Datatype datatype, int dest,
|
2004-10-22 21:47:53 +04:00
|
|
|
int tag, MPI_Comm comm);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Start(MPI_Request *request);
|
2012-08-03 05:09:59 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Startall(int count, MPI_Request array_of_requests[]);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Status_c2f(const MPI_Status *c_status, MPI_Fint *f_status);
|
|
|
|
OMPI_DECLSPEC int MPI_Status_f2c(const MPI_Fint *f_status, MPI_Status *c_status);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Status_set_cancelled(MPI_Status *status, int flag);
|
|
|
|
OMPI_DECLSPEC int MPI_Status_set_elements(MPI_Status *status, MPI_Datatype datatype,
|
2004-10-22 21:47:53 +04:00
|
|
|
int count);
|
2013-07-23 19:35:14 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Status_set_elements_x(MPI_Status *status, MPI_Datatype datatype,
|
|
|
|
MPI_Count count);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Testall(int count, MPI_Request array_of_requests[], int *flag,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Status array_of_statuses[]);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Testany(int count, MPI_Request array_of_requests[], int *index,
|
2004-10-22 21:47:53 +04:00
|
|
|
int *flag, MPI_Status *status);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Test(MPI_Request *request, int *flag, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Test_cancelled(const MPI_Status *status, int *flag);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Testsome(int incount, MPI_Request array_of_requests[],
|
|
|
|
int *outcount, int array_of_indices[],
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Status array_of_statuses[]);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Topo_test(MPI_Comm comm, int *status);
|
|
|
|
OMPI_DECLSPEC MPI_Fint MPI_Type_c2f(MPI_Datatype datatype);
|
|
|
|
OMPI_DECLSPEC int MPI_Type_commit(MPI_Datatype *type);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_contiguous(int count, MPI_Datatype oldtype,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype *newtype);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_create_darray(int size, int rank, int ndims,
|
2013-09-27 01:56:20 +04:00
|
|
|
const int gsize_array[], const int distrib_array[],
|
|
|
|
const int darg_array[], const int psize_array[],
|
2009-05-27 16:46:04 +04:00
|
|
|
int order, MPI_Datatype oldtype,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype *newtype);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_create_f90_complex(int p, int r, MPI_Datatype *newtype);
|
|
|
|
OMPI_DECLSPEC int MPI_Type_create_f90_integer(int r, MPI_Datatype *newtype);
|
|
|
|
OMPI_DECLSPEC int MPI_Type_create_f90_real(int p, int r, MPI_Datatype *newtype);
|
2012-08-07 16:48:30 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_create_hindexed_block(int count, int blocklength,
|
2013-09-27 01:56:20 +04:00
|
|
|
const MPI_Aint array_of_displacements[],
|
2012-08-07 16:48:30 +04:00
|
|
|
MPI_Datatype oldtype,
|
|
|
|
MPI_Datatype *newtype);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_create_hindexed(int count, const int array_of_blocklengths[],
|
|
|
|
const MPI_Aint array_of_displacements[],
|
2009-05-27 16:46:04 +04:00
|
|
|
MPI_Datatype oldtype,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype *newtype);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_create_hvector(int count, int blocklength, MPI_Aint stride,
|
|
|
|
MPI_Datatype oldtype,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype *newtype);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_create_keyval(MPI_Type_copy_attr_function *type_copy_attr_fn,
|
|
|
|
MPI_Type_delete_attr_function *type_delete_attr_fn,
|
2004-10-22 21:47:53 +04:00
|
|
|
int *type_keyval, void *extra_state);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_create_indexed_block(int count, int blocklength,
|
2013-09-27 01:56:20 +04:00
|
|
|
const int array_of_displacements[],
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype oldtype,
|
|
|
|
MPI_Datatype *newtype);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_create_struct(int count, const int array_of_block_lengths[],
|
|
|
|
const MPI_Aint array_of_displacements[],
|
|
|
|
const MPI_Datatype array_of_types[],
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype *newtype);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_create_subarray(int ndims, const int size_array[], const int subsize_array[],
|
|
|
|
const int start_array[], int order,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype oldtype, MPI_Datatype *newtype);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_create_resized(MPI_Datatype oldtype, MPI_Aint lb,
|
|
|
|
MPI_Aint extent, MPI_Datatype *newtype);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_delete_attr(MPI_Datatype type, int type_keyval);
|
|
|
|
OMPI_DECLSPEC int MPI_Type_dup(MPI_Datatype type, MPI_Datatype *newtype);
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_extent(MPI_Datatype type, MPI_Aint *extent)
|
|
|
|
__mpi_interface_deprecated__("MPI_Type_extent is superseded by MPI_Type_get_extent in MPI-2.0");
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_free(MPI_Datatype *type);
|
|
|
|
OMPI_DECLSPEC int MPI_Type_free_keyval(int *type_keyval);
|
|
|
|
OMPI_DECLSPEC MPI_Datatype MPI_Type_f2c(MPI_Fint datatype);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_get_attr(MPI_Datatype type, int type_keyval,
|
2004-10-22 21:47:53 +04:00
|
|
|
void *attribute_val, int *flag);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_get_contents(MPI_Datatype mtype, int max_integers,
|
|
|
|
int max_addresses, int max_datatypes,
|
|
|
|
int array_of_integers[],
|
|
|
|
MPI_Aint array_of_addresses[],
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype array_of_datatypes[]);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_get_envelope(MPI_Datatype type, int *num_integers,
|
|
|
|
int *num_addresses, int *num_datatypes,
|
2004-10-22 21:47:53 +04:00
|
|
|
int *combiner);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_get_extent(MPI_Datatype type, MPI_Aint *lb,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Aint *extent);
|
2013-07-23 19:35:14 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_get_extent_x(MPI_Datatype type, MPI_Count *lb,
|
|
|
|
MPI_Count *extent);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_get_name(MPI_Datatype type, char *type_name,
|
2004-10-22 21:47:53 +04:00
|
|
|
int *resultlen);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_get_true_extent(MPI_Datatype datatype, MPI_Aint *true_lb,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Aint *true_extent);
|
2013-07-23 19:35:14 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_get_true_extent_x(MPI_Datatype datatype, MPI_Count *true_lb,
|
|
|
|
MPI_Count *true_extent);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_hindexed(int count, int array_of_blocklengths[],
|
|
|
|
MPI_Aint array_of_displacements[],
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
MPI_Datatype oldtype, MPI_Datatype *newtype)
|
|
|
|
__mpi_interface_deprecated__("MPI_Type_hindexed is superseded by MPI_Type_create_hindexed in MPI-2.0");
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_hvector(int count, int blocklength, MPI_Aint stride,
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
MPI_Datatype oldtype, MPI_Datatype *newtype)
|
|
|
|
__mpi_interface_deprecated__("MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0");
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_indexed(int count, const int array_of_blocklengths[],
|
|
|
|
const int array_of_displacements[],
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype oldtype, MPI_Datatype *newtype);
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_lb(MPI_Datatype type, MPI_Aint *lb)
|
|
|
|
__mpi_interface_deprecated__("MPI_Type_lb is deprecated, use MPI_Type_get_extent in MPI-2.0");
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_match_size(int typeclass, int size, MPI_Datatype *type);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_set_attr(MPI_Datatype type, int type_keyval,
|
2004-10-22 21:47:53 +04:00
|
|
|
void *attr_val);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_set_name(MPI_Datatype type, const char *type_name);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_size(MPI_Datatype type, int *size);
|
2013-07-23 19:35:14 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_size_x(MPI_Datatype type, MPI_Count *size);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_struct(int count, int array_of_blocklengths[],
|
|
|
|
MPI_Aint array_of_displacements[],
|
|
|
|
MPI_Datatype array_of_types[],
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
MPI_Datatype *newtype)
|
|
|
|
__mpi_interface_deprecated__("MPI_Type_struct is superseded by MPI_Type_create_struct in MPI-2.0");
|
|
|
|
OMPI_DECLSPEC int MPI_Type_ub(MPI_Datatype mtype, MPI_Aint *ub)
|
|
|
|
__mpi_interface_deprecated__("MPI_Type_ub is deprecated, use MPI_Type_get_extent in MPI-2.0");
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Type_vector(int count, int blocklength, int stride,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype oldtype, MPI_Datatype *newtype);
|
2013-09-27 16:48:28 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Unpack(const void *inbuf, int insize, int *position,
|
2009-05-27 16:46:04 +04:00
|
|
|
void *outbuf, int outcount, MPI_Datatype datatype,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Unpublish_name(const char *service_name, MPI_Info info, const char *port_name);
|
|
|
|
OMPI_DECLSPEC int MPI_Unpack_external (const char datarep[], const void *inbuf, MPI_Aint insize,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Aint *position, void *outbuf, int outcount,
|
|
|
|
MPI_Datatype datatype);
|
2012-08-03 05:09:59 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Waitall(int count, MPI_Request array_of_requests[],
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Status *array_of_statuses);
|
2012-08-03 05:09:59 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Waitany(int count, MPI_Request array_of_requests[],
|
2004-10-22 21:47:53 +04:00
|
|
|
int *index, MPI_Status *status);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Wait(MPI_Request *request, MPI_Status *status);
|
2012-08-03 05:09:59 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Waitsome(int incount, MPI_Request array_of_requests[],
|
|
|
|
int *outcount, int array_of_indices[],
|
|
|
|
MPI_Status array_of_statuses[]);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Win_allocate(MPI_Aint size, int disp_unit, MPI_Info info,
|
|
|
|
MPI_Comm comm, void *baseptr, MPI_Win *win);
|
|
|
|
OMPI_DECLSPEC int MPI_Win_allocate_shared(MPI_Aint size, int disp_unit, MPI_Info info,
|
|
|
|
MPI_Comm comm, void *baseptr, MPI_Win *win);
|
|
|
|
OMPI_DECLSPEC int MPI_Win_attach(MPI_Win win, void *base, MPI_Aint size);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC MPI_Fint MPI_Win_c2f(MPI_Win win);
|
|
|
|
OMPI_DECLSPEC int MPI_Win_call_errhandler(MPI_Win win, int errorcode);
|
|
|
|
OMPI_DECLSPEC int MPI_Win_complete(MPI_Win win);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Win_create(void *base, MPI_Aint size, int disp_unit,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Info info, MPI_Comm comm, MPI_Win *win);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Win_create_dynamic(MPI_Info info, MPI_Comm comm, MPI_Win *win);
|
2009-10-22 20:50:45 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Win_create_errhandler(MPI_Win_errhandler_function *function,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Errhandler *errhandler);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Win_create_keyval(MPI_Win_copy_attr_function *win_copy_attr_fn,
|
|
|
|
MPI_Win_delete_attr_function *win_delete_attr_fn,
|
2004-10-22 21:47:53 +04:00
|
|
|
int *win_keyval, void *extra_state);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Win_delete_attr(MPI_Win win, int win_keyval);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Win_detach(MPI_Win win, void *base);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC MPI_Win MPI_Win_f2c(MPI_Fint win);
|
|
|
|
OMPI_DECLSPEC int MPI_Win_fence(int assert, MPI_Win win);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Win_flush(int rank, MPI_Win win);
|
|
|
|
OMPI_DECLSPEC int MPI_Win_flush_all(MPI_Win win);
|
|
|
|
OMPI_DECLSPEC int MPI_Win_flush_local(int rank, MPI_Win win);
|
|
|
|
OMPI_DECLSPEC int MPI_Win_flush_local_all(MPI_Win win);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Win_free(MPI_Win *win);
|
|
|
|
OMPI_DECLSPEC int MPI_Win_free_keyval(int *win_keyval);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Win_get_attr(MPI_Win win, int win_keyval,
|
2004-10-22 21:47:53 +04:00
|
|
|
void *attribute_val, int *flag);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Win_get_errhandler(MPI_Win win, MPI_Errhandler *errhandler);
|
|
|
|
OMPI_DECLSPEC int MPI_Win_get_group(MPI_Win win, MPI_Group *group);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Win_get_info(MPI_Win win, MPI_Info *info_used);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Win_get_name(MPI_Win win, char *win_name, int *resultlen);
|
|
|
|
OMPI_DECLSPEC int MPI_Win_lock(int lock_type, int rank, int assert, MPI_Win win);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Win_lock_all(int assert, MPI_Win win);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Win_post(MPI_Group group, int assert, MPI_Win win);
|
|
|
|
OMPI_DECLSPEC int MPI_Win_set_attr(MPI_Win win, int win_keyval, void *attribute_val);
|
|
|
|
OMPI_DECLSPEC int MPI_Win_set_errhandler(MPI_Win win, MPI_Errhandler errhandler);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Win_set_info(MPI_Win win, MPI_Info info);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Win_set_name(MPI_Win win, const char *win_name);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Win_shared_query(MPI_Win win, int rank, MPI_Aint *size, int *disp_unit, void *baseptr);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Win_start(MPI_Group group, int assert, MPI_Win win);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Win_sync(MPI_Win win);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Win_test(MPI_Win win, int *flag);
|
|
|
|
OMPI_DECLSPEC int MPI_Win_unlock(int rank, MPI_Win win);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Win_unlock_all(MPI_Win win);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int MPI_Win_wait(MPI_Win win);
|
2005-11-07 20:22:48 +03:00
|
|
|
OMPI_DECLSPEC double MPI_Wtick(void);
|
|
|
|
OMPI_DECLSPEC double MPI_Wtime(void);
|
2005-03-26 21:49:16 +03:00
|
|
|
|
2004-01-10 11:17:22 +03:00
|
|
|
/*
|
|
|
|
* Profiling MPI API
|
|
|
|
*/
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Abort(MPI_Comm comm, int errorcode);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Accumulate(const void *origin_addr, int origin_count, MPI_Datatype origin_datatype,
|
2004-10-22 21:47:53 +04:00
|
|
|
int target_rank, MPI_Aint target_disp, int target_count,
|
2009-05-27 16:46:04 +04:00
|
|
|
MPI_Datatype target_datatype, MPI_Op op, MPI_Win win);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Add_error_class(int *errorclass);
|
|
|
|
OMPI_DECLSPEC int PMPI_Add_error_code(int errorclass, int *errorcode);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Add_error_string(int errorcode, const char *string);
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Address(void *location, MPI_Aint *address)
|
|
|
|
__mpi_interface_deprecated__("MPI_Address is superseded by MPI_Get_address in MPI-2.0");
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Allgather(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2009-05-27 16:46:04 +04:00
|
|
|
void *recvbuf, int recvcount,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype recvtype, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Iallgather(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2012-06-23 00:54:12 +04:00
|
|
|
void *recvbuf, int recvcount,
|
|
|
|
MPI_Datatype recvtype, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Allgatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
|
|
|
void *recvbuf, const int recvcounts[],
|
|
|
|
const int displs[], MPI_Datatype recvtype, MPI_Comm comm);
|
|
|
|
OMPI_DECLSPEC int PMPI_Iallgatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
|
|
|
void *recvbuf, const int recvcounts[],
|
|
|
|
const int displs[], MPI_Datatype recvtype, MPI_Comm comm, MPI_Request *request);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Alloc_mem(MPI_Aint size, MPI_Info info,
|
2004-10-22 21:47:53 +04:00
|
|
|
void *baseptr);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Allreduce(const void *sendbuf, void *recvbuf, int count,
|
2009-05-27 16:46:04 +04:00
|
|
|
MPI_Datatype datatype, MPI_Op op, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Iallreduce(const void *sendbuf, void *recvbuf, int count,
|
2012-06-23 00:54:12 +04:00
|
|
|
MPI_Datatype datatype, MPI_Op op, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Alltoall(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2009-05-27 16:46:04 +04:00
|
|
|
void *recvbuf, int recvcount,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype recvtype, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Ialltoall(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2012-06-23 00:54:12 +04:00
|
|
|
void *recvbuf, int recvcount,
|
|
|
|
MPI_Datatype recvtype, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Alltoallv(const void *sendbuf, const int sendcounts[], const int sdispls[],
|
|
|
|
MPI_Datatype sendtype, void *recvbuf, const int recvcounts[],
|
|
|
|
const int rdispls[], MPI_Datatype recvtype, MPI_Comm comm);
|
|
|
|
OMPI_DECLSPEC int PMPI_Ialltoallv(const void *sendbuf, const int sendcounts[], const int sdispls[],
|
|
|
|
MPI_Datatype sendtype, void *recvbuf, const int recvcounts[],
|
|
|
|
const int rdispls[], MPI_Datatype recvtype, MPI_Comm comm, MPI_Request *request);
|
|
|
|
OMPI_DECLSPEC int PMPI_Alltoallw(const void *sendbuf, const int sendcounts[], const int sdispls[], const MPI_Datatype sendtypes[],
|
|
|
|
void *recvbuf, const int recvcounts[], const int rdispls[], const MPI_Datatype recvtypes[],
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Ialltoallw(const void *sendbuf, const int sendcounts[], const int sdispls[], const MPI_Datatype sendtypes[],
|
|
|
|
void *recvbuf, const int recvcounts[], const int rdispls[], const MPI_Datatype recvtypes[],
|
2012-06-23 00:54:12 +04:00
|
|
|
MPI_Comm comm, MPI_Request *request);
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Attr_delete(MPI_Comm comm, int keyval)
|
|
|
|
__mpi_interface_deprecated__("MPI_Attr_delete is superseded by MPI_Comm_delete_attr in MPI-2.0");
|
|
|
|
OMPI_DECLSPEC int PMPI_Attr_get(MPI_Comm comm, int keyval, void *attribute_val, int *flag)
|
|
|
|
__mpi_interface_deprecated__("MPI_Attr_get is superseded by MPI_Comm_get_attr in MPI-2.0");
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Dist_graph_create(MPI_Comm comm_old, int n, const int nodes[],
|
|
|
|
const int degrees[], const int targets[],
|
|
|
|
const int weights[], MPI_Info info,
|
2013-07-01 16:40:08 +04:00
|
|
|
int reorder, MPI_Comm * newcomm);
|
|
|
|
OMPI_DECLSPEC int PMPI_Dist_graph_create_adjacent(MPI_Comm comm_old,
|
2013-09-27 01:56:20 +04:00
|
|
|
int indegree, const int sources[],
|
|
|
|
const int sourceweights[],
|
2013-07-01 16:40:08 +04:00
|
|
|
int outdegree,
|
2013-09-27 01:56:20 +04:00
|
|
|
const int destinations[],
|
|
|
|
const int destweights[],
|
2013-07-01 16:40:08 +04:00
|
|
|
MPI_Info info, int reorder,
|
|
|
|
MPI_Comm *comm_dist_graph);
|
|
|
|
OMPI_DECLSPEC int PMPI_Dist_graph_neighbors(MPI_Comm comm, int maxindegree,
|
|
|
|
int sources[], int sourceweights[],
|
2013-09-27 01:55:08 +04:00
|
|
|
int maxoutdegree,
|
2013-07-01 16:40:08 +04:00
|
|
|
int destinations[],
|
|
|
|
int destweights[]);
|
2013-09-27 01:55:08 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Dist_graph_neighbors_count(MPI_Comm comm,
|
2013-07-01 16:40:08 +04:00
|
|
|
int *inneighbors,
|
2013-09-27 01:55:08 +04:00
|
|
|
int *outneighbors,
|
2013-07-01 16:40:08 +04:00
|
|
|
int *weighted);
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Attr_put(MPI_Comm comm, int keyval, void *attribute_val)
|
|
|
|
__mpi_interface_deprecated__("MPI_Attr_put is superseded by MPI_Comm_set_attr in MPI-2.0");
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Barrier(MPI_Comm comm);
|
2012-06-23 00:54:12 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Ibarrier(MPI_Comm comm, MPI_Request *request);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Bcast(void *buffer, int count, MPI_Datatype datatype,
|
2004-10-22 21:47:53 +04:00
|
|
|
int root, MPI_Comm comm);
|
2012-06-23 00:54:12 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Ibcast(void *buffer, int count, MPI_Datatype datatype,
|
|
|
|
int root, MPI_Comm comm,
|
|
|
|
MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Bsend(const void *buf, int count, MPI_Datatype datatype,
|
2004-10-22 21:47:53 +04:00
|
|
|
int dest, int tag, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Bsend_init(const void *buf, int count, MPI_Datatype datatype,
|
2009-05-27 16:46:04 +04:00
|
|
|
int dest, int tag, MPI_Comm comm, MPI_Request *request);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Buffer_attach(void *buffer, int size);
|
|
|
|
OMPI_DECLSPEC int PMPI_Buffer_detach(void *buffer, int *size);
|
|
|
|
OMPI_DECLSPEC int PMPI_Cancel(MPI_Request *request);
|
2012-08-02 20:58:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Cart_coords(MPI_Comm comm, int rank, int maxdims, int coords[]);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Cart_create(MPI_Comm old_comm, int ndims, const int dims[],
|
|
|
|
const int periods[], int reorder, MPI_Comm *comm_cart);
|
2012-08-02 20:58:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Cart_get(MPI_Comm comm, int maxdims, int dims[],
|
2012-08-03 05:09:59 +04:00
|
|
|
int periods[], int coords[]);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Cart_map(MPI_Comm comm, int ndims, const int dims[],
|
|
|
|
const int periods[], int *newrank);
|
|
|
|
OMPI_DECLSPEC int PMPI_Cart_rank(MPI_Comm comm, const int coords[], int *rank);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Cart_shift(MPI_Comm comm, int direction, int disp,
|
2004-10-22 21:47:53 +04:00
|
|
|
int *rank_source, int *rank_dest);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Cart_sub(MPI_Comm comm, const int remain_dims[], MPI_Comm *new_comm);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Cartdim_get(MPI_Comm comm, int *ndims);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Close_port(const char *port_name);
|
|
|
|
OMPI_DECLSPEC int PMPI_Comm_accept(const char *port_name, MPI_Info info, int root,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Comm comm, MPI_Comm *newcomm);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC MPI_Fint PMPI_Comm_c2f(MPI_Comm comm);
|
|
|
|
OMPI_DECLSPEC int PMPI_Comm_call_errhandler(MPI_Comm comm, int errorcode);
|
|
|
|
OMPI_DECLSPEC int PMPI_Comm_compare(MPI_Comm comm1, MPI_Comm comm2, int *result);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Comm_connect(const char *port_name, MPI_Info info, int root,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Comm comm, MPI_Comm *newcomm);
|
2009-10-22 20:50:45 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Comm_create_errhandler(MPI_Comm_errhandler_function *function,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Errhandler *errhandler);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Comm_create_keyval(MPI_Comm_copy_attr_function *comm_copy_attr_fn,
|
|
|
|
MPI_Comm_delete_attr_function *comm_delete_attr_fn,
|
2004-10-22 21:47:53 +04:00
|
|
|
int *comm_keyval, void *extra_state);
|
2013-10-02 18:26:40 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Comm_create_group(MPI_Comm comm, MPI_Group group, int tag, MPI_Comm *newcomm);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Comm_create(MPI_Comm comm, MPI_Group group, MPI_Comm *newcomm);
|
|
|
|
OMPI_DECLSPEC int PMPI_Comm_delete_attr(MPI_Comm comm, int comm_keyval);
|
|
|
|
OMPI_DECLSPEC int PMPI_Comm_disconnect(MPI_Comm *comm);
|
|
|
|
OMPI_DECLSPEC int PMPI_Comm_dup(MPI_Comm comm, MPI_Comm *newcomm);
|
2013-10-02 18:26:40 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Comm_idup(MPI_Comm comm, MPI_Comm *newcomm, MPI_Request *request);
|
|
|
|
OMPI_DECLSPEC int PMPI_Comm_dup_with_info(MPI_Comm comm, MPI_Info info, MPI_Comm *newcomm);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC MPI_Comm PMPI_Comm_f2c(MPI_Fint comm);
|
|
|
|
OMPI_DECLSPEC int PMPI_Comm_free_keyval(int *comm_keyval);
|
|
|
|
OMPI_DECLSPEC int PMPI_Comm_free(MPI_Comm *comm);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Comm_get_attr(MPI_Comm comm, int comm_keyval,
|
2004-10-22 21:47:53 +04:00
|
|
|
void *attribute_val, int *flag);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Comm_get_errhandler(MPI_Comm comm, MPI_Errhandler *erhandler);
|
|
|
|
OMPI_DECLSPEC int PMPI_Comm_get_name(MPI_Comm comm, char *comm_name, int *resultlen);
|
|
|
|
OMPI_DECLSPEC int PMPI_Comm_get_parent(MPI_Comm *parent);
|
|
|
|
OMPI_DECLSPEC int PMPI_Comm_group(MPI_Comm comm, MPI_Group *group);
|
|
|
|
OMPI_DECLSPEC int PMPI_Comm_join(int fd, MPI_Comm *intercomm);
|
|
|
|
OMPI_DECLSPEC int PMPI_Comm_rank(MPI_Comm comm, int *rank);
|
|
|
|
OMPI_DECLSPEC int PMPI_Comm_remote_group(MPI_Comm comm, MPI_Group *group);
|
|
|
|
OMPI_DECLSPEC int PMPI_Comm_remote_size(MPI_Comm comm, int *size);
|
|
|
|
OMPI_DECLSPEC int PMPI_Comm_set_attr(MPI_Comm comm, int comm_keyval, void *attribute_val);
|
|
|
|
OMPI_DECLSPEC int PMPI_Comm_set_errhandler(MPI_Comm comm, MPI_Errhandler errhandler);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Comm_set_name(MPI_Comm comm, const char *comm_name);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Comm_size(MPI_Comm comm, int *size);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Comm_spawn(const char *command, char *argv[], int maxprocs, MPI_Info info,
|
2009-05-27 16:46:04 +04:00
|
|
|
int root, MPI_Comm comm, MPI_Comm *intercomm,
|
2013-09-27 01:56:20 +04:00
|
|
|
int array_of_errcodes[]);
|
|
|
|
OMPI_DECLSPEC int PMPI_Comm_spawn_multiple(int count, char *array_of_commands[], char **array_of_argv[],
|
|
|
|
const int array_of_maxprocs[], const MPI_Info array_of_info[],
|
2009-05-27 16:46:04 +04:00
|
|
|
int root, MPI_Comm comm, MPI_Comm *intercomm,
|
2013-09-27 01:56:20 +04:00
|
|
|
int array_of_errcodes[]);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Comm_split(MPI_Comm comm, int color, int key, MPI_Comm *newcomm);
|
2012-01-19 03:35:21 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Comm_split_type(MPI_Comm comm, int split_type, int key, MPI_Info info, MPI_Comm *newcomm);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Comm_test_inter(MPI_Comm comm, int *flag);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Compare_and_swap(void *origin_addr, void *compare_addr,
|
|
|
|
void *result_addr, MPI_Datatype datatype, int target_rank,
|
|
|
|
MPI_Aint target_disp, MPI_Win win);
|
2012-08-03 05:09:59 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Dims_create(int nnodes, int ndims, int dims[]);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC MPI_Fint PMPI_Errhandler_c2f(MPI_Errhandler errhandler);
|
|
|
|
OMPI_DECLSPEC int PMPI_Errhandler_create(MPI_Handler_function *function,
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
MPI_Errhandler *errhandler)
|
|
|
|
__mpi_interface_deprecated__("MPI_Errhandler_create is superseded by MPI_Comm_create_errhandler in MPI-2.0");
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC MPI_Errhandler PMPI_Errhandler_f2c(MPI_Fint errhandler);
|
|
|
|
OMPI_DECLSPEC int PMPI_Errhandler_free(MPI_Errhandler *errhandler);
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Errhandler_get(MPI_Comm comm, MPI_Errhandler *errhandler)
|
|
|
|
__mpi_interface_deprecated__("MPI_Errhandler_get is superseded by MPI_Comm_get_errhandler in MPI-2.0");
|
|
|
|
OMPI_DECLSPEC int PMPI_Errhandler_set(MPI_Comm comm, MPI_Errhandler errhandler)
|
|
|
|
__mpi_interface_deprecated__("MPI_Errhandler_set is superseded by MPI_Comm_set_errhandler in MPI-2.0");
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Error_class(int errorcode, int *errorclass);
|
|
|
|
OMPI_DECLSPEC int PMPI_Error_string(int errorcode, char *string, int *resultlen);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Exscan(const void *sendbuf, void *recvbuf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Op op, MPI_Comm comm);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Fetch_and_op(void *origin_addr, void *result_addr, MPI_Datatype datatype,
|
|
|
|
int target_rank, MPI_Aint target_disp, MPI_Op op, MPI_Win win);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Iexscan(const void *sendbuf, void *recvbuf, int count,
|
2012-06-23 00:54:12 +04:00
|
|
|
MPI_Datatype datatype, MPI_Op op, MPI_Comm comm, MPI_Request *request);
|
2007-08-19 01:35:51 +04:00
|
|
|
#if OMPI_PROVIDE_MPI_FILE_INTERFACE
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC MPI_Fint PMPI_File_c2f(MPI_File file);
|
|
|
|
OMPI_DECLSPEC MPI_File PMPI_File_f2c(MPI_Fint file);
|
|
|
|
OMPI_DECLSPEC int PMPI_File_call_errhandler(MPI_File fh, int errorcode);
|
2009-10-22 20:50:45 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_create_errhandler(MPI_File_errhandler_function *function,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Errhandler *errhandler);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_set_errhandler( MPI_File file, MPI_Errhandler errhandler);
|
|
|
|
OMPI_DECLSPEC int PMPI_File_get_errhandler( MPI_File file, MPI_Errhandler *errhandler);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_open(MPI_Comm comm, const char *filename, int amode,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Info info, MPI_File *fh);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_close(MPI_File *fh);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_delete(const char *filename, MPI_Info info);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_set_size(MPI_File fh, MPI_Offset size);
|
|
|
|
OMPI_DECLSPEC int PMPI_File_preallocate(MPI_File fh, MPI_Offset size);
|
|
|
|
OMPI_DECLSPEC int PMPI_File_get_size(MPI_File fh, MPI_Offset *size);
|
|
|
|
OMPI_DECLSPEC int PMPI_File_get_group(MPI_File fh, MPI_Group *group);
|
|
|
|
OMPI_DECLSPEC int PMPI_File_get_amode(MPI_File fh, int *amode);
|
|
|
|
OMPI_DECLSPEC int PMPI_File_set_info(MPI_File fh, MPI_Info info);
|
|
|
|
OMPI_DECLSPEC int PMPI_File_get_info(MPI_File fh, MPI_Info *info_used);
|
|
|
|
OMPI_DECLSPEC int PMPI_File_set_view(MPI_File fh, MPI_Offset disp, MPI_Datatype etype,
|
2013-09-27 01:56:20 +04:00
|
|
|
MPI_Datatype filetype, const char *datarep, MPI_Info info);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_get_view(MPI_File fh, MPI_Offset *disp,
|
2009-05-27 16:46:04 +04:00
|
|
|
MPI_Datatype *etype,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype *filetype, char *datarep);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_read_at(MPI_File fh, MPI_Offset offset, void *buf,
|
2004-10-22 21:47:53 +04:00
|
|
|
int count, MPI_Datatype datatype, MPI_Status *status);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_read_at_all(MPI_File fh, MPI_Offset offset, void *buf,
|
2004-10-22 21:47:53 +04:00
|
|
|
int count, MPI_Datatype datatype, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_write_at(MPI_File fh, MPI_Offset offset, const void *buf,
|
2004-10-22 21:47:53 +04:00
|
|
|
int count, MPI_Datatype datatype, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_write_at_all(MPI_File fh, MPI_Offset offset, const void *buf,
|
2004-10-22 21:47:53 +04:00
|
|
|
int count, MPI_Datatype datatype, MPI_Status *status);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_iread_at(MPI_File fh, MPI_Offset offset, void *buf,
|
2004-10-22 21:47:53 +04:00
|
|
|
int count, MPI_Datatype datatype, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_iwrite_at(MPI_File fh, MPI_Offset offset, const void *buf,
|
2004-10-22 21:47:53 +04:00
|
|
|
int count, MPI_Datatype datatype, MPI_Request *request);
|
|
|
|
OMPI_DECLSPEC int PMPI_File_read(MPI_File fh, void *buf, int count,
|
|
|
|
MPI_Datatype datatype, MPI_Status *status);
|
|
|
|
OMPI_DECLSPEC int PMPI_File_read_all(MPI_File fh, void *buf, int count,
|
|
|
|
MPI_Datatype datatype, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_write(MPI_File fh, const void *buf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_write_all(MPI_File fh, const void *buf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Status *status);
|
|
|
|
OMPI_DECLSPEC int PMPI_File_iread(MPI_File fh, void *buf, int count,
|
|
|
|
MPI_Datatype datatype, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_iwrite(MPI_File fh, const void *buf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Request *request);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_seek(MPI_File fh, MPI_Offset offset, int whence);
|
|
|
|
OMPI_DECLSPEC int PMPI_File_get_position(MPI_File fh, MPI_Offset *offset);
|
|
|
|
OMPI_DECLSPEC int PMPI_File_get_byte_offset(MPI_File fh, MPI_Offset offset,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Offset *disp);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_read_shared(MPI_File fh, void *buf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_write_shared(MPI_File fh, const void *buf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Status *status);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_iread_shared(MPI_File fh, void *buf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_iwrite_shared(MPI_File fh, const void *buf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Request *request);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_read_ordered(MPI_File fh, void *buf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_write_ordered(MPI_File fh, const void *buf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Status *status);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_seek_shared(MPI_File fh, MPI_Offset offset, int whence);
|
|
|
|
OMPI_DECLSPEC int PMPI_File_get_position_shared(MPI_File fh, MPI_Offset *offset);
|
|
|
|
OMPI_DECLSPEC int PMPI_File_read_at_all_begin(MPI_File fh, MPI_Offset offset, void *buf,
|
2004-10-22 21:47:53 +04:00
|
|
|
int count, MPI_Datatype datatype);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_read_at_all_end(MPI_File fh, void *buf, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_write_at_all_begin(MPI_File fh, MPI_Offset offset, const void *buf,
|
2004-10-22 21:47:53 +04:00
|
|
|
int count, MPI_Datatype datatype);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_write_at_all_end(MPI_File fh, const void *buf, MPI_Status *status);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_read_all_begin(MPI_File fh, void *buf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_read_all_end(MPI_File fh, void *buf, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_write_all_begin(MPI_File fh, const void *buf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_write_all_end(MPI_File fh, const void *buf, MPI_Status *status);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_read_ordered_begin(MPI_File fh, void *buf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_read_ordered_end(MPI_File fh, void *buf, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_write_ordered_begin(MPI_File fh, const void *buf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_write_ordered_end(MPI_File fh, const void *buf, MPI_Status *status);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_get_type_extent(MPI_File fh, MPI_Datatype datatype,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Aint *extent);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_File_set_atomicity(MPI_File fh, int flag);
|
|
|
|
OMPI_DECLSPEC int PMPI_File_get_atomicity(MPI_File fh, int *flag);
|
|
|
|
OMPI_DECLSPEC int PMPI_File_sync(MPI_File fh);
|
2007-08-19 01:35:51 +04:00
|
|
|
#endif /* #if OMPI_PROVIDE_MPI_FILE_INTERFACE */
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Finalize(void);
|
|
|
|
OMPI_DECLSPEC int PMPI_Finalized(int *flag);
|
|
|
|
OMPI_DECLSPEC int PMPI_Free_mem(void *base);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Gather(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2009-05-27 16:46:04 +04:00
|
|
|
void *recvbuf, int recvcount, MPI_Datatype recvtype,
|
2004-10-22 21:47:53 +04:00
|
|
|
int root, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Igather(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2012-06-23 00:54:12 +04:00
|
|
|
void *recvbuf, int recvcount, MPI_Datatype recvtype,
|
|
|
|
int root, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Gatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
|
|
|
void *recvbuf, const int recvcounts[], const int displs[],
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype recvtype, int root, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Igatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
|
|
|
void *recvbuf, const int recvcounts[], const int displs[],
|
2012-06-23 00:54:12 +04:00
|
|
|
MPI_Datatype recvtype, int root, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Get_address(const void *location, MPI_Aint *address);
|
|
|
|
OMPI_DECLSPEC int PMPI_Get_count(const MPI_Status *status, MPI_Datatype datatype, int *count);
|
|
|
|
OMPI_DECLSPEC int PMPI_Get_elements(const MPI_Status *status, MPI_Datatype datatype,
|
2004-10-22 21:47:53 +04:00
|
|
|
int *count);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Get_elements_x(const MPI_Status *status, MPI_Datatype datatype,
|
2013-07-23 19:35:14 +04:00
|
|
|
MPI_Count *count);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Get(void *origin_addr, int origin_count,
|
|
|
|
MPI_Datatype origin_datatype, int target_rank,
|
|
|
|
MPI_Aint target_disp, int target_count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype target_datatype, MPI_Win win);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Get_accumulate(const void *origin_addr, int origin_count, MPI_Datatype origin_datatype,
|
|
|
|
void *result_addr, int result_count, MPI_Datatype result_datatype,
|
|
|
|
int target_rank, MPI_Aint target_disp, int target_count,
|
|
|
|
MPI_Datatype target_datatype, MPI_Op op, MPI_Win win);
|
2012-02-03 03:57:09 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Get_library_version(char *version, int *resultlen);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Get_processor_name(char *name, int *resultlen);
|
|
|
|
OMPI_DECLSPEC int PMPI_Get_version(int *version, int *subversion);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Graph_create(MPI_Comm comm_old, int nnodes, const int index[],
|
|
|
|
const int edges[], int reorder, MPI_Comm *comm_graph);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Graph_get(MPI_Comm comm, int maxindex, int maxedges,
|
2012-08-02 20:58:04 +04:00
|
|
|
int index[], int edges[]);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Graph_map(MPI_Comm comm, int nnodes, const int index[], const int edges[],
|
2004-10-22 21:47:53 +04:00
|
|
|
int *newrank);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Graph_neighbors_count(MPI_Comm comm, int rank, int *nneighbors);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Graph_neighbors(MPI_Comm comm, int rank, int maxneighbors,
|
2012-08-02 20:58:04 +04:00
|
|
|
int neighbors[]);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Graphdims_get(MPI_Comm comm, int *nnodes, int *nedges);
|
|
|
|
OMPI_DECLSPEC int PMPI_Grequest_complete(MPI_Request request);
|
|
|
|
OMPI_DECLSPEC int PMPI_Grequest_start(MPI_Grequest_query_function *query_fn,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Grequest_free_function *free_fn,
|
|
|
|
MPI_Grequest_cancel_function *cancel_fn,
|
|
|
|
void *extra_state, MPI_Request *request);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC MPI_Fint PMPI_Group_c2f(MPI_Group group);
|
|
|
|
OMPI_DECLSPEC int PMPI_Group_compare(MPI_Group group1, MPI_Group group2, int *result);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Group_difference(MPI_Group group1, MPI_Group group2,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Group *newgroup);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Group_excl(MPI_Group group, int n, const int ranks[],
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Group *newgroup);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC MPI_Group PMPI_Group_f2c(MPI_Fint group);
|
|
|
|
OMPI_DECLSPEC int PMPI_Group_free(MPI_Group *group);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Group_incl(MPI_Group group, int n, const int ranks[],
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Group *newgroup);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Group_intersection(MPI_Group group1, MPI_Group group2,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Group *newgroup);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Group_range_excl(MPI_Group group, int n, int ranges[][3],
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Group *newgroup);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Group_range_incl(MPI_Group group, int n, int ranges[][3],
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Group *newgroup);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Group_rank(MPI_Group group, int *rank);
|
|
|
|
OMPI_DECLSPEC int PMPI_Group_size(MPI_Group group, int *size);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Group_translate_ranks(MPI_Group group1, int n, const int ranks1[],
|
2012-08-02 20:58:04 +04:00
|
|
|
MPI_Group group2, int ranks2[]);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Group_union(MPI_Group group1, MPI_Group group2,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Group *newgroup);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Ibsend(const void *buf, int count, MPI_Datatype datatype, int dest,
|
2004-10-22 21:47:53 +04:00
|
|
|
int tag, MPI_Comm comm, MPI_Request *request);
|
2012-02-06 21:35:21 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Improbe(int source, int tag, MPI_Comm comm,
|
|
|
|
int *flag, MPI_Message *message,
|
|
|
|
MPI_Status *status);
|
|
|
|
OMPI_DECLSPEC int PMPI_Imrecv(void *buf, int count, MPI_Datatype type,
|
|
|
|
MPI_Message *message, MPI_Request *request);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC MPI_Fint PMPI_Info_c2f(MPI_Info info);
|
|
|
|
OMPI_DECLSPEC int PMPI_Info_create(MPI_Info *info);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Info_delete(MPI_Info info, const char *key);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Info_dup(MPI_Info info, MPI_Info *newinfo);
|
|
|
|
OMPI_DECLSPEC MPI_Info PMPI_Info_f2c(MPI_Fint info);
|
|
|
|
OMPI_DECLSPEC int PMPI_Info_free(MPI_Info *info);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Info_get(MPI_Info info, const char *key, int valuelen,
|
2004-10-22 21:47:53 +04:00
|
|
|
char *value, int *flag);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Info_get_nkeys(MPI_Info info, int *nkeys);
|
|
|
|
OMPI_DECLSPEC int PMPI_Info_get_nthkey(MPI_Info info, int n, char *key);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Info_get_valuelen(MPI_Info info, const char *key, int *valuelen,
|
2004-10-22 21:47:53 +04:00
|
|
|
int *flag);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Info_set(MPI_Info info, char *key, char *value);
|
|
|
|
OMPI_DECLSPEC int PMPI_Init(int *argc, char ***argv);
|
|
|
|
OMPI_DECLSPEC int PMPI_Initialized(int *flag);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Init_thread(int *argc, char ***argv, int required,
|
2004-10-22 21:47:53 +04:00
|
|
|
int *provided);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Intercomm_create(MPI_Comm local_comm, int local_leader,
|
|
|
|
MPI_Comm bridge_comm, int remote_leader,
|
2004-10-22 21:47:53 +04:00
|
|
|
int tag, MPI_Comm *newintercomm);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Intercomm_merge(MPI_Comm intercomm, int high,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Comm *newintercomm);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Iprobe(int source, int tag, MPI_Comm comm, int *flag,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Status *status);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Irecv(void *buf, int count, MPI_Datatype datatype, int source,
|
2004-10-22 21:47:53 +04:00
|
|
|
int tag, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Irsend(const void *buf, int count, MPI_Datatype datatype, int dest,
|
2004-10-22 21:47:53 +04:00
|
|
|
int tag, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Isend(const void *buf, int count, MPI_Datatype datatype, int dest,
|
2004-10-22 21:47:53 +04:00
|
|
|
int tag, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Issend(const void *buf, int count, MPI_Datatype datatype, int dest,
|
2004-10-22 21:47:53 +04:00
|
|
|
int tag, MPI_Comm comm, MPI_Request *request);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Is_thread_main(int *flag);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Keyval_create(MPI_Copy_function *copy_fn,
|
|
|
|
MPI_Delete_function *delete_fn,
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
int *keyval, void *extra_state)
|
2011-01-27 22:55:42 +03:00
|
|
|
__mpi_interface_deprecated__("MPI_Keyval_create is superseded by MPI_Comm_create_keyval in MPI-2.0");
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Keyval_free(int *keyval)
|
2011-01-27 22:55:42 +03:00
|
|
|
__mpi_interface_deprecated__("MPI_Keyval_free is superseded by MPI_Comm_free_keyval in MPI-2.0");
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Lookup_name(const char *service_name, MPI_Info info, char *port_name);
|
2012-02-06 21:35:21 +04:00
|
|
|
OMPI_DECLSPEC MPI_Fint PMPI_Message_c2f(MPI_Message message);
|
|
|
|
OMPI_DECLSPEC MPI_Message PMPI_Message_f2c(MPI_Fint message);
|
|
|
|
OMPI_DECLSPEC int PMPI_Mprobe(int source, int tag, MPI_Comm comm,
|
|
|
|
MPI_Message *message,
|
|
|
|
MPI_Status *status);
|
|
|
|
OMPI_DECLSPEC int PMPI_Mrecv(void *buf, int count, MPI_Datatype type,
|
|
|
|
MPI_Message *message, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Neighbor_allgather(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2013-09-27 01:55:08 +04:00
|
|
|
void *recvbuf, int recvcount, MPI_Datatype recvtype,
|
|
|
|
MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Ineighbor_allgather(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2013-09-27 01:55:08 +04:00
|
|
|
void *recvbuf, int recvcount, MPI_Datatype recvtype,
|
|
|
|
MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Neighbor_allgatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
|
|
|
void *recvbuf, const int recvcounts[], const int displs[],
|
2013-09-27 01:55:08 +04:00
|
|
|
MPI_Datatype recvtype, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Ineighbor_allgatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
|
|
|
void *recvbuf, const int recvcounts[], const int displs[],
|
2013-09-27 01:55:08 +04:00
|
|
|
MPI_Datatype recvtype, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Neighbor_alltoall(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2013-09-27 01:55:08 +04:00
|
|
|
void *recvbuf, int recvcount, MPI_Datatype recvtype,
|
|
|
|
MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Ineighbor_alltoall(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2013-09-27 01:55:08 +04:00
|
|
|
void *recvbuf, int recvcount, MPI_Datatype recvtype,
|
|
|
|
MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Neighbor_alltoallv(const void *sendbuf, const int sendcounts[], const int sdispls[], MPI_Datatype sendtype,
|
|
|
|
void *recvbuf, const int recvcounts[], const int rdispls[], MPI_Datatype recvtype,
|
2013-09-27 01:55:08 +04:00
|
|
|
MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Ineighbor_alltoallv(const void *sendbuf, const int sendcounts[], const int sdispls[], MPI_Datatype sendtype,
|
|
|
|
void *recvbuf, const int recvcounts[], const int rdispls[], MPI_Datatype recvtype,
|
2013-09-27 01:55:08 +04:00
|
|
|
MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Neighbor_alltoallw(const void *sendbuf, const int sendcounts[], const MPI_Aint sdispls[], const MPI_Datatype sendtypes[],
|
|
|
|
void *recvbuf, const int recvcounts[], const MPI_Aint rdispls[], const MPI_Datatype recvtypes[],
|
2013-09-27 01:55:08 +04:00
|
|
|
MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Ineighbor_alltoallw(const void *sendbuf, const int sendcounts[], const MPI_Aint sdispls[], const MPI_Datatype sendtypes[],
|
|
|
|
void *recvbuf, const int recvcounts[], const MPI_Aint rdispls[], const MPI_Datatype recvtypes[],
|
2013-09-27 01:55:08 +04:00
|
|
|
MPI_Comm comm, MPI_Request *request);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC MPI_Fint PMPI_Op_c2f(MPI_Op op);
|
2009-10-23 01:46:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Op_commutative(MPI_Op op, int *commute);
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Op_create(MPI_User_function *function, int commute, MPI_Op *op);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Open_port(MPI_Info info, char *port_name);
|
|
|
|
OMPI_DECLSPEC MPI_Op PMPI_Op_f2c(MPI_Fint op);
|
|
|
|
OMPI_DECLSPEC int PMPI_Op_free(MPI_Op *op);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Pack_external(const char datarep[], const void *inbuf, int incount,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, void *outbuf,
|
|
|
|
MPI_Aint outsize, MPI_Aint *position);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Pack_external_size(const char datarep[], int incount,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Aint *size);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Pack(const void *inbuf, int incount, MPI_Datatype datatype,
|
2004-10-22 21:47:53 +04:00
|
|
|
void *outbuf, int outsize, int *position, MPI_Comm comm);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Pack_size(int incount, MPI_Datatype datatype, MPI_Comm comm,
|
2004-10-22 21:47:53 +04:00
|
|
|
int *size);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Pcontrol(const int level, ...);
|
|
|
|
OMPI_DECLSPEC int PMPI_Probe(int source, int tag, MPI_Comm comm, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Publish_name(const char *service_name, MPI_Info info,
|
|
|
|
const char *port_name);
|
|
|
|
OMPI_DECLSPEC int PMPI_Put(const void *origin_addr, int origin_count, MPI_Datatype origin_datatype,
|
2009-05-27 16:46:04 +04:00
|
|
|
int target_rank, MPI_Aint target_disp, int target_count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype target_datatype, MPI_Win win);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Query_thread(int *provided);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Raccumulate(void *origin_addr, int origin_count, MPI_Datatype origin_datatype,
|
|
|
|
int target_rank, MPI_Aint target_disp, int target_count,
|
|
|
|
MPI_Datatype target_datatype, MPI_Op op, MPI_Win win, MPI_Request *request);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Recv_init(void *buf, int count, MPI_Datatype datatype, int source,
|
2004-10-22 21:47:53 +04:00
|
|
|
int tag, MPI_Comm comm, MPI_Request *request);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Recv(void *buf, int count, MPI_Datatype datatype, int source,
|
2004-10-22 21:47:53 +04:00
|
|
|
int tag, MPI_Comm comm, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Reduce(const void *sendbuf, void *recvbuf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Op op, int root, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Ireduce(const void *sendbuf, void *recvbuf, int count,
|
2012-06-23 00:54:12 +04:00
|
|
|
MPI_Datatype datatype, MPI_Op op, int root, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Reduce_local(const void *inbuf, void *inoutbuf, int count,
|
Two major things in this commit:
* New "op" MPI layer framework
* Addition of the MPI_REDUCE_LOCAL proposed function (for MPI-2.2)
= Op framework =
Add new "op" framework in the ompi layer. This framework replaces the
hard-coded MPI_Op back-end functions for (MPI_Op, MPI_Datatype) tuples
for pre-defined MPI_Ops, allowing components and modules to provide
the back-end functions. The intent is that components can be written
to take advantage of hardware acceleration (GPU, FPGA, specialized CPU
instructions, etc.). Similar to other frameworks, components are
intended to be able to discover at run-time if they can be used, and
if so, elect themselves to be selected (or disqualify themselves from
selection if they cannot run). If specialized hardware is not
available, there is a default set of functions that will automatically
be used.
This framework is ''not'' used for user-defined MPI_Ops.
The new op framework is similar to the existing coll framework, in
that the final set of function pointers that are used on any given
intrinsic MPI_Op can be a mixed bag of function pointers, potentially
coming from multiple different op modules. This allows for hardware
that only supports some of the operations, not all of them (e.g., a
GPU that only supports single-precision operations).
All the hard-coded back-end MPI_Op functions for (MPI_Op,
MPI_Datatype) tuples still exist, but unlike coll, they're in the
framework base (vs. being in a separate "basic" component) and are
automatically used if no component is found at runtime that provides a
module with the necessary function pointers.
There is an "example" op component that will hopefully be useful to
those writing meaningful op components. It is currently
.ompi_ignore'd so that it doesn't impinge on other developers (it's
somewhat chatty in terms of opal_output() so that you can tell when
its functions have been invoked). See the README file in the example
op component directory. Developers of new op components are
encouraged to look at the following wiki pages:
https://svn.open-mpi.org/trac/ompi/wiki/devel/Autogen
https://svn.open-mpi.org/trac/ompi/wiki/devel/CreateComponent
https://svn.open-mpi.org/trac/ompi/wiki/devel/CreateFramework
= MPI_REDUCE_LOCAL =
Part of the MPI-2.2 proposal listed here:
https://svn.mpi-forum.org/trac/mpi-forum-web/ticket/24
is to add a new function named MPI_REDUCE_LOCAL. It is very easy to
implement, so I added it (also because it makes testing the op
framework pretty easy -- you can do it in serial rather than via
parallel reductions). There's even a man page!
This commit was SVN r20280.
2009-01-15 02:44:31 +03:00
|
|
|
MPI_Datatype datatype, MPI_Op);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Reduce_scatter(const void *sendbuf, void *recvbuf, const int recvcounts[],
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Op op, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Ireduce_scatter(const void *sendbuf, void *recvbuf, const int recvcounts[],
|
2012-07-19 16:29:22 +04:00
|
|
|
MPI_Datatype datatype, MPI_Op op, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Reduce_scatter_block(const void *sendbuf, void *recvbuf, int recvcount,
|
2012-07-19 16:29:22 +04:00
|
|
|
MPI_Datatype datatype, MPI_Op op, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Ireduce_scatter_block(const void *sendbuf, void *recvbuf, int recvcount,
|
2012-06-26 18:05:33 +04:00
|
|
|
MPI_Datatype datatype, MPI_Op op, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Register_datarep(const char *datarep,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datarep_conversion_function *read_conversion_fn,
|
|
|
|
MPI_Datarep_conversion_function *write_conversion_fn,
|
|
|
|
MPI_Datarep_extent_function *dtype_file_extent_fn,
|
|
|
|
void *extra_state);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC MPI_Fint PMPI_Request_c2f(MPI_Request request);
|
|
|
|
OMPI_DECLSPEC MPI_Request PMPI_Request_f2c(MPI_Fint request);
|
|
|
|
OMPI_DECLSPEC int PMPI_Request_free(MPI_Request *request);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Request_get_status(MPI_Request request, int *flag,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Status *status);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Rget(void *origin_addr, int origin_count, MPI_Datatype origin_datatype,
|
|
|
|
int target_rank, MPI_Aint target_disp, int target_count, MPI_Datatype target_datatype,
|
|
|
|
MPI_Win win, MPI_Request *request);
|
|
|
|
OMPI_DECLSPEC int PMPI_Rget_accumulate(const void *origin_addr, int origin_count, MPI_Datatype origin_datatype,
|
|
|
|
void *result_addr, int result_count, MPI_Datatype result_datatype,
|
|
|
|
int target_rank, MPI_Aint target_disp, int target_count,
|
|
|
|
MPI_Datatype target_datatype, MPI_Op op,
|
|
|
|
MPI_Win win, MPI_Request *request);
|
|
|
|
OMPI_DECLSPEC int PMPI_Rput(const void *origin_addr, int origin_count, MPI_Datatype origin_datatype,
|
|
|
|
int target_rank, MPI_Aint target_disp, int target_cout,
|
|
|
|
MPI_Datatype target_datatype, MPI_Win win, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Rsend(const void *ibuf, int count, MPI_Datatype datatype, int dest,
|
2004-10-22 21:47:53 +04:00
|
|
|
int tag, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Rsend_init(const void *buf, int count, MPI_Datatype datatype,
|
2009-05-27 16:46:04 +04:00
|
|
|
int dest, int tag, MPI_Comm comm,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Scan(const void *sendbuf, void *recvbuf, int count,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype datatype, MPI_Op op, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Iscan(const void *sendbuf, void *recvbuf, int count,
|
2012-06-23 00:54:12 +04:00
|
|
|
MPI_Datatype datatype, MPI_Op op, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Scatter(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2009-05-27 16:46:04 +04:00
|
|
|
void *recvbuf, int recvcount, MPI_Datatype recvtype,
|
2004-10-22 21:47:53 +04:00
|
|
|
int root, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Iscatter(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2012-06-23 00:54:12 +04:00
|
|
|
void *recvbuf, int recvcount, MPI_Datatype recvtype,
|
|
|
|
int root, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Scatterv(const void *sendbuf, const int sendcounts[], const int displs[],
|
2009-05-27 16:46:04 +04:00
|
|
|
MPI_Datatype sendtype, void *recvbuf, int recvcount,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype recvtype, int root, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Iscatterv(const void *sendbuf, const int sendcounts[], const int displs[],
|
2012-06-23 00:54:12 +04:00
|
|
|
MPI_Datatype sendtype, void *recvbuf, int recvcount,
|
|
|
|
MPI_Datatype recvtype, int root, MPI_Comm comm, MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Send_init(const void *buf, int count, MPI_Datatype datatype,
|
2009-05-27 16:46:04 +04:00
|
|
|
int dest, int tag, MPI_Comm comm,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Send(const void *buf, int count, MPI_Datatype datatype, int dest,
|
2004-10-22 21:47:53 +04:00
|
|
|
int tag, MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Sendrecv(const void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
2004-10-22 21:47:53 +04:00
|
|
|
int dest, int sendtag, void *recvbuf, int recvcount,
|
2009-05-27 16:46:04 +04:00
|
|
|
MPI_Datatype recvtype, int source, int recvtag,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Comm comm, MPI_Status *status);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Sendrecv_replace(void * buf, int count, MPI_Datatype datatype,
|
2004-10-22 21:47:53 +04:00
|
|
|
int dest, int sendtag, int source, int recvtag,
|
|
|
|
MPI_Comm comm, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Ssend_init(const void *buf, int count, MPI_Datatype datatype,
|
2009-05-27 16:46:04 +04:00
|
|
|
int dest, int tag, MPI_Comm comm,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Request *request);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Ssend(const void *buf, int count, MPI_Datatype datatype, int dest,
|
2004-10-22 21:47:53 +04:00
|
|
|
int tag, MPI_Comm comm);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Start(MPI_Request *request);
|
2012-08-03 05:09:59 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Startall(int count, MPI_Request array_of_requests[]);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Status_c2f(const MPI_Status *c_status, MPI_Fint *f_status);
|
|
|
|
OMPI_DECLSPEC int PMPI_Status_f2c(const MPI_Fint *f_status, MPI_Status *c_status);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Status_set_cancelled(MPI_Status *status, int flag);
|
|
|
|
OMPI_DECLSPEC int PMPI_Status_set_elements(MPI_Status *status, MPI_Datatype datatype,
|
2004-10-22 21:47:53 +04:00
|
|
|
int count);
|
2013-07-23 19:35:14 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Status_set_elements_x(MPI_Status *status, MPI_Datatype datatype,
|
|
|
|
MPI_Count count);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Testall(int count, MPI_Request array_of_requests[], int *flag,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Status array_of_statuses[]);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Testany(int count, MPI_Request array_of_requests[], int *index, int *flag, MPI_Status *status);
|
|
|
|
OMPI_DECLSPEC int PMPI_Test(MPI_Request *request, int *flag, MPI_Status *status);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Test_cancelled(const MPI_Status *status, int *flag);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Testsome(int incount, MPI_Request array_of_requests[],
|
|
|
|
int *outcount, int array_of_indices[],
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Status array_of_statuses[]);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Topo_test(MPI_Comm comm, int *status);
|
|
|
|
OMPI_DECLSPEC MPI_Fint PMPI_Type_c2f(MPI_Datatype datatype);
|
|
|
|
OMPI_DECLSPEC int PMPI_Type_commit(MPI_Datatype *type);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_contiguous(int count, MPI_Datatype oldtype,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype *newtype);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_create_darray(int size, int rank, int ndims,
|
2013-09-27 01:56:20 +04:00
|
|
|
const int gsize_array[], const int distrib_array[],
|
|
|
|
const int darg_array[], const int psize_array[],
|
2009-05-27 16:46:04 +04:00
|
|
|
int order, MPI_Datatype oldtype,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype *newtype);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_create_f90_complex(int p, int r, MPI_Datatype *newtype);
|
|
|
|
OMPI_DECLSPEC int PMPI_Type_create_f90_integer(int r, MPI_Datatype *newtype);
|
|
|
|
OMPI_DECLSPEC int PMPI_Type_create_f90_real(int p, int r, MPI_Datatype *newtype);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_create_hindexed(int count, const int array_of_blocklengths[],
|
|
|
|
const MPI_Aint array_of_displacements[],
|
2009-05-27 16:46:04 +04:00
|
|
|
MPI_Datatype oldtype,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype *newtype);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_create_hvector(int count, int blocklength, MPI_Aint stride,
|
|
|
|
MPI_Datatype oldtype,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype *newtype);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_create_keyval(MPI_Type_copy_attr_function *type_copy_attr_fn,
|
|
|
|
MPI_Type_delete_attr_function *type_delete_attr_fn,
|
2004-10-22 21:47:53 +04:00
|
|
|
int *type_keyval, void *extra_state);
|
2012-08-07 16:48:30 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_create_hindexed_block(int count, int blocklength,
|
2013-09-27 01:56:20 +04:00
|
|
|
const MPI_Aint array_of_displacements[],
|
2012-08-07 16:48:30 +04:00
|
|
|
MPI_Datatype oldtype,
|
|
|
|
MPI_Datatype *newtype);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_create_indexed_block(int count, int blocklength,
|
2013-09-27 01:56:20 +04:00
|
|
|
const int array_of_displacements[],
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype oldtype,
|
|
|
|
MPI_Datatype *newtype);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_create_struct(int count, const int array_of_block_lengths[],
|
|
|
|
const MPI_Aint array_of_displacements[],
|
|
|
|
const MPI_Datatype array_of_types[],
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype *newtype);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_create_subarray(int ndims, const int size_array[], const int subsize_array[],
|
|
|
|
const int start_array[], int order,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype oldtype, MPI_Datatype *newtype);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_create_resized(MPI_Datatype oldtype, MPI_Aint lb,
|
|
|
|
MPI_Aint extent, MPI_Datatype *newtype);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_delete_attr(MPI_Datatype type, int type_keyval);
|
|
|
|
OMPI_DECLSPEC int PMPI_Type_dup(MPI_Datatype type, MPI_Datatype *newtype);
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_extent(MPI_Datatype type, MPI_Aint *extent)
|
|
|
|
__mpi_interface_deprecated__("MPI_Type_extent is superseded by MPI_Type_get_extent in MPI-2.0");
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_free(MPI_Datatype *type);
|
|
|
|
OMPI_DECLSPEC int PMPI_Type_free_keyval(int *type_keyval);
|
|
|
|
OMPI_DECLSPEC MPI_Datatype PMPI_Type_f2c(MPI_Fint datatype);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_get_attr(MPI_Datatype type, int type_keyval,
|
2004-10-22 21:47:53 +04:00
|
|
|
void *attribute_val, int *flag);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_get_contents(MPI_Datatype mtype, int max_integers,
|
|
|
|
int max_addresses, int max_datatypes,
|
|
|
|
int array_of_integers[],
|
|
|
|
MPI_Aint array_of_addresses[],
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype array_of_datatypes[]);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_get_envelope(MPI_Datatype type, int *num_integers,
|
|
|
|
int *num_addresses, int *num_datatypes,
|
2004-10-22 21:47:53 +04:00
|
|
|
int *combiner);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_get_extent(MPI_Datatype type, MPI_Aint *lb,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Aint *extent);
|
2013-07-23 19:35:14 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_get_extent_x(MPI_Datatype type, MPI_Count *lb,
|
|
|
|
MPI_Count *extent);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_get_name(MPI_Datatype type, char *type_name,
|
2004-10-22 21:47:53 +04:00
|
|
|
int *resultlen);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_get_true_extent(MPI_Datatype datatype, MPI_Aint *true_lb,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Aint *true_extent);
|
2013-07-23 19:35:14 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_get_true_extent_x(MPI_Datatype datatype, MPI_Count *true_lb,
|
|
|
|
MPI_Count *true_extent);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_hindexed(int count, int array_of_blocklengths[],
|
|
|
|
MPI_Aint array_of_displacements[],
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
MPI_Datatype oldtype, MPI_Datatype *newtype)
|
|
|
|
__mpi_interface_deprecated__("MPI_Type_hindexed is superseded by MPI_Type_create_hindexed in MPI-2.0");
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_hvector(int count, int blocklength, MPI_Aint stride,
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
MPI_Datatype oldtype, MPI_Datatype *newtype)
|
|
|
|
__mpi_interface_deprecated__("MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0");
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_indexed(int count, const int array_of_blocklengths[],
|
|
|
|
const int array_of_displacements[],
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype oldtype, MPI_Datatype *newtype);
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_lb(MPI_Datatype type, MPI_Aint *lb)
|
|
|
|
__mpi_interface_deprecated__("MPI_Type_lb is deprecated, use MPI_Type_get_extent in MPI-2.0");
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_match_size(int typeclass, int size, MPI_Datatype *type);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_set_attr(MPI_Datatype type, int type_keyval,
|
2004-10-22 21:47:53 +04:00
|
|
|
void *attr_val);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_set_name(MPI_Datatype type, const char *type_name);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_size(MPI_Datatype type, int *size);
|
2013-07-23 19:35:14 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_size_x(MPI_Datatype type, MPI_Count *size);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_struct(int count, int array_of_blocklengths[],
|
|
|
|
MPI_Aint array_of_displacements[],
|
|
|
|
MPI_Datatype array_of_types[],
|
- As proposed in RFC and telcon, warn the user about deprecated
functionality (per MPI-2.1). This warning can be toggled using
--enable-mpi-interface-warning (default OFF), but can be
selectively turned on passing
mpicc -DOMPI_WANT_MPI_INTERFACE_WARNING
Using icc, gcc < 4.5, warnings (such as in mpi2basic_tests) show:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379)
Using gcc-4.5 (gcc-svn) these show up as:
type_vector.c:83: warning: ‘MPI_Type_hvector’ is deprecated
(declared at /home/../usr/include/mpi.h:1379):
MPI_Type_hvector is superseded by MPI_Type_create_hvector in MPI-2.0
Jeff and I propose to turn such warnings on with Open MPI-1.7 by default.
- Detection of user-level compiler is handled using the preprocessor
checks of GASnet's other/portable_platform.h (thanks to Paul Hargrove
and Dan Bonachea) adapted into ompi/include/mpi_portable_platform.h
(see comments).
The OMPI-build time detection is output (Familyname and Version)
with ompi_info.
This functionality (actually any upcoming __attribute__) are turned
off, if a different compiler (and version) is being detected.
- Note, that any warnings regarding (user-compiler!=build-compiler)
as discussed in the RFC are _not_ included for now.
- Tested on Linux with --enable-mpi-interface-warning on
Linux, gcc-4.5 (deprecated w/ specific msg)
Linux, gcc-4.3 (deprecated w/o specific msg)
Linux, pathscale 3.1 (deprecated w/o specific msg)
Linux, icc-11.0 (deprecated w/o specific msg)
Linux, PGI-8.0.6 accepts __deprecated__ but does not issue a warning,
further investigation needed...
This commit was SVN r21262.
2009-05-22 08:39:43 +04:00
|
|
|
MPI_Datatype *newtype)
|
|
|
|
__mpi_interface_deprecated__("MPI_Type_struct is superseded by MPI_Type_create_struct in MPI-2.0");
|
|
|
|
OMPI_DECLSPEC int PMPI_Type_ub(MPI_Datatype mtype, MPI_Aint *ub)
|
|
|
|
__mpi_interface_deprecated__("MPI_Type_ub is deprecated, use MPI_Type_get_extent in MPI-2.0");
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Type_vector(int count, int blocklength, int stride,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Datatype oldtype, MPI_Datatype *newtype);
|
2013-09-27 16:48:28 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Unpack(const void *inbuf, int insize, int *position,
|
2009-05-27 16:46:04 +04:00
|
|
|
void *outbuf, int outcount, MPI_Datatype datatype,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Comm comm);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Unpublish_name(const char *service_name, MPI_Info info,
|
|
|
|
const char *port_name);
|
|
|
|
OMPI_DECLSPEC int PMPI_Unpack_external (const char datarep[], const void *inbuf, MPI_Aint insize,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Aint *position, void *outbuf, int outcount,
|
|
|
|
MPI_Datatype datatype);
|
2012-08-03 05:09:59 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Waitall(int count, MPI_Request array_of_requests[],
|
|
|
|
MPI_Status array_of_statuses[]);
|
|
|
|
OMPI_DECLSPEC int PMPI_Waitany(int count, MPI_Request array_of_requests[],
|
2004-10-22 21:47:53 +04:00
|
|
|
int *index, MPI_Status *status);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Wait(MPI_Request *request, MPI_Status *status);
|
2012-08-03 05:09:59 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Waitsome(int incount, MPI_Request array_of_requests[],
|
|
|
|
int *outcount, int array_of_indices[],
|
|
|
|
MPI_Status array_of_statuses[]);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Win_allocate(MPI_Aint size, int disp_unit, MPI_Info info,
|
|
|
|
MPI_Comm comm, void *baseptr, MPI_Win *win);
|
|
|
|
OMPI_DECLSPEC int PMPI_Win_allocate_shared(MPI_Aint size, int disp_unit, MPI_Info info,
|
|
|
|
MPI_Comm comm, void *baseptr, MPI_Win *win);
|
|
|
|
OMPI_DECLSPEC int PMPI_Win_attach(MPI_Win win, void *base, MPI_Aint size);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC MPI_Fint PMPI_Win_c2f(MPI_Win win);
|
|
|
|
OMPI_DECLSPEC int PMPI_Win_call_errhandler(MPI_Win win, int errorcode);
|
|
|
|
OMPI_DECLSPEC int PMPI_Win_complete(MPI_Win win);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Win_create(void *base, MPI_Aint size, int disp_unit,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Info info, MPI_Comm comm, MPI_Win *win);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Win_create_dynamic(MPI_Info info, MPI_Comm comm, MPI_Win *win);
|
2009-10-22 20:50:45 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Win_create_errhandler(MPI_Win_errhandler_function *function,
|
2004-10-22 21:47:53 +04:00
|
|
|
MPI_Errhandler *errhandler);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Win_create_keyval(MPI_Win_copy_attr_function *win_copy_attr_fn,
|
|
|
|
MPI_Win_delete_attr_function *win_delete_attr_fn,
|
2004-10-22 21:47:53 +04:00
|
|
|
int *win_keyval, void *extra_state);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Win_delete_attr(MPI_Win win, int win_keyval);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Win_detach(MPI_Win win, void *base);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC MPI_Win PMPI_Win_f2c(MPI_Fint win);
|
|
|
|
OMPI_DECLSPEC int PMPI_Win_fence(int assert, MPI_Win win);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Win_flush(int rank, MPI_Win win);
|
|
|
|
OMPI_DECLSPEC int PMPI_Win_flush_all(MPI_Win win);
|
|
|
|
OMPI_DECLSPEC int PMPI_Win_flush_local(int rank, MPI_Win win);
|
|
|
|
OMPI_DECLSPEC int PMPI_Win_flush_local_all(MPI_Win win);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Win_free(MPI_Win *win);
|
|
|
|
OMPI_DECLSPEC int PMPI_Win_free_keyval(int *win_keyval);
|
2009-05-27 16:46:04 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Win_get_attr(MPI_Win win, int win_keyval,
|
2004-10-22 21:47:53 +04:00
|
|
|
void *attribute_val, int *flag);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Win_get_errhandler(MPI_Win win, MPI_Errhandler *errhandler);
|
|
|
|
OMPI_DECLSPEC int PMPI_Win_get_group(MPI_Win win, MPI_Group *group);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Win_get_info(MPI_Win win, MPI_Info *info_used);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Win_get_name(MPI_Win win, char *win_name, int *resultlen);
|
|
|
|
OMPI_DECLSPEC int PMPI_Win_lock(int lock_type, int rank, int assert, MPI_Win win);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Win_lock_all(int assert, MPI_Win win);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Win_post(MPI_Group group, int assert, MPI_Win win);
|
|
|
|
OMPI_DECLSPEC int PMPI_Win_set_attr(MPI_Win win, int win_keyval, void *attribute_val);
|
|
|
|
OMPI_DECLSPEC int PMPI_Win_set_errhandler(MPI_Win win, MPI_Errhandler errhandler);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Win_set_info(MPI_Win win, MPI_Info info);
|
2013-09-27 01:56:20 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Win_set_name(MPI_Win win, const char *win_name);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Win_shared_query(MPI_Win win, int rank, MPI_Aint *size, int *disp_unit, void *baseptr);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Win_start(MPI_Group group, int assert, MPI_Win win);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Win_sync(MPI_Win win);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Win_test(MPI_Win win, int *flag);
|
|
|
|
OMPI_DECLSPEC int PMPI_Win_unlock(int rank, MPI_Win win);
|
2014-02-25 21:36:43 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Win_unlock_all(MPI_Win win);
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_Win_wait(MPI_Win win);
|
|
|
|
OMPI_DECLSPEC double PMPI_Wtick(void);
|
|
|
|
OMPI_DECLSPEC double PMPI_Wtime(void);
|
2013-07-16 20:03:33 +04:00
|
|
|
OMPI_DECLSPEC int PMPI_T_init_thread (int required, int *provided);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_finalize (void);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_cvar_get_num (int *num_cvar);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_cvar_get_info (int cvar_index, char *name, int *name_len,
|
|
|
|
int *verbosity, MPI_Datatype *datatype,
|
|
|
|
MPI_T_enum *enumtype, char *desc,
|
|
|
|
int *desc_len, int *bind, int *scope);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_cvar_handle_alloc (int cvar_index, void *obj_handle,
|
|
|
|
MPI_T_cvar_handle *handle, int *count);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_cvar_handle_free (MPI_T_cvar_handle *handle);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_cvar_read (MPI_T_cvar_handle handle, void *buf);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_cvar_write (MPI_T_cvar_handle handle, const void *buf);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_category_get_num(int *num_cat);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_category_get_info(int cat_index, char *name, int *name_len,
|
|
|
|
char *desc, int *desc_len, int *num_cvars,
|
|
|
|
int *num_pvars, int *num_categories);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_category_get_cvars(int cat_index, int len, int indices[]);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_category_get_pvars(int cat_index, int len, int indices[]);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_category_get_categories(int cat_index, int len, int indices[]);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_category_changed(int *stamp);
|
|
|
|
|
|
|
|
OMPI_DECLSPEC int PMPI_T_pvar_get_num(int *num_pvar);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_pvar_get_info(int pvar_index, char *name, int *name_len,
|
|
|
|
int *verbosity, int *var_class, MPI_Datatype *datatype,
|
|
|
|
MPI_T_enum *enumtype, char *desc, int *desc_len, int *bind,
|
|
|
|
int *readonly, int *continuous, int *atomic);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_pvar_session_create(MPI_T_pvar_session *session);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_pvar_session_free(MPI_T_pvar_session *session);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_pvar_handle_alloc(MPI_T_pvar_session session, int pvar_index,
|
|
|
|
void *obj_handle, MPI_T_pvar_handle *handle, int *count);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_pvar_handle_free(MPI_T_pvar_session session, MPI_T_pvar_handle *handle);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_pvar_start(MPI_T_pvar_session session, MPI_T_pvar_handle handle);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_pvar_stop(MPI_T_pvar_session session, MPI_T_pvar_handle handle);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_pvar_read(MPI_T_pvar_session session, MPI_T_pvar_handle handle,
|
|
|
|
void *buf);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_pvar_write(MPI_T_pvar_session session, MPI_T_pvar_handle handle,
|
|
|
|
const void *buf);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_pvar_reset(MPI_T_pvar_session session, MPI_T_pvar_handle handle);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_pvar_readreset(MPI_T_pvar_session session, MPI_T_pvar_handle handle,
|
|
|
|
void *buf);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_enum_get_info(MPI_T_enum enumtype, int *num, char *name, int *name_len);
|
|
|
|
OMPI_DECLSPEC int PMPI_T_enum_get_item(MPI_T_enum enumtype, int index, int *value, char *name,
|
|
|
|
int *name_len);
|
2004-01-08 16:36:59 +03:00
|
|
|
|
2013-04-24 19:59:23 +04:00
|
|
|
/*
|
|
|
|
* Tool MPI API
|
|
|
|
*/
|
|
|
|
OMPI_DECLSPEC int MPI_T_init_thread (int required, int *provided);
|
|
|
|
OMPI_DECLSPEC int MPI_T_finalize (void);
|
|
|
|
OMPI_DECLSPEC int MPI_T_cvar_get_num (int *num_cvar);
|
|
|
|
OMPI_DECLSPEC int MPI_T_cvar_get_info (int cvar_index, char *name, int *name_len,
|
|
|
|
int *verbosity, MPI_Datatype *datatype,
|
|
|
|
MPI_T_enum *enumtype, char *desc,
|
|
|
|
int *desc_len, int *bind, int *scope);
|
|
|
|
OMPI_DECLSPEC int MPI_T_cvar_handle_alloc (int cvar_index, void *obj_handle,
|
|
|
|
MPI_T_cvar_handle *handle, int *count);
|
|
|
|
OMPI_DECLSPEC int MPI_T_cvar_handle_free (MPI_T_cvar_handle *handle);
|
|
|
|
OMPI_DECLSPEC int MPI_T_cvar_read (MPI_T_cvar_handle handle, void *buf);
|
|
|
|
OMPI_DECLSPEC int MPI_T_cvar_write (MPI_T_cvar_handle handle, const void *buf);
|
|
|
|
OMPI_DECLSPEC int MPI_T_category_get_num(int *num_cat);
|
|
|
|
OMPI_DECLSPEC int MPI_T_category_get_info(int cat_index, char *name, int *name_len,
|
|
|
|
char *desc, int *desc_len, int *num_cvars,
|
|
|
|
int *num_pvars, int *num_categories);
|
|
|
|
OMPI_DECLSPEC int MPI_T_category_get_cvars(int cat_index, int len, int indices[]);
|
|
|
|
OMPI_DECLSPEC int MPI_T_category_get_pvars(int cat_index, int len, int indices[]);
|
|
|
|
OMPI_DECLSPEC int MPI_T_category_get_categories(int cat_index, int len, int indices[]);
|
|
|
|
OMPI_DECLSPEC int MPI_T_category_changed(int *stamp);
|
|
|
|
|
|
|
|
OMPI_DECLSPEC int MPI_T_pvar_get_num(int *num_pvar);
|
|
|
|
OMPI_DECLSPEC int MPI_T_pvar_get_info(int pvar_index, char *name, int *name_len,
|
|
|
|
int *verbosity, int *var_class, MPI_Datatype *datatype,
|
|
|
|
MPI_T_enum *enumtype, char *desc, int *desc_len, int *bind,
|
|
|
|
int *readonly, int *continuous, int *atomic);
|
|
|
|
OMPI_DECLSPEC int MPI_T_pvar_session_create(MPI_T_pvar_session *session);
|
|
|
|
OMPI_DECLSPEC int MPI_T_pvar_session_free(MPI_T_pvar_session *session);
|
|
|
|
OMPI_DECLSPEC int MPI_T_pvar_handle_alloc(MPI_T_pvar_session session, int pvar_index,
|
|
|
|
void *obj_handle, MPI_T_pvar_handle *handle, int *count);
|
|
|
|
OMPI_DECLSPEC int MPI_T_pvar_handle_free(MPI_T_pvar_session session, MPI_T_pvar_handle *handle);
|
|
|
|
OMPI_DECLSPEC int MPI_T_pvar_start(MPI_T_pvar_session session, MPI_T_pvar_handle handle);
|
|
|
|
OMPI_DECLSPEC int MPI_T_pvar_stop(MPI_T_pvar_session session, MPI_T_pvar_handle handle);
|
|
|
|
OMPI_DECLSPEC int MPI_T_pvar_read(MPI_T_pvar_session session, MPI_T_pvar_handle handle,
|
|
|
|
void *buf);
|
|
|
|
OMPI_DECLSPEC int MPI_T_pvar_write(MPI_T_pvar_session session, MPI_T_pvar_handle handle,
|
|
|
|
const void *buf);
|
|
|
|
OMPI_DECLSPEC int MPI_T_pvar_reset(MPI_T_pvar_session session, MPI_T_pvar_handle handle);
|
|
|
|
OMPI_DECLSPEC int MPI_T_pvar_readreset(MPI_T_pvar_session session, MPI_T_pvar_handle handle,
|
|
|
|
void *buf);
|
|
|
|
OMPI_DECLSPEC int MPI_T_enum_get_info(MPI_T_enum enumtype, int *num, char *name, int *name_len);
|
|
|
|
OMPI_DECLSPEC int MPI_T_enum_get_item(MPI_T_enum enumtype, int index, int *value, char *name,
|
|
|
|
int *name_len);
|
|
|
|
|
2004-01-10 11:17:22 +03:00
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
}
|
2004-01-08 16:36:59 +03:00
|
|
|
#endif
|
|
|
|
|
2009-05-27 16:46:04 +04:00
|
|
|
/*
|
2004-07-14 18:11:03 +04:00
|
|
|
* Conditional MPI 2 C++ bindings support. Include if:
|
2006-04-07 08:57:53 +04:00
|
|
|
* - The user does not explicitly request us to skip it (when a C++ compiler
|
|
|
|
* is used to compile C code).
|
2004-07-14 18:11:03 +04:00
|
|
|
* - We want C++ bindings support
|
|
|
|
* - We are not building OMPI itself
|
|
|
|
* - We are using a 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
|
|
|
#if !defined(OMPI_SKIP_MPICXX) && OMPI_BUILD_CXX_BINDINGS && !OMPI_BUILDING
|
2009-08-20 15:42:18 +04:00
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
2007-06-05 17:44:03 +04:00
|
|
|
#include "openmpi/ompi/mpi/cxx/mpicxx.h"
|
2004-07-14 18:11:03 +04:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2007-08-19 01:35:51 +04:00
|
|
|
#if !OMPI_PROVIDE_MPI_FILE_INTERFACE && !OMPI_BUILDING
|
|
|
|
/* ROMIO requires MPI implementations to set this to 1 if they provide
|
|
|
|
MPI_OFFSET. We need to provide it because its used throughout the
|
|
|
|
DDT engine */
|
|
|
|
#define HAVE_MPI_OFFSET 1
|
|
|
|
#endif
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
#endif /* OMPI_MPI_H */
|