<?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: compilation issues with oneDPL headers in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/compilation-issues-with-oneDPL-headers/m-p/1440179#M2686</link>
    <description>&lt;P&gt;Thank you, Noorjahan.&lt;/P&gt;
&lt;P&gt;Here are the details:&lt;/P&gt;
&lt;P&gt;1. Steps:&lt;/P&gt;
&lt;P&gt;git clone &lt;A class="sub_section_element_selectors" href="https://github.com/oneapi-src/oneAPI-samples" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/oneapi-src/oneAPI-samples&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;module load cmake&lt;/P&gt;
&lt;P&gt;source /opt/intel/oneapi/setvars.sh&lt;/P&gt;
&lt;P&gt;cd ./oneAPI-samples/DirectProgramming/DPC++/ParallelPatterns/histogram&lt;/P&gt;
&lt;P&gt;mkdir build &amp;amp; cd build&lt;/P&gt;
&lt;P&gt;cmake ..&lt;/P&gt;
&lt;P&gt;make VERBOSE=1&lt;/P&gt;
&lt;P&gt;2. OS:&lt;/P&gt;
&lt;P&gt;Linux {hostname} 5.15.0-50-generic #56~20.04.1-Ubuntu SMP Tue Sep 27 15:51:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux&lt;/P&gt;
&lt;P&gt;3. Compiler:&lt;/P&gt;
&lt;P&gt;Intel(R) oneAPI DPC++/C++ Compiler 2023.0.0 (2023.0.0.20221201)&lt;BR /&gt;Target: x86_64-unknown-linux-gnu&lt;BR /&gt;Thread model: posix&lt;BR /&gt;InstalledDir: /opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm&lt;BR /&gt;Configuration file: /opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/../bin/icpx.cfg&lt;/P&gt;
&lt;P&gt;4. Error message (and there were a bunch of warnings):&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;/opt/intel/oneapi/compiler/2023.0.0/linux/bin/icpx -O3 -std=c++17 -fsycl -O3 -DNDEBUG -MD -MT CMakeFiles/histogram.dir/src/main.cpp.o -MF CMakeFiles/histogram.dir/src/main.cpp.o.d -o CMakeFiles/histogram.dir/src/main.cpp.o -c /home/astrel/work/Crs/Tmp/oneAPI-samples/DirectProgramming/DPC++/ParallelPatterns/histogram/src/main.cpp :&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;In file included from /home/astrel/work/Crs/Tmp/oneAPI-samples/DirectProgramming/DPC++/ParallelPatterns/histogram/src/main.cpp

In file included from /home/astrel/work/Crs/Tmp/oneAPI-samples/DirectProgramming/DPC++/ParallelPatterns/histogram/src/main.cpp:9:
In file included from /opt/intel/oneapi/dpl/2021.7.2/linux/include/oneapi/dpl/execution:34:
In file included from /opt/intel/oneapi/dpl/2021.7.2/linux/include/oneapi/dpl/pstl/glue_algorithm_impl.h:23:
In file included from /opt/intel/oneapi/dpl/2021.7.2/linux/include/oneapi/dpl/pstl/utils.h:31:
/opt/intel/oneapi/dpl/2021.7.2/linux/include/oneapi/dpl/pstl/hetero/dpcpp/sycl_iterator.h:34:68: error: no type named 'buffer_allocator' in namespace 'sycl'; did you mean 'image_allocator'?
template &amp;lt;access_mode Mode, typename T, typename Allocator = sycl::buffer_allocator&amp;gt;
~~~~~~^~~~~~~~~~~~~~~~
image_allocator&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Direct compiling of the source resulted in the same error.&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2022 16:57:21 GMT</pubDate>
    <dc:creator>alexstrelch</dc:creator>
    <dc:date>2022-12-20T16:57:21Z</dc:date>
    <item>
      <title>compilation issues with oneDPL headers</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/compilation-issues-with-oneDPL-headers/m-p/1439897#M2683</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;
