<?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 Floating-point exception in dgeev in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Floating-point-exception-in-dgeev/m-p/1665868#M36933</link>
    <description>&lt;P&gt;We have noticed since MKL 2024 that dgeev raises an exception. Here is a simple reproducer, passing in the unit matrix:&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;program test_dgeev
implicit none
double precision, allocatable :: a(:,:), wreal(:), wimag(:), Ur(:,:), Ul(:,:), work(:)
integer i, info, lwork, n
n=3
allocate(a(n,n))
a(:,:) = 0d0
do i=1,n
  a(i,i)=1d0
end do
allocate(wreal(n))
allocate(wimag(n))
allocate(Ur(n,n))
allocate(Ul(n,n))
lwork=-1
allocate(work(1))
call dgeev('V','V',n,a,n,wreal,wimag,Ul,n,Ur,n,work,lwork,info)
lwork=int(work(1))
deallocate(work)
allocate(work(lwork))
call dgeev('V','V',n,a,n,wreal,wimag,Ul,n,Ur,n,work,lwork,info)
deallocate(a,wreal,wimag,Ur,Ul,work)
end program test_dgeev&lt;/LI-CODE&gt;&lt;P&gt;And this is the result:&lt;/P&gt;&lt;PRE&gt;&amp;gt; gfortran -ffpe-trap=zero -L/opt/intel/oneapi/mkl/latest/lib/intel64 -lmkl_gf_lp64 -lmkl_sequential -lmkl_core test.f90&lt;BR /&gt;&amp;gt; ./a.out&lt;BR /&gt;&lt;BR /&gt;Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation.&lt;BR /&gt;&lt;BR /&gt;Backtrace for this error:&lt;BR /&gt;#0 0x7fa332e0589a in ???&lt;BR /&gt;#1 0x7fa332e04935 in ???&lt;BR /&gt;#2 0x7fa332b0d97f in ???&lt;BR /&gt;#3 0x7fa330879f2f in ???&lt;BR /&gt;#4 0x7fa3336ff25b in ???&lt;BR /&gt;#5 0x7fa338a6210c in ???&lt;BR /&gt;#6 0x401757 in ???&lt;BR /&gt;#7 0x401916 in ???&lt;BR /&gt;#8 0x7fa332af6eeb in ???&lt;BR /&gt;#9 0x7fa332af6fb4 in ???&lt;BR /&gt;#10 0x400870 in _start&lt;BR /&gt;at ../sysdeps/x86_64/start.S:115&lt;BR /&gt;#11 0xffffffffffffffff in ???&lt;BR /&gt;Floating point exception (core dumped)&lt;/PRE&gt;&lt;P&gt;This did not occur with MKL 2023 and earlier versions. Is this a bug?&lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2025 14:35:09 GMT</pubDate>
    <dc:creator>AndyMay</dc:creator>
    <dc:date>2025-02-13T14:35:09Z</dc:date>
    <item>
      <title>Floating-point exception in dgeev</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Floating-point-exception-in-dgeev/m-p/1665868#M36933</link>
      <description>&lt;P&gt;We have noticed since MKL 2024 that dgeev raises an exception. Here is a simple reproducer, passing in the unit matrix:&lt;/P&gt;&lt;LI-CODE lang="fortran"&gt;program test_dgeev
implicit none
double precision, allocatable :: a(:,:), wreal(:), wimag(:), Ur(:,:), Ul(:,:), work(:)
integer i, info, lwork, n
n=3
allocate(a(n,n))
a(:,:) = 0d0
do i=1,n
  a(i,i)=1d0
end do
allocate(wreal(n))
allocate(wimag(n))
allocate(Ur(n,n))
allocate(Ul(n,n))
lwork=-1
allocate(work(1))
call dgeev('V','V',n,a,n,wreal,wimag,Ul,n,Ur,n,work,lwork,info)
lwork=int(work(1))
deallocate(work)
allocate(work(lwork))
call dgeev('V','V',n,a,n,wreal,wimag,Ul,n,Ur,n,work,lwork,info)
deallocate(a,wreal,wimag,Ur,Ul,work)
end program test_dgeev&lt;/LI-CODE&gt;&lt;P&gt;And this is the result:&lt;/P&gt;&lt;PRE&gt;&amp;gt; gfortran -ffpe-trap=zero -L/opt/intel/oneapi/mkl/latest/lib/intel64 -lmkl_gf_lp64 -lmkl_sequential -lmkl_core test.f90&lt;BR /&gt;&amp;gt; ./a.out&lt;BR /&gt;&lt;BR /&gt;Program received signal SIGFPE: Floating-point exception - erroneous arithmetic operation.&lt;BR /&gt;&lt;BR /&gt;Backtrace for this error:&lt;BR /&gt;#0 0x7fa332e0589a in ???&lt;BR /&gt;#1 0x7fa332e04935 in ???&lt;BR /&gt;#2 0x7fa332b0d97f in ???&lt;BR /&gt;#3 0x7fa330879f2f in ???&lt;BR /&gt;#4 0x7fa3336ff25b in ???&lt;BR /&gt;#5 0x7fa338a6210c in ???&lt;BR /&gt;#6 0x401757 in ???&lt;BR /&gt;#7 0x401916 in ???&lt;BR /&gt;#8 0x7fa332af6eeb in ???&lt;BR /&gt;#9 0x7fa332af6fb4 in ???&lt;BR /&gt;#10 0x400870 in _start&lt;BR /&gt;at ../sysdeps/x86_64/start.S:115&lt;BR /&gt;#11 0xffffffffffffffff in ???&lt;BR /&gt;Floating point exception (core dumped)&lt;/PRE&gt;&lt;P&gt;This did not occur with MKL 2023 and earlier versions. Is this a bug?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 14:35:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Floating-point-exception-in-dgeev/m-p/1665868#M36933</guid>
      <dc:creator>AndyMay</dc:creator>
      <dc:date>2025-02-13T14:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Floating-point exception in dgeev</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Floating-point-exception-in-dgeev/m-p/1666386#M36939</link>
      <description>&lt;P&gt;Yes, it is a known bug introduced since 2024.2. It has been fixed and the fix will be included in the upcoming 2025.1 release.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 21:36:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Floating-point-exception-in-dgeev/m-p/1666386#M36939</guid>
      <dc:creator>Fengrui</dc:creator>
      <dc:date>2025-02-14T21:36:16Z</dc:date>
    </item>
  </channel>
</rss>

