On 5/1/2014 2:20 PM, venkataraman thiagarajan wrote:
I am trying to run some sample parallel problems using openmp, hybrid openmp and MPI using Gfortran in my laptop which has an Intel i7 core processor and uses Windows 8.1.
The openmp examples run fine. But, the hybrid ones using openmp and MPI fail with the message : "cannot read "mpif.h". I tried replacing mpif.h by " use mpi", per suggestions found on line and this also does not work. I downloaded the mpif.h from a website.
I will be grateful for your help in resolving the problem.
If there is a special version of mpif.h for windows 8.1, do let me know how I can download it.
I have a 64 bit machine and I downloaded the 64 bit Gfortran from the Gnu site.
Thanks for your help
Yours sincerely,
V. Thiagarajan
Normally, you require use of an MPI compiler wrapper such as mpif90,
built with gcc and gfortran, to set the include and library paths and
invoke gfortran. In the common case of open source MPI, it's normal to
build the MPI yourself, following instructions on the corresponding web
site, such as the ones for openmpi, mpich, and mvapich.
For Windows 8.1 with gfortran, choices are limited. One such is the
cygwin implementation of openmpi, which is available pre-built on the
cygwin.com setup-x86_64 (best used with the companion build of gfortran).
I think your statement about downloading from a gnu site is ambiguous at
best. cygwin.com and other download sites for gfortran.exe aren't gnu
sites.
--
Tim Prince