Exercise: MiniMD Trace Collection
Completion requirements
Build the MiniMD without likwid:
$ cd ~/TOOLS/MINIMD
$ make
Run the uninstrumented MiniMD proxy app with 4 ranks and 8 threads each (ensure, that you are in the 'MINIMD/data' directory):
$ cd data
$ OMP_NUM_THREADS=8 mpirun -np 4 ../miniMD-ICC -t 8 --half_neigh 1
Build with modified Makefile configuration:
$ cd ..
$ make TAG=ICC.scorep
$ cd data
Run instrumented MiniMD proxy app:
$ export SCOREP_EXPERIMENT_DIRECTORY=scorep-minimd-4x8-profile
$ OMP_NUM_THREADS=8 mpirun -np 4 ../miniMD-ICC.scorep -t 8 --half_neigh 1
Examine scoring:
$ scorep-score scorep-minimd-4x8-profile/profile.cubex
List also individual functions causing trace buffer requirements:
$ scorep-score -r scorep-minimd-4x8-profile/profile.cubex
Generate an initial filter file base on default heuristic:
$ scorep-score -g scorep-minimd-4x8-profile/profile.cubex
Examine filter file:
$ cat initial_scorep.filter
Apply filter file to determine expected reduction:
$ scorep-score -f initial_scorep.filter scorep-minimd-4x8-profile/profile.cubex
Apply filter file to measurement and re-run MiniMD:
$ export SCOREP_EXPERIMENT_DIRECTORY=scorep-minimd-4x8-filtered
$ export SCOREP_FILTERING_FILE=initial_scorep.filter
$ OMP_NUM_THREADS=8 mpirun -np 4 ../miniMD-ICC.scorep -t 8 --half_neigh 1
Re-examine effect of filter file:
$ scorep-score scorep-minimd-4x8-filtered/profile.cubex
Enable trace file collection:
$ export SCOREP_EXPERIMENT_DIRECTORY=scorep-minimd-4x8-tracing
$ export SCOREP_ENABLE_TRACING=true
$ export SCOREP_TOTAL_MEMORY=23MB
$ OMP_NUM_THREADS=8 mpirun -np 4 ../miniMD-ICC.scorep -t 8 --half_neigh 1
Examine experiment result:
$ ls -la scorep-minimd-4x8-tracing
Download the trace to your local machine and open it with Vampir
$ vampir scorep-minimd-4x8-tracing/traces.otf2
(or use the GUI)
Questions:
- What functions are filtered out of the measurement? Does this list make sense in a parallel performance engineering context?
- How much overhead was there in the initial measurement? Is this an acceptable value?
- How much overhead was there in the filtered measurement? Is this an acceptable value?
Last modified: Friday, 12 June 2026, 10:24 AM