<?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: Bug in MKL/Lapack routine DLAMC2 in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-in-MKL-Lapack-routine-DLAMC2/m-p/1511661#M34910</link>
    <description>&lt;P&gt;Hi Nagaraj,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your patience. The issue raised by you has been fixed in version 2023.2. If the issue persists with the new release, please start a new discussion thread in the community forum and we’d investigate it further. Please check the &lt;A href="https://www.intel.com/content/www/us/en/developer/articles/release-notes/onemkl-release-notes.html" target="_self"&gt;release notes&lt;/A&gt; for other features and bug fixes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below are the results captured at our end for ifort version 2021.10.0.&lt;/P&gt;
&lt;P&gt;base,it,irnd,&amp;nbsp;imin,imax:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2&amp;nbsp;&amp;nbsp;&amp;nbsp;53&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1&amp;nbsp;&amp;nbsp;-1021&amp;nbsp;&amp;nbsp;1024&lt;/P&gt;
&lt;P&gt;eps,rmin,rmax:&amp;nbsp;&amp;nbsp;1.110223024625E-16&amp;nbsp;2.225073858507-308&amp;nbsp;1.797693134862+308&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Shanmukh.SS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Aug 2023 09:44:56 GMT</pubDate>
    <dc:creator>ShanmukhS_Intel</dc:creator>
    <dc:date>2023-08-07T09:44:56Z</dc:date>
    <item>
      <title>Bug in MKL/Lapack routine DLAMC2</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-in-MKL-Lapack-routine-DLAMC2/m-p/1475112#M34440</link>
      <description>&lt;P&gt;The routine DLAMC2 is a routine in Lapack (now marked "deprecated", but still present and/or used in many codes that were developed with older versions of Lapack). This routine is present in MKL, and &lt;A href="https://www.intel.com/content/www/us/en/docs/onemkl/developer-reference-fortran/2023-1/lamc2.html" target="_self"&gt;documented&lt;/A&gt;. Some of the returned values are wrong with the current version (20230320) of MKL on WIndows 11 64 bit.&lt;/P&gt;
&lt;P&gt;Here is a very short reproducer:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="fortran"&gt;program tdlamc2
   implicit none
   integer beta, it, imin, imax, irnd
   double precision eps, rmin, rmax
   logical lrnd

   call dlamc2( beta, it, lrnd, eps, imin, rmin, imax, rmax )
   if( lrnd ) then
      irnd = 1
      eps = ( beta**( 1d0-it ) ) / 2
   else
      irnd = 0
      eps = beta**( 1d0-it )
   end if
   print 77, beta,it,irnd,imin,imax
77 format('base,it,irnd,  imin,imax: ',5I8)
   print 78,eps,rmin,rmax
78 format('eps,rmin,rmax: ',3ES20.12)
end program&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Compile and run:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ifort /Qmkl tdlamc2.f90
tdlamc2
base,it,irnd,  imin,imax:        0      53       1   32759    1024
eps,rmin,rmax:             Infinity  2.225073858507-308  1.797693134862+308&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The results for BASE, IMIN and EPS are wrong. The correct results:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;base,it,irnd,  imin,imax:        2      53       1   -1021    1024
eps,rmin,rmax:   1.110223024625E-16  2.225073858507-308  1.797693134862+308
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to work around the problem by using the source code for DLAMC2 ( &lt;A href="http://www.netlib.org/lapack/explore-html/d8/d32/dlamchf77_8f_source.html" target="_blank" rel="noopener"&gt;www.netlib.org/lapack/explore-html/d8/d32/dlamchf77_8f_source.html&lt;/A&gt; ), and built using the command&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ifort /O2 /Qmkl tdlamc2.f90 dlamch.f&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but the resulting EXE hangs when run. It runs and gives the correct results if the /Od (disable optimization) option is used, but that is not a good option for using in large programs that run long.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 00:41:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-in-MKL-Lapack-routine-DLAMC2/m-p/1475112#M34440</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2023-04-11T00:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in MKL/Lapack routine DLAMC2</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-in-MKL-Lapack-routine-DLAMC2/m-p/1475865#M34453</link>
      <description>&lt;P&gt;Hi Nagaraj,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for sharing the sample reproducer and other details. We could see the incorrect results being printed when compiling using "ifort /Qmkl tdlamc2.f90" and under other scenarios. Our engineering team is working on your issue internally. We will get back to you soon with an update.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Shanmukh.SS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 11:14:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-in-MKL-Lapack-routine-DLAMC2/m-p/1475865#M34453</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2023-06-28T11:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in MKL/Lapack routine DLAMC2</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-in-MKL-Lapack-routine-DLAMC2/m-p/1511661#M34910</link>
      <description>&lt;P&gt;Hi Nagaraj,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your patience. The issue raised by you has been fixed in version 2023.2. If the issue persists with the new release, please start a new discussion thread in the community forum and we’d investigate it further. Please check the &lt;A href="https://www.intel.com/content/www/us/en/developer/articles/release-notes/onemkl-release-notes.html" target="_self"&gt;release notes&lt;/A&gt; for other features and bug fixes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below are the results captured at our end for ifort version 2021.10.0.&lt;/P&gt;
&lt;P&gt;base,it,irnd,&amp;nbsp;imin,imax:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2&amp;nbsp;&amp;nbsp;&amp;nbsp;53&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1&amp;nbsp;&amp;nbsp;-1021&amp;nbsp;&amp;nbsp;1024&lt;/P&gt;
&lt;P&gt;eps,rmin,rmax:&amp;nbsp;&amp;nbsp;1.110223024625E-16&amp;nbsp;2.225073858507-308&amp;nbsp;1.797693134862+308&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Shanmukh.SS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 09:44:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-in-MKL-Lapack-routine-DLAMC2/m-p/1511661#M34910</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2023-08-07T09:44:56Z</dc:date>
    </item>
    <item>
      <title>Re:Bug in MKL/Lapack routine DLAMC2</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-in-MKL-Lapack-routine-DLAMC2/m-p/1512327#M34924</link>
      <description>&lt;P&gt;Hi Nagaraj,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It’s great to know that the issue has been resolved, in case you run into any other issues please feel free to create a new thread.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Aug 2023 04:25:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-in-MKL-Lapack-routine-DLAMC2/m-p/1512327#M34924</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2023-08-09T04:25:26Z</dc:date>
    </item>
  </channel>
</rss>

