The problem is almost certainly that you're not using the MPI compiler wrappers.
Whenever you're compiling an MPI program, you should use the MPI wrappers:
C - mpicc
C++ - mpiCC, mpicxx, mpic++
FORTRAN - mpifort, mpif77, mpif90
These wrappers do all of the dirty work for you of making sure that all of the appropriate
compiler flags,
libraries,
include directories,
library directories,
etc.
are included when you compile your program.
mpi.h: No such file or directory
最新推荐文章于 2024-08-19 11:00:28 发布