[mpich-discuss] Extensible Clang type annotation
Jed Brown
jedbrown at mcs.anl.gov
Wed Jan 2 12:02:14 CST 2013
On Wed, Jan 2, 2013 at 11:51 AM, Dmitri Gribenko <gribozavr at gmail.com>wrote:
> [resending to the list, sorry for duplicates]
>
> On Wed, Jan 2, 2013 at 7:38 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
> > Also, could there be a way (maybe in a future clang release) for me to
> get
> > static type checking for my own types, such as __float128 or pair types
> like
> > {long,long} (which are not in the MPI standard)? It can't truly be a
> static
> > value because I have to create the type at run-time, but perhaps there
> could
> > be a way to tell clang "I promise to set this type up like so."
>
> Sorry, I did not understand your requirements completely, but you can
> annotate your own 'MPI_Datatype's (as I described in the previous
> email). Is that sufficient for your task?
>
I can't annotate mine because they don't have a static value. (Unless there
is a way that's not in the documentation.)
I'm actually just setting
MPI_Datatype MY_MPI_ENUM = MPI_INT;
in a different compilation unit.
>
> Dmitri
>
> --
> main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
> (j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
> _______________________________________________
> discuss mailing list discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20130102/59d5d6d2/attachment.html>
More information about the discuss
mailing list