<div dir="ltr">On Wed, Jan 2, 2013 at 11:51 AM, Dmitri Gribenko <span dir="ltr"><<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im HOEnZb">[resending to the list, sorry for duplicates]<br>
<br>
</div><div class="HOEnZb"><div class="h5">On Wed, Jan 2, 2013 at 7:38 PM, Jed Brown <<a href="mailto:jedbrown@mcs.anl.gov">jedbrown@mcs.anl.gov</a>> wrote:<br>
> Also, could there be a way (maybe in a future clang release) for me to get<br>
> static type checking for my own types, such as __float128 or pair types like<br>
> {long,long} (which are not in the MPI standard)? It can't truly be a static<br>
> value because I have to create the type at run-time, but perhaps there could<br>
> be a way to tell clang "I promise to set this type up like so."<br>
<br>
Sorry, I did not understand your requirements completely, but you can<br>
annotate your own 'MPI_Datatype's (as I described in the previous<br>
email). Is that sufficient for your task?<br></div></div></blockquote><div><br></div><div style>I can't annotate mine because they don't have a static value. (Unless there is a way that's not in the documentation.)</div>
<div style><br></div><div style>I'm actually just setting<br><br>MPI_Datatype MY_MPI_ENUM = MPI_INT;</div><div style><br></div><div style>in a different compilation unit.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">
<br>
Dmitri<br>
<br>
--<br>
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if<br>
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com">gribozavr@gmail.com</a>>*/<br>
</div></div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
</div></div></blockquote></div><br></div></div>