[Beowulf] Block send mpi

Dries Kimpe Dries.Kimpe at cs.kuleuven.ac.be
Tue Feb 15 05:06:40 PST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

rene wrote:
| Hi Joe,
|
| here is some output and changes which solves the problem.
| I don't know, why I created a void buffer and sended an int array.
| After creating an int buffer I was also able to delete it ;o)
|

There are still some mistakes left:

| int *buf = new (int ([packsize]));
|
[...]
| delete buf;
|

The last line should be:

delete[] (buf);

Also, MPI_Pack_size returns the needed buffer size in bytes.
You are requesting (sizeof(int)*packsize) bytes where packsize bytes
would suffice.

~   Greetings,
~   Dries
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCEfPfv/8puanD4GoRArI9AJ0cmdT4m+Q7e9jvYhTZbbHviUDmQACglnTS
CqBqJ/GqpaHJjM7jI0MGkJc=
=nqLt
-----END PGP SIGNATURE-----



More information about the Beowulf mailing list