<?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: pardiso problem in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-problem/m-p/1292445#M31592</link>
    <description>&lt;P&gt;Why do you use PHASE=11 for releasing memory?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you report a problem, please pay more attention to making the report complete and readable. In your report above, you did not show the error code, the screen-capture is so tiny as to be unreadable, and the program text is incomplete and poorly formatted. Please follow the guidelines in the &lt;A href="https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-post-in-the-Intel-oneAPI-Math-Kernel-Library-forum/m-p/1209982#M30079" target="_self"&gt;"How to post ..."&lt;/A&gt; sticky post in this forum.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jun 2021 10:01:42 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2021-06-23T10:01:42Z</dc:date>
    <item>
      <title>pardiso problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-problem/m-p/1292417#M31591</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_CP8IUSO94HVLC5KIAIA(HC.png" style="width: 764px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/17716iAB0DFAB7022B836C/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="_CP8IUSO94HVLC5KIAIA(HC.png" alt="_CP8IUSO94HVLC5KIAIA(HC.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="littlewang_0-1624439432184.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/17718iE7AE0F18382E9FE2/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="littlewang_0-1624439432184.png" alt="littlewang_0-1624439432184.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hello&lt;/P&gt;
&lt;P&gt;As you can see in the picture, there is an error when I try to use pardiso to solve eqs. I don't know why it is. What should I do ?&lt;/P&gt;
&lt;P&gt;SUBROUTINE SOL_PARDISO(n,lent,a,ia,ja,b,mtype) &lt;BR /&gt;C &lt;BR /&gt;C PARDISO : PARALLEL SPARSE DIRECT LINEAR SOLVER &lt;BR /&gt;C Based on '/sw/sdev/cmkl/10.0.2.18/examples/solver/source/ &lt;BR /&gt;C pardiso_sym_f.f' &lt;BR /&gt;C &lt;BR /&gt;use omp_lib &lt;BR /&gt;IMPLICIT DOUBLE PRECISION (A-H,O-Z) &lt;BR /&gt;INTEGER*8 PT(64) &lt;BR /&gt;INTEGER, PARAMETER :: dp = KIND(1.0D0) &lt;BR /&gt;C.. All other variables &lt;BR /&gt;INTEGER MAXFCT,MNUM,MTYPE,PHASE,N,NRHS,ERROR,error1,MSGLVL,lent &lt;BR /&gt;INTEGER iparm(64),idum(1) &lt;BR /&gt;REAL(KIND=DP) ddum(1) &lt;BR /&gt;dimension a(lent),ia(n+1),ja(lent),b(n),x(n) &lt;BR /&gt;DATA nrhs /1/, maxfct /1/, mnum /1/ &lt;BR /&gt;C.. Set up PARDISO control parameter &lt;BR /&gt;do i = 1, 64 &lt;BR /&gt;iparm(i) = 0 &lt;BR /&gt;end do &lt;BR /&gt;iparm(1) = 3 ! no solver default &lt;BR /&gt;iparm(2) = 2 ! fill-in reordering from METIS &lt;BR /&gt;iparm(3) = 1 ! numbers of processors &lt;BR /&gt;iparm(4) = 0 ! no iterative-direct algorithm &lt;BR /&gt;iparm(5) = 0 ! no user fill-in reducing permutation &lt;BR /&gt;iparm(6) = 0 ! =0 solution on the first n compoments of x &lt;BR /&gt;iparm(7) = 0 ! not in use &lt;BR /&gt;iparm(8) = 9 ! numbers of iterative refinement steps &lt;BR /&gt;iparm(9) = 0 ! not in use &lt;BR /&gt;iparm(10) = 13 ! perturbe the pivot elements with 1E-13 &lt;BR /&gt;iparm(11) = 1 ! use nonsymmetric permutation and scaling MPS &lt;BR /&gt;iparm(12) = 0 ! not in use &lt;BR /&gt;! if(mtype .eq. -2) then !Improved accuracy using (non-) symmetric weighted matching &lt;BR /&gt;iparm(13) = 0 ! Disable matching. Default for symmetric indefinite matrices &lt;BR /&gt;if(mtype .eq. 11) then &lt;BR /&gt;iparm(13) = 1 ! Enable matching. Default for nonsymmetric matrices. &lt;BR /&gt;endif &lt;BR /&gt;iparm(14) = 0 ! Output: number of perturbed pivots &lt;BR /&gt;iparm(15) = 0 ! not in use &lt;BR /&gt;iparm(16) = 0 ! not in use &lt;BR /&gt;iparm(17) = 0 ! not in use &lt;BR /&gt;iparm(18) = -1 ! Output: number of nonzeros in the factor LU &lt;BR /&gt;iparm(19) = -1 ! Output: Mflops for LU factorization &lt;BR /&gt;iparm(20) = 0 ! Output: Numbers of CG Iterations &lt;BR /&gt;iparm(24) =1 &lt;BR /&gt;iparm(27) = 1 !turn on matrix checker on your matrix &lt;BR /&gt;error = 0 ! initialize error flag &lt;BR /&gt;msglvl = 0 !0/1 ! print statistical information &lt;BR /&gt;c mtype = -2 ! symmetric, indefinite &lt;BR /&gt;!! mtype = 11 ! real and nonsymmetric &lt;BR /&gt;C.. Initiliaze the internal solver memory pointer. This is only &lt;BR /&gt;C necessary for the FIRST call of the PARDISO solver. &lt;BR /&gt;do i = 1, 64 &lt;BR /&gt;pt(i) = 0 &lt;BR /&gt;end do &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;call mkl_set_dynamic(0) &lt;BR /&gt;&amp;nbsp;call mkl_set_num_threads(4) &lt;BR /&gt;call omp_set_num_threads(4) &lt;BR /&gt;&lt;BR /&gt;c phase = -1 &lt;BR /&gt;phase = 11 ! only reordering and symbolic factorization &lt;BR /&gt;CALL pardiso(pt,maxfct,mnum,mtype,phase,n,a,ia,ja, &lt;BR /&gt;1 idum,nrhs,iparm,msglvl,ddum,ddum,error) &lt;BR /&gt;! WRITE(*,*) 'Reordering completed ... ' &lt;BR /&gt;IF (error .NE. 0) THEN &lt;BR /&gt;WRITE(*,*) 'The following ERROR was detected: ', error &lt;BR /&gt;STOP &lt;BR /&gt;END IF &lt;BR /&gt;&lt;BR /&gt;c WRITE(*,*) 'Number of nonzeros in factors = ',iparm(18) &lt;BR /&gt;c WRITE(*,*) 'Number of factorization MFLOPS = ',iparm(19) &lt;BR /&gt;&lt;BR /&gt;C.. Factorization. &lt;BR /&gt;phase=22 ! only factorization &lt;BR /&gt;CALL pardiso(pt,maxfct,mnum,mtype,phase,n,a,ia,ja, &lt;BR /&gt;1 idum,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 &lt;BR /&gt;ENDIF &lt;BR /&gt;&lt;BR /&gt;C.. Back substitution and iterative refinement &lt;BR /&gt;iparm(8) = 2 ! max numbers of iterative refinement steps &lt;BR /&gt;phase = 33 ! only factorization &lt;BR /&gt;do i=1,n &lt;BR /&gt;b(i)=1.d0 &lt;BR /&gt;end do &lt;BR /&gt;CALL pardiso(pt, maxfct, mnum, mtype, phase, n, a, ia, ja, &lt;BR /&gt;1 idum, nrhs,iparm, msglvl, b, x, error) &lt;BR /&gt;! WRITE(*,*) 'Solve completed ... ' &lt;BR /&gt;b=x &lt;BR /&gt;C.. Termiation and release of memory &lt;BR /&gt;c phase = -1 ! release internal memory &lt;BR /&gt;phase=11 &lt;BR /&gt;CALL pardiso(pt,maxfct,mnum,mtype,phase,n,ddum,idum,idum, &lt;BR /&gt;1 idum,nrhs,iparm,msglvl,ddum,ddum,error) &lt;BR /&gt;IF (error .NE. 0)THEN &lt;BR /&gt;WRITE(*,*)'The following ERROR on release stage was detected: ',error &lt;BR /&gt;STOP &lt;BR /&gt;ENDIF &lt;BR /&gt;&lt;BR /&gt;return &lt;BR /&gt;end &lt;BR /&gt;C&lt;/P&gt;
&lt;P&gt;Thank you for all your reply.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 09:10:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-problem/m-p/1292417#M31591</guid>
      <dc:creator>littlewang</dc:creator>
      <dc:date>2021-06-23T09:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: pardiso problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-problem/m-p/1292445#M31592</link>
      <description>&lt;P&gt;Why do you use PHASE=11 for releasing memory?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you report a problem, please pay more attention to making the report complete and readable. In your report above, you did not show the error code, the screen-capture is so tiny as to be unreadable, and the program text is incomplete and poorly formatted. Please follow the guidelines in the &lt;A href="https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-post-in-the-Intel-oneAPI-Math-Kernel-Library-forum/m-p/1209982#M30079" target="_self"&gt;"How to post ..."&lt;/A&gt; sticky post in this forum.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 10:01:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-problem/m-p/1292445#M31592</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2021-06-23T10:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: pardiso problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-problem/m-p/1294168#M31612</link>
      <description>&lt;P&gt;&amp;nbsp;Hi,&lt;/P&gt;
&lt;P&gt;Thanks for accepting as a solution!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As this issue has been resolved, we will no longer respond to this thread. If you require any additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a Good day.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Rajesh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 08:43:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-problem/m-p/1294168#M31612</guid>
      <dc:creator>MRajesh_intel</dc:creator>
      <dc:date>2021-07-20T08:43:51Z</dc:date>
    </item>
  </channel>
</rss>

