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
++++++
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.
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?
another idea that I tried was to create my own suppression file.
one way to try and suppress MPI issues, that I tried is shown in the
following:
{
<insert a suppression name here>
Memcheck:Cond
fun:VIPKL_list_hcas
fun:viadev_init_parameters
fun:MPID_VIA_Init
fun:MPID_Init
fun:MPIR_Init
fun:*
}
However I get no luck. I have this big research project and it would be
great if anyone can lead
me in the right direction.
With regards,
--
Mez
"As iron sharpens iron, so man sharpens another" -- proverbs 27:17
#include <mpi.h>
#include <iostream>
#include <vector>
#include <map>
using namespace std;
int main(int argc, char* argv[]){
int rank;
MPI::Init(argc,argv);
rank = MPI::COMM_WORLD.Get_rank();
if (rank == 0){
char* hello = "hello mez";
MPI::COMM_WORLD.Send(hello, 10, MPI::CHAR,1,1);
}
else{
MPI::Status status;
char hello[10];
MPI::COMM_WORLD.Recv( hello,10, MPI::CHAR , 0 , 1, status);
cout << "Got From Root: " << hello << endl;
}//end if
MPI::Finalize();
return 0;
}
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users