diff --git a/docs.it4i/general/slurm-job-submission-and-execution.md b/docs.it4i/general/slurm-job-submission-and-execution.md index 8216ff73f4085da58f3b42b927d268ea9d5a1f37..6d468c14516b846727ffce8a13c4370e7ef4ef0d 100644 --- a/docs.it4i/general/slurm-job-submission-and-execution.md +++ b/docs.it4i/general/slurm-job-submission-and-execution.md @@ -107,19 +107,19 @@ srun hostname | sort | uniq -c Script will: * use bash shell interpreter -* use MyJobName as job name -* use project PROJECT-ID for job access and accounting -* use partition/queue qcpu -* use four nodes -* use 128 tasks per node - value used by MPI -* set job time limit to 12 hours +* use `MyJobName` as job name +* use project `PROJECT-ID` for job access and accounting +* use partition/queue `qcpu` +* use `4` nodes +* use `128` tasks per node - value used by MPI +* set job time limit to `12` hours * load appropriate module -* run command, srun serves as Slurm's native way of executing MPI-enabled applications, hostname is used in the example just for sake of simplicity +* run command, `srun` serves as Slurm's native way of executing MPI-enabled applications, `hostname` is used in the example just for sake of simplicity Submit directory will be used as working directory for submitted job, so there is no need to change directory in the job script. -Alternatively you can specify job working directory using sbatch `--chdir` (or shortly `-D`) option. +Alternatively you can specify job working directory using the sbatch `--chdir` (or shortly `-D`) option. ### Job Submit @@ -131,10 +131,10 @@ $ sbatch script.sh ``` A path to `script.sh` (relative or absolute) should be given -if the job script is in different location than the job working directory. +if the job script is in a different location than the job working directory. By default, job output is stored in a file called `slurm-JOBID.out` and contains both job standard output and error output. -This can be changed using sbatch options `--output` (shortly `-o`) and `--error` (shortly `-e`). +This can be changed using the sbatch options `--output` (shortly `-o`) and `--error` (shortly `-e`). Example output of the job: