Commit a5e8654f authored by iker_martin's avatar iker_martin
Browse files

Updating Exec scripts to make them more easy to execute in other systems

parent a14e5c25
dir="/home/martini/malleability_benchmark"
partition="P1"
exclude="c00,c01,c02"
procs=(2 10 20 40 80 120 160)
cores=20
#====== Do not modify these values =======
codeDir="/Codes/build"
execDir="/Exec"
ResultsDir="/Results"
use_extrae=0
qty=1
outFileIndex=$2
if [ $# -ge 1 ]
then
qty=$1
fi
for proc in "${procs[@]}"
do
echo "------------------------------------------run np=$proc"
node_qty=$(($proc / $cores))
if [ $node_qty -eq 0 ]
then
node_qty=1
fi
config_file="test$proc"".ini"
for ((i=0; i<qty; i++))
do
#Execute test
sbatch -p $partition --exclude=$exclude -N $node_qty $dir$execDir/generalRun.sh $dir $config_file $use_extrae $outFileIndex
done
done
echo "End"
dir="/home/martini/malleability_benchmark" dir="/home/martini/malleability_benchmark"
#procs=(2 10 20 40 80 120 160) partition="P1"
procs=(2) exclude="c00,c01,c02"
procs=(2 10 20 40 80 120 160)
cores=20 cores=20
...@@ -40,12 +41,12 @@ do ...@@ -40,12 +41,12 @@ do
lower_dir="Run$i" lower_dir="Run$i"
mkdir $lower_dir mkdir $lower_dir
cd $lower_dir cd $lower_dir
cp $dir$execDir/extrae.xml . cp $dir$execDir/Extrae/extrae.xml .
cp $dir$execDir/trace.sh . cp $dir$execDir/Extrae/trace.sh .
cp ../../$config_file . cp ../../$config_file .
#pwd #Execute test
sbatch -p P1 -N $node_qty $dir$execDir/generalRun.sh $dir $config_file $use_extrae $outFileIndex sbatch -p $partition --exclude=$exclude -N $node_qty $dir$execDir/generalRun.sh $dir $config_file $use_extrae $outFileIndex
cd .. cd ..
done done
cd .. cd ..
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment