<?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 Bug report: floating divide by zero error in dgeev and possibly also others in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-report-floating-divide-by-zero-error-in-dgeev-and-possibly/m-p/1688647#M37134</link>
    <description>&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;I&amp;nbsp;&lt;/SPAN&gt;am using the OneAPI 2025.0 and 2015.1 HPC bundles to compile the following Fortran code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;solv.f:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; program main&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; implicit none&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; integer(kind=4) :: info,lwork,i&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; real(kind=8), dimension(12) :: work&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; real(kind=8), dimension(3) :: er,ei&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; real(kind=8), dimension(3,3) :: mat,vl,vvr&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; lwork=12&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; mat=0.d0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; do i=1,3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mat(i,i)=1.d0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; enddo&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; call dgeev('N','V',3,mat,3,er,ei,vl,3,vvr,3,work,12,info)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; end program main&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;My Makefile is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;solv:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ifx -O0 -g -fpe0 -gdwarf-2 -c solv.f&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ifx -O0 -g -fpe0 -gdwarf-2 -o solv solv.o -lmkl_lapack95_lp64 -lmkl_intel_lp64 -lmkl_core -lmkl_sequential -lpthread&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;clean:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rm -f solv solv.o&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Running the program produces 'floating divide by zero' error. The program runs well if compiled by OneAPI 2024.2, or gfortran, or other Intel compiler versions dated 2020,2018, etc. Also, the error does not show up if the code is compiled by other options like "-O2".&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Similar error is also found for zhegvx (I do not have a testing program to reproduce it). The dependencies on the versions of the Intel compilers &amp;amp; MKL libraries, as well as the compiler options, are all the same as dgeev.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I am using Xubuntu 22.04 operating system.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I would be grateful if you can look into it. Thank you very much.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Dr. Lin-Hui Ye&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Peking University.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 May 2025 23:57:36 GMT</pubDate>
    <dc:creator>yelh2015</dc:creator>
    <dc:date>2025-05-08T23:57:36Z</dc:date>
    <item>
      <title>Bug report: floating divide by zero error in dgeev and possibly also others</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-report-floating-divide-by-zero-error-in-dgeev-and-possibly/m-p/1688647#M37134</link>
      <description>&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;I&amp;nbsp;&lt;/SPAN&gt;am using the OneAPI 2025.0 and 2015.1 HPC bundles to compile the following Fortran code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;solv.f:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; program main&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; implicit none&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; integer(kind=4) :: info,lwork,i&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; real(kind=8), dimension(12) :: work&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; real(kind=8), dimension(3) :: er,ei&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; real(kind=8), dimension(3,3) :: mat,vl,vvr&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; lwork=12&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; mat=0.d0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; do i=1,3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mat(i,i)=1.d0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; enddo&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; call dgeev('N','V',3,mat,3,er,ei,vl,3,vvr,3,work,12,info)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; end program main&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;My Makefile is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;solv:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ifx -O0 -g -fpe0 -gdwarf-2 -c solv.f&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ifx -O0 -g -fpe0 -gdwarf-2 -o solv solv.o -lmkl_lapack95_lp64 -lmkl_intel_lp64 -lmkl_core -lmkl_sequential -lpthread&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;clean:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rm -f solv solv.o&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Running the program produces 'floating divide by zero' error. The program runs well if compiled by OneAPI 2024.2, or gfortran, or other Intel compiler versions dated 2020,2018, etc. Also, the error does not show up if the code is compiled by other options like "-O2".&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Similar error is also found for zhegvx (I do not have a testing program to reproduce it). The dependencies on the versions of the Intel compilers &amp;amp; MKL libraries, as well as the compiler options, are all the same as dgeev.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I am using Xubuntu 22.04 operating system.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I would be grateful if you can look into it. Thank you very much.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Dr. Lin-Hui Ye&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Peking University.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 23:57:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-report-floating-divide-by-zero-error-in-dgeev-and-possibly/m-p/1688647#M37134</guid>
      <dc:creator>yelh2015</dc:creator>
      <dc:date>2025-05-08T23:57:36Z</dc:date>
    </item>
    <item>
      <title>Re:Bug report: floating divide by zero error in dgeev and possibly also others</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-report-floating-divide-by-zero-error-in-dgeev-and-possibly/m-p/1690341#M37157</link>
      <description>&lt;P&gt;Hello Dr. Lin-Hui Ye,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for posting your issue.&lt;/P&gt;&lt;P&gt;Unfortunately, we didn't reproduce the issue with IFX 2025.1.1&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;rcao8@pvc01:~/issues/mkl$ ifx -O0 -g -fpe0 -gdwarf-2 -c solv.f&lt;/P&gt;&lt;P&gt;rcao8@pvc01:~/issues/mkl$ ifx -O0 -g -fpe0 -gdwarf-2 -o solv solv.o -lmkl_lapack95_lp64 -lmkl_intel_lp64 -lmkl_core -lmkl_sequential -lpthread&lt;/P&gt;&lt;P&gt;rcao8@pvc01:~/issues/mkl$ ./solv&lt;/P&gt;&lt;P&gt;rcao8@pvc01:~/issues/mkl$ &lt;/P&gt;&lt;P&gt;rcao8@pvc01:~/issues/mkl$ ifx -v&lt;/P&gt;&lt;P&gt;ifx version 2025.1.1&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can you try again with  ifx 2025.1.1?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ruqiu&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 May 2025 06:59:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-report-floating-divide-by-zero-error-in-dgeev-and-possibly/m-p/1690341#M37157</guid>
      <dc:creator>Ruqiu_C_Intel</dc:creator>
      <dc:date>2025-05-16T06:59:25Z</dc:date>
    </item>
    <item>
      <title>Re:Bug report: floating divide by zero error in dgeev and possibly also others</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-report-floating-divide-by-zero-error-in-dgeev-and-possibly/m-p/1691719#M37163</link>
      <description>&lt;P&gt;Thank you again for posting the issue.&lt;/P&gt;&lt;P&gt;We can run out error with oneMKL 2025.0 + ifx 2025.1.1. But it works well with oneMKL 2025.1 +  ifx 2025.1.1. Please update to oneMKL 2025.1. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 May 2025 06:15:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-report-floating-divide-by-zero-error-in-dgeev-and-possibly/m-p/1691719#M37163</guid>
      <dc:creator>Ruqiu_C_Intel</dc:creator>
      <dc:date>2025-05-22T06:15:28Z</dc:date>
    </item>
  </channel>
</rss>

