Skip to content

Commit 65e3ba5

Browse files
authored
Merge pull request #212 from cedadev/lotus2-tweaks-10feb
tweaks to submission examples
2 parents 50c5742 + a38cf14 commit 65e3ba5

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

content/docs/software-on-jasmin/rocky9-migration-2024.md

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -329,29 +329,38 @@ There are 3 partitions currently available on LOTUS2, with associated allowed qu
329329

330330
#### Job submission
331331

332-
In order to successfully submit a job to LOTUS2, 3 mandatory fields must be specified. These are a partition, an account, and a QoS. The LOTUS2 configuration has been set to use the `standard` partition as the default if none is specified. However, users are discouraged from relying on this.
332+
In order to successfully submit a job to LOTUS2, 3 mandatory fields must be specified. These are a partition, an account, and a QoS. The LOTUS2 configuration has been set to use the `standard` partition as the default if none is specified. However, users are discouraged from relying on the default.
333333

334-
Example of a batch Script:
334+
Example of a batch Script: **NB: remove any trailing whitespace**
335335

336-
**NB: remove any trailing whitespace**
336+
Replace `mygws` with the name of an account that you belong to (check with the `useraccounts` command, as shown above), and other values appropriate to your job.
337337

338338
```bash
339339
#!/bin/bash
340-
#SBATCH --job-name="Job Name"
341-
#SBATCH --time=<wall time required>
342-
#SBATCH --mem=<memory required>
343-
#SBATCH --cpus=<cpus required for multicore jobs e.g. MPI>
344-
#SBATCH --account=<account_name>
345-
#SBATCH --partition=<partition_name>
346-
#SBATCH --qos=<qos_name>
340+
#SBATCH --job-name="My test job"
341+
#SBATCH --time=01:00
342+
#SBATCH --mem=1G
343+
#SBATCH --account=mygws
344+
#SBATCH --partition=debug
345+
#SBATCH --qos=debug
347346

348347
# rest of script here
349348
```
350349

350+
351+
Save this script file as e.g.`test_submit.sh`
352+
Then submit this with:
353+
354+
{{<command user="user" host="host1000">}}
355+
sbatch test_submit.sh
356+
{{</command>}}
357+
351358
For a pseudo-interactive session on a LOTUS2 compute node:
352359

360+
(again, replace `mygws` with an account that you belong to, from the `useraccounts` command)
361+
353362
{{<command user="user" host="host1000">}}
354-
srun --account=cedaproc --qos=standard --pty /bin/bash
363+
srun --account=mygws --partition=debug --qos=debug --pty /bin/bash
355364
(out)srun: job 586 queued and waiting for resources
356365
(out)srun: job 586 has been allocated resources
357366
module li

0 commit comments

Comments
 (0)