- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
include 'mpif.h'
..............^
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This looks like a problem either with your configuration of the mpi compiler driver, or with -I option.
Depending on which mpi you use, typically you must rebuild and install it, using ifort as the Fortran compiler. Then, if you use your new mpif77 or mpif90 to drive the compile, it should find those .h files. If you want to use ifort directly, you will need a -I (uppercase I for Include) option pointing to your mpi include file directory.
A typicalMakefile for building an mpi application will set the compiler to mpif77, e.g. by setting
FC = mpif77
and using
$(FC)as the compiler.
If you take a standard linux installation, installing thelam-mpi .rpm which comes with it,that will invoke g77. It won'tsupport linkingwith ifort, as you need the mpi libraries built with ifort.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you!
My Makefile has set the compiler to mpif90 :
FC := /export/mpi/mpich-gm-ifc80/bin/mpif90
FFLAGS := -c -r8 -i4 -quiet -convert big_endian
Maybe I need to rebuild and install mpi .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page