Newsgroups: comp.parallel.mpi
From: song@express.cs.purdue.edu (Chang-Hyeon Song)
Subject: Re: Problems reading a file from each MPI process
Organization: Department of Computer Sciences, Purdue University
Date: 20 Sep 1995 06:00:21 GMT
Message-ID: <43oall$fb5@ector.cs.purdue.edu>

John Lindal (jafl@cco.caltech.edu) wrote:
: 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.

: Is there anything in the implementation of MPI that prevents each process
: from reading the same file?  (They only open the file for reading.)

: How do others handle sending large amounts of data to each worker process?

: Thanks for any help.  John Lindal

Try to put the file in home directory to see if it works.
I have used Conch, and it alway need files(input) to be resided in home dir.

--

Chang Song

