<?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:CMake cannot generate working EXE/DLL for Windows with DPC++ in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/CMake-cannot-generate-working-EXE-DLL-for-Windows-with-DPC/m-p/1366018#M1934</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for contacting Intel Support forum.&lt;/P&gt;&lt;P&gt;We have looked into your case.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This looks like a bug in usage of cmake with Intel oneAPI DPC++ compiler.&lt;/P&gt;&lt;P&gt;I have now forwarded this case to Intel development team for investigation.&lt;/P&gt;&lt;P&gt;I will update this forum once there is a feedback from Intel development team.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please note that that this project may be successfully used from Visual Studio.&lt;/P&gt;&lt;P&gt;Moreover, you may compile the sources manually from the command line,&lt;/P&gt;&lt;P&gt;but without usage of cmake (I saw you statement that you need cmake - but maybe this would be suitable for you work on some other project, etc.):&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;&amp;gt;icx -fsycl /EHsc ..\src\loop-unroll.cpp&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;&amp;gt;loop-unroll.exe&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;Input array size: 33554432&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;Running on device: Intel(R) Graphics [0x3ea0]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;Unroll factor: 1 Kernel time: 6685.64 ms&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;Throughput for kernel with unroll factor 1: 0.005 GFlops&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;Unroll factor: 2 Kernel time: 4171.452 ms&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;Throughput for kernel with unroll factor 2: 0.008 GFlops&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;Unroll factor: 4 Kernel time: 2332.509 ms&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;Throughput for kernel with unroll factor 4: 0.014 GFlops&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;Unroll factor: 8 Kernel time: 1441.188 ms&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;Throughput for kernel with unroll factor 8: 0.023 GFlops&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;Unroll factor: 16 Kernel time: 1252.165 ms&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;Throughput for kernel with unroll factor 16: 0.027 GFlops&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;PASSED: The results are correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Hope that this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Khalik.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Sat, 05 Mar 2022 13:27:42 GMT</pubDate>
    <dc:creator>Khalik_K_Intel</dc:creator>
    <dc:date>2022-03-05T13:27:42Z</dc:date>
    <item>
      <title>CMake cannot generate working EXE/DLL for Windows with DPC++</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/CMake-cannot-generate-working-EXE-DLL-for-Windows-with-DPC/m-p/1364737#M1925</link>
      <description>&lt;P&gt;I'm using Intel oneAPI BaseKit 2022.1.2 (w_BaseKit_p_2022.1.2.154_offline.exe), VisualStudio 2022 17.0.6 LTS, CMake 3.22.2, Ninja 1.10.2, VSCode 1.64.2, Windows 10 Pro 21H1 x64 English.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OneAPI &amp;amp; VisualStudio was fully reinstalled today.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using a basic example &lt;A href="https://github.com/oneapi-src/oneAPI-samples/tree/2022.1.0/DirectProgramming/DPC++/ParallelPatterns/loop-unroll" target="_self"&gt;loop unrolling.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using VisualStudio sln works correctly &amp;amp; exe file starts to execute.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using CMakeLists.txt (file attached), executable file doesn't work correctly &amp;amp; prints error -46 (CL_INVALID_KERNEL_NAME). CMakeLists file content is based on &lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/oneapi-dpcpp-cpp-compiler-dev-guide-and-reference/top/compiler-setup/using-the-command-line/using-cmake-with-data-parallel-c-dpc.html" target="_self"&gt;that link&lt;/A&gt; &amp;amp; default provided file. An example of error was screened below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AJIOB_0-1646126006006.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/27146i0CA9F3771B7AB849/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="AJIOB_0-1646126006006.png" alt="AJIOB_0-1646126006006.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Build log was attached too:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;from VSCode with Intel oneAPI plugins pack&lt;/LI&gt;
&lt;LI&gt;from clear CMD with manually called setvars.bat file&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to use CMakeLists.txt for cross-compile code building.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That error looks like a linking error. How cal I fix it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With regards,&lt;BR /&gt;Alex&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. Project for reproducing an error was attached too.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 09:52:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/CMake-cannot-generate-working-EXE-DLL-for-Windows-with-DPC/m-p/1364737#M1925</guid>
      <dc:creator>AJIOB</dc:creator>
      <dc:date>2022-03-01T09:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: CMake cannot generate working EXE/DLL for Windows with DPC++</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/CMake-cannot-generate-working-EXE-DLL-for-Windows-with-DPC/m-p/1365121#M1926</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 were able to reproduce your issue at our end using the Intel oneAPI Base Toolkit 2022.1.0 on the windows command prompt as seen in the attached screenshot(error.png) below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are working on your issue and we will get back to you soon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Santosh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 17:23:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/CMake-cannot-generate-working-EXE-DLL-for-Windows-with-DPC/m-p/1365121#M1926</guid>
      <dc:creator>SantoshY_Intel</dc:creator>
      <dc:date>2022-03-02T17:23:02Z</dc:date>
    </item>
    <item>
      <title>Re:CMake cannot generate working EXE/DLL for Windows with DPC++</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/CMake-cannot-generate-working-EXE-DLL-for-Windows-with-DPC/m-p/1366018#M1934</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for contacting Intel Support forum.&lt;/P&gt;&lt;P&gt;We have looked into your case.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This looks like a bug in usage of cmake with Intel oneAPI DPC++ compiler.&lt;/P&gt;&lt;P&gt;I have now forwarded this case to Intel development team for investigation.&lt;/P&gt;&lt;P&gt;I will update this forum once there is a feedback from Intel development team.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please note that that this project may be successfully used from Visual Studio.&lt;/P&gt;&lt;P&gt;Moreover, you may compile the sources manually from the command line,&lt;/P&gt;&lt;P&gt;but without usage of cmake (I saw you statement that you need cmake - but maybe this would be suitable for you work on some other project, etc.):&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;&amp;gt;icx -fsycl /EHsc ..\src\loop-unroll.cpp&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;&amp;gt;loop-unroll.exe&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;Input array size: 33554432&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;Running on device: Intel(R) Graphics [0x3ea0]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;Unroll factor: 1 Kernel time: 6685.64 ms&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;Throughput for kernel with unroll factor 1: 0.005 GFlops&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;Unroll factor: 2 Kernel time: 4171.452 ms&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;Throughput for kernel with unroll factor 2: 0.008 GFlops&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;Unroll factor: 4 Kernel time: 2332.509 ms&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;Throughput for kernel with unroll factor 4: 0.014 GFlops&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;Unroll factor: 8 Kernel time: 1441.188 ms&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;Throughput for kernel with unroll factor 8: 0.023 GFlops&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;Unroll factor: 16 Kernel time: 1252.165 ms&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;Throughput for kernel with unroll factor 16: 0.027 GFlops&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;SPAN style="font-size: 11px;"&gt;PASSED: The results are correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ql-indent-1"&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Hope that this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;Khalik.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 05 Mar 2022 13:27:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/CMake-cannot-generate-working-EXE-DLL-for-Windows-with-DPC/m-p/1366018#M1934</guid>
      <dc:creator>Khalik_K_Intel</dc:creator>
      <dc:date>2022-03-05T13:27:42Z</dc:date>
    </item>
  </channel>
</rss>

