Submit Jobs

ALL jobs to be run on booster MUST be submitted through the scheduler Torque. Any jobs not submitted through Torque will be deleted without notice or guilt.

Submitting a job to the que:

At the command prompt type qsub torque_run, where torque_run is a shell script

The following show different torque_run scripts for various cases.

Example #1: Single processor executable

#!/usr/local/bin/bash
#PBS -l nodes=1:ppn=1
#PBS -l walltime=02:00:00
#PBS -o rswirl.o
#PBS -e rswirl.e
#PBS -N rswirl
#PBS -j oe
#PBS -V
#----------------------------
cd $PBS_O_WORKDIR
set NUM_PROCS=`cat $PBS_NODEFILE | wc -l`
./Swirl.exe
Notes:
  1. The default walltime is 1 hour, so if your code needs to run for longer then you need to specify the wall time.
  2. In the case shown above the executable file is Swirl.exe

Example #2: Multiprocessor executable using mpi

#!/usr/local/bin/bash
#PBS -l nodes=4:ppn=4
#PBS -l walltime=02:00:00
#PBS -o rles3dx.o
#PBS -e rles3dx.e
#PBS -N rles3dx
#PBS -j oe
#PBS -V
#----------------------------
cd $PBS_O_WORKDIR
set NUM_PROCS=`cat $PBS_NODEFILE | wc -l`
mpdboot -n 4 -f $PBS_NODEFILE
mpiexec -machinefile $PBS_NODEFILE -n ${NUM_PROCS} ./les3dx_SP03
mpdallexit  


Notes:
  1. The default walltime is 1 hour, so if your code needs to run for longer then you need to specify the wall time.
  2. In the case shown above the executable file is les3dx_SP03
  3. The code is set to use 16 cpu’s (nodes=4 and ppn=4 so 4*4=16)
  4. You must have a file “mpd.hosts” which lists the master and all of the nodes so
booster.ecn.purdue.edu
booster01.ecn.purdue.edu
booster02.ecn.purdue.edu
booster18.ecn.purdue.edu