Prepare code:

$ cd $HOME
$ unzip ~q26z0003/Tools.zip
$ cd $HOME/Tools
$ source ./env.sh
$ unset ${!SCOREP_*}

Build uninstrumented benchmark::

$ make bt-mz NPROCS=4 CLASS=C
$ ls bin

Run uninstrumented benchmark:

$ cat run.sh
$ ./run.sh

Build instrumented benchmark:

$ make clean
$ make bt-mz NPROCS=4 CLASS=C PREP=scorep
$ ls bin.scorep

Measurement configuration variables:

$ scorep-info config-vars --full

Run instrumented benchmark:

$ cat profile.sh
$ ./profile.sh
$ ls scorep-bt_mz-4x8-profile
$ cat scorep-bt_mz-4x8-profile/MANIFEST.md
$ cat scorep-bt_mz-4x8-profile/scorep.cfg

Experiment scoring:

$ scorep-score scorep-bt_mz-4x8-profile/profile.cubex
$ scorep-score -r scorep-bt_mz-4x8-profile/profile.cubex
$ scorep-score -g scorep-bt_mz-4x8-profile/profile.cubex

Simulate filtering file:

$ scorep-score -f initial_scorep.filter scorep-bt_mz-4x8-profile/profile.cubex

Run instrumented benchmark with filter:

$ cat filtering.sh
$ ./filtering.sh

Verify filtering result:

$ scorep-score scorep-bt_mz-4x8-filtered/profile.cubex

Run instrumented benchmark in trace mode:

$ cat tracing.sh
$ ./tracing.sh

"Switch to XFCE Desktop" and start Vampir:

$ source ~/Tools/env.sh
$ vampir ~/Tools/BT-MZ/scorep-bt_mz-4x8-tracing/traces.otf2
Last modified: Friday, 21 June 2024, 9:44 AM