fortran compiler
Hey how ya'll doing? I have a problem with compiling fortran code on my system, each time i try to compile it says:
Error: Can't open included file 'mpif.h' Anyone have any ideas how to fix this problem? Thanks in advance! |
Software packages, that provide mpif.h, examples :
mpich-devel, libmpich1-devel, libmpich2-devel, libopenmpi-devel, openmpi-devel libopenmpi-dev, libmpich2-dev, libmpich1.0-dev. Different Linux OS's : Different package names. And some programs require a specific version of "mpich". . |
Basically your system misses the Message Passing Interface (MPI) development files to compile and run parallel applications. A free implementation on Linux is openmpi, but depending on what Fortran compiler you're using you may want to install a proper MPI library. If you use gfortran maybe you simply need to install openmpi and openmpi-devel (this one providing the included file mpif.h, but the exact package name depends on your Linux distribution.
Edit: beaten by knudfl! :) |
Thank you for your replies......The thing is I have those packages installed, the fortran compiler was previously working but for some reason it began giving that message recently...I'm working on a parallel machine using MPI, c++ code compiles and runs properly but only the fortran code seems to be giving problems!
|
All times are GMT -5. The time now is 07:28 PM. |