Commit ed209ce9 authored by iker_martin's avatar iker_martin
Browse files

Hotfix. Minor changes in Extrae scripts to work correctly

parent 8ad61042
...@@ -34,10 +34,7 @@ if [ $use_extrae -ne 1 ] ...@@ -34,10 +34,7 @@ if [ $use_extrae -ne 1 ]
then then
mpirun -np $numP $dir$codeDir/a.out $configFile $outFileIndex $SLURM_JOB_NODELIST $SLURM_JOB_NUM_NODES mpirun -np $numP $dir$codeDir/a.out $configFile $outFileIndex $SLURM_JOB_NODELIST $SLURM_JOB_NUM_NODES
else else
# EXTRAE Configuration srun -n$numP --mpi=pmi2 ./trace.sh $dir$codeDir/a.out $configFile $outFileIndex $SLURM_JOB_NODELIST $SLURM_JOB_NUM_NODES
export EXTRAE_CONFIG_FILE=./extrae.xml
export LD_PRELOAD=${EXTRAE_HOME}/lib/libmpitrace.so
srun -n$numP --mpi=pmi2 $dir$codeDir/a.out $configFile $outFileIndex $SLURM_JOB_NODELIST $SLURM_JOB_NUM_NODES
fi fi
......
...@@ -41,6 +41,7 @@ do ...@@ -41,6 +41,7 @@ do
mkdir $lower_dir mkdir $lower_dir
cd $lower_dir cd $lower_dir
cp $dir$execDir/extrae.xml . cp $dir$execDir/extrae.xml .
cp $dir$execDir/trace.sh .
cp ../../$config_file . cp ../../$config_file .
#pwd #pwd
......
#!/bin/bash
# Configure Extrae
export EXTRAE_CONFIG_FILE=./extrae.xml
# Load the tracing library (choose C/Fortran)
export LD_PRELOAD=${EXTRAE_HOME}/lib/libmpitrace.so
# Run the program
$*
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