#!/bin/bash #SBATCH --exclude=c02,c01,c00 #SBATCH -p P1 dir="/home/martini/malleability_benchmark" codeDir="/Codes/build" nodelist=$SLURM_JOB_NODELIST nodes=$SLURM_JOB_NUM_NODES if [ $# -lt 1 ] then echo "Not enough arguments. Usage:" echo "singleRun.sh config.ini [outFileIndex] [Qty] [Output path]" exit 1 fi echo "START TEST" #$1 == configFile #$2 == outFileIndex #$3 == Qty of repetitions #$4 == Output path configFile=$1 outFileIndex=$2 qty=1 if [ $# -gt 2 ] then qty=$3 if [ $# -gt 3 ] then output=$4 fi fi aux=$(grep "\[resize0\]" -n $configFile | cut -d ":" -f1) read -r ini fin <<<$(echo $aux) diff=$(( fin - ini )) numP=$(head -$fin $configFile | tail -$diff | cut -d ';' -f1 | grep Procs | cut -d '=' -f2) for ((i=0; i