&lt;P&gt;I tried to compile test codes from oneAPI-samples&amp;nbsp; using the new toolkit. Some of them failed with the following error message&amp;nbsp; :&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;In file included from /home/astrel/work/Crs/oneAPI-samples/DirectProgramming/DPC++/ParallelPatterns/histogram/src/main.cpp:9:
In file included from /opt/intel/oneapi/dpl/2021.7.2/linux/include/oneapi/dpl/execution:34:
In file included from /opt/intel/oneapi/dpl/2021.7.2/linux/include/oneapi/dpl/pstl/glue_algorithm_impl.h:23:
In file included from /opt/intel/oneapi/dpl/2021.7.2/linux/include/oneapi/dpl/pstl/utils.h:31:
/opt/intel/oneapi/dpl/2021.7.2/linux/include/oneapi/dpl/pstl/hetero/dpcpp/sycl_iterator.h:34:68: error: no type named 'buffer_allocator' in namespace 'sycl'; did you mean 'image_allocator'?
template &amp;lt;access_mode Mode, typename T, typename Allocator = sycl::buffer_allocator&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;The errors seem to be due to onedpl headers.&lt;/P&gt;
&lt;P&gt;Any idea to resolve the issue?&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 22:17:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/compilation-issues-with-oneDPL-headers/m-p/1439897#M2683</guid>
      <dc:creator>alexstrelch</dc:creator>
      <dc:date>2022-12-19T22:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: compilation issues with oneDPL headers</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/compilation-issues-with-oneDPL-headers/m-p/1440056#M2684</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have tried to build the sample using below steps and we are able to get the expected results without any issues.&lt;/P&gt;
&lt;P&gt;Steps we have followed on Ubuntu:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;git clone &lt;A href="https://github.com/oneapi-src/oneAPI-samples" target="_blank" rel="noopener"&gt;https://github.com/oneapi-src/oneAPI-samples&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;cd /oneAPI-samples/DirectProgramming/DPC++/ParallelPatterns/histogram/src&lt;/LI&gt;
&lt;LI&gt;dpcpp main.cpp&lt;/LI&gt;
&lt;LI&gt;./a.out&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please find the below screenshot for the result.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NoorjahanSk_Intel_0-1671529948110.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/36347iD292D821959936BA/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="NoorjahanSk_Intel_0-1671529948110.png" alt="NoorjahanSk_Intel_0-1671529948110.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please follow the above steps while building the code. If you still face the issue, please provide us with the below details.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Steps you have followed to build the sample code.&lt;/LI&gt;
&lt;LI&gt;Os details&lt;/LI&gt;
&lt;LI&gt;Compiler version being used.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Noorjahan.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 09:52:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/compilation-issues-with-oneDPL-headers/m-p/1440056#M2684</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2022-12-20T09:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: compilation issues with oneDPL headers</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/compilation-issues-with-oneDPL-headers/m-p/1440179#M2686</link>
      <description>&lt;P&gt;Thank you, Noorjahan.&lt;/P&gt;
&lt;P&gt;Here are the details:&lt;/P&gt;
&lt;P&gt;1. Steps:&lt;/P&gt;
&lt;P&gt;git clone &lt;A class="sub_section_element_selectors" href="https://github.com/oneapi-src/oneAPI-samples" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/oneapi-src/oneAPI-samples&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;module load cmake&lt;/P&gt;
&lt;P&gt;source /opt/intel/oneapi/setvars.sh&lt;/P&gt;
&lt;P&gt;cd ./oneAPI-samples/DirectProgramming/DPC++/ParallelPatterns/histogram&lt;/P&gt;
&lt;P&gt;mkdir build &amp;amp; cd build&lt;/P&gt;
&lt;P&gt;cmake ..&lt;/P&gt;
&lt;P&gt;make VERBOSE=1&lt;/P&gt;
&lt;P&gt;2. OS:&lt;/P&gt;
&lt;P&gt;Linux {hostname} 5.15.0-50-generic #56~20.04.1-Ubuntu SMP Tue Sep 27 15:51:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux&lt;/P&gt;
&lt;P&gt;3. Compiler:&lt;/P&gt;
&lt;P&gt;Intel(R) oneAPI DPC++/C++ Compiler 2023.0.0 (2023.0.0.20221201)&lt;BR /&gt;Target: x86_64-unknown-linux-gnu&lt;BR /&gt;Thread model: posix&lt;BR /&gt;InstalledDir: /opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm&lt;BR /&gt;Configuration file: /opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/../bin/icpx.cfg&lt;/P&gt;
&lt;P&gt;4. Error message (and there were a bunch of warnings):&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;/opt/intel/oneapi/compiler/2023.0.0/linux/bin/icpx -O3 -std=c++17 -fsycl -O3 -DNDEBUG -MD -MT CMakeFiles/histogram.dir/src/main.cpp.o -MF CMakeFiles/histogram.dir/src/main.cpp.o.d -o CMakeFiles/histogram.dir/src/main.cpp.o -c /home/astrel/work/Crs/Tmp/oneAPI-samples/DirectProgramming/DPC++/ParallelPatterns/histogram/src/main.cpp :&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;In file included from /home/astrel/work/Crs/Tmp/oneAPI-samples/DirectProgramming/DPC++/ParallelPatterns/histogram/src/main.cpp

