<?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 Re:Problems to compile std::views with oneapi compiler (version 2023.0.0) on linux in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Problems-to-compile-std-views-with-oneapi-compiler-version-2023/m-p/1479564#M3007</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for accepting our solution. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Shaik Rabiya&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 24 Apr 2023 13:18:19 GMT</pubDate>
    <dc:creator>RabiyaSK_Intel</dc:creator>
    <dc:date>2023-04-24T13:18:19Z</dc:date>
    <item>
      <title>Problems to compile std::views with oneapi compiler (version 2023.0.0) on linux</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Problems-to-compile-std-views-with-oneapi-compiler-version-2023/m-p/1477930#M2991</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We problems to compile std::views with oneapi compiler (version 2023.0.0) on Linux:&lt;/P&gt;
&lt;P&gt;/opt/intel/oneapi/compiler/2023.0.0/linux/bin/icpx -std=c++20 test_view.cxx -o test_view&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- it seems to work fine using the same version on Windows.&lt;/P&gt;
&lt;P&gt;Attached is the code snippet and the build error log from Redhat 8&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Morten Gaupaas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code snippet:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;#include &lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;iostream&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;#include &lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;ranges&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;using&lt;/SPAN&gt; &lt;SPAN&gt;namespace&lt;/SPAN&gt;&lt;SPAN&gt; std;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;int&lt;/SPAN&gt;&lt;SPAN&gt; main() &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;{ &lt;/SPAN&gt;&lt;SPAN&gt;auto&lt;/SPAN&gt;&lt;SPAN&gt; even = [](&lt;/SPAN&gt;&lt;SPAN&gt;int&lt;/SPAN&gt;&lt;SPAN&gt; i) { &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt; == i % &lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;; }; &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;auto&lt;/SPAN&gt;&lt;SPAN&gt; square = [](&lt;/SPAN&gt;&lt;SPAN&gt;int&lt;/SPAN&gt;&lt;SPAN&gt; i) { &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; i * i; }; &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;for&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;int&lt;/SPAN&gt;&lt;SPAN&gt; i : std::views::iota(&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;6&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| views::filter(even) &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| std::views::transform(square)) &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;std::cout &lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt; i &lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN&gt;' '&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Apr 2023 13:12:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Problems-to-compile-std-views-with-oneapi-compiler-version-2023/m-p/1477930#M2991</guid>
      <dc:creator>MXG</dc:creator>
      <dc:date>2023-04-18T13:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problems to compile std::views with oneapi compiler (version 2023.0.0) on linux</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Problems-to-compile-std-views-with-oneapi-compiler-version-2023/m-p/1478669#M2995</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please try with latest oneAPI toolkit(2023.1 version)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We didn't face any issues while executing your code on 2023.1 oneAPI toolkit. Please refer to the below screenshot.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RabiyaSK_Intel_0-1681987915589.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/40467iA9B912004B6D02B6/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="RabiyaSK_Intel_0-1681987915589.png" alt="RabiyaSK_Intel_0-1681987915589.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you still face any issues, you can reach out to us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Shaik Rabiya&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 10:52:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Problems-to-compile-std-views-with-oneapi-compiler-version-2023/m-p/1478669#M2995</guid>
      <dc:creator>RabiyaSK_Intel</dc:creator>
      <dc:date>2023-04-20T10:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problems to compile std::views with oneapi compiler (version 2023.0.0) on linux</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Problems-to-compile-std-views-with-oneapi-compiler-version-2023/m-p/1479365#M3002</link>
      <description>&lt;P&gt;Installed version 2023.1.0 on Linux and it worked fine - thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Morten&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2023 12:10:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Problems-to-compile-std-views-with-oneapi-compiler-version-2023/m-p/1479365#M3002</guid>
      <dc:creator>MXG</dc:creator>
      <dc:date>2023-04-23T12:10:47Z</dc:date>
    </item>
    <item>
      <title>Re:Problems to compile std::views with oneapi compiler (version 2023.0.0) on linux</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Problems-to-compile-std-views-with-oneapi-compiler-version-2023/m-p/1479564#M3007</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for accepting our solution. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Shaik Rabiya&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Apr 2023 13:18:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Problems-to-compile-std-views-with-oneapi-compiler-version-2023/m-p/1479564#M3007</guid>
      <dc:creator>RabiyaSK_Intel</dc:creator>
      <dc:date>2023-04-24T13:18:19Z</dc:date>
    </item>
  </channel>
</rss>

