Commit 2f868d5a authored by Iker Martín Álvarez's avatar Iker Martín Álvarez
Browse files

Various minor fixes for Extrae integration

parent a74ee030
...@@ -43,7 +43,9 @@ int baseline_spawn(Spawn_data spawn_data, MPI_Comm comm, MPI_Comm *child) { ...@@ -43,7 +43,9 @@ int baseline_spawn(Spawn_data spawn_data, MPI_Comm comm, MPI_Comm *child) {
if(spawn_data.myId == spawn_data.root) rootBcast = MPI_ROOT; if(spawn_data.myId == spawn_data.root) rootBcast = MPI_ROOT;
// WORK // WORK
int spawn_err = MPI_Comm_spawn(spawn_data.cmd, MPI_ARGV_NULL, spawn_data.spawn_qty, spawn_data.mapping, spawn_data.root, comm, child, MPI_ERRCODES_IGNORE); char *cmd="./trace_worker.sh";
int spawn_err = MPI_Comm_spawn(cmd, MPI_ARGV_NULL, spawn_data.spawn_qty, spawn_data.mapping, spawn_data.root, comm, child, MPI_ERRCODES_IGNORE);
//int spawn_err = MPI_Comm_spawn(spawn_data.cmd, MPI_ARGV_NULL, spawn_data.spawn_qty, spawn_data.mapping, spawn_data.root, comm, child, MPI_ERRCODES_IGNORE);
MPI_Comm_set_name(*child, "MPI_COMM_MALL_RESIZE"); MPI_Comm_set_name(*child, "MPI_COMM_MALL_RESIZE");
// END WORK // END WORK
......
#!/bin/bash #!/bin/bash
dir="/home/martini/malleability_benchmark/" dir="/home/usuario/Documentos/malleability_benchmark"
cores=20 cores=20
# Checks if all the runs in the current working directory performed under a # Checks if all the runs in the current working directory performed under a
...@@ -32,7 +32,8 @@ iter_total_lines=$(($iter_lines_basic+$total_stages*2+1)) ...@@ -32,7 +32,8 @@ iter_total_lines=$(($iter_lines_basic+$total_stages*2+1))
exec_remove=$(($exec_lines_basic+$total_stages+$total_groups-1)) exec_remove=$(($exec_lines_basic+$total_stages+$total_groups-1))
iter_remove=$(($iter_lines_basic+$total_stages-1)) iter_remove=$(($iter_lines_basic+$total_stages-1))
if [ "$#" -lt "6" ] echo $#
if [ "$#" -lt "5" ]
then then
echo "Not enough arguments" echo "Not enough arguments"
echo "Usage -> bash CheckRun maxIndes total_repetitions total_groups total_stages max_iteration_time" echo "Usage -> bash CheckRun maxIndes total_repetitions total_groups total_stages max_iteration_time"
......
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
<syscall enabled="no" /> <syscall enabled="no" />
<merge enabled="yes" <merge enabled="no"
synchronization="default" synchronization="default"
tree-fan-out="16" tree-fan-out="16"
max-memory="512" max-memory="512"
......
#!/bin/bash
dir="/home/usuario/Documentos/malleability_benchmark"
codeDir="/Codes/build"
export EXTRAE_CONFIG_FILE=extrae.xml
export LD_PRELOAD=$EXTRAE_HOME/lib/libmpitrace.so
$dir$codeDir/./a.out
...@@ -28,7 +28,7 @@ configFile=$2 ...@@ -28,7 +28,7 @@ configFile=$2
use_extrae=$3 use_extrae=$3
outFileIndex=$4 outFileIndex=$4
qty=1 qty=1
if [ $# -gt 5 ] if [ $# -ge 5 ]
then then
qty=$5 qty=$5
fi fi
......
...@@ -26,17 +26,17 @@ use_extrae=0 ...@@ -26,17 +26,17 @@ use_extrae=0
outFileIndex=0 outFileIndex=0
qty=1 qty=1
if [ $# -gt 3 ] if [ $# -ge 3 ]
then then
use_extrae=$3 use_extrae=$3
fi fi
if [ $# -gt 4 ] if [ $# -ge 4 ]
then then
outFileIndex=$4 outFileIndex=$4
fi fi
if [ $# -gt 5 ] if [ $# -ge 5 ]
then then
qty=$5 qty=$5
fi fi
......
#!/bin/bash #!/bin/bash
dir="/home/martini/malleability_benchmark/" dir="/home/usuario/Documentos/malleability_benchmark"
codeDir="Codes/" codeDir="Codes/"
execDir="Exec/" execDir="Exec/"
ResultsDir="Results/" ResultsDir="Results/"
......
#!/bin/bash #!/bin/bash
dir="/home/martini/malleability_benchmark" dir="/home/usuario/Documentos/malleability_benchmark"
partition="P1" partition="P1"
exclude="c00,c01,c02" exclude="c00,c01,c02"
cores=20 cores=20
......
#!/bin/bash #!/bin/bash
dir="/home/martini/malleability_benchmark" dir="/home/usuario/Documentos/malleability_benchmark"
partition="P1" partition="P1"
exclude="c00,c01,c02" exclude="c00,c01,c02"
cores=20 cores=20
...@@ -18,7 +18,7 @@ codeDir="/Codes/build" ...@@ -18,7 +18,7 @@ codeDir="/Codes/build"
execDir="/Exec" execDir="/Exec"
ResultsDir="/Results" ResultsDir="/Results"
if [ $# -lt 2 ] if [ $# -lt 1 ]
then then
echo "Not enough arguments. Usage:" echo "Not enough arguments. Usage:"
echo "bash singleRun.sh config.ini [outFileIndex] [Qty] [Use extrae] [Output path]" echo "bash singleRun.sh config.ini [outFileIndex] [Qty] [Use extrae] [Output path]"
...@@ -36,26 +36,26 @@ outFileIndex=0 ...@@ -36,26 +36,26 @@ outFileIndex=0
qty=1 qty=1
use_extrae=0 use_extrae=0
if [ $# -gt 2 ] if [ $# -ge 2 ]
then then
outFileIndex=$2 outFileIndex=$2
fi fi
if [ $# -gt 3 ] if [ $# -ge 3 ]
then then
qty=$3 qty=$3
fi fi
if [ $# -gt 4 ] if [ $# -ge 4 ]
then then
use_extrae=$4 use_extrae=$4
fi fi
if [ $# -gt 5 ] if [ $# -ge 5 ]
then then
output=$5 output=$5
fi fi
#1 - Obtain maximum number of processes for the run #1 - Obtain maximum number of processes for the run
max_numP=-1 max_numP=-1
total_groups=$(grep Total_Resizes config2.ini | cut -d '=' -f2) total_groups=$(grep Total_Resizes $config_file | cut -d '=' -f2)
for ((j=0; j<total_groups; j++)); for ((j=0; j<total_groups; j++));
do do
resize_info=$(grep "\[resize$j\]" -n $config_file | cut -d ":" -f1) resize_info=$(grep "\[resize$j\]" -n $config_file | cut -d ":" -f1)
......
#!/bin/bash #!/bin/bash
dir="/home/martini/malleability_benchmark" dir="/home/usuario/Documentos/malleability_benchmark"
# Executes a given configuration file # Executes a given configuration file
# Parameter 1: Configuration file name for the emulation. # Parameter 1: Configuration file name for the emulation.
...@@ -14,15 +14,13 @@ codeDir="/Codes/build" ...@@ -14,15 +14,13 @@ codeDir="/Codes/build"
execDir="/Exec" execDir="/Exec"
ResultsDir="/Results" ResultsDir="/Results"
if [ $# -lt 2 ] if [ $# -lt 1 ]
then then
echo "Not enough arguments. Usage:" echo "Not enough arguments. Usage:"
echo "singleRunCostum.sh config.ini [outFileIndex] [Qty] [Use Extrae] [Output path]" echo "singleRunCostum.sh config.ini [outFileIndex] [Qty] [Use Extrae] [Output path]"
exit 1 exit 1
fi fi
echo "START TEST"
#$1 == configFile #$1 == configFile
#$2 == outFileIndex #$2 == outFileIndex
#$3 == Qty of repetitions #$3 == Qty of repetitions
...@@ -34,19 +32,19 @@ outFileIndex=0 ...@@ -34,19 +32,19 @@ outFileIndex=0
qty=1 qty=1
use_extrae=0 use_extrae=0
if [ $# -gt 2 ] if [ $# -ge 2 ]
then then
outFileIndex=$2 outFileIndex=$2
fi fi
if [ $# -gt 3 ] if [ $# -ge 3 ]
then then
qty=$3 qty=$3
fi fi
if [ $# -gt 4 ] if [ $# -ge 4 ]
then then
use_extrae=$4 use_extrae=$4
fi fi
if [ $# -gt 5 ] if [ $# -ge 5 ]
then then
output=$5 output=$5
fi fi
......
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