<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic icx does not vectorize code without pragma vector always in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icx-does-not-vectorize-code-without-pragma-vector-always/m-p/1678007#M4374</link>
    <description>&lt;P&gt;I have a short code snippet (purely as an example of an issue I think I'm running into a lot with icx). We are trying to switch from icl to icx, but we''re experiencing a performance degradtion on our code base of around 30%.&lt;/P&gt;&lt;P&gt;Godbolt compiler explorer link:&amp;nbsp;&lt;A href="https://godbolt.org/z/GWEaGqj3o" target="_blank"&gt;https://godbolt.org/z/GWEaGqj3o&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As you can see, I have a very simple loop that fills an array. icl vectorizes it, icx does not, unless I change the pragma vector aligned to pragma vector always. The (measured) performance difference is a factor 4. But, vec-report says that vectorizing it does not help, so icx does not vectorize it without adding this pragma.&lt;/P&gt;&lt;P&gt;Am I missing something obvious here?&lt;/P&gt;&lt;P&gt;(I tried to add code snippets in this post, but unfortunately the forum keeps flagging it as spam).&lt;/P&gt;</description>
    <pubDate>Wed, 26 Mar 2025 12:40:01 GMT</pubDate>
    <dc:creator>hansvz</dc:creator>
    <dc:date>2025-03-26T12:40:01Z</dc:date>
    <item>
      <title>icx does not vectorize code without pragma vector always</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icx-does-not-vectorize-code-without-pragma-vector-always/m-p/1678007#M4374</link>
      <description>&lt;P&gt;I have a short code snippet (purely as an example of an issue I think I'm running into a lot with icx). We are trying to switch from icl to icx, but we''re experiencing a performance degradtion on our code base of around 30%.&lt;/P&gt;&lt;P&gt;Godbolt compiler explorer link:&amp;nbsp;&lt;A href="https://godbolt.org/z/GWEaGqj3o" target="_blank"&gt;https://godbolt.org/z/GWEaGqj3o&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As you can see, I have a very simple loop that fills an array. icl vectorizes it, icx does not, unless I change the pragma vector aligned to pragma vector always. The (measured) performance difference is a factor 4. But, vec-report says that vectorizing it does not help, so icx does not vectorize it without adding this pragma.&lt;/P&gt;&lt;P&gt;Am I missing something obvious here?&lt;/P&gt;&lt;P&gt;(I tried to add code snippets in this post, but unfortunately the forum keeps flagging it as spam).&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 12:40:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/icx-does-not-vectorize-code-without-pragma-vector-always/m-p/1678007#M4374</guid>
      <dc:creator>hansvz</dc:creator>
      <dc:date>2025-03-26T12:40:01Z</dc:date>
    </item>
  </channel>
</rss>

