Vampir 

Description

Vampir is a framework for performance analysis, which enables developers to quickly study program behavior at a fine level of detail.

More information

- Homepage: https://vampir.eu/

Available Versions of Vampir

Version

Module

Available on

Version

Module

Available on

10.5.0

perf/Vampir/10.5.0

Noctua 1, Noctua 2

This table is generated automatically. If you need other versions please click pc2-support@uni-paderborn.de.

Usage Hints for Vampir

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.

#!/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.

#!/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.

vampir.png

 

Further Information