<?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:Single-precision PARDISO gives wrong results! in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Single-precision-PARDISO-gives-wrong-results/m-p/1362407#M32767</link>
    <description>&lt;P&gt;Thanks for the update.&lt;/P&gt;&lt;P&gt;The issue(thread) is closing and we will no longer respond to this thread.&amp;nbsp;If you require additional assistance from Intel, please start a new thread.&amp;nbsp;Any further interaction in this thread will be considered community only.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 22 Feb 2022 04:13:20 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2022-02-22T04:13:20Z</dc:date>
    <item>
      <title>Single-precision PARDISO gives wrong results!</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Single-precision-PARDISO-gives-wrong-results/m-p/1361521#M32758</link>
      <description>&lt;P&gt;Hi everyone.&lt;/P&gt;
&lt;P&gt;As a very simple example, I have a 2x2 matrix equation with a diagonal coefficient matrix.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Fortran wrapper of PARDISO is used for both single and double precision versions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The difference between the double-precision and&amp;nbsp;single-precision subroutine is minimal. Except for the number formats and the value of iparam(28), everything else is the same.&lt;/P&gt;
&lt;P&gt;The double-precision subroutine gives correct result but the result of the single-version subroutine is basically meaningless.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have never used the single-precision version of PARDISO, so I am not sure of my settings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you please point at what I may be missing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The subroutines and the relevant outputs are attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hassan Ebrahimi&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 06:32:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Single-precision-PARDISO-gives-wrong-results/m-p/1361521#M32758</guid>
      <dc:creator>Hassan-Ebrahimi</dc:creator>
      <dc:date>2022-02-18T06:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Single-precision PARDISO gives wrong results!</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Single-precision-PARDISO-gives-wrong-results/m-p/1361528#M32759</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hassan,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Which version of MKL did you use with this case?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 06:42:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Single-precision-PARDISO-gives-wrong-results/m-p/1361528#M32759</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2022-02-18T06:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Single-precision PARDISO gives wrong results!</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Single-precision-PARDISO-gives-wrong-results/m-p/1361530#M32760</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The mkl version is:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Intel(R) Math Kernel Library Version 2017.0.4 Product Build 20170811 for Intel(R) 64 architecture applications&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 06:49:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Single-precision-PARDISO-gives-wrong-results/m-p/1361530#M32760</guid>
      <dc:creator>Hassan-Ebrahimi</dc:creator>
      <dc:date>2022-02-18T06:49:15Z</dc:date>
    </item>
    <item>
      <title>Re:Single-precision PARDISO gives wrong results!</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Single-precision-PARDISO-gives-wrong-results/m-p/1362161#M32762</link>
      <description>&lt;P&gt;I suggest you try the current version of MKL ( 2022) as a similar problem has been fixed in one of the versions in the past.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Feb 2022 09:09:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Single-precision-PARDISO-gives-wrong-results/m-p/1362161#M32762</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2022-02-21T09:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Single-precision PARDISO gives wrong results!</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Single-precision-PARDISO-gives-wrong-results/m-p/1362392#M32766</link>
      <description>&lt;P&gt;I installed the 2022 version and it still gave the same wrong result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However the issue was solved by setting iparam(1) =1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I post my&amp;nbsp; single example here for those who may face the same issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;subroutine pardiso_single()&lt;/P&gt;
&lt;P&gt;INTEGER*8 pt(64)&lt;BR /&gt;INTEGER maxfct, mnum, mtype, phase, neq, nrhs, error, msglvl&lt;BR /&gt;INTEGER iparm(64)&lt;BR /&gt;INTEGER ia(2)&lt;BR /&gt;INTEGER ja(3)&lt;BR /&gt;real *4 a(2)&lt;BR /&gt;real *4 b(2)&lt;BR /&gt;real *4 x(2)&lt;BR /&gt;INTEGER i, j, idum,asym&lt;BR /&gt;INTEGER perm(30)&lt;BR /&gt;real*4 ddum&lt;BR /&gt;character*198 buf&lt;BR /&gt;&lt;BR /&gt;WRITE(*,*) '********** Single precision PARDISO **************'&lt;BR /&gt;&lt;BR /&gt;call mkl_get_version_string(buf)&lt;BR /&gt;write(*,'(a)') buf&lt;BR /&gt;&lt;BR /&gt;maxfct=1&lt;BR /&gt;nrhs=1&lt;BR /&gt;mnum=1&lt;BR /&gt;&lt;BR /&gt;do i=1,64&lt;BR /&gt;pt(i)=0&lt;BR /&gt;enddo&lt;BR /&gt;&lt;BR /&gt;neq=2&lt;BR /&gt;a(1)=4.0&lt;BR /&gt;a(2)=4.0&lt;BR /&gt;&lt;BR /&gt;b(1)=1.0&lt;BR /&gt;b(2)=1.0&lt;BR /&gt;&lt;BR /&gt;x(1)=0.0&lt;BR /&gt;x(2)=0.0&lt;BR /&gt;&lt;BR /&gt;ja(1)=1&lt;BR /&gt;ja(2)=2&lt;BR /&gt;ja(3)=3&lt;BR /&gt;&lt;BR /&gt;ia(1)=1&lt;BR /&gt;ia(2)=2&lt;BR /&gt;iparm(1)=1 ! without this setting PARDISO gives wrong result!&lt;BR /&gt;iparm(28)=1&lt;BR /&gt;error = 0 ! initialize error flag&lt;BR /&gt;msglvl = 1 ! print statistical information&lt;BR /&gt;mtype = -2 ! real symmetric&lt;BR /&gt;phase = 11 ! only reordering and symbolic factorization&lt;BR /&gt;&lt;BR /&gt;C.. Reordering&lt;/P&gt;
&lt;P&gt;CALL pardiso (pt, maxfct, mnum, mtype, phase, neq, a, ja, ia,&lt;BR /&gt;1 perm, nrhs, iparm, msglvl, b, x, error)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;C.. Factorization.&lt;BR /&gt;&lt;BR /&gt;phase = 22 ! only factorization&lt;BR /&gt;CALL pardiso (pt, maxfct, mnum, mtype, phase, neq, a, ja, ia,&lt;BR /&gt;1 perm, nrhs, iparm, msglvl, ddum, ddum, error)&lt;BR /&gt;!WRITE(*,*) 'Factorization completed ... '&lt;BR /&gt;IF (error .NE. 0) THEN&lt;BR /&gt;WRITE(*,*) 'The following ERROR was detected: ', error&lt;BR /&gt;STOP 1&lt;BR /&gt;ENDIF&lt;BR /&gt;&lt;BR /&gt;C.. Back substitution and iterative refinement&lt;BR /&gt;&lt;BR /&gt;phase = 33 ! solving&lt;BR /&gt;CALL pardiso (pt, maxfct, mnum, mtype, phase, neq, a, ja, ia,&lt;BR /&gt;1 perm, nrhs, iparm, msglvl, b, x, error)&lt;BR /&gt;&lt;BR /&gt;do i=1,neq&lt;BR /&gt;WRITE(*,*) 'i, x(i) ',i, x(i)&lt;BR /&gt;enddo&lt;/P&gt;
&lt;P&gt;C.. Releasing memory&lt;BR /&gt;phase = -1 ! release internal memory&lt;BR /&gt;CALL pardiso (pt, maxfct, mnum, mtype, phase, neq, &lt;BR /&gt;1 ddum, idum, idum,&lt;BR /&gt;2 idum, nrhs, iparm, msglvl, ddum, ddum, error)&lt;/P&gt;
&lt;P&gt;END&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 03:16:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Single-precision-PARDISO-gives-wrong-results/m-p/1362392#M32766</guid>
      <dc:creator>Hassan-Ebrahimi</dc:creator>
      <dc:date>2022-02-22T03:16:49Z</dc:date>
    </item>
    <item>
      <title>Re:Single-precision PARDISO gives wrong results!</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Single-precision-PARDISO-gives-wrong-results/m-p/1362407#M32767</link>
      <description>&lt;P&gt;Thanks for the update.&lt;/P&gt;&lt;P&gt;The issue(thread) is closing and we will no longer respond to this thread.&amp;nbsp;If you require additional assistance from Intel, please start a new thread.&amp;nbsp;Any further interaction in this thread will be considered community only.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Feb 2022 04:13:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Single-precision-PARDISO-gives-wrong-results/m-p/1362407#M32767</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2022-02-22T04:13:20Z</dc:date>
    </item>
  </channel>
</rss>

