FWIW.
mpicxx does two things :
1) use the C++ compiler (e.g. g++)
2) if Open MPI was configured with (deprecated) C++ bindings (e.g.
--enable-mpi-cxx), then link with
the Open MPI C++ library that contains bindings.
IIRC, Open MPI v1.10 does build C++ bindings by default, but v2.0 does
not any more.
So if you are *not* using Open MPI C++ bindings (for example, you use C
bindings only,
or you use a third party lib such as BoostMPI), then you should not be
worried about
compatibility between C++ versions.
Cheers,
Gilles
On 10/12/2016 12:23 AM, Dave Love wrote:
"Jeff Squyres (jsquyres)" <jsquy...@cisco.com> writes:
Especially with C++, the Open MPI team strongly recommends you
building Open MPI with the target versions of the compilers that you
want to use. Unexpected things can happen when you start mixing
versions of compilers (particularly across major versions of a
compiler). To be clear: compilers are *supposed* to be compatible
across multiple versions (i.e., compile a library with one version of
the compiler, and then use that library with an application compiled
by a different version of the compiler), but a) there's other issues,
such as C++ ABI issues and other run-time bootstrapping that can
complicate things, and b) bugs in forward and backward compatibility
happen.
Is that actually observed in GNU/Linux systems? I'd expect it either to
work or just fail to link. For instance, the RHEL 6 devtoolset-4 (gcc
5) uses the system libstdc++, and the system compiler is gcc 4.4.
The short answer is in this FAQ item:
https://www.open-mpi.org/faq/?category=mpi-apps#override-wrappers-after-v1.0.
Substituting the gcc 5 compiler may work just fine.
For what it's worth, not for GNU Fortran, which unfortunately changes
the module format incompatibly with each release, or at least most
releases.
_______________________________________________
users mailing list
users@lists.open-mpi.org
https://rfd.newmexicoconsortium.org/mailman/listinfo/users
_______________________________________________
users mailing list
users@lists.open-mpi.org
https://rfd.newmexicoconsortium.org/mailman/listinfo/users