[mpich-devel] MPI_Pack_external() with "long" and "double"

Dave Goodell goodell at mcs.anl.gov
Mon Nov 19 13:41:50 CST 2012


Hi Lisandro,

As always, thank you for your thorough testing and concrete test cases.  I don't think anyone has time to look at this right away, but I've created a ticket for it so that we don't lose track:

http://trac.mcs.anl.gov/projects/mpich2/ticket/1755

Best,
-Dave

On Nov 19, 2012, at 1:12 PM CST, Lisandro Dalcin wrote:

> I understand external32 support is not fully implemented, but anyway I
> want to raise your attention on this inconsistency. See the attached
> file for code (BTW, I'm using 3.0rc1).
> 
> Using "long", I get:
> 
> $ ./a.out
> Conversion of types whose size is not the same as the size in
> external32 is not supported
> Aborting with internal error
> 
> However, using "double", the call succeed, but a pack->unpack
> roundtrip gives bad results:
> 
> 
> $ ./a.out
> a.out: pack-ext32.c:42: main: Assertion `input==output' failed.
> Aborted (core dumped)
> 
> Plese fire up a debugger for the latter case and check the value of
> "input" before and after the unpack call, I'm not sure what's going
> on.
> 
> --
> Lisandro Dalcin
> ---------------
> CIMEC (INTEC/CONICET-UNL)
> Predio CONICET-Santa Fe
> Colectora RN 168 Km 472, Paraje El Pozo
> 3000 Santa Fe, Argentina
> Tel: +54-342-4511594 (ext 1011)
> Tel/Fax: +54-342-4511169
> <pack-ext32.c>



More information about the devel mailing list