Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you need support in using this software or example job scripts please click pc2-support@uni-paderborn.de.

Vampir Workflow for Performance Analysis

  1. Instrument your application with Score-P

In this step, please first load the Score-P module file in your jobscript and also enable event trace by setting the environment variable SCOREP_ENABLE_TRACING. Then, before a compilation of your application, please prefix the compiler command, e.g., mpicc, with scorep. Below is an example Slurm jobscript.

Code Block
#!/usr/bin/env bash
#SBATCH --nodes=1
#SBATCH --job-name=my_app
#SBATCH --time=00:10:00
#SBATCH --partition=normal
#
# environment modules
#
module reset
module load perf/Score-P/8.4-gompi-2023b

# enable event tracing in Score-P
export SCOREP_ENABLE_TRACING=true

# instrument the application
scorep mpicc -Wall -O3 -march=native -fopenmp my_app.c -o my_app.x
  1. Run your application with an appropriate test set

Because of the overhead involved in tracing events during execution of your application, please choose an appropriate test set, which will not take long, e.g., < 5 min, to finish for a quick overview of the performance.

Code Block
#!/usr/bin/env bash
#SBATCH --nodes=1
#SBATCH --job-name=my_app
#SBATCH --time=00:10:00
#SBATCH --partition=normal
#
# environment modules
#
module reset
module load perf/Score-P/8.4-gompi-2023b

# enable event tracing in Score-P
export SCOREP_ENABLE_TRACING=true

# run the application for performance analysis
srun ./my_app.x small_test
  1. Use Vampir to analyze the trace file(s)

For small trace file(s), e.g., < 100 GB, you can simply load the Vampir module file by using

module load perf/Vampir/10.5.0

on one of the frontend nodes and visualize the generated Open Trace Format Version 2 (*.otf2) file for performance analysis with the following command.

vampir traces.otf2

As an example, a screenshot for Vampir visualization of an application is given below.

...

Further Information