On Thu, Mar 9, 2017 at 5:26 PM, Buesing, Henrik <HBuesing@eonerc.rwth-aachen.de> wrote:
Dear Firedrake developers,
I’m trying to install Firedrake with the install script on CentOS Linux release 7.3.1611. I’m doing a
“firedrake-install --no_package_manager --disable-ssh”.
The script fails when building pyop2/sparsity.cpp, because it did not find mpi.h. I notice that he uses gcc for compiling while he should use the appropriate MPI Wrapper function mpicxx.
There are environment variables available in my system ($MPICC, $MPICXX, $MPIFC) pointing to the appropriate MPI Wrappers (mpicc, mpicxx, mpif90).
It is not sufficient to have an $MPICC environment variable. You need to have 'mpicc' in the path, which is what i would recommend you doing.
How do I tell the install script to use these? I notice the option “--mpicc” for the C compiler, but how do I set the C++ (and Fortran) compiler?
PETSc will figure out the mpicxx and mpif compiler itself when you set mpicc, at least it does it for me. But as already stated, add the mpicc binary path to your $PATH and the install script will use the correct mpi compiler wrapper.
Thank you!
Henrik
--
Dipl.-Math. Henrik Büsing
Institute for Applied Geophysics and Geothermal Energy
E.ON Energy Research Center
RWTH Aachen University
------------------------------------------------------
Mathieustr. 10 | Tel +49 (0)241 80 49907
52074 Aachen, Germany | Fax +49 (0)241 80 49889
------------------------------------------------------
http://www.eonerc.rwth-aachen.de/GGE
hbuesing@eonerc.rwth-aachen.de
------------------------------------------------------
_______________________________________________ firedrake mailing list firedrake@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/firedrake