SGE template script example: Difference between revisions

From Relion
Jump to navigation Jump to search
Line 13: Line 13:
<code>
<code>
  #!/bin/tcsh
  #!/bin/tcsh
#$ -pe XXXqueueXXX XXXcoresXXX
#$ -pe XXXqueueXXX XXXnodesXXX
#$ -e XXXerrfileXXX
#$ -l dedicated=XXXdedicatedXXX
#$ -o XXXoutfileXXX
#$ -e XXXerrfileXXX
#$ -cwd
#$ -o XXXoutfileXXX
#$ -S /bin/tcsh
#$ -A Relion
# The following sets PATH and LD_LIBRARY_PATH for RELION and MPI
#$ -cwd
source /public/EM/RELION/relion.csh
#$ -S /bin/tcsh
# The actual command
 
mpiexec --bynode -n XXXmpinodesXXX XXXcommandXXX
# Environment
echo "done"
source ~/.cshrc
 
mpiexec -n XXXmpinodesXXX XXXcommandXXX
</code>
</code>

Revision as of 12:54, 27 August 2015

The environment setup

Because the SGE queue at the MRC-LMB requires no additional variables, none of the XXXextra1XXX or XXXextra2XXX variables is needed. In their environment (.cshrc) one includes:

setenv RELION_QSUB_TEMPLATE "/public/EM/RELION/relion/bin/qsub.csh"

The command used for job submission (to be given in the GUI) is qsub.

The template script

The following script is saved as /lmb/home/scheres/app/relion/bin/qsub.csh:

#!/bin/tcsh
  1. $ -pe XXXqueueXXX XXXnodesXXX
  2. $ -l dedicated=XXXdedicatedXXX
  3. $ -e XXXerrfileXXX
  4. $ -o XXXoutfileXXX
  5. $ -A Relion
  6. $ -cwd
  7. $ -S /bin/tcsh
  1. Environment

source ~/.cshrc

mpiexec -n XXXmpinodesXXX XXXcommandXXX