diff --git a/hands-on-extrae/mpi/trace.sh b/hands-on-extrae/mpi/trace.sh index 0578444cb2c51029cc44543c6b24a0cfbb27bda3..f3095bcfb849c35b944dd8abff8790ca544d972b 100755 --- a/hands-on-extrae/mpi/trace.sh +++ b/hands-on-extrae/mpi/trace.sh @@ -1,6 +1,7 @@ #!/bin/bash -source /cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen3/software/Extrae/4.2.0-gompi-2023b/etc/extrae.sh +if [ -z $EBROOTEXTRAE ]; then echo "Extrae module not loaded?" >&2; exit 1; fi +source $EBROOTEXTRAE/etc/extrae.sh export OMP_NUM_THREADS=4 export EXTRAE_CONFIG_FILE=extrae.xml