<?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:dpct generating spurious '&amp;amp;gt;' in converted code in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-generating-spurious-gt-in-converted-code/m-p/1188230#M526</link>
    <description>&lt;P&gt;Hi Gagan,&lt;/P&gt;&lt;P&gt;As you want this feature in the DPCT we are forwarding this feature request to our concerned team.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 30 Jun 2020 05:51:05 GMT</pubDate>
    <dc:creator>AbhishekD_Intel</dc:creator>
    <dc:date>2020-06-30T05:51:05Z</dc:date>
    <item>
      <title>dpct generating spurious '&gt;' in converted code</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-generating-spurious-gt-in-converted-code/m-p/1186626#M507</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is to report an issue that dpct is generating spurious &amp;gt; symbol when converting nested kernel call.&lt;/P&gt;&lt;P&gt;I converted cuda code&amp;nbsp;&lt;A href="https://github.com/fixstars/libSGM/blob/master/src/winner_takes_all.cu"&gt;/winner_takes_all.cu&lt;/A&gt;&amp;nbsp;from repo&amp;nbsp;&lt;A href="https://github.com/fixstars/libSGM"&gt;libSGM&lt;/A&gt;. In the converted code, dpct is generating spurious '&amp;gt;' at two places, on line 251 and line 273. Converted file (winner_takes_all.dp.cpp) is attached too for reference.&lt;/P&gt;&lt;P&gt;cuda code:&lt;/P&gt;
&lt;PRE class="brush:; class-name:dark;"&gt;		winner_takes_all_kernel&amp;lt;MAX_DISPARITY, 8, compute_disparity_subpixel&amp;lt;MAX_DISPARITY&amp;gt;&amp;gt;&amp;lt;&amp;lt;&amp;lt;gdim, bdim, 0, stream&amp;gt;&amp;gt;&amp;gt;(
			left_dest, right_dest, src, width, height, pitch, uniqueness);&lt;/PRE&gt;

&lt;P&gt;converted code:&lt;/P&gt;

&lt;PRE class="brush:; class-name:dark;"&gt; winner_takes_all_kernel&amp;lt;MAX_DISPARITY, 8,
                                    compute_disparity_subpixel&amp;lt;MAX_DISPARITY&amp;gt;&amp;gt; &amp;gt;
                (left_dest, right_dest, src, width, height, pitch, uniqueness,
                 item_ct1,
                 dpct::accessor&amp;lt;uint16_t, dpct::local, 3&amp;gt;(
                     smem_cost_sum_acc_ct1, smem_cost_sum_range_ct1));&lt;/PRE&gt;

