Valgrind¶
There are multiple profilers available on UPPMAX. This page describes Valgrind.
Valgrind is a suite of simulation-based debugging and profiling tools for programs.
Valgrind contains several tools:
memcheck, for detecting memory-management problems in your programcachegrind, for cache profilinghelgrind, finds data races in multithreaded programscallgrind, a call graph profilerdrd, a thread error detectormassif, a heap profilerptrcheck, a pointer checking toollackey, a simple profiler and memory tracer
Valgrind works best with the GCC and Intel compilers.
There is a system valgrind-3.15.0 from 2020.
First load compiler:
or
then you can use valgrind by:
How to use valgrind with MPI programs¶
Load your compiler, openmpi and the valgrind module as before:
or
As of now, Valgrind seems not compatible with openmpi/4.X.X.
Then run: