#!/bin/bash #SBATCH -N 8 #SBATCH -p P1 #SBATCH --exclude=c01,c00,c02 dirM="/home/martini/SparseMatrix/" dirCG="/home/martini/malleable_cg" #matrix="Queen_4147.rb" #matrix="audikw_1.rb" matrix="bcsstk01.rsa" #procs=(2 10 20 40 80 120 160) procs=(2 4) msm=(0 1) mss=(1 2) mrm=(0 1) is_syncs=(1 0) echo $matrix for proc in "${procs[@]}" do echo "------------------------------------------run np=$proc next=0" for proc_c in "${procs[@]}" do if [ $proc -ne $proc_c ] then max_numP=$proc if [ "$proc_c" -gt "$proc" ]; then max_numP=$proc_c fi node_qty=$(($max_numP / 20)) if [ $node_qty -eq 0 ] then node_qty=1 fi for sm_type in "${msm[@]}" do for rm_type in "${mrm[@]}" do for is_sync in "${is_syncs[@]}" do if [ $is_sync -eq 1 ] # Matrix is send syncrhonously then sbatch -p P1 -N $node_qty $dirCG/generalRun.sh $proc $dirM$matrix $proc_c $sm_type 1 $rm_type 1 $is_sync else # Matrix is send asyncrhonously for ss_type in "${mss[@]}" do sbatch -p P1 -N $node_qty $dirCG/generalRun.sh $proc $dirM$matrix $proc_c $sm_type $ss_type $rm_type $ss_type $is_sync done fi done done done fi done done echo "End"