Newsgroups: comp.parallel.pvm
From: teodores@imag.fr (Florin Teodorescu)
Subject: URGENT: PVM's buffer size problem
Organization: Institut Imag, Grenoble, France
Date: 4 Oct 1995 10:35:53 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Message-ID: <44to29$njf@cosmos.imag.fr>

Just look that piece of code:

char one_byte;
char *string;
...

bufid = pvm_initsend(PvmDataDefault);
                              ---------> point A
pvm_pkbyte(&one_byte,1,1);
                              ---------> point B
pvm_pkstr(string); /* strlen(string) == 7 */
                              ---------> point C


Using the pvm_bufinfo() call, I've got the folowing buffer sizes, for each
of the points above:

Point A: 0	-- ok, as expected.
Point B: 4	-- 3 bytes more as expected.
Point C: 16	-- 16 - 4 = 12 => 4 bytes more than expected.

Can anyone explain me how does the pvm's packing mechanism works?
Or better: How can I get *precisely* the size of a PVM's buffer?


Thanks a lot

Florin				Florin.Teodorescu@imag.fr


