Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The configure'' script cannot find mpi.h'' even though it is installed #6

Closed
usptact opened this issue Jan 29, 2015 · 6 comments
Closed

Comments

@usptact
Copy link

usptact commented Jan 29, 2015

The "configure" script fails to find the "mpi.h" include file. I am pretty sure that the MPI has been installed correctly.

What steps can be taken to debug and resolve the issue?

@xgdgsc
Copy link
Collaborator

xgdgsc commented Jan 29, 2015

What OS is it and how did you install MPI?

@peterwittek
Copy link
Owner

Please also look into the relevant flags of the configure script to fine-tune the location of the MPI directories:

--with-mpi=MPIROOT      Use MPI root directory.
--with-mpi-compilers=DIR or --with-mpi-compilers=yes
                          use MPI compiler (mpicxx) found in directory DIR, or
                          in your PATH if =yes
--with-mpi-incdir=DIR   MPI include directory [default MPIROOT/include]
--with-mpi-libdir=DIR   MPI library directory [default MPIROOT/lib]

@usptact
Copy link
Author

usptact commented Feb 1, 2015

Thanks for replies. I tried under Debian 7.0 and Ubuntu 14.04. I installed the mpich packages (dev versions as well) from the software repository. I checked that the system include directories actually have the mpi.h file. This is how I was certain (more or less) that MPI has been installed.

Do you need more details?

@peterwittek
Copy link
Owner

MPICH is a bit quirkier than, say, OpenMPI, but I compiled and ran Somoclu with it before. What do you get for find /usr -name mpi.h?

In any case, please note that MPI is required if you want to run it on a cluster. If you only want to run it on a multicore machine, then that level of parallelism is taken care of by OpenMP, so you might not need MPI at all.

@xgdgsc
Copy link
Collaborator

xgdgsc commented Feb 1, 2015

@usptact I just tried in a ubuntu 14.04 machine.
Installing mpich with:

apt install mpich

and run the configure script with:

./configure --with-mpi=/usr/

works.

@usptact
Copy link
Author

usptact commented Feb 2, 2015

The ``--with-mpi=/usr/'' parameter was the key! Everything compiles and runs on both machines! Thanks for all your work and help with this issue!

@usptact usptact closed this as completed Feb 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants