User Tools

Site Tools


services:cluster:slurm

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
services:cluster:slurm [2020/06/24 13:01] behrmj87services:cluster:slurm [2021/09/15 11:48] – add syntax highlighting to example job behrmj87
Line 19: Line 19:
 Consider the following bash script with ''#SBATCH'' comments, which tell Slurm what resources you need: Consider the following bash script with ''#SBATCH'' comments, which tell Slurm what resources you need:
  
-<xterm>+<file bash example_job.sh>
 #!/bin/bash #!/bin/bash
  
Line 40: Line 40:
 # wait some time... # wait some time...
 sleep 50 sleep 50
-</xterm>+</file>
  
 Please note that your job will be killed by the queueing system if it tries to use more memory than requested or if it runs longer than the time specified in the batch script. So to be on the safe side you can set these values a litte bit higher. If you set the values to high, your job might not start because there are not enough resources (e.g. no machine has that amount of memory you are asking for). Please note that your job will be killed by the queueing system if it tries to use more memory than requested or if it runs longer than the time specified in the batch script. So to be on the safe side you can set these values a litte bit higher. If you set the values to high, your job might not start because there are not enough resources (e.g. no machine has that amount of memory you are asking for).
Line 46: Line 46:
 Now just submit your job script using ''sbatch job1.sh'' from the command line. Please try to run jobs directly from the ''/scratch'' cluster wide filesystem, where you have a directory under ''/scratch/<username>'' to lower the load on ''/home''. For testing purposes set the runtime of your job below 1 minute and submit it to the test partition by adding ''-p test'' to sbatch: Now just submit your job script using ''sbatch job1.sh'' from the command line. Please try to run jobs directly from the ''/scratch'' cluster wide filesystem, where you have a directory under ''/scratch/<username>'' to lower the load on ''/home''. For testing purposes set the runtime of your job below 1 minute and submit it to the test partition by adding ''-p test'' to sbatch:
  
-<xterm>+<code>
 dreger@sheldon-ng:..dreger/quickstart> **pwd** dreger@sheldon-ng:..dreger/quickstart> **pwd**
 /scratch/dreger/quickstart /scratch/dreger/quickstart
Line 77: Line 77:
  
 x001 x001
-</xterm>+</code>
  
services/cluster/slurm.txt · Last modified: 2024/03/13 14:16 by behrmj87

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki