[Mpi-forum] MPI_UNDEFINED
William Gropp
wgropp at illinois.edu
Fri Feb 4 14:07:05 CST 2011
I recommend a change to the standard - I'm sure the Forum intended
integer constants to be valid here.
Bill
On Feb 4, 2011, at 1:18 PM, Jeff Squyres wrote:
> Question about MPI_UNDEFINED (and all the constants in the top table
> in MPI-2.2 p515): its type in C is listed as (const int) or unnamed
> (enum). But in Open MPI, we have this value in mpi.h as:
>
> #define MPI_UNDEFINED -32766
>
> So does MPICH2.
>
> A #define of an integer constant will work just fine with other
> const int's, but it technically isn't a const int or unnamed enum.
>
> Are we wrong? Or should I propose a ticket to change the wording of
> this table from:
>
> C type: const int (or unnamed enum)
>
> to
>
> C type: const int, unnamed enum, or integer constant
>
> (the same issue doesn't exist for the C++ constants -- even though
> the point is moot with them, since they're deprecated -- because
> they're in the MPI:: namespace, and therefore really should be const
> int's or unnamed enum's)
>
> --
> Jeff Squyres
> jsquyres at cisco.com
> For corporate legal information go to:
> http://www.cisco.com/web/about/doing_business/legal/cri/
>
>
> _______________________________________________
> mpi-forum mailing list
> mpi-forum at lists.mpi-forum.org
> http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi-forum
William Gropp
Deputy Director for Research
Institute for Advanced Computing Applications and Technologies
Paul and Cynthia Saylor Professor of Computer Science
University of Illinois Urbana-Champaign
More information about the mpi-forum
mailing list