You can set the environment variable OMPI_CC to change what compiler mpicc uses as the application compiler, irrespective of what compiler Open MPI was built with.
That should work for C applications just fine. For Fortran programs the story is more complicated, as the MPI Fortran module would be tied to the compiler version. Best, Aurelien > On Mar 20, 2019, at 04:26, Daniel Letai <d...@letai.org.il> wrote: > > Hello, > > Assuming I have installed openmpi built with distro stock gcc(4.4.7 on rhel > 6.5), but an app requires a different gcc version (8.2 manually built on dev > machine). > > Would there be any issues, or performance penalty, if building the app using > the more recent gcc with flags from wrapper compiler's --showme as > perhttps://www.open-mpi.org/faq/?category=mpi-apps#cant-use-wrappers > <https://www.open-mpi.org/faq/?category=mpi-apps#cant-use-wrappers> ? > Openmpi is built with both pmix and ucx enabled, all built with stock > gcc(4.4.7). > > Since the constraint is the app, if the answer is yes I would have to build > openmpi using non-distro gcc which is a bit of a hassle. > > Thanks in advance > --Dani_L. > _______________________________________________ > users mailing list > users@lists.open-mpi.org <mailto:users@lists.open-mpi.org> > https://lists.open-mpi.org/mailman/listinfo/users > <https://lists.open-mpi.org/mailman/listinfo/users>
_______________________________________________ users mailing list users@lists.open-mpi.org https://lists.open-mpi.org/mailman/listinfo/users