This work is licensed under a Creative Commons Attribution 4.0 International License.
Teaching material used during the High Performance Computing session of the EMBL Software Carpentry course.
Below are most of the commands used during the practical, so they can be copy/pasted, but I highly recommend typing along if you can.
ssh bq_11denbi@129.206.69.162
ssh <user##>@172.16.72.70
git clone https://github.com/grimbough/swc_hpc.git
hostname
srun hostname
cd $HOME/swc_hpc/software
# ./hpc_example -t 10 -l 100
srun ./hpc_example -t 10 -l 100
sbatch ./hpc_example -t 10 -m 100
squeue
sbatch --output=output.txt ./hpc_example -t 60 -m 100
sbatch --output=output.txt ./hpc_example -t 30 -m 5000000
scontrol show partition
sbatch --mem=250 --output=output.txt ./hpc_example -t 30 -m 5000000
sbatch --mem=8000 --output=output.txt ./hpc_example -t 30 -m 5000000
scancel <jobID>
scancel -u <username>
srun --pty bash
srun --mem=250 --pty bash
sbatch batch_jobs.sh
jid=$(sbatch --parsable batch_job.sh)
sbatch --dependency=afterok:$jid batch_job.sh