<?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: Windows OS:  application crash if compile with visual studio with library compiled from DPC++ in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-OS-application-crash-if-compile-with-visual-studio-with/m-p/1535863#M3342</link>
    <description>&lt;P&gt;Thanks for your reply.&amp;nbsp; &amp;nbsp;The application is fairly big and depend on Visual studio compiler.&amp;nbsp; &amp;nbsp; Converting the host code to compile with Intel compiler is not possible as the application need to both compile for Intel x86 and ARM64.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a result, we need to compile a specific module with Intel compiler only.&amp;nbsp; &amp;nbsp;However, as you point out, this is not possible, which is quite disappointed.&lt;/P&gt;&lt;P&gt;This mechanism tested working in Linux and why this is not support from Windows OS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to use icx to link the static library (compile with DPC++) with obj compile from visual studio, to enable it to run correctly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Oct 2023 14:09:40 GMT</pubDate>
    <dc:creator>cmlee</dc:creator>
    <dc:date>2023-10-20T14:09:40Z</dc:date>
    <item>
      <title>Windows OS:  application crash if compile with visual studio with library compiled from DPC++</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-OS-application-crash-if-compile-with-visual-studio-with/m-p/1534863#M3329</link>
      <description>&lt;P&gt;In Linux,&amp;nbsp; we can create a library with SYCL kernels compile with DPCPP, then another application compile with gcc c++ and link with the library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, this approach doesn't work with Visual Studio.&amp;nbsp; Tested with&amp;nbsp;Microsoft Visual Studio Professional 2022 (64-bit) - LTSC 17.6 along with&amp;nbsp;Intel(R) oneAPI DPC++/C++ Compiler 2023.2.0 (2023.2.0.20230627).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The application is compiled with Visual Studio 2022 (143) platform toolset and static library contains SYCL kernels are compile with Intel DPC++ 2023 toolset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The compilation has no issue.&amp;nbsp; &amp;nbsp;However, application will exit/crash after call sycl kernel.&lt;/P&gt;&lt;P&gt;Try to compile application with Intel C++ compiler 2023 without /fsycl and will have the same issue above.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the application compile with Intel C++ compiler with /fsycl, there is no issue to run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is the sample application to show the issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 03:49:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-OS-application-crash-if-compile-with-visual-studio-with/m-p/1534863#M3329</guid>
      <dc:creator>cmlee</dc:creator>
      <dc:date>2023-10-18T03:49:34Z</dc:date>
    </item>
    <item>
      <title>Re:Windows OS: binary compile with visual studio with library generated from DPC++</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-OS-application-crash-if-compile-with-visual-studio-with/m-p/1535837#M3339</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for posting in Intel Communities.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Yes, you are correct. We need to add the /fsycl flag in the additional options, or we need to use the Intel(R) oneAPI DPC++ Compiler 2023 as the Platform Toolset. Without the usage of /fsycl, it may lead to an exit or crash of the DPC++ application.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can compile any host code with other compilers, but for compiling device code, linking the library, and creating the final executable for a DPC++ program Intel oneAPI C++/DPC++ compiler ('icx /fsycl' or 'dpcpp') must be used.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Pendyala Sesha Srinivas&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Oct 2023 12:59:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-OS-application-crash-if-compile-with-visual-studio-with/m-p/1535837#M3339</guid>
      <dc:creator>SeshaP_Intel</dc:creator>
      <dc:date>2023-10-20T12:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Windows OS:  application crash if compile with visual studio with library compiled from DPC++</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-OS-application-crash-if-compile-with-visual-studio-with/m-p/1535863#M3342</link>
      <description>&lt;P&gt;Thanks for your reply.&amp;nbsp; &amp;nbsp;The application is fairly big and depend on Visual studio compiler.&amp;nbsp; &amp;nbsp; Converting the host code to compile with Intel compiler is not possible as the application need to both compile for Intel x86 and ARM64.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a result, we need to compile a specific module with Intel compiler only.&amp;nbsp; &amp;nbsp;However, as you point out, this is not possible, which is quite disappointed.&lt;/P&gt;&lt;P&gt;This mechanism tested working in Linux and why this is not support from Windows OS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to use icx to link the static library (compile with DPC++) with obj compile from visual studio, to enable it to run correctly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 14:09:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-OS-application-crash-if-compile-with-visual-studio-with/m-p/1535863#M3342</guid>
      <dc:creator>cmlee</dc:creator>
      <dc:date>2023-10-20T14:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Windows OS: binary compile with visual studio with library generated from DPC++</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-OS-application-crash-if-compile-with-visual-studio-with/m-p/1536996#M3348</link>
      <description>&lt;P&gt;The issue is now resolved.&amp;nbsp; &amp;nbsp;In order to use different compilers, the module or library contains SYCL kernel need to compile as DLL or dynamic library.&amp;nbsp; I will switch to build the module as DLL.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2023 01:07:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-OS-application-crash-if-compile-with-visual-studio-with/m-p/1536996#M3348</guid>
      <dc:creator>cmlee</dc:creator>
      <dc:date>2023-10-25T01:07:38Z</dc:date>
    </item>
    <item>
      <title>Re:Windows OS: binary compile with visual studio with library generated from DPC++</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-OS-application-crash-if-compile-with-visual-studio-with/m-p/1537395#M3353</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Glad to know that your issue is resolved. Thanks for sharing the solution with us.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Pendyala Sesha Srinivas&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Oct 2023 00:02:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Windows-OS-application-crash-if-compile-with-visual-studio-with/m-p/1537395#M3353</guid>
      <dc:creator>SeshaP_Intel</dc:creator>
      <dc:date>2023-10-26T00:02:17Z</dc:date>
    </item>
  </channel>
</rss>

