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

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

parent 6b2372e9
No related branches found
No related tags found
No related merge requests found
Pipeline #33239 passed with warnings
...@@ -115,14 +115,8 @@ To finish the interactive job, you can either use the `exit` keyword, or Ctrl+D ...@@ -115,14 +115,8 @@ To finish the interactive job, you can either use the `exit` keyword, or Ctrl+D
## Running Batch Jobs ## Running Batch Jobs
Run batch job: Create batch script with following content:
```console
$ cd my_work_dir # submit directory my_work_dir will be also used as working directory for submitted job
$ sbatch script.sh
```
File script content:
```shell ```shell
#!/usr/bin/bash #!/usr/bin/bash
#SBATCH --job-name MyJobName #SBATCH --job-name MyJobName
...@@ -145,6 +139,13 @@ Script will: ...@@ -145,6 +139,13 @@ Script will:
* use 36 tasks per node * use 36 tasks per node
* set job time limit to 12 hours * set job time limit to 12 hours
Run batch job:
```console
$ cd my_work_dir # submit directory my_work_dir will be also used as working directory for submitted job
$ sbatch script.sh
```
Example output of the job: Example output of the job:
```shell ```shell
36 cn17.barbora.it4i.cz 36 cn17.barbora.it4i.cz
......
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