[mpich-discuss] Mac OS X version of Mpich

Jeff Hammond jeff.science at gmail.com
Wed Aug 19 10:39:31 CDT 2015


On Wed, Aug 19, 2015 at 11:24 AM, Dave Goodell (dgoodell) <
dgoodell at cisco.com> wrote:

> 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.
>
>
<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     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss
>



-- 
Jeff Hammond
jeff.science at gmail.com
http://jeffhammond.github.io/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20150819/d07e329f/attachment.html>
-------------- next part --------------
_______________________________________________
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