<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jul 1, 2014 at 5:36 PM, Richard Smith <span dir="ltr"><<a href="mailto:richard@metafoo.co.uk" target="_blank">richard@metafoo.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div class="h5"><div class="gmail_extra">
<div class="gmail_quote"><span style="color:rgb(34,34,34)">One question: you list the unroll count as 'n'. Must that be a constant integer? The clang pragma intends to allow an arbitrary integer constant expression there. That might be a good reason for us to introduce our own syntax for it, if we're providing a slightly more general form.</span><br>
</div></div></div></div></div></blockquote><div><br></div><div>nvcc (CUDA) only supports a literal integer constant.  icc seems to support only literal constants as well.  xlc supports integer constant expressions.  Given xlc and icc share the same syntax ("#pragma unroll (_value_)") there is no way to be perfectly compatible with both icc and xlc so I'm inclined to support expressions in "#pragma unroll" as planned with the other loop pragmas and just be more permissive than nvcc and icc.</div>
<div><br></div><div>Mark </div></div><br></div></div>