<?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:DPC++ static lib for another project still compiled by DPC++ compiler in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-static-lib-for-another-project-still-compiled-by-DPC/m-p/1380693#M2097</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have reported this issue to the concerned development team. They are looking into the 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;Hemanth&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 29 Apr 2022 11:17:54 GMT</pubDate>
    <dc:creator>HemanthCH_Intel</dc:creator>
    <dc:date>2022-04-29T11:17:54Z</dc:date>
    <item>
      <title>DPC++ static lib for another project still compiled by DPC++ compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-static-lib-for-another-project-still-compiled-by-DPC/m-p/1378736#M2060</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; I have 2 projects, both of them are compiled by DPC++ compiler, the first one contains a kernel function, and is compiled as a static lib(it is correct as when compiled as exe, it can run). the other only has a main function and&amp;nbsp; is compiled as a executable file which link the first one.(both of them use same main function)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; However, I got a runtime error when I run the second one. I find this error come from the submit function.&lt;/P&gt;
&lt;P&gt;template &amp;lt;typename T&amp;gt; event submit(T CGF _CODELOCPARAM(&amp;amp;CodeLoc)) {&lt;BR /&gt;_CODELOCARG(&amp;amp;CodeLoc);&lt;/P&gt;
&lt;P&gt;event Event;&lt;/P&gt;
&lt;P&gt;.......//other no related code&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;Event = submit_impl(CGF, CodeLoc);&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;return Event;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;where submit_impl return a runtime error at memory.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My environment is DPC++ 2022 + vs2019 with&amp;nbsp; i7-10610U CPU and UHD 630 graphics.&lt;/P&gt;
&lt;P&gt;so, could anyone tell me what I miss?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 06:11:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-static-lib-for-another-project-still-compiled-by-DPC/m-p/1378736#M2060</guid>
      <dc:creator>shenuo</dc:creator>
      <dc:date>2022-04-21T06:11:13Z</dc:date>
    </item>
    <item>
      <title>Re:DPC++ static lib for another project still compiled by DPC++ compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-static-lib-for-another-project-still-compiled-by-DPC/m-p/1379044#M2064</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for posting in Intel Communities.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please share the sample reproducer code, so that we can reproduce the issue from our end?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Hemanth&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Apr 2022 10:10:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-static-lib-for-another-project-still-compiled-by-DPC/m-p/1379044#M2064</guid>
      <dc:creator>HemanthCH_Intel</dc:creator>
      <dc:date>2022-04-22T10:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Re:DPC++ static lib for another project still compiled by DPC++ compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-static-lib-for-another-project-still-compiled-by-DPC/m-p/1379230#M2068</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;you can just use the default DPC++ project on visual studio (static lib) to replay the same result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;int main() {&lt;/P&gt;
&lt;P&gt;IntArray Iarray1, Iarray2,Iarray3;&lt;BR /&gt;initialize_array(Iarray1);&lt;BR /&gt;vector_add(Iarray1,Iarray2,Iarray3);&lt;BR /&gt;return 0;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Sat, 23 Apr 2022 05:19:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-static-lib-for-another-project-still-compiled-by-DPC/m-p/1379230#M2068</guid>
      <dc:creator>shenuo</dc:creator>
      <dc:date>2022-04-23T05:19:39Z</dc:date>
    </item>
    <item>
      <title>Re:DPC++ static lib for another project still compiled by DPC++ compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-static-lib-for-another-project-still-compiled-by-DPC/m-p/1380693#M2097</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have reported this issue to the concerned development team. They are looking into the 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;Hemanth&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Apr 2022 11:17:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-static-lib-for-another-project-still-compiled-by-DPC/m-p/1380693#M2097</guid>
      <dc:creator>HemanthCH_Intel</dc:creator>
      <dc:date>2022-04-29T11:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: DPC++ static lib for another project still compiled by DPC++ compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-static-lib-for-another-project-still-compiled-by-DPC/m-p/1383779#M2133</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can run the static library successfully by following the below steps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Open Visual Studio and select the static DPC++ library project.&lt;/P&gt;
&lt;P&gt;2) Create a dpcpp project as a static project.&lt;/P&gt;
&lt;P&gt;3) Build the static project.&lt;/P&gt;
&lt;P&gt;4) Create a new DPC++ project.&lt;/P&gt;
&lt;P&gt;5) Create a new sample C++ file and copy the program2.cpp file as attached.&lt;/P&gt;
&lt;P&gt;6) Open project properties&amp;gt;&amp;gt;Configuration properties&amp;gt;&amp;gt;VC++ Directories&amp;gt;&amp;gt; Library Directories(add the static library output path)&lt;/P&gt;
&lt;P&gt;7) Open project properties&amp;gt;&amp;gt;configuration properties&amp;gt;&amp;gt;Linker&amp;gt;&amp;gt;General&amp;gt;&amp;gt;pass additional options to the device compiler&amp;gt;&amp;gt; (Add the static library output path)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try using the above steps and let us know if you face any issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Hemanth&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 11:22:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-static-lib-for-another-project-still-compiled-by-DPC/m-p/1383779#M2133</guid>
      <dc:creator>HemanthCH_Intel</dc:creator>
      <dc:date>2022-05-12T11:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: DPC++ static lib for another project still compiled by DPC++ compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-static-lib-for-another-project-still-compiled-by-DPC/m-p/1383979#M2140</link>
      <description>&lt;P&gt;Hi，&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Thanks, It seems the&amp;nbsp; DPC++ static lib configuration is not same as normal C++ static lib.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; now, It works correct!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 01:29:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-static-lib-for-another-project-still-compiled-by-DPC/m-p/1383979#M2140</guid>
      <dc:creator>shenuo</dc:creator>
      <dc:date>2022-05-13T01:29:16Z</dc:date>
    </item>
    <item>
      <title>Re:DPC++ static lib for another project still compiled by DPC++ compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-static-lib-for-another-project-still-compiled-by-DPC/m-p/1384559#M2153</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. 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 &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Hemanth.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 May 2022 13:30:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-static-lib-for-another-project-still-compiled-by-DPC/m-p/1384559#M2153</guid>
      <dc:creator>HemanthCH_Intel</dc:creator>
      <dc:date>2022-05-16T13:30:48Z</dc:date>
    </item>
  </channel>
</rss>

