On Mar 15, 2019, at 2:02 PM, Sergio None <sgzbrowi...@hotmail.com> wrote:
> 
> Yes, i know that C99 have these fixed standard library.
> 
> The point is that many common used function, rand for example, return non 
> fixed types. And then you need doing castings, typically to more big types. 
> It can be a bit annoying. 
> 
> That's why I was looking for an OpenMPI way to do this transparent.

Unfortunately there's not a lot we can do.  If you send a number that takes 33 
bits to represent to a value that only holds 32 (or 31) bits, Open MPI can't do 
anything magical.

Whenever you need to talk across a network to an unknown peer, fixed-width 
types are likely going to be your simplest solution.  And yes, that means you 
might have to do some casting (or let the compiler do automatic up-conversion 
for you).  :-\  That's still likely a more general solution, and have fewer 
unexpected corner cases in the future.

-- 
Jeff Squyres
jsquy...@cisco.com

_______________________________________________
users mailing list
users@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/users

Reply via email to