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

mpi.h not found during compilation #2

Open
ddrake opened this issue Mar 3, 2018 · 0 comments
Open

mpi.h not found during compilation #2

ddrake opened this issue Mar 3, 2018 · 0 comments

Comments

@ddrake
Copy link

ddrake commented Mar 3, 2018

Hi, I'm getting an error "mpi.h not found" when compiling this module on a Linux 3.10 shared server (Red Hat 4.8.5).

OpenMPI 2.0 is installed and "/act/openmpi-2.0/gcc-7.2.0/bin" is in my PATH
also "/act/openmpi-2.0/gcc-7.2.0/lib" is in my LD_LIBRARY_PATH

I believe the correct header file is located here
/act/openmpi-2.0/gcc-7.2.0/include/mpi.h

Is there a way I can patch one or both of the CMakeLists.txt files with a file() or include_directories() command to get this to compile -- or another solution?

Thanks!
Dow Drake

edit: as a workaround for my lack of Cmake knowledge, I simply copied mpi.h and mpi_portable_platform.h into ngs-special-functions/inc
Then I was able to build this module successfully. But I think there is a cleaner solution... :-)

edit: I was assuming that mpi.h was being included directly by this code, but looking at the source it doesn't appear so. You can close this issue -- I think the issue is with my compilation environment and has nothing to do directly with this code.

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

1 participant