Skip to content
Snippets Groups Projects
Commit 0a0a5bac authored by Roman Sliva's avatar Roman Sliva
Browse files

Update slurm-job-submission-and-execution.md

parent a12004e5
No related branches found
No related tags found
No related merge requests found
Pipeline #33273 passed with warnings
......@@ -69,7 +69,7 @@ Batch jobs is the standard way of running jobs and utilizing HPC clusters.
### Job Script
Create example batch script called script.sh with the following content:
Create example job script called script.sh with the following content:
```shell
#!/usr/bin/bash
......@@ -92,18 +92,20 @@ Script will:
* use project PROJECT-ID for job access and accounting
* use partition/queue qcpu
* use four nodes
* use 36 tasks per node
* use 36 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
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.
### Job Submit
Submit batch job:
```console
### submit directory my_work_dir will be also used as working directory for submitted job
$ cd my_work_dir
$ sbatch script.sh
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment