title: Is there an easy way to use clang with Open MPI?
body: <p>OpenMPI <a href="http://www.open-mpi.org/faq/?category=mpi-apps#general-build" rel="noreferrer">strongly recommends</a> using their wrapper compilers. Behind the scenes, their wrapper compiler mpiCC calls gcc (by default?) and adds the necessary flags for MPI code to compile. However, other compilers give more descriptive error messages than gcc (e.g. <a href="http://clang.llvm.org/" rel="noreferrer">clang</a> which is also GCC-compatible). So, I'd like to be able to use clang with Open MPI.</p>
  
  <p>I tried:</p>
  
  <p>1) finding an mpiCC option for specifying the compiler, but</p>
  
  <pre><code>mpiCC --help
  </code></pre>
  
  <p>just spits out the g++ help page.</p>
  
  <p>2) using the --showme:compile option</p>
  
  <pre><code>mpiCC --showme:compile ./test-boost.cc -lboost_mpi -lboost_serialization -o test-boost
  </code></pre>
  
  <p>which, instead of calling gcc, prints the flags needed for compiling the MPI code. I can then use those with clang (since it's GCC-compatible). This should work, but I'm looking for an easier solution.</p>