[MPICH] Possible MPI_Unpack bug

Avery Ching aching at ece.northwestern.edu
Thu Aug 24 15:11:34 CDT 2006


Hi,

I think there may be a possible problem with unpacking an indexed of an
indexed MPI_Datatype into a buffer.  I have attached a program that
displays this behavior.  I have tested this on both mpich2-1.0.3 and
mpich2-1.0.4 with identical results.  Please let me know if I am wrong
about the correct MPI behavior or you see different results on your own
machine.

Program output:

print_char_buf: mem_buf before unpack
_ _ _ _ _   _ _ _ _ _
_ _ _ _ _   _ _ _ _ _
_ _ _ _ _   _ _ _ _ _
_ _
print_char_buf: mem_buf after unpack
a _ b c _   _ _ _ d _
e f g _ h   i _ _ _ _
j _ k l m   _ n o p _
q r
print_char_buf: my version of the correct buffer
a _ b c _   _ _ _ d _
e f g _ h   i j _ k l
_ _ _ _ m   _ n o p _
q r


Thanks,

Avery
-------------- next part --------------
A non-text attachment was scrubbed...
Name: broken_unpack.c
Type: text/x-csrc
Size: 2710 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20060824/dc0cdea0/attachment.c>


More information about the mpich-discuss mailing list