In file included from /home/astrel/work/Crs/Tmp/oneAPI-samples/DirectProgramming/DPC++/ParallelPatterns/histogram/src/main.cpp:9:
In file included from /opt/intel/oneapi/dpl/2021.7.2/linux/include/oneapi/dpl/execution:34:
In file included from /opt/intel/oneapi/dpl/2021.7.2/linux/include/oneapi/dpl/pstl/glue_algorithm_impl.h:23:
In file included from /opt/intel/oneapi/dpl/2021.7.2/linux/include/oneapi/dpl/pstl/utils.h:31:
/opt/intel/oneapi/dpl/2021.7.2/linux/include/oneapi/dpl/pstl/hetero/dpcpp/sycl_iterator.h:34:68: error: no type named 'buffer_allocator' in namespace 'sycl'; did you mean 'image_allocator'?
template &amp;lt;access_mode Mode, typename T, typename Allocator = sycl::buffer_allocator&amp;gt;
~~~~~~^~~~~~~~~~~~~~~~
image_allocator&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Direct compiling of the source resulted in the same error.&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 16:57:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/compilation-issues-with-oneDPL-headers/m-p/1440179#M2686</guid>
      <dc:creator>alexstrelch</dc:creator>
      <dc:date>2022-12-20T16:57:21Z</dc:date>
    </item>
    <item>
      <title>Re:compilation issues with oneDPL headers</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/compilation-issues-with-oneDPL-headers/m-p/1440806#M2692</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for providing the details.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;In file included from /opt/intel/oneapi/dpl/2021.7.2/linux/include/oneapi/dpl/execution&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;From your error, we observed that you are using OneDPL 2021.7 version.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please upgrade to the latest OneDPL version(2022.0.0) and try to build your code with the latest version?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We tried with OneDPL(2022.0.0) and did not see any issues at our end.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;You can get the latest version by installing the entire OneAPI BaseTookit or the standalone version.&lt;/P&gt;&lt;P&gt;BaseToolkit:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit-download.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit-download.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Standalone:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/developer/articles/tool/oneapi-standalone-components.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/developer/articles/tool/oneapi-standalone-components.html&lt;/A&gt;&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;Noorjahan.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Dec 2022 09:47:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/compilation-issues-with-oneDPL-headers/m-p/1440806#M2692</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2022-12-22T09:47:09Z</dc:date>
    </item>
    <item>
      <title>Re:compilation issues with oneDPL headers</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/compilation-issues-with-oneDPL-headers/m-p/1442428#M2699</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We haven't heard back from you. Could you please provide an update on your issue?&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;Noorjahan.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Dec 2022 07:02:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/compilation-issues-with-oneDPL-headers/m-p/1442428#M2699</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2022-12-29T07:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Re:compilation issues with oneDPL headers</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/compilation-issues-with-oneDPL-headers/m-p/1442565#M2701</link>
      <description>&lt;P&gt;Hi Noorjahan,&lt;/P&gt;
&lt;P&gt;I just re-installed the toolkit and could compile the code sample, thank you for the instructions. You can close the issue.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;A.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 19:29:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/compilation-issues-with-oneDPL-headers/m-p/1442565#M2701</guid>
      <dc:creator>alexstrelch</dc:creator>
      <dc:date>2022-12-29T19:29:10Z</dc:date>
    </item>
    <item>
      <title>Re:compilation issues with oneDPL headers</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/compilation-issues-with-oneDPL-headers/m-p/1442687#M2702</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for the confirmation!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;As this issue has been resolved, we will no longer respond to this thread. If you require additional assistance from Intel, please start a new thread.&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;Noorjahan.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Dec 2022 04:40:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/compilation-issues-with-oneDPL-headers/m-p/1442687#M2702</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2022-12-30T04:40:59Z</dc:date>
    </item>
  </channel>
</rss>

