From a38cf147f534e5261269dabefd827ed9dc479be9 Mon Sep 17 00:00:00 2001 From: Matt Pritchard Date: Mon, 10 Feb 2025 09:55:40 +0000 Subject: [PATCH] tweaks to submission examples --- .../rocky9-migration-2024.md | 31 ++++++++++++------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/content/docs/software-on-jasmin/rocky9-migration-2024.md b/content/docs/software-on-jasmin/rocky9-migration-2024.md index 52df816a7..64f2f8389 100644 --- a/content/docs/software-on-jasmin/rocky9-migration-2024.md +++ b/content/docs/software-on-jasmin/rocky9-migration-2024.md @@ -329,29 +329,38 @@ There are 3 partitions currently available on LOTUS2, with associated allowed qu #### Job submission -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. +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. -Example of a batch Script: +Example of a batch Script: **NB: remove any trailing whitespace** -**NB: remove any trailing whitespace** +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. ```bash #!/bin/bash -#SBATCH --job-name="Job Name" -#SBATCH --time= -#SBATCH --mem= -#SBATCH --cpus= -#SBATCH --account= -#SBATCH --partition= -#SBATCH --qos= +#SBATCH --job-name="My test job" +#SBATCH --time=01:00 +#SBATCH --mem=1G +#SBATCH --account=mygws +#SBATCH --partition=debug +#SBATCH --qos=debug # rest of script here ``` + +Save this script file as e.g.`test_submit.sh` +Then submit this with: + +{{}} +sbatch test_submit.sh +{{}} + For a pseudo-interactive session on a LOTUS2 compute node: +(again, replace `mygws` with an account that you belong to, from the `useraccounts` command) + {{}} -srun --account=cedaproc --qos=standard --pty /bin/bash +srun --account=mygws --partition=debug --qos=debug --pty /bin/bash (out)srun: job 586 queued and waiting for resources (out)srun: job 586 has been allocated resources module li