From 2459144dc6267a6ef57502642d4f704f0126166a Mon Sep 17 00:00:00 2001 From: John Whiting Date: Thu, 11 Jul 2024 19:42:17 +1200 Subject: [PATCH] Update 064-parallel.md (#111) fixed other multi-MPI srun command so it prints unique number for each task --- _episodes/064-parallel.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_episodes/064-parallel.md b/_episodes/064-parallel.md index c98ebe8d..c7020171 100644 --- a/_episodes/064-parallel.md +++ b/_episodes/064-parallel.md @@ -165,7 +165,7 @@ Using a combination of Shared and Distributed memory is called _Hybrid Parallel_ > #SBATCH --ntasks 2 > #SBATCH --cpus-per-task 4 > -> srun echo "I am task #${SLURM_PROCID} running on node '$(hostname)' with $(nproc) CPUs" +> srun bash -c 'echo I am task \#${SLURM_PROCID} running on node '$(hostname)' with $(nproc) CPUs' > ``` > {: .language-bash} >