rose-compiler / rose

Developed at Lawrence Livermore National Laboratory (LLNL), ROSE is an open source compiler infrastructure to build source-to-source program transformation and analysis tools for large-scale C (C89 and C98), C++ (C++98 and C++11), UPC, Fortran (77/95/2003), OpenMP, Java, Python and PHP applications.
http://rosecompiler.org
Other
602 stars 132 forks source link

configure cannot detect MPI binaries #69

Open sashakolpakov opened 4 years ago

sashakolpakov commented 4 years ago

Issuing

../rose/configure --prefix=/home/ubuntu/rose-inst --enable-edg_version=5.0 --with-boost-libdir=/usr/lib/x86_64-linux-gnu --with-boost=/usr

results in

Checking message passing interface (MPI) configure: WARNING: C MPI compiler not found configure: WARNING: CXX MPI compiler not found configure: WARNING: F77 MPI compiler not found configure: WARNING: F MPI compiler not found

while

ubuntu@yahoovm-m-3:~/build-rose$ which mpicc /usr/bin/mpicc

and passing --with-mpi=/usr/bin gives again

configure: error: cannot detect MPI binaries (C, CXX, F77, F)

Is there a quick way around this issue? Thanks for any advise.

tristanvdb commented 4 years ago

Hello,

I am not sure what you are trying to achieve, but enabling MPI when configuring ROSE is probably not the solution. When configuring ROSE with MPI, you make it possible to build a ROSE tool that uses MPI, meaning a tool processing source codes in parallel with MPI.

If instead, you are planning to analyse MPI codes, you do not need any special option. However, do not forget to provide MPI's header and library paths when using ROSE's tools (these paths are usually provided by the mipcc wrapper).

Thanks, -Tristan