[mpich-discuss] why (int)0x4c000101???

Jeff Hammond jeff.science at gmail.com
Wed Jun 6 13:18:50 CDT 2012


Asked and answered already on MPI forum discuss list. Read those responses
instead of reporting.

On Jun 6, 2012, at 4:04 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

On Sat, Jun 2, 2012 at 11:33 PM, ÄþÄþ ¶­ <dncdd at yahoo.com.cn> wrote:
>
> Anyone can tell me what is the meaning of those hex values? and why does
> the author use them?
> why do they define "MPI_CHAR" as ((MPI_Datatype)0x4c000101) instead of
> "char"?
>

MPI_CHAR is a constant value, not a type. You should not care what the
numeric value is (and your code definitely should not depend on it).

MPI_Datatype is a type (like "char" is a type), but it is different for
different MPI implementations. Again, your code should not assume anything
about this type.

_______________________________________________
mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
To manage subscription options or unsubscribe:
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20120606/98d18131/attachment.html>


More information about the mpich-discuss mailing list