[mpich-discuss] mpiexec and working directory

Rajeev Thakur thakur at mcs.anl.gov
Fri Nov 7 09:19:55 CST 2008


Can you try these simple commands:

mpiexec -l -n 2 pwd    
  ## shows if you execute in the dir you think you are in

mpiexec -l -wdir /tmp -n 2 pwd    
  ## similar to above but shows you moved to /tmp

mpiexec -l -n 2 ls -l some_filename    
  ## shows if some expected file really is in the working dir

 

> -----Original Message-----
> From: mpich-discuss-bounces at mcs.anl.gov 
> [mailto:mpich-discuss-bounces at mcs.anl.gov] On Behalf Of 
> tsilva at coas.oregonstate.edu
> Sent: Friday, November 07, 2008 1:26 AM
> To: mpich-discuss at mcs.anl.gov
> Subject: Re: [mpich-discuss] mpiexec and working directory
> 
> Quoting Rajeev Thakur <thakur at mcs.anl.gov>:
> 
> > If you cd to the directory containing the executable, say 
> a.out, and 
> > do "mpiexec -n 2 a.out" does it expect to find input files in your 
> > home directory? That's odd.
> 
> That is correct. I have tried another simpler code and the 
> same thing happens.
> 
> >
> >> -----Original Message-----
> >> From: mpich-discuss-bounces at mcs.anl.gov 
> >> [mailto:mpich-discuss-bounces at mcs.anl.gov] On Behalf Of Tiago Silva
> >> Sent: Thursday, November 06, 2008 6:02 PM
> >> To: mpich-discuss at mcs.anl.gov
> >> Subject: Re: [mpich-discuss] mpiexec and working directory
> >>
> >> Rajeev Thakur wrote:
> >> > 1.0.3 is an ancient version of MPICH2. Try the latest
> >> version, 1.0.8.
> >> >
> >> I will ask my systems administrator to do so.
> >>
> >> > The parameters to mpiexec are not identical between MPICH-1 and 
> >> > MPICH2. Do mpiexec --help. Make sure you are calling
> >> MPICH2's mpiexec, not MPICH-1's.
> >> >
> >> I am actually invoking mpiexec with its full path. Is there any 
> >> incorrect parameter on my mpiexec call?
> >> I
> >> > If your input files are in the same directory as the
> >> executable, you
> >> > should not need to specify anything.
> >> >
> >> But that is exactly the problem. The executable can't find 
> the input 
> >> files on the working directory.
> >>
> >>
> >
> >
> 
> 
> 
> 
> 




More information about the mpich-discuss mailing list