Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Global Communicator
From: Ted Yu (tedhyu_at_[hidden])
Date: 2009-02-06 10:49:47

Thanx for the reply. 

I guess I should go back a step:  I had used the openmpi version on my system which is simply:
"mpirun -machinefile $PBS_NODEFILE -np $NPROCS ${CODE} >/ul/tedhyu/fuelcell/HOH/test/HH.out"

This did not work because I was just getting a blank output.

I tried this older version because at least i was getting an output.
"/opt/mpich- -machinefile $PBS_NODEFILE -np
$NPROCS ${CODE} >/ul/tedhyu/fuelcell/HOH/test/HH.out"
I think this older version is failing me for whatever reason.  Do you have any clue?  I read somewhere that new versions of mpirun adds extra commandline arguments to the end of the line.  Therefore the newer version of mpirun may be not be giving an output because it sees all extra commandline arguments after my output file >/ul/tedhyu/fuelcell/HOH/test/HH.out

This is where I'm reading that there are extra commandline arguments for a version of mpirun:

Again, I'm new at this, and I'm just guessing.  Any ideas of where to turn would be helpful!


--- On Thu, 2/5/09, doriankrause <doriankrause_at_[hidden]> wrote:
From: doriankrause <doriankrause_at_[hidden]>
Subject: Re: [OMPI users] Global Communicator
To: tedhyu_at_[hidden], "Open MPI Users" <users_at_[hidden]>
Date: Thursday, February 5, 2009, 11:14 PM

Ted Yu wrote:
> I'm trying to run a job based on openmpi. For some reason, the
program and the global communicator are not in sync and it reads that there is
only one processors, whereas, there should be 2 or more. Any advice on where to
look? Here is my PBS script. Thanx!
> #!/bin/sh
> ### Set the job name
> #PBS -N HH
> ### Declare myprogram non-rerunable
> #PBS -r n
> ### Combine standard error and standard out to one file.
> #PBS -j oe
> ### Have PBS mail you results
> #PBS -m ae
> #PBS -M tedhyu_at_[hidden]
> ### Set the queue name, given to you when you get a reservation.
> #PBS -q workq
> ### Specify the number of cpus for your job. This example will run on 32
> ### using 8 nodes with 4 processes per node.
> #PBS -l nodes=1:ppn=2,walltime=70:00:00
> # Switch to the working directory; by default PBS launches processes from
your home directory.
> # Jobs should only be run from /home, /project, or /work; PBS returns
results via NFS.
> PBS_O_WORKDIR=/temp1/tedhyu/HH
> export
> echo Working directory is $PBS_O_WORKDIR
> mkdir -p $PBS_O_WORKDIR
> rm -rf *
> cp /ul/tedhyu/fuelcell/HOH/test/ ./
> cp /ul/tedhyu/atom_pbe/* .
> echo Running on host `hostname`
> echo Time is `date`
> echo Directory is `pwd`
> echo This jobs runs on the following processors:
> echo `cat $PBS_NODEFILE`
> Number=`wc -l $PBS_NODEFILE | awk '{print $1}'`
> export Number
> echo ${Number}
> # Define number of processors
> # And the number or hosts
> NHOSTS=`cat $PBS_NODEFILE|uniq|wc -l`
> echo This job has allocated $NPROCS cpus
> echo NHOSTS
> #mpirun -machinefile $PBS_NODEFILE ${CODE}
> #mpiexec -np 2 ${CODE} >/ul/tedhyu/fuelcell/HOH/test/HH.out
> /opt/mpich- -machinefile $PBS_NODEFILE -np
$NPROCS ${CODE} >/ul/tedhyu/fuelcell/HOH/test/HH.out
> cd ..
> rm -rf HH

Please note, that you are mixing Open MPI (API/Library) with MPICH
(mpirun). This is a mistake I like to make, too. If you use
the ompi mpiexec program, it probably works.


> ------------------------------------------------------------------------
> _______________________________________________
> users mailing list
> users_at_[hidden]