|
From: Ashley P. <as...@pi...> - 2009-02-05 14:46:31
|
[sending again ccing the list this time]
2009/2/4 Meseret Gebre <mez...@gm...>
> Greetings,
>
> I have a simple mpi program, please find it attached.
> I am using valgrind-3.3.0
>
> I run my code with the following command:
> mpiexec -n 2 valgrind --gen-suppressions=yes ./mpitest
--gen-suppressions=all is probably closer to what you want, this won't
prompt you for each one.
> my question is about the ( --gen-suppressions=yes).
> There are too many suppression that come from MPI and
> all I want to be able to see is checks from my code alone.
Due to the nature of how code works this isn't really possible, in most
cases errors reported by valgrind aren't errors in the bottom level of the
stack but come from further up the call chain. If your program calls a MPI
function with bogus values it can appear the problem is in the MPI library
but this often isn't the case. I'm afraid you need to look at every error
and deal with it on a case by case bases.
> I am very new to valgrind and I have checked to the best of my ability
> and probably have missed it, but is there a way to get valgrind to just add
>
> all the suppression generated from the ( --gen-suppressions=yes) command
> into
> a local file?
You can use the --log-file=<filename> option to put the output of valgrind
to a file, this will interspere it with the error messages so you'll need to
manually edit these files still. For MPI jobs I'd recommend using
--log-file=val-log.%q{XXX} where XXX is the name of an enviromnent variable,
most MPI's set a variable to be the processes rank and you can name your
files according to rank if you do this. You'll need to find out what name
mvapich uses for this.
Ashley Pittman.
|