[Dune] [Dune-Commit] dune-common r6227 - trunk/dune/common
Jö Fahlke
jorrit at jorrit.de
Fri Nov 5 10:58:13 CET 2010
Am Thu, 4. Nov 2010, 22:32:28 +0100 schrieb Christian Engwer:
> On Thu, Nov 04, 2010 at 07:10:21PM +0100, Martin Nolte wrote:
> > How should we deal with the situation? Simply reverting it will
> > obviously solve the insecurity, loosing the debugging hours, again.
> > Another option would be a configure check for MPI 2.0 (or
> > specifically for MPI_Initialized). Since a few interesting features
> > have been introduced in MPI 2.0, we might want to be aware of them
> > anyway. The last possibility I can think of is waiting until someone
> > complains and keeping this in mind.
>
> I suggest adding an additional mpi2.0 check. Waiting for other codes
> to break, if we already know that it might create problems, isn't a
> good solution ;-)
The check already exists. Quoting dune_mpi.m4:
| # Check for MPI-2 Standard
| # We have to provide a dummy lib here as we do not know what the name
| # of the mpi is. -lm should be save.
| AC_CHECK_LIB(m,[MPI_Finalized], [AC_DEFINE(MPI_2, 1, [Define to 1 MPI supports MPI-2])])
I.e. assume MPI 2.0 is supported if the function MPI_Finalized() exists, and
do "#define MPI_2 1" in that case.
Bye,
Jö.
--
Gute Nacht Deutschland.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20101105/a03220dd/attachment.sig>
More information about the Dune
mailing list