[Beowulf] Block send mpi
Joe Landman
landman at scalableinformatics.com
Sun Feb 13 21:42:21 PST 2005
Rene:
More data. Where exactly does it SEGV? At the void *buf line? at
the Pack? or the Bsend? Did you compile with -g? Do you have a core dump?
Joe
rene wrote:
> 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,
--
Joseph Landman, Ph.D
Founder and CEO
Scalable Informatics LLC,
email: landman at scalableinformatics.com
web : http://www.scalableinformatics.com
phone: +1 734 786 8423
fax : +1 734 786 8452
cell : +1 734 612 4615
More information about the Beowulf
mailing list