&lt;P&gt;There is a spurious &amp;gt;&amp;nbsp;after&amp;nbsp;compute_disparity_subpixel&amp;lt;MAX_DISPARITY&amp;gt;&amp;gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Gagan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 13:08:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-generating-spurious-gt-in-converted-code/m-p/1186626#M507</guid>
      <dc:creator>Shukla__Gagandeep</dc:creator>
      <dc:date>2020-06-19T13:08:40Z</dc:date>
    </item>
    <item>
      <title>Hi Gagan,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-generating-spurious-gt-in-converted-code/m-p/1186627#M508</link>
      <description>&lt;P&gt;Hi Gagan,&lt;/P&gt;&lt;P&gt;We tried migrating&amp;nbsp;&lt;STRONG&gt;winner_takes_all.cu&amp;nbsp;&lt;/STRONG&gt;and we have also got the same issue but there is a way which will help you to resolve such an issue.&lt;/P&gt;&lt;P&gt;You can provide a space(&amp;lt;MAX_DISPARITY&amp;gt;&amp;gt;&amp;lt;&amp;lt;&amp;lt;...&amp;gt;&amp;gt;&amp;gt; to&amp;nbsp;&lt;STRONG&gt;&amp;lt;MAX_DISPARITY&amp;gt; &amp;gt;&amp;lt;&amp;lt;&amp;lt;...&amp;gt;&amp;gt;&amp;gt;&lt;/STRONG&gt;)&amp;nbsp;in your original cuda file (&lt;STRONG&gt;winner_takes_all.cu&lt;/STRONG&gt;) like given below:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;winner_takes_all_kernel&lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;MAX_DISPARITY, 8, compute_disparity_subpixel&lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;MAX_DISPARITY&lt;STRONG&gt;&amp;gt; &amp;gt;&amp;lt;&amp;lt;&amp;lt;&lt;/STRONG&gt;gdim, bdim, 0, stream&lt;STRONG&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/STRONG&gt;(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; left_dest, right_dest, src, width, height, pitch, uniqueness);&lt;/P&gt;&lt;P&gt;Make above change on both the lines and then&amp;nbsp;migrate the code with DPCT, this will solve your problem of extra "&amp;gt;" in the migrated code.&lt;/P&gt;&lt;P&gt;Do let us know if it is working&amp;nbsp;for you or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 08:43:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-generating-spurious-gt-in-converted-code/m-p/1186627#M508</guid>
      <dc:creator>AbhishekD_Intel</dc:creator>
      <dc:date>2020-06-22T08:43:44Z</dc:date>
    </item>
    <item>
      <title>Thanks for looking into the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-generating-spurious-gt-in-converted-code/m-p/1186628#M509</link>
      <description>&lt;P&gt;Thanks for looking into the issue, Abhishek.&lt;/P&gt;&lt;P&gt;Actually the issue I reported was that dpct is generating an extra '&amp;gt;'.&lt;/P&gt;&lt;P&gt;The code dpct generated is:&amp;nbsp;compute_disparity_subpixel&amp;lt;MAX_DISPARITY&amp;gt;&amp;gt; &lt;EM&gt;&lt;STRONG&gt;&amp;gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;where the highlighted (in bold) '&amp;gt;' is not required. I resolved the error by removing that extra '&amp;gt;' symbol. It did not need extra space between preceding two '&amp;gt;' symbols.&lt;/P&gt;&lt;P&gt;Original cuda code is:&amp;nbsp;winner_takes_all_kernel&amp;lt;MAX_DISPARITY, 8, compute_disparity_subpixel&amp;lt;MAX_DISPARITY&amp;gt;&amp;gt;, which also contains only two '&amp;gt;' symbols. So the issue is that dpct is generating&amp;nbsp;an extra '&amp;gt;' symbol out of nowhere and is not even needed.&lt;/P&gt;&lt;P&gt;Hope that clarifies the issue I tried to report.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Gagan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 13:08:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-generating-spurious-gt-in-converted-code/m-p/1186628#M509</guid>
      <dc:creator>Shukla__Gagandeep</dc:creator>
      <dc:date>2020-06-22T13:08:03Z</dc:date>
    </item>
    <item>
      <title>Re:dpct generating spurious '&amp;gt;' in converted code</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-generating-spurious-gt-in-converted-code/m-p/1188230#M526</link>
      <description>&lt;P&gt;Hi Gagan,&lt;/P&gt;&lt;P&gt;As you want this feature in the DPCT we are forwarding this feature request to our concerned team.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Jun 2020 05:51:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-generating-spurious-gt-in-converted-code/m-p/1188230#M526</guid>
      <dc:creator>AbhishekD_Intel</dc:creator>
      <dc:date>2020-06-30T05:51:05Z</dc:date>
    </item>
    <item>
      <title>Re:dpct generating spurious '&amp;gt;' in converted code</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-generating-spurious-gt-in-converted-code/m-p/1203377#M672</link>
      <description>&lt;P&gt;&lt;I style="font-family: Calibri, sans-serif; font-size: 11pt;"&gt;This issue has been resolved and we will no longer respond to this thread.&amp;nbsp;If you require additional assistance from Intel, please start a new thread.&amp;nbsp;Any further interaction in this thread will be considered community only&lt;/I&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Aug 2020 07:14:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-generating-spurious-gt-in-converted-code/m-p/1203377#M672</guid>
      <dc:creator>Subarnarek_G_Intel</dc:creator>
      <dc:date>2020-08-24T07:14:56Z</dc:date>
    </item>
  </channel>
</rss>

