<?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:Migration from CUDA to SYCL with DPCT. Error: header missing __clang_cuda_texture_intrinsics.h in Migrating to SYCL</title>
    <link>https://community.intel.com/t5/Migrating-to-SYCL/Migration-from-CUDA-to-SYCL-with-DPCT-Error-header-missing-clang/m-p/1437686#M223</link>
    <description>&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Thanks for reaching out to us. Glad to know that your issue is resolved. If you need any further assistance, please post a new question as this thread will no longer be monitored by Intel.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Shwetha Selma&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 12 Dec 2022 10:14:09 GMT</pubDate>
    <dc:creator>ShwethaS_Intel</dc:creator>
    <dc:date>2022-12-12T10:14:09Z</dc:date>
    <item>
      <title>Migration from CUDA to SYCL with DPCT. Error: header missing __clang_cuda_texture_intrinsics.h</title>
      <link>https://community.intel.com/t5/Migrating-to-SYCL/Migration-from-CUDA-to-SYCL-with-DPCT-Error-header-missing-clang/m-p/1437389#M221</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;I am trying to convert from CUDA to SYCL with the dpct conversion tool.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DPCT fails to migrate code sample in&amp;nbsp;&lt;A href="https://github.com/oneapi-src/oneAPI-samples/tree/master/Tools/Migration/vector-add-dpct" target="_blank" rel="noopener"&gt;https://github.com/oneapi-src/oneAPI-samples/tree/master/Tools/Migration/vector-add-dpct&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;dpct src/vector_add.cu&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get :&lt;/P&gt;
&lt;PRE&gt;NOTE: Could not auto-detect compilation database for file 'vector_add.cu' in '/home/myuser/oneAPI-samples-master/Tools/Migration/vector-add-dpct/src' or any parent directory.&lt;BR /&gt;The directory "dpct_output" is used as "out-root"&lt;BR /&gt;Processing: /home/myuser/oneAPI-samples-master/Tools/Migration/vector-add-dpct/src/vector_add.cu&lt;BR /&gt;In file included from &amp;lt;built-in&amp;gt;:1:&lt;BR /&gt;/opt/intel/oneapi/dpcpp-ct/2022.2.1/lib/clang/15.0.0/include/__clang_cuda_runtime_wrapper.h:408:10: fatal error: '__clang_cuda_texture_intrinsics.h' file not found&lt;BR /&gt;&lt;STRONG&gt;#include &amp;lt;__clang_cuda_texture_intrinsics.h&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;Processed 1 file(s) in -in-root folder "/home/myuser/oneAPI-samples-master/Tools/Migration/vector-add-dpct/src", 1 file(s) with error(s):&lt;BR /&gt;/home/myuser/oneAPI-samples-master/Tools/Migration/vector-add-dpct/src/vector_add.cu: 1 parsing error(s)&lt;BR /&gt;&lt;BR /&gt;See Diagnostics Reference to resolve warnings and complete the migration:&lt;BR /&gt;https://software.intel.com/content/www/us/en/develop/documentation/intel-dpcpp-compatibility-tool-user-guide/top/diagnostics-reference.html&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems that the header&amp;nbsp;&lt;STRONG&gt;__clang_cuda_texture_intrinsics.h&amp;nbsp;&lt;/STRONG&gt;is missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Alvaro&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Product (installed with APT in Ubuntu 18.04):&lt;/P&gt;
&lt;P&gt;intel-oneapi-dpcpp-ct-2022.2.1 2022.2.1-14994&lt;/P&gt;
&lt;P&gt;intel-basekit 2022.3.1-17310&lt;/P&gt;
&lt;P&gt;cudatoolkit 11.6&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 07:53:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Migrating-to-SYCL/Migration-from-CUDA-to-SYCL-with-DPCT-Error-header-missing-clang/m-p/1437389#M221</guid>
      <dc:creator>alvarovm</dc:creator>
      <dc:date>2022-12-10T07:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Migration from CUDA to SYCL with DPCT. Error: header missing __clang_cuda_texture_intrinsics.h</title>
      <link>https://community.intel.com/t5/Migrating-to-SYCL/Migration-from-CUDA-to-SYCL-with-DPCT-Error-header-missing-clang/m-p/1437621#M222</link>
      <description>&lt;P&gt;I did a temporal fix downloading the header from here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/llvm/llvm-project/blob/main/clang/lib/Headers/__clang_cuda_texture_intrinsics.h" target="_blank" rel="noopener"&gt;https://github.com/llvm/llvm-project/blob/main/clang/lib/Headers/__clang_cuda_texture_intrinsics.h&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and copying the file to here: &lt;STRONG&gt;/opt/intel/oneapi/dpcpp-ct/2022.2.1/lib/clang/15.0.0/include/&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I got another error:&lt;/P&gt;
&lt;PRE&gt;In file included from&lt;BR /&gt;&lt;BR /&gt;/opt/intel/oneapi/dpcpp-ct/2022.2.1/lib/clang/15.0.0/include/__clang_cuda_runtime_wrapper.h:520:&lt;BR /&gt;/opt/intel/oneapi/dpcpp-ct/2022.2.1/lib/clang/15.0.0/include/__clang_dpct_math.h:27:7: error: 'modf' is missing exception specification 'noexcept'&lt;BR /&gt;float modf(float a, float *pb);&lt;BR /&gt;^&lt;BR /&gt;/usr/lib/llvm-14/include/c++/v1/math.h:994:46: note: previous declaration is here&lt;BR /&gt;inline _LIBCPP_INLINE_VISIBILITY float modf(float __lcpp_x, float* __lcpp_y) _NOEXCEPT {return ::modff(__lcpp_x, __lcpp_y);}&lt;BR /&gt;^&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems that the function&amp;nbsp;&lt;STRONG&gt;modf()&lt;/STRONG&gt;&amp;nbsp;is already in the&amp;nbsp;&lt;STRONG&gt;cmath&lt;/STRONG&gt; header in my clang++ installation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, in the file&amp;nbsp;&lt;STRONG&gt;__clang_dpct_math.h&amp;nbsp;&lt;/STRONG&gt;, I&amp;nbsp;commented the line&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;float modf(float a, float *pb);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now this is "working". Hope there is a permanent fix to this in the future.&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>Mon, 12 Dec 2022 06:53:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Migrating-to-SYCL/Migration-from-CUDA-to-SYCL-with-DPCT-Error-header-missing-clang/m-p/1437621#M222</guid>
      <dc:creator>alvarovm</dc:creator>
      <dc:date>2022-12-12T06:53:43Z</dc:date>
    </item>
    <item>
      <title>Re:Migration from CUDA to SYCL with DPCT. Error: header missing __clang_cuda_texture_intrinsics.h</title>
      <link>https://community.intel.com/t5/Migrating-to-SYCL/Migration-from-CUDA-to-SYCL-with-DPCT-Error-header-missing-clang/m-p/1437686#M223</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Thanks for reaching out to us. Glad to know that your issue is resolved. If you need any further assistance, please post a new question as this thread will no longer be monitored by Intel.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Shwetha Selma&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Dec 2022 10:14:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Migrating-to-SYCL/Migration-from-CUDA-to-SYCL-with-DPCT-Error-header-missing-clang/m-p/1437686#M223</guid>
      <dc:creator>ShwethaS_Intel</dc:creator>
      <dc:date>2022-12-12T10:14:09Z</dc:date>
    </item>
  </channel>
</rss>

