<?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 not converting a header file (properly) in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-not-converting-a-header-file-properly/m-p/1191851#M565</link>
    <description>&lt;P&gt;Intel will no longer monitor this thread. However, this thread will remain open for community discussion. If you still have any issue, feel free to post a new question.&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 13 Jul 2020 06:35:12 GMT</pubDate>
    <dc:creator>RahulV_intel</dc:creator>
    <dc:date>2020-07-13T06:35:12Z</dc:date>
    <item>
      <title>dpct not converting a header file (properly)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-not-converting-a-header-file-properly/m-p/1188820#M531</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Can I convert header files using dpct if they contain cuda code? If yes then I am facing following issue:&lt;/P&gt;
&lt;P&gt;I was trying to convert&amp;nbsp;&lt;A href="https://github.com/NVIDIA/cutlass/blob/master/tools/util/include/cutlass/util/reference/device/tensor_foreach.h" target="_self"&gt;device/tensor_foreach.h&lt;/A&gt;&amp;nbsp;from&amp;nbsp;&lt;A href="https://github.com/NVIDIA/cutlass" target="_self"&gt;cutlass&lt;/A&gt;&amp;nbsp;repo. There is another file with the same name in /device/kernel folder. dpct was only converting /device/kernel/tensor_foreach.h file and not /device/tensor_foreach.h file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Command:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;cutlass\tools\util\include\cutlass\util\reference\device&amp;gt;dpct --cuda-include-path="C:\nvcc\include" --extra-arg="-I../../../../../../../include/" --extra-arg="-I../../../../../../../tools/util/include" --out-root=dpct tensor_foreach.h
&lt;/LI-CODE&gt;
&lt;P&gt;Finally I renamed /device/tensor_foreach.h to /device/tensor_foreach.cu and it generated tensor_foreach.dp.cpp but it did not convert any of cuda kernel calls. Look at line nos: 64, 84 &amp;amp; 122 in the attached file.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Gagan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 19:07:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-not-converting-a-header-file-properly/m-p/1188820#M531</guid>
      <dc:creator>Shukla__Gagandeep</dc:creator>
      <dc:date>2020-07-01T19:07:59Z</dc:date>
    </item>
    <item>
      <title>Re:dpct not converting a header file (properly)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-not-converting-a-header-file-properly/m-p/1188972#M538</link>
      <description>&lt;P&gt;Hi Gagan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindly upgrade the oneAPI basetoolkit to the latest beta07 build if not done already and execute this command:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;dpct tensor_foreach.h --extra-arg="-I../../../../../../../include/" --extra-arg="-I../../../../../../../tools/util/include" --extra-arg="-std=c++11" --keep-original-code &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Executing the above command produces migrated files in &lt;STRONG&gt;dpct_output&lt;/STRONG&gt; directory and I did not observe any issues on the line numbers that you have mentioned. The CUDA kernel calls are correctly migrated to its DPC++ equivalent.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Link to download oneAPI base toolkit beta 07: &lt;A href="https://software.intel.com/content/www/us/en/develop/tools/oneapi/download.html#basekit" target="_blank" rel="noopener"&gt;https://software.intel.com/content/www/us/en/develop/tools/oneapi/download.html#basekit&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if you face any issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Rahul&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 08:34:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-not-converting-a-header-file-properly/m-p/1188972#M538</guid>
      <dc:creator>RahulV_intel</dc:creator>
      <dc:date>2020-07-02T08:34:15Z</dc:date>
    </item>
    <item>
      <title>Re:dpct not converting a header file (properly)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-not-converting-a-header-file-properly/m-p/1189779#M549</link>
      <description>&lt;P&gt;Hi Gagan,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you kindly confirm if the solution provided helped?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Jul 2020 07:08:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-not-converting-a-header-file-properly/m-p/1189779#M549</guid>
      <dc:creator>RahulV_intel</dc:creator>
      <dc:date>2020-07-06T07:08:50Z</dc:date>
    </item>
    <item>
      <title>Re:dpct not converting a header file (properly)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-not-converting-a-header-file-properly/m-p/1191851#M565</link>
      <description>&lt;P&gt;Intel will no longer monitor this thread. However, this thread will remain open for community discussion. If you still have any issue, feel free to post a new question.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Jul 2020 06:35:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-not-converting-a-header-file-properly/m-p/1191851#M565</guid>
      <dc:creator>RahulV_intel</dc:creator>
      <dc:date>2020-07-13T06:35:12Z</dc:date>
    </item>
  </channel>
</rss>

