Skip to content

mpi.h not found during compilation #2

@ddrake

Description

@ddrake

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions