<?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:Numerical difference in dgesdd in 2024.0 MKL version in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Numerical-difference-in-dgesdd-in-2024-0-MKL-version/m-p/1692400#M37176</link>
    <description>&lt;P&gt;To select algorithms used in older mkl applications you should install the older version and link against the older library.&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 26 May 2025 07:11:36 GMT</pubDate>
    <dc:creator>Ruqiu_C_Intel</dc:creator>
    <dc:date>2025-05-26T07:11:36Z</dc:date>
    <item>
      <title>Numerical difference in dgesdd in 2024.0 MKL version</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Numerical-difference-in-dgesdd-in-2024-0-MKL-version/m-p/1689831#M37154</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm using&amp;nbsp;dgesdd for SVD calculations and recently was trying to upgrade the MKL version from&amp;nbsp;2019.2.190 to&amp;nbsp;2024.0&lt;/P&gt;&lt;P&gt;I observed that there is numerical difference in the calculation for&amp;nbsp;dgesdd in these versions.&lt;/P&gt;&lt;P&gt;e.g. if your input matrix A is,&lt;/P&gt;&lt;P&gt;7.52 -1.1 -7.95&lt;BR /&gt;-0.76 0.62 9.34&lt;BR /&gt;5.13 6.62 -5.66&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in&amp;nbsp;2019.2.190 we get,&lt;/P&gt;&lt;P&gt;u =&amp;nbsp;&lt;/P&gt;&lt;P&gt;-0.519406 -0.161058 0.839212&lt;BR /&gt;&lt;STRONG&gt;0.293901 0.888495 0.352418&lt;/STRONG&gt;&lt;BR /&gt;0.802396 -0.429694 0.414155&lt;/P&gt;&lt;P&gt;s =&lt;/P&gt;&lt;P&gt;15.6921 6.68311 4.52026&lt;/P&gt;&lt;P&gt;vt =&amp;nbsp;&lt;/P&gt;&lt;P&gt;-0.662788 &lt;STRONG&gt;-0.234761&lt;/STRONG&gt; 0.711055&lt;BR /&gt;0.518296 &lt;STRONG&gt;0.541528&lt;/STRONG&gt; 0.661904&lt;BR /&gt;-0.540445 &lt;STRONG&gt;0.807239&lt;/STRONG&gt; -0.237242&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While in 2024.0 we get,&lt;/P&gt;&lt;P&gt;u =&amp;nbsp;&lt;/P&gt;&lt;P&gt;-0.519406 -0.161058 0.839212&lt;BR /&gt;&lt;STRONG&gt;-0.293901 -0.888495 -0.352418&lt;/STRONG&gt;&lt;BR /&gt;0.802396 -0.429694 0.414155&lt;/P&gt;&lt;P&gt;s =&amp;nbsp;&lt;/P&gt;&lt;P&gt;15.6921 6.68311 4.52026&lt;/P&gt;&lt;P&gt;vt =&amp;nbsp;&lt;/P&gt;&lt;P&gt;-0.662788 &lt;STRONG&gt;0.234761&lt;/STRONG&gt; 0.711055&lt;BR /&gt;0.518296 &lt;STRONG&gt;-0.541528&lt;/STRONG&gt; 0.661904&lt;BR /&gt;-0.540445 &lt;STRONG&gt;-0.807239 &lt;/STRONG&gt;-0.237242&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The highlighted numbers have opposite signs in each version.&lt;BR /&gt;Could you just explain if this is real error? is there any change in these 2 versions?&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 13:38:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Numerical-difference-in-dgesdd-in-2024-0-MKL-version/m-p/1689831#M37154</guid>
      <dc:creator>Aniket_Mane</dc:creator>
      <dc:date>2025-05-14T13:38:15Z</dc:date>
    </item>
    <item>
      <title>Re:Numerical difference in dgesdd in 2024.0 MKL version</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Numerical-difference-in-dgesdd-in-2024-0-MKL-version/m-p/1690925#M37159</link>
      <description>&lt;P&gt;Hi Aniket,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for posting the issue.&lt;/P&gt;&lt;P&gt;Can you try the latest version(oneMKL 2025.1.0)? And provide out your platform information, such as CPU info, OS, etc, as well as a simple reproducer?&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>Mon, 19 May 2025 07:53:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Numerical-difference-in-dgesdd-in-2024-0-MKL-version/m-p/1690925#M37159</guid>
      <dc:creator>Ruqiu_C_Intel</dc:creator>
      <dc:date>2025-05-19T07:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical difference in dgesdd in 2024.0 MKL version</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Numerical-difference-in-dgesdd-in-2024-0-MKL-version/m-p/1691297#M37161</link>
      <description>&lt;P&gt;There seem to be a typo that u should be vt while vt should be u, otherwise A != u*s*vt.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SVD is not unique. Both results are numerically correct. They are just computed using different algorithms.&lt;/P&gt;
&lt;P&gt;The sign of the second column of u flips &amp;lt;=&amp;gt; u*diag([1 -1 1]), where diag([a b c])=[a 0 0; 0 b 0; 0 0 c]. The sign of the second row of vt flips &amp;lt;=&amp;gt; diag([1 -1 1])*vt. If we multiply them together, u*diag([1 -1 1])*s*diag([1 -1 1])*vt =&amp;nbsp;u* &lt;STRONG&gt;(diag([1 -1 1])*s*diag([1 -1 1]))&lt;/STRONG&gt; *vt = u * &lt;STRONG&gt;s&lt;/STRONG&gt; * vt in the case that s is a diagonal matrix. Therefore these two decompositions represent the same A matrix.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it is a concern, could you provide more details how the result of SVD is used?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Fengrui&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 18:21:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Numerical-difference-in-dgesdd-in-2024-0-MKL-version/m-p/1691297#M37161</guid>
      <dc:creator>Fengrui</dc:creator>
      <dc:date>2025-05-20T18:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Numerical difference in dgesdd in 2024.0 MKL version</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Numerical-difference-in-dgesdd-in-2024-0-MKL-version/m-p/1691793#M37165</link>
      <description>&lt;P&gt;Hi Fengrui,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response!&lt;/P&gt;&lt;P&gt;When you say they are computed using different algorithms, is there any way we can select the algorithm used by older mkl versions?&lt;/P&gt;&lt;P&gt;I'm using these in complex matrix operations and the final numbers are very different than the expected. so I believe this could be multiple dependent calculations leading to wrong final number.&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 11:05:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Numerical-difference-in-dgesdd-in-2024-0-MKL-version/m-p/1691793#M37165</guid>
      <dc:creator>Aniket_Mane</dc:creator>
      <dc:date>2025-05-22T11:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Numerical difference in dgesdd in 2024.0 MKL version</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Numerical-difference-in-dgesdd-in-2024-0-MKL-version/m-p/1691794#M37166</link>
      <description>&lt;P&gt;I'm checking newer versions. Currently having issues in building one.&lt;BR /&gt;Running on RH8, gcc13.2. I can create a simple program to give you the testcase.&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 11:06:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Numerical-difference-in-dgesdd-in-2024-0-MKL-version/m-p/1691794#M37166</guid>
      <dc:creator>Aniket_Mane</dc:creator>
      <dc:date>2025-05-22T11:06:27Z</dc:date>
    </item>
    <item>
      <title>Re:Numerical difference in dgesdd in 2024.0 MKL version</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Numerical-difference-in-dgesdd-in-2024-0-MKL-version/m-p/1692400#M37176</link>
      <description>&lt;P&gt;To select algorithms used in older mkl applications you should install the older version and link against the older library.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 May 2025 07:11:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Numerical-difference-in-dgesdd-in-2024-0-MKL-version/m-p/1692400#M37176</guid>
      <dc:creator>Ruqiu_C_Intel</dc:creator>
      <dc:date>2025-05-26T07:11:36Z</dc:date>
    </item>
  </channel>
</rss>

