Skip to content
Snippets Groups Projects

Update file UNIX_HPC_cheat_sheet.md

Merged Fanny Wegner requested to merge master-patch-0f28 into master
1 file
+ 18
2
Compare changes
  • Side-by-side
  • Inline
@@ -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
Loading