<?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: Compiler Bug: ICX crashes with -O2 with __bf16 in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compiler-Bug-ICX-crashes-with-O2-with-bf16/m-p/1586247#M3591</link>
    <description>&lt;P&gt;I confirm the issue has been fixed in oneAPI2024.1.0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 04 Apr 2024 12:02:38 GMT</pubDate>
    <dc:creator>crocix</dc:creator>
    <dc:date>2024-04-04T12:02:38Z</dc:date>
    <item>
      <title>Compiler Bug: ICX crashes with -O2 with __bf16</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compiler-Bug-ICX-crashes-with-O2-with-bf16/m-p/1583094#M3560</link>
      <description>&lt;P&gt;Compiling:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#include &amp;lt;stdlib.h&amp;gt;
#include &amp;lt;stdio.h&amp;gt;

#define M 4

__bf16 bf16test(__bf16* a){

    __bf16 r = a[0]*a[1] - a[1]*a[2];
    //__bf16 r = a[0]*a[1];
    

    return r;
}


int main()
{
    srandom(12345678);
    
    __bf16 ab[M];

    for (long i = 0; i&amp;lt;M; i++){
        ab[i] = (__bf16) (random()/((double) RAND_MAX));
    }

    __bf16 rb = bf16test(ab);
    printf("Value bf16:    %f\n", (double) rb);

    return 0;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;icx -O2 -march=sapphirerapids&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;makes the compiler (OneApi2024.0.0) crash with the error in the attached. You can use godbolt&amp;nbsp;&lt;A href="https://godbolt.org/" target="_blank"&gt;https://godbolt.org/&lt;/A&gt;&amp;nbsp;to reproduce it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 10:57:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compiler-Bug-ICX-crashes-with-O2-with-bf16/m-p/1583094#M3560</guid>
      <dc:creator>crocix</dc:creator>
      <dc:date>2024-03-25T10:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler Bug: ICX crashes with -O2 with __bf16</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compiler-Bug-ICX-crashes-with-O2-with-bf16/m-p/1586080#M3585</link>
      <description>&lt;P&gt;This issue has been escalated to our engineers and we'll work on it internally and come back with update when we reach the conclusion.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 00:44:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compiler-Bug-ICX-crashes-with-O2-with-bf16/m-p/1586080#M3585</guid>
      <dc:creator>Alex_Y_Intel</dc:creator>
      <dc:date>2024-04-04T00:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler Bug: ICX crashes with -O2 with __bf16</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compiler-Bug-ICX-crashes-with-O2-with-bf16/m-p/1586100#M3587</link>
      <description>&lt;P&gt;This is a known issue and has been addressed. I checked our internal compiler and confirmed it worked.&lt;/P&gt;
&lt;P&gt;$ icx -O2 -march=sapphirerapids t2.c -c&lt;BR /&gt;$&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 01:42:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compiler-Bug-ICX-crashes-with-O2-with-bf16/m-p/1586100#M3587</guid>
      <dc:creator>Viet_H_Intel</dc:creator>
      <dc:date>2024-04-04T01:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler Bug: ICX crashes with -O2 with __bf16</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compiler-Bug-ICX-crashes-with-O2-with-bf16/m-p/1586247#M3591</link>
      <description>&lt;P&gt;I confirm the issue has been fixed in oneAPI2024.1.0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 12:02:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Compiler-Bug-ICX-crashes-with-O2-with-bf16/m-p/1586247#M3591</guid>
      <dc:creator>crocix</dc:creator>
      <dc:date>2024-04-04T12:02:38Z</dc:date>
    </item>
  </channel>
</rss>

