Newsgroups: comp.parallel.mpi
From: zz@cs.purdue.edu (Zhongyun Zhang)
Subject: Re: Problems reading a file from each MPI process
Organization: Purdue University, West Lafayette, IN
Date: 20 Sep 1995 10:34:06 -0500
Message-ID: <43pc9e$j6g@arthur.cs.purdue.edu>






Make sure the the file location(the full path) is accessible from
all nodes your code is run on, and you need to put the full path
as the input to open the file for all processes.


-Zhongyun



In article <43nfrm$cs1@gap.cco.caltech.edu> jafl@cco.caltech.edu (John Lindal) writes:
>I'm running MPI on a network of Sparc's.  Each process needs a lot of
>initial data before it can start cranking (after which, they pretty much
>crank independently).  It would seem that the easiest way to do this is
>to have the main process write a file containing all the data, and then
>let each process read this file.  The file is written in the same
>directory as the executable, so each Sparc has access to it.
>
>The problem is, it doesn't work.  The worker processes complain that they
>can't find the file.  (But when I use system("pwd"), each process prints the
>correct directory!)  The problem is also intermittent.
>
>
>Thanks for any help.  John Lindal


