<?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 ERROR during symbolic factorization: -1 in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-ERROR-during-symbolic-factorization-1/m-p/1380375#M33086</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Reminder:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please let us know if your issue is resolved and provide us with an update regarding the same? &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya.&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 28 Apr 2022 11:11:39 GMT</pubDate>
    <dc:creator>VidyalathaB_Intel</dc:creator>
    <dc:date>2022-04-28T11:11:39Z</dc:date>
    <item>
      <title>PARDISO ERROR during symbolic factorization: -1</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-ERROR-during-symbolic-factorization-1/m-p/1376000#M32998</link>
      <description>&lt;P&gt;HI！&lt;/P&gt;
&lt;P&gt;I used MKL's pardiso to get the decomposition of one of my LDLT matrices. I tried many methods, and even modified it directly in example pardiso_sym_getdiag.c, and finally reported an error in 332, unable to get the D matrix in LDL, the following is my The code, where the Ka matrix is the matrix obtained from the previous calculation, I have used mkl_sparse_s_export_csr to export the Ka matrix to export the triple and save it as a TXT file.&lt;/P&gt;
&lt;P&gt;thank you for your help!&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mkl_sparse_s_export_csr(Ka, &amp;amp;indexing, &amp;amp;rows, &amp;amp;cols, &amp;amp;row_strat, &amp;amp;rows_end, &amp;amp;col_index, &amp;amp;values);
    a = values;
    ia = row_strat;
    ja = col_index;
    MKL_INT n = rows;
    MKL_INT mtype = -2;       /* Real symmetric matrix */
    /* RHS and solution vectors. */
    float b[462], invdiag[462];
    MKL_INT nrhs = 1;     /* Number of right hand sides. */
    /* Internal solver memory pointer pt, */
    /* 32-bit: int pt[64]; 64-bit: long int pt[64] */
    /* or void *pt[64] should be OK on both architectures */
    void* pt[64];
    /* Pardiso control parameters. */
    MKL_INT iparm[64];
    MKL_INT maxfct, mnum, phase, error, msglvl;
    /* Auxiliary variables. */
    MKL_INT i;
    float ddum;          /* Double dummy */
    MKL_INT idum;         /* Integer dummy. */
/* -------------------------------------------------------------------- */
/* .. Setup Pardiso control parameters. */
/* -------------------------------------------------------------------- */
    for (i = 0; i &amp;lt; 64; i++)
    {
        iparm[i] = 0;
    }
    iparm[0] = 1;         /* No solver default */
    iparm[1] = 2;         /* Fill-in reordering from METIS */
    iparm[3] = 0;         /* No iterative-direct algorithm */
    iparm[4] = 0;         /* No user fill-in reducing permutation */
    iparm[5] = 0;         /* Write solution into x */
    iparm[6] = 0;         /* Not in use */
    iparm[7] = 0;         /* Max numbers of iterative refinement steps */
    iparm[8] = 0;         /* Not in use */
    iparm[9] = 13;        /* Perturb the pivot elements with 1E-13 */
    iparm[10] = 1;        /* Use nonsymmetric permutation and scaling MPS */
    iparm[11] = 0;        /* Not in use */
    iparm[12] = 1;        /* Maximum weighted matching algorithm is switched-on (default for symmetric). Try iparm[12] = 1 in case of inappropriate accuracy */
    iparm[13] = 0;        /* Output: Number of perturbed pivots */
    iparm[14] = 0;        /* Not in use */
    iparm[15] = 0;        /* Not in use */
    iparm[16] = 0;        /* Not in use */
    iparm[17] = -1;       /* Output: Number of nonzeros in the factor LU */
    iparm[18] = -1;       /* Output: Mflops for LU factorization */
    iparm[19] = 0;        /* Output: Numbers of CG Iterations */
    iparm[34] = 1;
    maxfct = 1;           /* Maximum number of numerical factorizations. */
    mnum = 1;         /* Which factorization to use. */
    msglvl = 0;           /*  Do not print statistical information in file */
    error = 0;            /* Initialize error flag */
/* -------------------------------------------------------------------- */
/* .. Initialize the internal solver memory pointer. This is only */
/* necessary for the FIRST call of the PARDISO solver. */
/* -------------------------------------------------------------------- */
    for (i = 0; i &amp;lt; 64; i++)
    {
        pt[i] = 0;
    }
    /* -------------------------------------------------------------------- */
    /* .. Reordering and Symbolic Factorization. This step also allocates */
    /* all memory that is necessary for the factorization. */
    /* -------------------------------------------------------------------- */
    phase = 11;
    PARDISO(pt, &amp;amp;maxfct, &amp;amp;mnum, &amp;amp;mtype, &amp;amp;phase,
        &amp;amp;n, a, ia, ja, &amp;amp;idum, &amp;amp;nrhs, iparm, &amp;amp;msglvl, &amp;amp;ddum, &amp;amp;ddum, &amp;amp;error);
    if (error != 0)
    {
        printf("\nERROR during symbolic factorization: " IFORMAT, error);
        exit(1);
    }
    printf("\nReordering completed ... ");
    printf("\nNumber of nonzeros in factors = " IFORMAT, iparm[17]);
    /* -------------------------------------------------------------------- */
    /* .. Numerical factorization. */
    /* -------------------------------------------------------------------- */
    phase = 22;
    PARDISO(pt, &amp;amp;maxfct, &amp;amp;mnum, &amp;amp;mtype, &amp;amp;phase,
        &amp;amp;n, a, ia, ja, &amp;amp;idum, &amp;amp;nrhs, iparm, &amp;amp;msglvl, &amp;amp;ddum, &amp;amp;ddum, &amp;amp;error);
    if (error != 0)
    {
        printf("\nERROR during numerical factorization: " IFORMAT, error);
        exit(2);
    }
    printf("\nFactorization completed ... ");
    /* -------------------------------------------------------------------- */
    /* .. Get inverse to the diagonal matrix D. Iterative refinement must be*/
    /*    turn off. */
    /* -------------------------------------------------------------------- */
    iparm[7] = 0;
    phase = 332;
    for (i = 0; i &amp;lt; n; i++)
    {
        b[i] = 1.0;
    }

    PARDISO(pt, &amp;amp;maxfct, &amp;amp;mnum, &amp;amp;mtype, &amp;amp;phase,
        &amp;amp;n, a, ia, ja, &amp;amp;idum, &amp;amp;nrhs, iparm, &amp;amp;msglvl, b, invdiag, &amp;amp;error);
    if (error != 0)
    {
        printf("\nERROR during solution: " IFORMAT, error);
        exit(3);
    }

    printf("\n Number of pertubed pivots = " IFORMAT " \n", iparm[13]);
    if (iparm[13] != 0)
    {
        printf("\n The diagonal value were pertubed \n");
        exit(4);
    }
    /* -------------------------------------------------------------------- */
    /* .. Inverse elements of the array invdiag which are inversed diagonal */
    /*    values D^(-1)   and print them . */
    /* -------------------------------------------------------------------- */
    printf("\n Print values of D for LDLT decomposition \n");
    for (i = 0; i &amp;lt; n; i++)
    {
        invdiag[i] = 1.0 / invdiag[i];
        printf("\n invdiag [" IFORMAT "] = %30.15e", i, invdiag[i]);
    }
    printf("\n");
    /* -------------------------------------------------------------------- */
    /* .. Termination and release of memory. */
    /* -------------------------------------------------------------------- */
    phase = -1;           /* Release internal memory. */
    PARDISO(pt, &amp;amp;maxfct, &amp;amp;mnum, &amp;amp;mtype, &amp;amp;phase,
        &amp;amp;n, &amp;amp;ddum, ia, ja, &amp;amp;idum, &amp;amp;nrhs,
        iparm, &amp;amp;msglvl, &amp;amp;ddum, &amp;amp;ddum, &amp;amp;error);&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 11 Apr 2022 03:32:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-ERROR-during-symbolic-factorization-1/m-p/1376000#M32998</guid>
      <dc:creator>HUANGK</dc:creator>
      <dc:date>2022-04-11T03:32:02Z</dc:date>
    </item>
    <item>
      <title>Re:PARDISO ERROR during symbolic factorization: -1</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-ERROR-during-symbolic-factorization-1/m-p/1377801#M33043</link>
      <description>&lt;P&gt;Hi Huang,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;&lt;P&gt;I just checked with pardiso_sym_getdiag.c example code and it is working fine without any errors.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; &lt;I&gt;where the Ka matrix is the matrix obtained from the previous calculation&lt;/I&gt;&lt;/P&gt;&lt;P&gt;It would be a great help if you can share the complete reproducer code and the steps you have followed to run it so that we can check it from our end.&lt;/P&gt;&lt;P&gt;Please do let us know your OS details and MKL version as well.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Apr 2022 11:20:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-ERROR-during-symbolic-factorization-1/m-p/1377801#M33043</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-04-18T11:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: PARDISO ERROR during symbolic factorization: -1</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-ERROR-during-symbolic-factorization-1/m-p/1378789#M33061</link>
      <description>&lt;P&gt;Hi Huang,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since your pardiso error value returns -1, it indicates that there is inconsistency in the input. You can get Pardiso to reveal more information about the inconsistencies by setting iparm[26] = 1 before calling Pardiso.&lt;/P&gt;
&lt;P&gt;This setting helps you to see some more useful information.&lt;/P&gt;
&lt;P&gt;For more information regarding iparm[26], please refer the below link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-c/top/sparse-solver-routines/onemkl-pardiso-parallel-direct-sparse-solver-iface/pardiso-iparm-parameter.html#pardiso-iparm-parameter_IPARM35" target="_blank"&gt;https://www.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-c/top/sparse-solver-routines/onemkl-pardiso-parallel-direct-sparse-solver-iface/pardiso-iparm-parameter.html#pardiso-iparm-parameter_IPARM35&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vidya.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 11:21:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-ERROR-during-symbolic-factorization-1/m-p/1378789#M33061</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-04-21T11:21:38Z</dc:date>
    </item>
    <item>
      <title>Re:PARDISO ERROR during symbolic factorization: -1</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-ERROR-during-symbolic-factorization-1/m-p/1380375#M33086</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Reminder:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please let us know if your issue is resolved and provide us with an update regarding the same? &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Apr 2022 11:11:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-ERROR-during-symbolic-factorization-1/m-p/1380375#M33086</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-04-28T11:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Re:PARDISO ERROR during symbolic factorization: -1</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-ERROR-during-symbolic-factorization-1/m-p/1380937#M33095</link>
      <description>&lt;P&gt;Thank you very much for your help！&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used double precision instead of single precision, and achieved good results, probably single precision is not suitable for my calculation problem.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Apr 2022 09:40:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-ERROR-during-symbolic-factorization-1/m-p/1380937#M33095</guid>
      <dc:creator>HUANGK</dc:creator>
      <dc:date>2022-04-30T09:40:37Z</dc:date>
    </item>
    <item>
      <title>Re:PARDISO ERROR during symbolic factorization: -1</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-ERROR-during-symbolic-factorization-1/m-p/1381054#M33098</link>
      <description>&lt;P&gt;Hi Huang,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for the confirmation and glad to know that your issue is resolved.&lt;/P&gt;&lt;P&gt;As the issue is resolved we are closing this thread. Please post a new question if you need any additional information from Intel as this thread will no longer be monitored.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Have a Great Day!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 01 May 2022 15:35:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/PARDISO-ERROR-during-symbolic-factorization-1/m-p/1381054#M33098</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-05-01T15:35:45Z</dc:date>
    </item>
  </channel>
</rss>

