@@ -113,7 +122,7 @@ sacctmgr show qos format=name%20s,priority,grpnodes,maxwall,description%40s
```
SLURM allows for setting a run time limit below the default QOS's run time limit. After the specified time is elapsed, the job is killed:
```
```bash
#SBATCH --time=<time>
```
Acceptable time formats include `minutes`, `minutes:seconds`, `hours:minutes:seconds`, `days-hours`, `days-hours:minutes` and `days-hours:minutes:seconds`.
...
...
@@ -134,8 +143,8 @@ We have 16 CPUs per Node. In order to fill:
The core hours will be charged to the specified account. If not specified, the default account will be used.
on VSC-3 our account is called:
```
sacctmgr show user `id -u` withassoc format=user,defaultaccount,account,qos%40s,defaultqos%20s
```bash
$ sacctmgr show user `id-u` withassoc format=user,defaultaccount,account,qos%40s,defaultqos%20s
@@ -145,7 +154,7 @@ sacctmgr show user `id -u` withassoc format=user,defaultaccount,account,qos%40s,
Put this in the Job file:
```
```bash
#!/bin/bash
#
#SBATCH -J TEST_JOB
...
...
@@ -175,10 +184,10 @@ Put this in the Job file:
***--mail-type** sends an email at specific events. The SLURM doku lists the following valid mail-type values: *"BEGIN, END, FAIL, REQUEUE, ALL (equivalent to BEGIN, END, FAIL and REQUEUE), TIME_LIMIT, TIME_LIMIT_90 (reached 90 percent of time limit), TIME_LIMIT_80 (reached 80 percent of time limit), and TIME_LIMIT_50 (reached 50 percent of time limit). Multiple type values may be specified in a comma separated list."*[cited from the SLURM doku](http://slurm.schedmd.com)
***--mail-user** sends an email to this address
```
[username@l31 ~]$ sbatch check.slrm # to submit the job
[username@l31 ~]$ squeue -u `whoami` # to check the status of own jobs
[username@l31 ~]$ scancel JOBID # for premature removal, where JOBID
```bash
$ sbatch check.slrm # to submit the job
$ squeue -u`whoami`# to check the status of own jobs
$ scancel JOBID # for premature removal, where JOBID
# is obtained from the previous command
```
...
...
@@ -191,8 +200,8 @@ We have 48 CPUs per Node. In order to fill:
The core hours will be charged to the specified account. If not specified, the default account will be used.
on VSC-4 our account is called:
```
sacctmgr show user `id -u` withassoc format=user,defaultaccount,account,qos%40s,defaultqos%20s
```bash
$ sacctmgr show user `id-u` withassoc format=user,defaultaccount,account,qos%40s,defaultqos%20s