Newsgroups: comp.parallel.mpi
From: uwe@tchibm1.chemie.uni-karlsruhe.de (Uwe Huniar)
Subject: Problem with MPICH opening a file
Organization: University of Karlsruhe, Germany
Date: 3 Feb 1998 10:29:13 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Message-ID: <6b6rhp$lv9$1@nz12.rz.uni-karlsruhe.de>

Hello everybody,

I have a MPI-program written in Fortran which is running successfully on
several architectures and I'm trying to make a version for Linux using MPICH.
Everything seems to run perfectly well, except of one thing:

opening and reading from a file before calling MPI_INIT(..) causes that
the program won't run beyond the MPI_INIT() statement. It just hangs.
There is no problem running the program on a single process (-np 1).

I took the example fpi.f and added a few lines (before calling MPI_INIT)
which open a file, read from it and then close it again. mpirun -np 2 fpi 
fails.

Has anyone had a similar problem (and perhaps a solution for it)???

I'm using MPICH 1.1 Linux Kernel 2.0.30 and pgf77 (Fortran77 Compiler from
Portland Group) or g77.

Uwe Huniar

