Skip to content
Snippets Groups Projects
Commit 8bdd98b0 authored by Fanny Wegner's avatar Fanny Wegner
Browse files

Merge branch 'master-patch-0f28' into 'master'

Update file UNIX_HPC_cheat_sheet.md

See merge request !69
parents 0cf5ce39 4ad1b707
No related branches found
No related tags found
1 merge request!69Update file UNIX_HPC_cheat_sheet.md
......@@ -141,14 +141,30 @@ command1
command2
srun my_software_container.sif my_software [parameters]
```
Submit script as job to the computing nodes:
```bash
sbatch myjob.sh
```
Job arrays for applying the same processing routine with changed parameters for each instance (e.g., input files)
```bash
#!/usr/bin/env bash
#SBATCH --cpus-per-task=[number]
#SBATCH --mem=[memory]
#SBATCH --time=[hr:min:sec]
#SBATCH --job-name=[name]
#SBATCH --output=[name]_%j.out
#SBATCH --error=[name]_%j.err
#SBATCH --array=1-16 # specify size of array
srun your_application $SLURM_ARRAY_TASK_ID
```
## Managing jobs
```bash
......
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