BwForCluster JUSTUS 2 Slurm HOWTO: Difference between revisions
(Created page with "{{Justus2}} = Slurm Howto = == Preface ==") |
|||
Line 1: | Line 1: | ||
{{Justus2}} |
{{Justus2}} |
||
{{Justus2}} |
|||
⚫ | |||
⚫ | |||
== Preface == |
== Preface == |
||
This is a collection of howtos and convenient commands that I initially |
|||
wrote for internal use at Ulm only. Scripts and commands have been tested |
|||
within our Slurm test environment at JUSTUS (running Slurm 19.05 at the |
|||
moment). |
|||
Maybe you find this collection useful, but use on your own risk. Things |
|||
may behave differently with different Slurm versions and configurations. |
|||
== GENERAL == |
|||
=== How to find Slurm FAQ? === |
|||
https://slurm.schedmd.com/faq.html |
|||
=== How to find a Slurm cheat sheet? === |
|||
https://slurm.schedmd.com/pdfs/summary.pdf |
|||
=== How to get more information? === |
|||
(Almost) every Slurm command has a man page. Use it. |
|||
Online versions: https://slurm.schedmd.com/man_index.html |
|||
== JOB SUBMISSION == |
|||
=== How to submit an interactive job? === |
|||
Use [https://slurm.schedmd.com/srun.html srun] command, e.g.: |
|||
<pre>$ srun --nodes=1 --ntasks-per-node=8 --pty bash </pre> |
|||
=== How to enable X11 forwarding for an interactive job? === |
|||
Use --x11 flag, e.g. |
|||
<pre> |
|||
$ srun --nodes=1 --ntasks-per-node=8 --pty --x11 bash # run shell with X11 forwarding enabled |
|||
$ srun --nodes=1 --ntasks-per-node=8 --pty --x11 xterm # directly launch terminal window on node |
|||
</pre> |
|||
'''Note:''' |
|||
* For X11 forwarding to work, you must also enable X11 forwarding for your ssh login from your local computer to the cluster, i.e.: |
|||
<pre>local> ssh -X <username>@justus2.uni-ulm.de></pre> |
Revision as of 13:57, 17 April 2020
The bwForCluster JUSTUS 2 is a state-wide high-performance compute resource dedicated to Computational Chemistry and Quantum Sciences in Baden-Württemberg, Germany. The bwForCluster JUSTUS 2 is a state-wide high-performance compute resource dedicated to Computational Chemistry and Quantum Sciences in Baden-Württemberg, Germany.
Slurm Howto
Preface
This is a collection of howtos and convenient commands that I initially wrote for internal use at Ulm only. Scripts and commands have been tested within our Slurm test environment at JUSTUS (running Slurm 19.05 at the moment).
Maybe you find this collection useful, but use on your own risk. Things may behave differently with different Slurm versions and configurations.
GENERAL
How to find Slurm FAQ?
https://slurm.schedmd.com/faq.html
How to find a Slurm cheat sheet?
https://slurm.schedmd.com/pdfs/summary.pdf
How to get more information?
(Almost) every Slurm command has a man page. Use it.
Online versions: https://slurm.schedmd.com/man_index.html
JOB SUBMISSION
How to submit an interactive job?
Use srun command, e.g.:
$ srun --nodes=1 --ntasks-per-node=8 --pty bash
How to enable X11 forwarding for an interactive job?
Use --x11 flag, e.g.
$ srun --nodes=1 --ntasks-per-node=8 --pty --x11 bash # run shell with X11 forwarding enabled $ srun --nodes=1 --ntasks-per-node=8 --pty --x11 xterm # directly launch terminal window on node
Note:
- For X11 forwarding to work, you must also enable X11 forwarding for your ssh login from your local computer to the cluster, i.e.:
local> ssh -X <username>@justus2.uni-ulm.de>