Re: [OMPI users] Are there any issues (performance or otherwise) building apps with different compiler from the one used to build openmpi?

2019-03-22 Thread Aurelien Bouteiller
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  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 
>  ?
> 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 
> https://lists.open-mpi.org/mailman/listinfo/users 
> 
___
users mailing list
users@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/users

[OMPI users] Are there any issues (performance or otherwise) building apps with different compiler from the one used to build openmpi?

2019-03-20 Thread Daniel Letai

  
  
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 per
  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
https://lists.open-mpi.org/mailman/listinfo/users