[MPICH] MPICH2 Questions: Read input files from current directory and output control
Yusong Wang
ywang25 at aps.anl.gov
Thu Apr 20 13:34:21 CDT 2006
Ralph,
Thanks for your response. I hope I can clear the confusions:
On Thu, 2006-04-20 at 13:09 -0500, Ralph Butler wrote:
> Hi Yusong:
>
> I cannot figure out what you are attempting to do because I am not
> sure what all the parts actually are.
> For example, Pelegant seems to be an executable (pgm or script) that
> you are attempting to run giving
> it run_p.ele as an argument.
Yes, you are right. Pelegant is the executable file.
> But, I am not sure of that. If I am
> right, then it is not clear what the role of
> run_p.ele is.
run_p.ele is a text input file (used for parsing several commands for
Pelegant), which specifies which lattice file (used for describe the
layout of an accelerator) will be used.
> You say that FFTB.lte "is given" in run_p.ele. But, I
> don't know if you mean that it is a pre-existing
> file that is merely mentioned by name there, or if it is written by
> the executing program, or created via a
> here-document in a script, etc.
Both run_p.ele and FFTB.lte are pre-existed in the current directory.
> Can you explain how to reproduce
> the problem using simple cmds such as
> cat or printenv?? If not, please explain what the individual files
> are and how they interact.
Pelegant parses run_p.ele, which tells Pelegant to use FFTB.lte as the
lattice file.
>
> Thanks.
> --ralph
>
> On Apr 20, 2006, at 11:23 AM, Yusong Wang wrote:
>
> > Hi,
> >
> > I am trying to run my program with MPICH2 under MPD environment.
> > The cpi
> > example went well. I have two questions for my own examples:
> >
> > 1) There is another file (FFTB.lte, in the current directory),
> > which is
> > given in run_p.ele. How can mpiexec find it without giving the path
> > explicitly in the run_p.ele? (I am dealing with more than a hundred of
> > these kind of examples, it will be convenient if mpiexec can find the
> > file itself.) It seems to me that the -wdir can only find the binary
> > file instead of other text input files.
> >
> > [ywang25 at weed23 FFTB1]$ mpiexec -machinefile ./myMachines -np 4 -wdir
> > `pwd` $ebin/Pelegant `pwd`/run_p.ele
> >
> > Unable to find file FFTB.lte
> >
> > 2) The output from all the slave processes are printed out, although I
> > have redirected them to "/dev/null".
> >
> > I don't have any problem with the mpirun of MPICH1. Those are
> > something
> > I need to solve before I can run my program with MPICH2.
> >
> > Thanks for your help.
> >
> > Yusong
> >
> >
> >
>
More information about the mpich-discuss
mailing list