[MPICH] Possible MPI_Unpack bug

Rajeev Thakur thakur at mcs.anl.gov
Thu Aug 24 17:16:33 CDT 2006


This works correctly with MPICH-1 and IBM's MPI, so it might be a bug in
MPICH2. We will look into it.

Rajeev
 

> -----Original Message-----
> From: owner-mpich-discuss at mcs.anl.gov 
> [mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of Avery Ching
> Sent: Thursday, August 24, 2006 3:12 PM
> To: mpich-discuss at mcs.anl.gov
> Subject: [MPICH] Possible MPI_Unpack bug
> 
> 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
> 




More information about the mpich-discuss mailing list