<?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 Unable to compile sample code in VS2019 using Intel C++ 2023 compiler in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-compile-sample-code-in-VS2019-using-Intel-C-2023/m-p/1454830#M2781</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am attempting to compile and run the sample program provided at&amp;nbsp;&lt;A href="https://oneapi-src.github.io/DPCPP_Reference/model/sample-program.html" target="_blank" rel="noopener"&gt;https://oneapi-src.github.io/DPCPP_Reference/model/sample-program.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I encounter multiple issues with this code.&lt;/P&gt;
&lt;P&gt;Firstly, the line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="c1"&gt;#include &amp;lt;CL/sycl.hpp&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;gives a compile error that the header file is not known. It had to be changed to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="c1"&gt;#include &amp;lt;sycl/sycl.hpp&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Subsequently, attempting to compile the code results in multiple errors. A common error seems to be in "accessor.hpp" file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;#include &amp;lt;CL/__spirv/spirv_types.hpp&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reported error is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error 'CL/__spirv/spirv_types.hpp' file not found with &amp;lt;angled&amp;gt; include; use "quotes" instead windows C:\Program Files (x86)\Intel\oneAPI\compiler\2023.0.0\windows\include\sycl\accessor.hpp(11,10): 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to fix this compile/build error? Please let me know if any additional information is needed to get the code up and running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Feb 2023 07:01:53 GMT</pubDate>
    <dc:creator>TryerGit</dc:creator>
    <dc:date>2023-02-09T07:01:53Z</dc:date>
    <item>
      <title>Unable to compile sample code in VS2019 using Intel C++ 2023 compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-compile-sample-code-in-VS2019-using-Intel-C-2023/m-p/1454830#M2781</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am attempting to compile and run the sample program provided at&amp;nbsp;&lt;A href="https://oneapi-src.github.io/DPCPP_Reference/model/sample-program.html" target="_blank" rel="noopener"&gt;https://oneapi-src.github.io/DPCPP_Reference/model/sample-program.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I encounter multiple issues with this code.&lt;/P&gt;
&lt;P&gt;Firstly, the line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="c1"&gt;#include &amp;lt;CL/sycl.hpp&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;gives a compile error that the header file is not known. It had to be changed to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="c1"&gt;#include &amp;lt;sycl/sycl.hpp&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Subsequently, attempting to compile the code results in multiple errors. A common error seems to be in "accessor.hpp" file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;#include &amp;lt;CL/__spirv/spirv_types.hpp&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reported error is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error 'CL/__spirv/spirv_types.hpp' file not found with &amp;lt;angled&amp;gt; include; use "quotes" instead windows C:\Program Files (x86)\Intel\oneAPI\compiler\2023.0.0\windows\include\sycl\accessor.hpp(11,10): 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to fix this compile/build error? Please let me know if any additional information is needed to get the code up and running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 07:01:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-compile-sample-code-in-VS2019-using-Intel-C-2023/m-p/1454830#M2781</guid>
      <dc:creator>TryerGit</dc:creator>
      <dc:date>2023-02-09T07:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to compile sample code in VS2019 using Intel C++ 2023 compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-compile-sample-code-in-VS2019-using-Intel-C-2023/m-p/1454853#M2782</link>
      <description>&lt;P&gt;I added&amp;nbsp;C:\Program Files (x86)\Intel\oneAPI\compiler\2023.0.0\windows\include\sycl to "Additional Include directories" and the above problems go away. However, now, the following error is obtained:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error static assertion failed due to requirement '!std::is_same&amp;lt;sycl::detail::auto_name, sycl::detail::auto_name&amp;gt;::value': No kernel name provided without -fsycl-unnamed-lambda enabled! windows C:\Program Files (x86)\Intel\oneAPI\compiler\2023.0.0\windows\include\sycl\kernel.hpp(44,3): 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please point me to a reference where a sample compilation/build example is provided?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 07:53:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-compile-sample-code-in-VS2019-using-Intel-C-2023/m-p/1454853#M2782</guid>
      <dc:creator>TryerGit</dc:creator>
      <dc:date>2023-02-09T07:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to compile sample code in VS2019 using Intel C++ 2023 compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-compile-sample-code-in-VS2019-using-Intel-C-2023/m-p/1454889#M2785</link>
      <description>&lt;P&gt;I was able to solve the problem. It was needed of me to set /fsycl in C/C++ -&amp;gt; DPC++ tab of Visual&amp;nbsp;Studio project properties.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 10:33:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-compile-sample-code-in-VS2019-using-Intel-C-2023/m-p/1454889#M2785</guid>
      <dc:creator>TryerGit</dc:creator>
      <dc:date>2023-02-09T10:33:43Z</dc:date>
    </item>
    <item>
      <title>Re:Unable to compile sample code in VS2019 using Intel C++ 2023 compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-compile-sample-code-in-VS2019-using-Intel-C-2023/m-p/1455210#M2791</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Glad to know that your issue is resolved. &lt;/P&gt;&lt;P&gt;Thanks for sharing the solution with us. 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;Varsha&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Feb 2023 06:43:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-compile-sample-code-in-VS2019-using-Intel-C-2023/m-p/1455210#M2791</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2023-02-10T06:43:54Z</dc:date>
    </item>
  </channel>
</rss>

