Difference between revisions of "Complex submissions"

From IBERS Bioinformatics and HPC Wiki
Jump to: navigation, search
Line 1: Line 1:
 
In [[Submitting your job using SGE]] we looked at the following script;
 
In [[Submitting your job using SGE]] we looked at the following script;
  
<nowiki>
+
    <nowiki>
    #specify the shell type
+
#specify the shell type
    #$ -S /bin/sh
+
#$ -S /bin/sh
  
    #run in the current working directory
+
#run in the current working directory
    #$ -cwd
+
#$ -cwd
  
    #specify that the job will be killed if it uses over 40G or total memory or run for more than 24hours.
+
#specify that the job will be killed if it uses over 40G or total memory or run for more than 24hours.
    #indicate that the program should run for 1 hour and use 20G of total memory
+
#indicate that the program should run for 1 hour and use 20G of total memory
    #$ -l s_vmem=20G h_vmem=40G s_rt=360 h_rt=3600
+
#$ -l s_vmem=20G h_vmem=40G s_rt=360 h_rt=3600
  
    #specify the number of cores required
+
#specify the number of cores required
    #$ -pe mpich 1
+
#$ -pe mpich 1
  
    #specify which queue you wish to use
+
#specify which queue you wish to use
    #$ -q amd.q
+
#$ -q amd.q
  
    #run a program command to print hostname and uptime
+
#run a program command to print hostname and uptime
    hostname && uptime
+
hostname && uptime
</nowiki>
+
    </nowiki>

Revision as of 11:05, 1 May 2012

In Submitting your job using SGE we looked at the following script;

   
#specify the shell type
#$ -S /bin/sh

#run in the current working directory
#$ -cwd

#specify that the job will be killed if it uses over 40G or total memory or run for more than 24hours.
#indicate that the program should run for 1 hour and use 20G of total memory
#$ -l s_vmem=20G h_vmem=40G s_rt=360 h_rt=3600

#specify the number of cores required
#$ -pe mpich 1

#specify which queue you wish to use
#$ -q amd.q

#run a program command to print hostname and uptime
hostname && uptime