diff --git a/performance/extrae/share/extrae_bursts.xml b/performance/extrae/share/extrae_bursts.xml new file mode 100644 index 0000000..7c0ae53 --- /dev/null +++ b/performance/extrae/share/extrae_bursts.xml @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + + + + + 1-3 + 1-5 + 1-3 + 1-3 + 1-3 + + + + + + + + + + PAPI_TOT_INS,PAPI_TOT_CYC,PERF_COUNT_HW_STALLED_CYCLES_BACKEND + + + + + + + + + TRACE + 5 + /scratch + /gpfs/scratch/bsc41/bsc41273 + + + + 50000000 + + + + + /gpfs/scratch/bsc41/bsc41273/control + + + + + 10M + + + + + + 1000u + + + + + + + + + + + + + + + + + diff --git a/performance/extrae/share/extrae_detail.xml b/performance/extrae/share/extrae_detail.xml new file mode 100644 index 0000000..96b775b --- /dev/null +++ b/performance/extrae/share/extrae_detail.xml @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + + + + + 1-3 + 1-5 + 1-3 + 1-3 + 1-3 + + + + + + + + + + PAPI_TOT_INS,PAPI_TOT_CYC,PERF_COUNT_HW_STALLED_CYCLES_BACKEND + + + + + + + + + TRACE + 5 + /scratch + /gpfs/scratch/bsc41/bsc41273 + + + + 50000000 + + + + + /gpfs/scratch/bsc41/bsc41273/control + + + + + 10M + + + + + + 1000u + + + + + + + + + + + + + + + + + diff --git a/performance/extrae/share/extrae_detail_circular.xml b/performance/extrae/share/extrae_detail_circular.xml new file mode 100644 index 0000000..4fd556a --- /dev/null +++ b/performance/extrae/share/extrae_detail_circular.xml @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + + + + + 1-3 + 1-5 + 1-3 + 1-3 + 1-3 + + + + + + + + + + PAPI_TOT_INS,PAPI_TOT_CYC,PERF_COUNT_HW_STALLED_CYCLES_BACKEND + + + + + + + + + TRACE + 5 + /scratch + /gpfs/scratch/bsc41/bsc41273 + + + + 10000 + + + + + /gpfs/scratch/bsc41/bsc41273/control + + + + + 10M + + + + + + 1000u + + + + + + + + + + + + + + + + + diff --git a/performance/extrae/share/extrae_no-hwc.xml b/performance/extrae/share/extrae_no-hwc.xml new file mode 100644 index 0000000..e2a05e9 --- /dev/null +++ b/performance/extrae/share/extrae_no-hwc.xml @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + + + + + 1-3 + 1-5 + 1-3 + 1-3 + 1-3 + + + + + + + + + + PAPI_TOT_INS,PAPI_TOT_CYC,PERF_COUNT_HW_STALLED_CYCLES_BACKEND + + + + + + + + + TRACE + 5 + /scratch + /gpfs/scratch/bsc41/bsc41273 + + + + 50000000 + + + + + /gpfs/scratch/bsc41/bsc41273/control + + + + + 10M + + + + + + 1000u + + + + + + + + + + + + + + + + + diff --git a/performance/extrae/share/trace_extrae.sh b/performance/extrae/share/trace_extrae.sh new file mode 100755 index 0000000..b0ae232 --- /dev/null +++ b/performance/extrae/share/trace_extrae.sh @@ -0,0 +1,46 @@ +#!/bin/bash + +# echo to rank 0 only +echo_rank0 () { + local msg=$1 + + # get rank from various MPI implementations + MPI_RANK=${MPI_RANK:=$PMI_RANK} + MPI_RANK=${MPI_RANK:=$PMIX_RANK} + MPI_RANK=${MPI_RANK:=$OMPI_COMM_WORLD_RANK} + MPI_RANK=${MPI_RANK:=$ALPS_APP_PE} + + # test for rank 0 + if [[ $MPI_RANK = 0 ]]; then + echo $msg + fi + + # fallback if no rank at all, i.e. outside mpirun + if [[ $MPI_RANK = "" ]] ; then + echo $msg + fi +} + +#default config file and tracing library +DEFAULT_CONFIG=$HLRS_EXTRAE_ROOT/../share/extrae_detail.xml +DEFAULT_LIB=$HLRS_EXTRAE_ROOT/lib/libmpitracecf.so +DEFAULT_NAME=$1"-"$(date +%Y-%m-%dT%H:%M:%S) + +# set config file and tracing library +EXTRAE_CONFIG_FILE=${EXTRAE_CONFIG_FILE:-$DEFAULT_CONFIG} +EXTRAE_LIB=${EXTRAE_LIB:-$DEFAULT_LIB} +TRACE_NAME=${TRACE_NAME:-$DEFAULT_NAME} + +echo_rank0 "### Extrae tracing" +echo_rank0 "# Config: $EXTRAE_CONFIG_FILE" +echo_rank0 "# Library: $EXTRAE_LIB" +echo_rank0 "# Trace: $TRACE_NAME" + +export EXTRAE_CONFIG_FILE + +# run application +env LD_PRELOAD=$EXTRAE_LIB $@ + +echo_rank0 "### Extrae tracing: " +echo_rank0 "# Execute the following command to merge traces:" +echo_rank0 "# mpi2prv -f TRACE.mpits -o $TRACE_NAME.prv"