<?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 isfinite() call is ambiguous on Windows DPC++ in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/isfinite-call-is-ambiguous-on-Windows-DPC/m-p/1371680#M1992</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using Intel oneAPI 2022.1.3 (w_BaseKit_p_2022.1.3.210_offline) with VisualStudio 2022 17.0.7 LTS on Windows 10 21H1 Pro x64 English.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I generated &lt;A href="https://github.com/oneapi-src/oneAPI-samples/tree/2022.1.0/DirectProgramming/DPC%2B%2B/DenseLinearAlgebra/vector-add/src" target="_blank" rel="noopener"&gt;vector-add sample&lt;/A&gt; &amp;amp; it compiles successfully.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I added that 2 rows for getting finite detection on constant vector in file &lt;EM&gt;&lt;STRONG&gt;vector-add-buffers.cpp&lt;/STRONG&gt;&lt;/EM&gt;:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;vec&amp;lt;float, 3&amp;gt; test_finite(0.1f, 0.2f, 0.3f);
auto is_finite_vec = isfinite(test_finite);&lt;/LI-CODE&gt;
&lt;P&gt;That code was added in &lt;EM&gt;h.parallel_for&lt;/EM&gt; section (lines 85-88 in file vector-add-buffers.cpp).&lt;/P&gt;
&lt;P&gt;Nothing else was changed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But in compiling time I received an error: &lt;EM&gt;&lt;STRONG&gt;call to 'isfinite' is ambiguous&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example project &amp;amp; full logs were attached (from VisualStudio command-line &amp;amp; from usual Windows CMD).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I fix that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With regards,&lt;BR /&gt;Alex&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. Linux DPC++ compiler (Ubuntu 20.04) works correctly &amp;amp; successfully compiled that code. Compiler's version:&lt;/P&gt;
&lt;LI-CODE lang="bash"&gt;$ dpcpp --version
Intel(R) oneAPI DPC++/C++ Compiler 2022.0.0 (2022.0.0.20211123)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/oneapi/compiler/2022.0.2/linux/bin-llvm&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Mar 2022 10:34:11 GMT</pubDate>
    <dc:creator>AJIOB</dc:creator>
    <dc:date>2022-03-24T10:34:11Z</dc:date>
    <item>
      <title>isfinite() call is ambiguous on Windows DPC++</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/isfinite-call-is-ambiguous-on-Windows-DPC/m-p/1371680#M1992</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using Intel oneAPI 2022.1.3 (w_BaseKit_p_2022.1.3.210_offline) with VisualStudio 2022 17.0.7 LTS on Windows 10 21H1 Pro x64 English.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I generated &lt;A href="https://github.com/oneapi-src/oneAPI-samples/tree/2022.1.0/DirectProgramming/DPC%2B%2B/DenseLinearAlgebra/vector-add/src" target="_blank" rel="noopener"&gt;vector-add sample&lt;/A&gt; &amp;amp; it compiles successfully.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I added that 2 rows for getting finite detection on constant vector in file &lt;EM&gt;&lt;STRONG&gt;vector-add-buffers.cpp&lt;/STRONG&gt;&lt;/EM&gt;:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;vec&amp;lt;float, 3&amp;gt; test_finite(0.1f, 0.2f, 0.3f);
auto is_finite_vec = isfinite(test_finite);&lt;/LI-CODE&gt;
&lt;P&gt;That code was added in &lt;EM&gt;h.parallel_for&lt;/EM&gt; section (lines 85-88 in file vector-add-buffers.cpp).&lt;/P&gt;
&lt;P&gt;Nothing else was changed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But in compiling time I received an error: &lt;EM&gt;&lt;STRONG&gt;call to 'isfinite' is ambiguous&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example project &amp;amp; full logs were attached (from VisualStudio command-line &amp;amp; from usual Windows CMD).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I fix that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With regards,&lt;BR /&gt;Alex&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. Linux DPC++ compiler (Ubuntu 20.04) works correctly &amp;amp; successfully compiled that code. Compiler's version:&lt;/P&gt;
&lt;LI-CODE lang="bash"&gt;$ dpcpp --version
Intel(R) oneAPI DPC++/C++ Compiler 2022.0.0 (2022.0.0.20211123)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/oneapi/compiler/2022.0.2/linux/bin-llvm&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 10:34:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/isfinite-call-is-ambiguous-on-Windows-DPC/m-p/1371680#M1992</guid>
      <dc:creator>AJIOB</dc:creator>
      <dc:date>2022-03-24T10:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: isfinite() call is ambiguous on Windows DPC++</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/isfinite-call-is-ambiguous-on-Windows-DPC/m-p/1371967#M1999</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please try changing the line&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;vec&amp;lt;int, 3&amp;gt; is_finite_vec = isfinite(test_finite);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;vec&amp;lt;int, 3&amp;gt; is_finite_vec = sycl::isfinite(test_finite);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so that isfinite will de defined from sycl scope.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope the provided information helps in resolving your issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Noorjahan.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 07:53:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/isfinite-call-is-ambiguous-on-Windows-DPC/m-p/1371967#M1999</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2022-03-25T07:53:34Z</dc:date>
    </item>
    <item>
      <title>Re:isfinite() call is ambiguous on Windows DPC++</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/isfinite-call-is-ambiguous-on-Windows-DPC/m-p/1371985#M2000</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for accepting our solution&lt;/P&gt;&lt;P&gt;As this issue has been resolved, we will no longer respond to this thread. 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;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Noorjahan&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Mar 2022 09:19:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/isfinite-call-is-ambiguous-on-Windows-DPC/m-p/1371985#M2000</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2022-03-25T09:19:00Z</dc:date>
    </item>
  </channel>
</rss>

