- publishing free software manuals
Valgrind 3.3 - Advanced Debugging and Profiling for GNU/Linux applications
by J. Seward, N. Nethercote, J. Weidendorfer and the Valgrind Development Team
Paperback (6"x9"), 164 pages
ISBN 0954612051
RRP £12.95 ($19.95)

Get a printed copy>>>

5.8.2 Getting started

Compile your MPI application as usual, taking care to link it using the same ‘mpicc’ that your Valgrind build was configured with.

Use the following basic scheme to run your application on Valgrind with the wrappers engaged:

MPIWRAP_DEBUG=[wrapper-args] \
LD_PRELOAD=$prefix/lib/valgrind/<platform>/libmpiwrap.so \
   mpirun [mpirun-args] \
   $prefix/bin/valgrind [valgrind-args] \
   [application] [app-args]

As an alternative to ‘LD_PRELOAD’ing ‘libmpiwrap.so’, you can simply link it to your application if desired. This should not disturb native behaviour of your application in any way.

ISBN 0954612051Valgrind 3.3 - Advanced Debugging and Profiling for GNU/Linux applicationsSee the print edition