Stuff

UoM::RCS::Talby::Danzek::SGE



Page Group

Basic Config:

Extra Stuff:

Applications:

Scripts Etc.







Using Modules with Qsub

1. 

Option One

 -- load modules first at the command line
 -- then submit a script using qsub --- ensuring that the "-V" flag is set

Example:

 csf> module load compilers/intel/fortran/11.1.064
 csf> module load compilers/intel/c/11.1.075
 csf> module load mpi/intel-11.1/openmpi/1.4.3-ib

then

 csf> qsub thing.qsub

where thing.qsub contains something like --- notice the "#$ -V", meaning "inherit environment":

  #!/bin/bash

  #$ -cwd
  #$ -S /bin/bash
  #$ -V
  #$ -pe orte-32-ib.pe 32

  ulimit -s unlimited

  mpirun -n 32 ./mynameis

2. 

Option Two

  #!/bin/bash

  #$ -cwd
  #$ -S /bin/bash
  #$ -pe orte-32-ib.pe 32

  source /etc/profile.d/modules.sh
      # ...N.B. this line...

  module load compilers/intel/fortran/11.1.064
  module load compilers/intel/c/11.1.075
  module load mpi/intel-11.1/openmpi/1.4.3-ib

  ## ulimit -s unlimited

  mpirun -n 32 ./mynameis