I have installed openmpi and openmpi-devel packages, run the
module load mpi/openmpi-x86_64 command, but building a CMake project with
still fails to find MPI. mpi.h header is also not present in the system.
Any help would be appreciated.
(ins)[asinha@ankur ~]$ rpmls openmpi-devel | grep mpi.h
It depends on what the
find_package function is doing there—you can generally provide it with hints on where to look.
There’s some more information here on how these MPI compilers are packaged for Fedora:
Thank you. Adding openmpi-x86_64/ to the include directive seems to work.