<?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: Support for bessel functions inside a SYCL kernel in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Support-for-bessel-functions-inside-a-SYCL-kernel/m-p/1633219#M4106</link>
    <description>&lt;P&gt;For your vector-add-buffers.cpp code, only "&lt;SPAN&gt;float f3 = j0f(1.0f)" can work, but the proper usage is "&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;float f3 = ext::intel::math::j0(1.0f);" and you need to include "#include &amp;lt;sycl/ext/intel/math.hpp&amp;gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2024 00:09:23 GMT</pubDate>
    <dc:creator>Alex_Y_Intel</dc:creator>
    <dc:date>2024-09-25T00:09:23Z</dc:date>
    <item>
      <title>Support for bessel functions inside a SYCL kernel</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Support-for-bessel-functions-inside-a-SYCL-kernel/m-p/1633123#M4104</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I am trying to test some SYCL kernels in oneAPI DPC++ that have Bessel&amp;nbsp; function calls inside the&amp;nbsp;parallel_for loop of the kernel.&lt;/P&gt;&lt;P&gt;If I use either Boost or the Standard library, or the Intel mathimf.h library as shown below, I get compile time errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; float f1 = boost::math::cyl_bessel_j(0.0f, 1.0f);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; float f2 = std::cyl_bessel_j(0.0f, 1.0f);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; float f3 = j0f(1.0f);&lt;/P&gt;&lt;P&gt;Is there support for Bessel functions in SYCL kernels.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The source file is a modification of&amp;nbsp;&lt;SPAN class=""&gt;vector-add-buffers.cpp in the samples, and the compiler output is attached in errors.txt.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;RCB&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 15:09:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Support-for-bessel-functions-inside-a-SYCL-kernel/m-p/1633123#M4104</guid>
      <dc:creator>RCB1</dc:creator>
      <dc:date>2024-09-24T15:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Support for bessel functions inside a SYCL kernel</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Support-for-bessel-functions-inside-a-SYCL-kernel/m-p/1633219#M4106</link>
      <description>&lt;P&gt;For your vector-add-buffers.cpp code, only "&lt;SPAN&gt;float f3 = j0f(1.0f)" can work, but the proper usage is "&lt;SPAN class="ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;float f3 = ext::intel::math::j0(1.0f);" and you need to include "#include &amp;lt;sycl/ext/intel/math.hpp&amp;gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 00:09:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Support-for-bessel-functions-inside-a-SYCL-kernel/m-p/1633219#M4106</guid>
      <dc:creator>Alex_Y_Intel</dc:creator>
      <dc:date>2024-09-25T00:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Support for bessel functions inside a SYCL kernel</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Support-for-bessel-functions-inside-a-SYCL-kernel/m-p/1633279#M4107</link>
      <description>&lt;P&gt;Thank you Alex much appreciated - the sycl::&lt;SPAN&gt;ext::intel::math::j0(1.0f) works for me.&amp;nbsp; Incidentally is it out of the question that the Boost or the STL Bessel functions may work at some point as there is some additional functionality that I am interested in those libraries?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 06:34:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Support-for-bessel-functions-inside-a-SYCL-kernel/m-p/1633279#M4107</guid>
      <dc:creator>RCB1</dc:creator>
      <dc:date>2024-09-25T06:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Support for bessel functions inside a SYCL kernel</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Support-for-bessel-functions-inside-a-SYCL-kernel/m-p/1633482#M4108</link>
      <description>&lt;P&gt;STL Bessel functions only work for host code but not SYCL kernels. We might file Boost and STL functions for feature requests if we get enough inquiries.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 23:50:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Support-for-bessel-functions-inside-a-SYCL-kernel/m-p/1633482#M4108</guid>
      <dc:creator>Alex_Y_Intel</dc:creator>
      <dc:date>2024-09-25T23:50:25Z</dc:date>
    </item>
  </channel>
</rss>

