Okay, so mpif90-wrapper-data.txt is located in /usr/local/Cellar/open-mpi/1.10.1/share/openmpi/mpif90-wrapper-data.txt and in the row that says "compiler=", the RHS is blank. Simply adding gfortran-5 now gives: mpif90 --show gfortran-5 -I/usr/local/Cellar/open-mpi/1.10.1/include -L/usr/local/opt/libevent/lib -L/usr/local/Cellar/open-mpi/1.10.1/lib -lmpi_mpifh -lmpi so this is definitely the much better alternative On Tue, Dec 1, 2015 at 4:58 AM, Justin Chang <jychang48@gmail.com> wrote:
Yeah, that's not the case for me. I did:
brew uninstall gcc brew uninstall openmpi
brew install openmpi brew install gcc
and here's what I have:
mpicc --show
clang -I/usr/local/Cellar/open-mpi/1.10.1/include -L/usr/local/opt/libevent/lib -L/usr/local/Cellar/open-mpi/1.10.1/lib -lmpi
mpicxx --show
clang++ -I/usr/local/Cellar/open-mpi/1.10.1/include -L/usr/local/opt/libevent/lib -L/usr/local/Cellar/open-mpi/1.10.1/lib -lmpi_cxx -lmpi
mpif90 --show
--------------------------------------------------------------------------
No underlying compiler was specified in the wrapper compiler data file
(e.g., mpicc-wrapper-data.txt)
--------------------------------------------------------------------------
On Tue, Dec 1, 2015 at 4:51 AM, Lawrence Mitchell < lawrence.mitchell@imperial.ac.uk> wrote:
On 01/12/15 11:48, Justin Chang wrote:
The issue was that homebrew's openmpi 1.10.1 does not link to any gfortran compiler. I rebuilt openmpi primarily to include the gcc fortran compiler. Though I think the cleaner way would be to modify the mpif90-wrapper-data.txt to ensure that the compiler points to a working gfortran.
Oh, weird. So I'm on El Cap, and so brew installs gcc and openmpi from bottles. I did:
brew uninstall gcc brew uninstall openmpi
brew install openmpi brew install gcc
And now mpif90 -show gives:
/usr/local/bin/gfortran ...
So it's all set up correctly AFAICT.
Cheers,
Lawrence
_______________________________________________ firedrake mailing list firedrake@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/firedrake