This plugin writes graphviz files for each location that can be analyzed later.
This work has been presented in DOI doi.org/10.1007/978-3-319-56702-0_4, Extending the Functionality of Score-P Through Plugins: Interfaces and Use Cases.
The resulting graphviz files will be exported to the experiment directory.
To compile this plugin, you need:
-
C compiler (with
--std=c11
support) -
CMake
-
Score-P installation
-
Create a build directory
mkdir build cd build
-
Invoke CMake
cmake ..
If your Score-P installation is in a non-standard path, you have to manually pass that path to CMake:
cmake .. -DSCOREP_CONFIG=<PATH_TO_YOUR_SCOREP_ROOT_DIR>/bin/scorep-config
If you only have exclusive functions, e.g. OpenMP and MPI, you can get rid of the enter/exit depiction, and have one graphviz-node per function. To tell cmake, just use
cmake .. -DOPENMP_MPI=ON
This plugin can distinguish calls to functions based on their stack. This option should not be disabled when the only enter option is used. cmake .. -DDYNAMIC_ID=OFF
-
Invoke make
make
-
Copy the resulting library to a directory listed in
LD_LIBRARY_PATH
or add the current path toLD_LIBRARY_PATH
withexport LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH
In order to use this plugin, you have to add it to the SCOREP_SUBSTRATES_PLUGINS
environment
variable.
export SCOREP_SUBSTRATE_PLUGINS="graphviz"
The configuration of the plugin is done via environment variables.
The gcc backtrace function comes with some overhead. If you want to avoid it, you can pass the cmake option -DDYNAMIC_ID=OFF.
-
Check whether the plugin library can be loaded from the
LD_LIBRARY_PATH
-
Check whether you provide sane values for the environment variables.
-
Open an issue on Github.
For information regarding the license of this plugin, see LICENSE
- Robert Schoene (robert dot schoene at tu-dresden dot de)