<div dir="ltr"><span style="font-size:12.8000001907349px">Hello,</span><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Thanks for your response. I would like to run my code on Xeon phi earlier version that is KNC. </div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Well I asked the basic question because of various reasons.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I found that LLVM emits auto vectorized code for MIC with flags -mavx512f and  -mavx512cd. I used clang 3.8 and my vectorized code did not emit any vector-512 instructions nor zmm registers are used. So I thought, there is a difference between flags for KNL and KNC. The architecture I have got to test is KNC. - mcpu=help does not distinguish this(may be I dont understand) and I got confused.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I think there is a combination of flags that I should use for KNC.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">It will be nice to be clarified with this.</div><div class="" style="margin:2px 0px 0px;font-size:12.8000001907349px"><div id=":43y" class="" tabindex="0"><img class="" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif" style=""></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 14, 2016 at 12:24 AM, C Bergström <span dir="ltr"><<a href="mailto:cbergstrom@pathscale.com" target="_blank">cbergstrom@pathscale.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Jun 14, 2016 at 6:03 AM, Jumana Mp via llvm-dev<br>
<<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br>
> Hello,<br>
><br>
> I have a few issues in vectorizing loops using Clang 3.8.<br>
> Will it be ok if I shoot some of my findings and queries here?<br>
><br>
> Meanwhile, can I please know if LLVM support autovectorized MIC instructions<br>
> for Xeon phi?<br>
> If so, could you please tell me the flags to use?<br>
><br>
> I am Jumana, a masters student in Embedded system working as a graduate<br>
> research intern with Intel. For my thesis, I am working with bench-marking<br>
> auto-vectorizer for various architectures.<br>
> I have certain issues which I find difficult to explain myself. I tried<br>
> posting in LLVM forum, but looks like I have no access.<br>
<br>
</span>You're a researcher and intern, but asking basic questions like this? Umm...<br>
<br>
"MIC instructions" - are you referring to the AVX512 supported in KNL<br>
or the pre-cursor to this in KNC? (Which supported a few more and a<br>
few less instructions than what ended up being AVX512)<br>
<br>
<a href="https://en.wikipedia.org/wiki/AVX-512" rel="noreferrer" target="_blank">https://en.wikipedia.org/wiki/AVX-512</a><br>
-----------<br>
I've seen a bunch of work from @Intel people around here and I'll let<br>
them comment on more of the specifics about the level of support for<br>
Intel PHI products.<br>
</blockquote></div><br></div>