Archives


- Beowulf
- Beowulf Announce
- Scyld-users
- Beowulf on Debian

[Beowulf] Block send mpi

Many of your questions may have already been answered in earlier discussions or in the FAQ. The search results page will indicate current discussions as well as past list serves, articles, and papers.

Search

rene rene at renestorm.de
Sat Feb 12 20:29:58 PST 2005


Hi folks,

i know, this isn't a mpi forum, even so allow me a question about block 
sending.

i got some(times) nice SIGSEGVs with that code (C++ implementation).
Did I code something totally wrong?
I really don't understand this function.
// int MPI_Buffer_attach( void *buffer, int size )

 int packsize;
 MPI_Pack_size (bit, MPI_INT, newcomm, &packsize);
 int bufsize = packsize + (MPI_BSEND_OVERHEAD);
 void *buf = new (void (*[packsize]) ());
 MPI_Buffer_attach (buf, bufsize);
 ierr =MPI_Bsend (&testdata[0], bit, MPI_INT, node, 0,  newcomm);
 MPI_Buffer_detach (&buf, &bufsize);

Thanks,
-- 
Rene Storm
@Cluster



More information about the Beowulf mailing list