<?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: Using a C++ like g++ to compile SYCL host code? in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Using-a-C-like-g-to-compile-SYCL-host-code/m-p/1640329#M4167</link>
    <description>&lt;P&gt;Since this is an Intel dpcpp/c++ compiler forum, we focus on investigating issues related to icx, but I'll leave your question here so others might be able to contribute their thoughts.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Oct 2024 20:24:42 GMT</pubDate>
    <dc:creator>Alex_Y_Intel</dc:creator>
    <dc:date>2024-10-30T20:24:42Z</dc:date>
    <item>
      <title>Using a C++ like g++ to compile SYCL host code?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Using-a-C-like-g-to-compile-SYCL-host-code/m-p/1638633#M4149</link>
      <description>&lt;P&gt;I would like to compile SYCL host code with g++ and SYCL device code with icpx. Reason being that g++ integrates better with my existing workflow. I compile some C++ code that only uses the host API as follows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;icpx -fsycl hostcode.cpp -o hostcode&lt;/LI-CODE&gt;&lt;P&gt;What would the equivalent g++ invocation be?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;g++ hostcode.cpp -I/some/path -L/some/path -fblah ... -o hostcode&lt;/LI-CODE&gt;&lt;P&gt;Some sources claim that this workflow should be possible, though they don't specify how to do it with g++: &lt;A href="https://github.com/intel/llvm/issues/12457" target="_blank"&gt;https://github.com/intel/llvm/issues/12457&lt;/A&gt; &lt;A href="https://github.com/intel/llvm/blob/sycl/sycl/doc/FAQ.md#q-how-are-dpc-compilation-phases-different-from-those-of-a-usual-c-compiler-can-i-customize-this-flow-for-my-applications" target="_blank"&gt;https://github.com/intel/llvm/blob/sycl/sycl/doc/FAQ.md#q-how-are-dpc-compilation-phases-different-from-those-of-a-usual-c-compiler-can-i-customize-this-flow-for-my-applications&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 09:45:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Using-a-C-like-g-to-compile-SYCL-host-code/m-p/1638633#M4149</guid>
      <dc:creator>Björne2</dc:creator>
      <dc:date>2024-10-22T09:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using a C++ like g++ to compile SYCL host code?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Using-a-C-like-g-to-compile-SYCL-host-code/m-p/1640329#M4167</link>
      <description>&lt;P&gt;Since this is an Intel dpcpp/c++ compiler forum, we focus on investigating issues related to icx, but I'll leave your question here so others might be able to contribute their thoughts.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 20:24:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Using-a-C-like-g-to-compile-SYCL-host-code/m-p/1640329#M4167</guid>
      <dc:creator>Alex_Y_Intel</dc:creator>
      <dc:date>2024-10-30T20:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using a C++ like g++ to compile SYCL host code?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Using-a-C-like-g-to-compile-SYCL-host-code/m-p/1640660#M4172</link>
      <description>I actually made it work with g++ and it wasn't so complicated. &lt;LI-EMOJI id="lia_winking-face" title=":winking_face:"&gt;&lt;/LI-EMOJI&gt; I just needed to compile with the right include paths and link with the right libraries. However, I could only create programs that only use the host api. What I would like is to use g++ for c++, another tool for compiling the kernels, and a third tool for linking them together.&lt;BR /&gt;&lt;BR /&gt;Tbh, having icpx doing "everything" doesn't work well for me since I'm targeting FPGAs and synthesizing takes hours. I don't want to wait hours when I just change the host code.</description>
      <pubDate>Fri, 01 Nov 2024 12:46:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Using-a-C-like-g-to-compile-SYCL-host-code/m-p/1640660#M4172</guid>
      <dc:creator>Björne2</dc:creator>
      <dc:date>2024-11-01T12:46:22Z</dc:date>
    </item>
  </channel>
</rss>

