I am running linux (Debian) and I want to include the header mpi.h into my project. The mpi.h is located under /usr/include/mpi and running mpiCC and mpirun shows that it's installed. I couldn't find a clear tutorial.
You should add include_directories(/usr/include/mpi/) to your CMakeLists.txt and just include the header:
#include <mpi.h>
You should include the header file mpi/mpi.h
Like this
#include<mpi/mpi.h>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With