On Jul 18, 2016, at 4:06 PM, Emani, Murali <ema...@llnl.gov> wrote:
> 
> I would like to know if there is Clang support for OpenMPI codebase.
> 
> I am trying to change the underlying compiler from gcc to clang in 
> ‘configure' and ‘make all install’, I changed these values in Makefile in 
> root dir and another one in config directory. The steps during ‘configure’ 
> reflect gcc again instead of clang. Is this the right way or am I missing 
> something here ?

(you don't need to mail to both devel and users -- I'm replying to just the 
users list)

You can set which compiler to use via the configure command line:

$ ./configure CC=clang CXX=clang++ ...

> Is the wrapper compiler environment variable ‘OMPI_CC’ intended to replace 
> the underlying compiler when compiling an MPI application.

Setting the compiler via the configure command line will propagate out your 
choice of compiler throughout all of Open MPI, to include the wrapper compilers.

-- 
Jeff Squyres
jsquy...@cisco.com
For corporate legal information go to: 
http://www.cisco.com/web/about/doing_business/legal/cri/

Reply via email to