Page MenuHomec4science

looping.sh
No OneTemporary

File Metadata

Created
Sat, Nov 9, 00:00

looping.sh

#!/bin/bash
touch cmd.sh
module load gcc mvapich2 openblas
rm slurm-*
for nprocs in {1..57..1}
do
cat skeleton1.txt > cmd.sh
echo "#SBATCH -n" $nprocs >> cmd.sh
echo srun cgsolver lap2D_5pt_n100.mtx >> cmd.sh
sbatch cmd.sh
done

Event Timeline