[mpich-discuss] Mac OS X version of Mpich

Dave Goodell (dgoodell) dgoodell at cisco.com
Wed Aug 19 10:24:11 CDT 2015


On Aug 19, 2015, at 6:29 AM, Jeff Hammond <jeff.science at gmail.com> wrote:

> See below where you got a warning for defining MPI to 1?  That is going to break EVERYTHING in the MPI C code.  Consider the declaration MPI_Init_thread.  It will become 1_Init_thread.  This is a serious problem.

This isn't how the C preprocessor works, Jeff...  "#define f x" will not change "fprintf" to "xprintf" later in the source file.

> The MPI standard reserves the MPI namespace.  You cannot use it.  In your case, you took the entire namespace and changed it to a number :-)
> 
> Please use a preprocessor macro like USE_MPI in your application.  Do not define any symbols anywhere that being with MPI.

This, however, is good advice and should fix this particular issue.

-Dave
_______________________________________________
discuss mailing list     discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss


More information about the discuss mailing list