Re: [mpich-discuss] Mac OS X version of Mpich
On Wed, Aug 19, 2015 at 11:24 AM, Dave Goodell (dgoodell) < [email protected]> wrote:
On Aug 19, 2015, at 6:29 AM, Jeff Hammond <[email protected]> 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.
<facepalm> I offer as a pathetic excuse my lack of caffeination when I wrote that nonsensical statement. Jeff
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 [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
-- Jeff Hammond [email protected] http://jeffhammond.github.io/ _______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
participants (1)
-
Jeff Hammond