TORQUE template script example: Difference between revisions

From Relion
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
  #PBS -V
  #PBS -V
  ### Job name
  ### Job name
  #PBS -N relion
  #PBS -N XXXnameXXX
  ### Output and Error
  ### Keep Output and Error
  #PBS -e XXXerrfileXXX
  #PBS -k eo
#PBS -o XXXoutfileXXX
  ### Queue name
  ### Queue name
  #PBS -q XXXqueueXXX
  #PBS -q XXXqueueXXX

Revision as of 10:38, 28 September 2011

#!/bin/bash
### Inherit all current environment variables
#PBS -V
### Job name
#PBS -N XXXnameXXX
### Keep Output and Error
#PBS -k eo
### Queue name
#PBS -q XXXqueueXXX
### Specify the number of nodes and thread (ppn) for your job.
#PBS -l nodes=XXXmpinodesXXX:ppn=XXXthreadsXXX
### Tell PBS the anticipated run-time for your job, where walltime=HH:MM:SS
###PBS -l walltime=XXXextra1XXX:00:00
#################################
### Switch to the working directory;
cd $PBS_O_WORKDIR
### Run:
mpirun --bynode -np XXXmpinodesXXX XXXcommandXXX
echo "done"