FWIW, we always encourage you to use the same compiler to build Open MPI and your application.
Compatibility between gcc and Intel *usually* works for C and C++, but a) doesn't work for Fortran, and b) there have been bugs in the past where C/C++ compatibility broke in corner cases. My $0.02: avoid these issues if you can and just have multiple installations of Open MPI. See the FAQ for how to modify the wrapper compilers: https://www.open-mpi.org/faq/?category=mpi-apps#override-wrappers-after-v1.0 > On Sep 18, 2017, at 4:21 PM, n8tm via users <users@lists.open-mpi.org> wrote: > > On Linux and Mac, Intel c and c++ are sufficiently compatible with gcc and > g++ that this should be possible. This is not so for Fortran libraries or > Windows. > > > > > > > Sent via the Samsung Galaxy S8 active, an AT&T 4G LTE smartphone > > -------- Original message -------- > From: Michael Thomadakis <drmichaelt7...@gmail.com> > Date: 9/18/17 3:51 PM (GMT-05:00) > To: users@lists.open-mpi.org > Subject: [OMPI users] Question concerning compatibility of languages used > with building OpenMPI and languages OpenMPI uses to build MPI binaries. > > Dear OpenMPI list, > > As far as I know, when we build OpenMPI itself with GNU or Intel compilers we > expect that the subsequent MPI application binary will use the same compiler > set and run-times. > > Would it be possible to build OpenMPI with the GNU tool chain but then > subsequently instruct the OpenMPI compiler wrappers to use the Intel compiler > set? Would there be any issues with compiling C++ / Fortran or corresponding > OMP codes ? > > In general, what is clean way to build OpenMPI with a GNU compiler set but > then instruct the wrappers to use Intel compiler set? > > Thanks! > Michael > _______________________________________________ > users mailing list > users@lists.open-mpi.org > https://lists.open-mpi.org/mailman/listinfo/users -- Jeff Squyres jsquy...@cisco.com _______________________________________________ users mailing list users@lists.open-mpi.org https://lists.open-mpi.org/mailman/listinfo/users