[GE users] mpich sge and exporting env vars

michael bane michael.bane at manchester.ac.uk
Mon Jun 19 10:41:32 BST 2006


On Mon, 2006-06-19 at 10:23 +0200, Reuti wrote:
> Am 17.06.2006 um 14:31 schrieb michael bane:
> 
> > On Sat, 2006-06-17 at 14:23 +0200, Reuti wrote:
> >
> >>> As an aside, I note that if I try
> >>> !qrsh -V
> >>> error: Unknown option -V
> >>
> >> Without a command it would start an interactive session - i.e. a
> >> complete fresh new bash on a slave node. For this the variables can't
> >> be set. But if you try:
> >>
> >> reuti at server:~> export GRID=blabla
> >> reuti at server:~> qrsh -V echo \$GRID
> >> blabla
> >>
> >> it should also work for you. - Reuti
> >
> > right, understood! and works!
> > now need to await sys admin to get back to me on 'tight integration'
> > -seems the $SGE_ROOT/mpi/README has been followed but unsure if points
> > at http://gridengine.sunsource.net/howto/mpich-integration.html have
> > also...
> 
> If at least the rsh-wrapper is used to start the slave tasks, it  
> should be possible to set the variable on the slaves with:
> 
> export RCMD_PREFIX="M3DATA=${HOME}/models-3/data/TESTING/par myvar2=a  
> myvar3=b"
> mpirun ...
> 
> although a complete process control might be missing without the -V  
> switch. The RCMD_PREFIX will be used by the rsh-wrapper.

Just tried that and no joy. Will see what the sys admins say about a
tight(er) intergration. thanks, michael

[mccssmb2 at masonclb cctm]$ cat test.sh;qsub test.sh
#!/bin/bash
#$ -pe mpich 2
#$ -l s_rt=1:00:00,h_rt=1:20:00 
#$ -cwd
#$ -v M3DATA=/home1/mccssmb2/models-3/data/TESTING
#$ -V
echo NSLOTS is $NSLOTS
pwd
export PROG=./CCTM_radm2-ros3-PAR
export RCMD_PREFIX="GRID_NAME=michael"
echo $RCMD_PREFIX
mpirun -batch -np $NSLOTS -machinefile $TMPDIR/machines  $PROG
Your job 2229 ("test.sh") has been submitted.
[mccssmb2 at masonclb cctm]$ cat test.sh.o2229
NSLOTS is 2
/home1/mccssmb2/models-3/scripts/cctm
GRID_NAME=michael
     Value for GRID_NAME not defined; returning defaultval ':
'GRID_NAME'
     Environment variable not set ...



> 
> -- Reuti
> 
> 
> > thanks for all the (patient!) help.
> >
> > michael
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> > For additional commands, e-mail: users-help at gridengine.sunsource.net
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> For additional commands, e-mail: users-help at gridengine.sunsource.net
> 
-- 
Michael Bane
Centre for Atmospheric Science
University of Manchester, U.K.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list