Skip to content

Commit

Permalink
A possible way to modify the parallel lessons to have simpler shell h…
Browse files Browse the repository at this point in the history
…andling. (#114)
  • Loading branch information
andre-geldenhuis authored Sep 30, 2024
1 parent d503143 commit 06f4318
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion _episodes/064-parallel.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ Number of threads to use is specified by the Slurm option `--cpus-per-task`.
> #SBATCH --mem-per-cpu 500
> #SBATCH --cpus-per-task 8
>
> echo "I am task #${SLURM_PROCID} running on node '$(hostname)' with $(nproc) CPUs"
> echo -ne "Slurm Task ID:\t"
> echo ${SLURM_PROCID}
> echo -ne "On Node: \t"
> echo $(hostname)
> echo -n "Number of CPUs: "
> echo $(nproc)
> ```
> {: .language-bash}
>
Expand Down

0 comments on commit 06f4318

Please sign in to comment.