#!/bin/bash #SBATCH --mem-per-cpu=6000 #SBATCH --exclusive #SBATCH --exclude=c02,c01,c00 #SBATCH -p P1 # !!!!This script should only be called by others scripts, do not call it directly!!! # Runs a given configuration file with the indicated parameters with the aid of the RMS Slurm. # Parameter 1 - Number of cores in a single machine # Parameter 2 - Configuration file name for the emulation. # Parameter 3 - Use Valgrind(1), Extrae(2) or nothing(0). # Parameter 4 - Index to use for the output files. Must be a positive integer. # Parameter 5 - Amount of executions per file. Must be a positive number. #====== Do not modify these values ======= execDir="/Exec" echo "START TEST" #$1 == cores #$2 == configFile #$3 == use_external #$4 == outFileIndex #$5 == qty echo $@ if [ $# -lt 3 ] then echo "Internal ERROR generalRun.sh - Not enough arguments were given" exit -1 fi #READ PARAMETERS AND ENSURE CORRECTNESS cores=$1 configFile=$2 use_external=$3 outFileIndex=$4 qty=1 if [ $# -ge 4 ] then qty=$5 fi nodelist=$SLURM_JOB_NODELIST if [ -z "$nodelist" ]; then echo "Internal ERROR in generalRun.sh - Nodelist not provided" exit -1 fi numP=$(bash $PROTEO_HOME$execDir/BashScripts/getNumPNeeded.sh $configFile 0) initial_nodelist=$(bash $PROTEO_HOME$execDir/BashScripts/createInitialNodelist.sh $numP $cores $nodelist) #EXECUTE RUN echo "Nodes=$nodelist" if [ $use_external -eq 0 ] #NORMAL then for ((i=0; i