User Tools

Site Tools


slurm_submit

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
slurm_submit [2019/04/26 12:35]
meesters [Simple MPI Job]
slurm_submit [2019/05/20 11:29] (current)
meesters [Trivial example - full node job]
Line 133: Line 133:
 </​code>​ </​code>​
  
-==== Trivial example - full node job ==== + 
 +==== Trivial example - single core job ==== 
  
 <file myjobscript>​ <file myjobscript>​
 #!/bin/bash #!/bin/bash
 #​----------------------------------------------------------------- #​-----------------------------------------------------------------
-# Example SLURM job script to run serial ​applications on Mogon.+# Example SLURM job script to run single core applications on  
 +Mogon.
 # #
 # This script requests one core (out of 64) on one node. The job # This script requests one core (out of 64) on one node. The job
-# will have access to all the memory ​in the node.  Note that this +# will have access to the default ​memory ​of the partition.
-# job will be charged as if all 64 cores were requested.+
 #​----------------------------------------------------------------- #​-----------------------------------------------------------------
- 
 #SBATCH -J mysimplejob ​          # Job name #SBATCH -J mysimplejob ​          # Job name
 #SBATCH -o mysimplejob.%j.out ​   # Specify stdout output file (%j expands to jobId) #SBATCH -o mysimplejob.%j.out ​   # Specify stdout output file (%j expands to jobId)
-#SBATCH -p nodeshort ​            # Queue name +#SBATCH -p short                 # Queue name '​short'​ or '​long'​ on Mogon I 
-#SBATCH -N 1                     # Total number of nodes requested (64 cores/node per Mogon I node) +                                 ​           '​smp'​ on Mogon II 
-#SBATCH -n 64                    ​# Total number of tasks+#SBATCH -n 1                     # Total number of tasks, here explicitly 1
 #SBATCH -t 00:​30:​00 ​             # Run time (hh:mm:ss) - 0.5 hours #SBATCH -t 00:​30:​00 ​             # Run time (hh:mm:ss) - 0.5 hours
  
Line 156: Line 156:
 # Load all necessary modules if needed (these are examples) # Load all necessary modules if needed (these are examples)
 # Loading modules in the script ensures a consistent environment. # Loading modules in the script ensures a consistent environment.
-module load gcc/6.3.0 
  
 # Launch the executable 64 times # Launch the executable 64 times
 srun <​myexecutable>​ srun <​myexecutable>​
 +
 </​file>​ </​file>​
 +
  
 ==== Trivial example - full node job - threaded application ==== ==== Trivial example - full node job - threaded application ====
slurm_submit.1556274952.txt.gz · Last modified: 2019/04/26 12:35 by meesters