<?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: Lots of errors when compiling from command line from sycl.hpp in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Lots-of-errors-when-compiling-from-command-line-from-sycl-hpp/m-p/1586498#M3601</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/349774"&gt;@matthias11&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, have you installed the oneAPI Base Toolkit and integrated it properly with the Visual Studio?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second, have you gotten a command prompt like something called "Intel oneAPI command prompt for Intel 64 for Visual Studio 2022?"&lt;/P&gt;
&lt;P&gt;Third, can you try icx -fsycl &lt;SPAN&gt;vector_add.cpp -o vector_add.exe?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If it still fails, please show us what your vector_add.cpp is so we can do more investigation.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Apr 2024 23:51:26 GMT</pubDate>
    <dc:creator>Alex_Y_Intel</dc:creator>
    <dc:date>2024-04-04T23:51:26Z</dc:date>
    <item>
      <title>Lots of errors when compiling from command line from sycl.hpp</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Lots-of-errors-when-compiling-from-command-line-from-sycl-hpp/m-p/1585493#M3572</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Operating system : Windows 10&lt;/P&gt;&lt;P&gt;OneAPI 2024.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to compile a simple vector addition example from command line. There are lots of error messages related to sycl.hpp. I don't know what is missing. Can you please help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;icpx vector_add.cpp -o vector_add.exe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using icx instead is not really different.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are some of the error messages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;icpx vector_add.cpp -o vector_add.exe&lt;BR /&gt;In file included from C:\SYCL_course\vector_add.cpp:1:&lt;BR /&gt;In file included from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\include\sycl\sycl.hpp:11:&lt;BR /&gt;In file included from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\include\sycl\accessor.hpp:14:&lt;BR /&gt;C:\Program Files (x86)\Intel\oneAPI\compiler\latest\include\sycl\atomic.hpp:11:10: error: 'CL/__spirv/spirv_types.hpp'&lt;BR /&gt;file not found with &amp;lt;angled&amp;gt; include; use "quotes" instead&lt;BR /&gt;11 | #include &amp;lt;CL/__spirv/spirv_types.hpp&amp;gt; // for Scope, MemorySemanticsMask&lt;BR /&gt;| ^&lt;BR /&gt;In file included from C:\SYCL_course\vector_add.cpp:1:&lt;BR /&gt;In file included from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\include\sycl\sycl.hpp:11:&lt;BR /&gt;In file included from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\include\sycl\accessor.hpp:14:&lt;BR /&gt;In file included from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\include\sycl\atomic.hpp:14:&lt;BR /&gt;C:\Program Files (x86)\Intel\oneAPI\compiler\latest\include\sycl\detail\helpers.hpp:24:10: error:&lt;BR /&gt;'CL/__spirv/spirv_types.hpp' file not found with &amp;lt;angled&amp;gt; include; use "quotes" instead&lt;BR /&gt;24 | #include &amp;lt;CL/__spirv/spirv_types.hpp&amp;gt; // for MemorySemanticsMask&lt;BR /&gt;| ^&lt;BR /&gt;In file included from C:\SYCL_course\vector_add.cpp:1:&lt;BR /&gt;In file included from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\include\sycl\sycl.hpp:11:&lt;BR /&gt;In file included from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\include\sycl\accessor.hpp:14:&lt;BR /&gt;In file included from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\include\sycl\atomic.hpp:16:&lt;BR /&gt;C:\Program Files (x86)\Intel\oneAPI\compiler\latest\include\sycl\multi_ptr.hpp:11:10: error: 'CL/__spirv/spirv_ops.hpp'&lt;BR /&gt;file not found with &amp;lt;angled&amp;gt; include; use "quotes" instead&lt;BR /&gt;11 | #include &amp;lt;CL/__spirv/spirv_ops.hpp&amp;gt; // for __spirv_ocl_prefetch&lt;BR /&gt;| ^&lt;BR /&gt;In file included from C:\SYCL_course\vector_add.cpp:1:&lt;BR /&gt;In file included from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\include\sycl\sycl.hpp:11:&lt;BR /&gt;In file included from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\include\sycl\accessor.hpp:14:&lt;BR /&gt;In file included from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\include\sycl\atomic.hpp:16:&lt;BR /&gt;In file included from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\include\sycl\multi_ptr.hpp:11:&lt;BR /&gt;C:\Program Files (x86)\Intel\oneAPI\compiler\latest\include\sycl\CL\__spirv\spirv_ops.hpp:24:10: error:&lt;BR /&gt;'CL/__spirv/spirv_types.hpp' file not found with &amp;lt;angled&amp;gt; include; use "quotes" instead&lt;BR /&gt;24 | #include &amp;lt;CL/__spirv/spirv_types.hpp&amp;gt; // for Scope, __ocl_event_t&lt;BR /&gt;| ^&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 11:35:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Lots-of-errors-when-compiling-from-command-line-from-sycl-hpp/m-p/1585493#M3572</guid>
      <dc:creator>matthias11</dc:creator>
      <dc:date>2024-04-02T11:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Lots of errors when compiling from command line from sycl.hpp</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Lots-of-errors-when-compiling-from-command-line-from-sycl-hpp/m-p/1586498#M3601</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/349774"&gt;@matthias11&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, have you installed the oneAPI Base Toolkit and integrated it properly with the Visual Studio?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second, have you gotten a command prompt like something called "Intel oneAPI command prompt for Intel 64 for Visual Studio 2022?"&lt;/P&gt;
&lt;P&gt;Third, can you try icx -fsycl &lt;SPAN&gt;vector_add.cpp -o vector_add.exe?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If it still fails, please show us what your vector_add.cpp is so we can do more investigation.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 23:51:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Lots-of-errors-when-compiling-from-command-line-from-sycl-hpp/m-p/1586498#M3601</guid>
      <dc:creator>Alex_Y_Intel</dc:creator>
      <dc:date>2024-04-04T23:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Lots of errors when compiling from command line from sycl.hpp</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Lots-of-errors-when-compiling-from-command-line-from-sycl-hpp/m-p/1586646#M3607</link>
      <description>&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes, I've done all of this. It compiles now. I had forgotten the -fsycl.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks and best wishes.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 07:54:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Lots-of-errors-when-compiling-from-command-line-from-sycl-hpp/m-p/1586646#M3607</guid>
      <dc:creator>matthias11</dc:creator>
      <dc:date>2024-04-05T07:54:25Z</dc:date>
    </item>
  </channel>
</rss>

