<?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:_DEBUG issues. in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DEBUG-issues/m-p/1218317#M749</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;&lt;P&gt;I tried the way you have described and yes you are right by default toolkit doesn't define _DEBUG micro.&lt;/P&gt;&lt;P&gt;And one thing I wanted you to suggest that when you define _DEBUG as 1 we have to set /LDd, /MDd, or /MTd compiler options. Otherwise, it will be undefined.&lt;/P&gt;&lt;P&gt;But when I tried enabling DEBUG feature I was able to compile the project but was failing at run time and when I give the &lt;B&gt;sycld.lib &lt;/B&gt;path at the linking stage it was executing with correct results.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I can very much able to reproduce your issue and I also feel that it's a bug.  So I am forwarding this issue to the concerned team.&lt;/P&gt;&lt;P&gt;Thank you for posting it to us.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 16 Oct 2020 08:40:52 GMT</pubDate>
    <dc:creator>AbhishekD_Intel</dc:creator>
    <dc:date>2020-10-16T08:40:52Z</dc:date>
    <item>
      <title>_DEBUG issues.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DEBUG-issues/m-p/1217977#M742</link>
      <description>&lt;DIV class="lia-quilt-row lia-quilt-row-message-subject"&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-24 lia-quilt-column-single lia-quilt-column-message-subject-content"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-single"&gt;
&lt;DIV class="topic-subject-wrapper"&gt;
&lt;DIV class="lia-message-subject lia-component-message-view-widget-subject"&gt;
&lt;DIV class="MessageSubject"&gt;&lt;STRONG style="font-family: inherit;"&gt;OS&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-quilt-row lia-quilt-row-message-body"&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-24 lia-quilt-column-single lia-quilt-column-message-body-content"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-single"&gt;
&lt;DIV id="bodyDisplay" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;Windows 10&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;IDE&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;Visual Studio 19&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Compiler&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;Intel(R) oneAPI DPC++ compiler&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Toolkit&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;oneAPI Base Toolkit version 2021.1-beta09&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Problem&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;By default, the toolkit doesn't define _DEBUG macro in debug mode. However, upon defining it, the linker will fail due to missing debug CRT symbols.&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;I can bypass this by using /MDd or /MTd as a command line argument.&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;However, this would lead to erroneous SYCL runtime probably due to ABI issues with mismatching CRTs.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;I can force the linker&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;to link against sycld.lib and everything would work just fine.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN style="font-family: inherit;"&gt;I believe this is a tooling bug in debug mode.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 15 Oct 2020 08:44:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DEBUG-issues/m-p/1217977#M742</guid>
      <dc:creator>ChoonHo</dc:creator>
      <dc:date>2020-10-15T08:44:16Z</dc:date>
    </item>
    <item>
      <title>Re:_DEBUG issues.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DEBUG-issues/m-p/1218317#M749</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;&lt;P&gt;I tried the way you have described and yes you are right by default toolkit doesn't define _DEBUG micro.&lt;/P&gt;&lt;P&gt;And one thing I wanted you to suggest that when you define _DEBUG as 1 we have to set /LDd, /MDd, or /MTd compiler options. Otherwise, it will be undefined.&lt;/P&gt;&lt;P&gt;But when I tried enabling DEBUG feature I was able to compile the project but was failing at run time and when I give the &lt;B&gt;sycld.lib &lt;/B&gt;path at the linking stage it was executing with correct results.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I can very much able to reproduce your issue and I also feel that it's a bug.  So I am forwarding this issue to the concerned team.&lt;/P&gt;&lt;P&gt;Thank you for posting it to us.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Oct 2020 08:40:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DEBUG-issues/m-p/1218317#M749</guid>
      <dc:creator>AbhishekD_Intel</dc:creator>
      <dc:date>2020-10-16T08:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Re:_DEBUG issues.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DEBUG-issues/m-p/1218328#M753</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 09:23:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DEBUG-issues/m-p/1218328#M753</guid>
      <dc:creator>ChoonHo</dc:creator>
      <dc:date>2020-10-16T09:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: _DEBUG issues.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DEBUG-issues/m-p/1225612#M796</link>
      <description>&lt;P&gt;Update for beta10.&lt;/P&gt;
&lt;P&gt;Properly links to &lt;STRONG&gt;sycld.lib&lt;/STRONG&gt; when &lt;STRONG&gt;_DEBUG&lt;/STRONG&gt; is defined.&lt;/P&gt;
&lt;P&gt;However, I still have to specify to use a debug version of the runtime library /MDd or /MTd as a compiler argument.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 01:51:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DEBUG-issues/m-p/1225612#M796</guid>
      <dc:creator>ChoonHo</dc:creator>
      <dc:date>2020-11-05T01:51:14Z</dc:date>
    </item>
    <item>
      <title>Re:_DEBUG issues.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DEBUG-issues/m-p/1226154#M801</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Yes, using &lt;SPAN style="font-size: 14px; font-family: monospace;"&gt;/MDd &lt;/SPAN&gt;&lt;SPAN style="font-size: 14px;"&gt;should set everything you need, that's the expected behavior. &lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Nov 2020 19:24:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DEBUG-issues/m-p/1226154#M801</guid>
      <dc:creator>Sravani_K_Intel</dc:creator>
      <dc:date>2020-11-06T19:24:17Z</dc:date>
    </item>
  </channel>
</rss>

