<?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 Hi Maggie,  in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Preconditioner-dcsrilu0-has-returned-the-ERROR-code-106/m-p/1058300#M21557</link>
    <description>&lt;DIV class="field field-name-comment-body field-type-text-long field-label-hidden" style="font: 13px/19.51px Arial, 宋体, Tahoma, Helvetica, sans-serif; color: rgb(96, 96, 96); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-stroke-width: 0px;"&gt;
	&lt;DIV class="field-items"&gt;
		&lt;DIV class="field-item even" property="content:encoded"&gt;
			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;Hi Maggie,&amp;nbsp;&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;The requirement of "1-based index" for the function&amp;nbsp;is&amp;nbsp; to&amp;nbsp;&amp;nbsp;the content (Value)&amp;nbsp;of array&amp;nbsp;ia and ja,&amp;nbsp; not on&amp;nbsp;array ia and ja 's index.&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;The array&amp;nbsp;&amp;nbsp;ia and ja from Fortran and you are right that their index are from 1,&amp;nbsp; but&amp;nbsp;it is not problem because&amp;nbsp;fortran is passing the reference ( address) of ia and&amp;nbsp;ja&amp;nbsp;etc to C function.&amp;nbsp;In the c code, their&amp;nbsp;index are &amp;nbsp;from 0 naturally,&amp;nbsp; and the content in them are &amp;nbsp;1-based index.&amp;nbsp;&amp;nbsp; you don't need change them.&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//for(i=0; i&amp;lt;*N; i++) --ia&lt;I&gt;;&lt;BR /&gt;
				&amp;nbsp; &amp;nbsp; &amp;nbsp;// &amp;nbsp; for(i=0; i&amp;lt;*NNZ; i++) --ja&lt;I&gt;;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;And you can print the ia[0] and ja[0] to see the result.&lt;/P&gt;

			&lt;P&gt;&amp;nbsp;for(i=0; i&amp;lt;=5; i++) {printf("%d \t ", ia&lt;I&gt;);}; printf("\n");&lt;/I&gt;&lt;/P&gt;

			&lt;P&gt;&amp;nbsp;for(i=0; i&amp;lt;=5; i++) {printf("%d\t", ja&lt;I&gt;);}; printf("\n");&lt;/I&gt;&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;There are some code errors in your code.&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;and the array ipar and dpar should be 128 . not N.&amp;nbsp;&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;and the&amp;nbsp;&amp;nbsp;bilu0 = (double *)calloc(*NNZ, sizeof(double)) , not NN etc.&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;remove some correct conditions which is in original sample code, you don't need when solve the Ax=b..&amp;nbsp;&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;I attach the modifed code and&amp;nbsp;run result&amp;nbsp;for your reference.&amp;nbsp;&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;Best Regards,&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;Ying&amp;nbsp;&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;&amp;nbsp;&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;[&lt;A style="margin: 0px; padding: 0px; color: rgb(8, 109, 182); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-weight: normal; text-decoration: none;" href="mailto:yhu5@prc"&gt;yhu5@prc&lt;/A&gt;-mic01 mklex]$ make&lt;BR /&gt;
				ifort -check bounds -g -traceback -i8 -openmp -w -fast -DMKL_ILP64 -m64 -I/opt/intel/mkl/include/intel64/ilp64 -I/opt/intel/mkl/include &amp;nbsp;-c hypretest.f&lt;BR /&gt;
				icc -g -traceback -i8 -openmp -w -fast -DMKL_ILP64 -m64 -I/opt/intel/mkl/include/intel64/ilp64 -I/opt/intel/mkl/include &amp;nbsp;-c LinearSolver.c&lt;BR /&gt;
				ifort -check bounds -g -traceback hypretest.o LinearSolver.o -L/opt/intel/mkl/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_blas95_ilp64 -lmkl_lapack95_ilp64 -liomp5 -lmkl_core &amp;nbsp;-lm -lpthread -o ds&lt;BR /&gt;
				[&lt;A style="margin: 0px; padding: 0px; color: rgb(8, 109, 182); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-weight: normal; text-decoration: none;" href="mailto:yhu5@prc"&gt;yhu5@prc&lt;/A&gt;-mic01 mklex]$ ./ds&lt;BR /&gt;
				&amp;nbsp;number of rows = &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10&lt;BR /&gt;
				&amp;nbsp;number of nonzeros = &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 28&lt;BR /&gt;
				sizetmpi= 306, sizeof(ia)= 8&lt;BR /&gt;
				N=10, NNZ= 28&lt;BR /&gt;
				LinearSolver: Line 48&lt;BR /&gt;
				dfgmres_init&lt;BR /&gt;
				dfgmres_end&lt;BR /&gt;
				ilu begin&lt;BR /&gt;
				ilu end&lt;BR /&gt;
				dfgmres check begin&lt;BR /&gt;
				dfgmres check end&lt;BR /&gt;
				Some info about the current run of RCI FGMRES method:&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;As ipar[7]=0, the automatic test for the maximal number of iterations will be&lt;BR /&gt;
				skipped&lt;BR /&gt;
				+++&lt;BR /&gt;
				As ipar[8]=0, the automatic residual test will be skipped&lt;BR /&gt;
				+++&lt;BR /&gt;
				As ipar[9]=1 the user-defined stopping test will be requested via&lt;BR /&gt;
				RCI_request=2&lt;BR /&gt;
				+++&lt;BR /&gt;
				As ipar[10]=1, the Preconditioned FGMRES iterations will be performed, thus,&lt;BR /&gt;
				the preconditioner action will be requested via RCI_request=3&lt;BR /&gt;
				+++&lt;BR /&gt;
				As ipar[11]=0, the automatic test for the norm of the next generated vector is&lt;BR /&gt;
				not equal to zero up to rounding and computational errors will be skipped,&lt;BR /&gt;
				thus, the user-defined test will be requested via RCI_request=4&lt;BR /&gt;
				+++&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;dfgmres begin to solve&lt;BR /&gt;
				dfgmres end of solve&lt;BR /&gt;
				dfgmres end of solve&lt;BR /&gt;
				dfgmres end of solve&lt;BR /&gt;
				dfgmres end of solve&lt;BR /&gt;
				dfgmres end of solve&lt;BR /&gt;
				dfgmres end of solve&lt;BR /&gt;
				The system has been solved&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;Number of iterations: 1&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;&amp;nbsp;b( &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 )= &amp;nbsp; 1.00000000000000&lt;BR /&gt;
				&amp;nbsp;b( &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 )= &amp;nbsp; 1.00000000000000&lt;BR /&gt;
				&amp;nbsp;b( &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3 )= &amp;nbsp; 1.00000000000000&lt;BR /&gt;
				&amp;nbsp;b( &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4 )= &amp;nbsp; 1.00000000000000&lt;BR /&gt;
				&amp;nbsp;b( &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5 )= &amp;nbsp; 1.00000000000000&lt;BR /&gt;
				&amp;nbsp;b( &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6 )= &amp;nbsp; 1.00000000000000&lt;BR /&gt;
				&amp;nbsp;b( &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7 )= &amp;nbsp; 1.00000000000000&lt;BR /&gt;
				&amp;nbsp;b( &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8 )= &amp;nbsp; 1.00000000000000&lt;BR /&gt;
				&amp;nbsp;b( &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9 )= &amp;nbsp; 1.00000000000000&lt;BR /&gt;
				&amp;nbsp;b( &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10 )= &amp;nbsp; 1.00000000000000&lt;BR /&gt;
				[&lt;A style="margin: 0px; padding: 0px; color: rgb(8, 109, 182); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-weight: normal; text-decoration: none;" href="mailto:yhu5@prc"&gt;yhu5@prc&lt;/A&gt;-mic01 mklex]$&lt;/P&gt;
		&lt;/DIV&gt;
	&lt;/DIV&gt;
&lt;/DIV&gt;

&lt;SECTION class="field field-name-field-attachments field-type-file field-label-above" style="font: 13px/19.51px Arial, 宋体, Tahoma, Helvetica, sans-serif; color: rgb(96, 96, 96); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; display: block; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-stroke-width: 0px;"&gt;
	&lt;H2 class="field-label" style="margin: 0px 0px 0.5em; padding: 22px 0px 0px; color: rgb(102, 102, 102); line-height: inherit; font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 16px; font-weight: bold; text-decoration: none;"&gt;Attachments:&amp;nbsp;&lt;/H2&gt;
&lt;/SECTION&gt;</description>
    <pubDate>Thu, 02 Jul 2015 01:23:13 GMT</pubDate>
    <dc:creator>Ying_H_Intel</dc:creator>
    <dc:date>2015-07-02T01:23:13Z</dc:date>
    <item>
      <title>Preconditioner dcsrilu0 has returned the ERROR code -106</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Preconditioner-dcsrilu0-has-returned-the-ERROR-code-106/m-p/1058298#M21555</link>
      <description>&lt;P&gt;hi, all, Please give me some suggestions about error:&amp;nbsp;Preconditioner dcsrilu0 has returned the ERROR code -106.&lt;/P&gt;

&lt;P&gt;I tried to use ilu + gmres to solve Ax=b.&lt;/P&gt;

&lt;P&gt;Here, A is like&lt;/P&gt;

&lt;P&gt;2 -1&lt;/P&gt;

&lt;P&gt;&amp;nbsp; -1 2 -1&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; -1 &amp;nbsp;2 -1&lt;/P&gt;

&lt;P&gt;and so on. I have attached code. Thanks.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2015 04:54:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Preconditioner-dcsrilu0-has-returned-the-ERROR-code-106/m-p/1058298#M21555</guid>
      <dc:creator>Maggie_m_</dc:creator>
      <dc:date>2015-07-01T04:54:16Z</dc:date>
    </item>
    <item>
      <title>Hi Maggie</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Preconditioner-dcsrilu0-has-returned-the-ERROR-code-106/m-p/1058299#M21556</link>
      <description>&lt;P&gt;Hi Maggie&lt;/P&gt;

&lt;P&gt;ierr=-106 Indicates that the routine was interrupted because the&lt;BR /&gt;
	column indices jaare not in the ascending order..&lt;/P&gt;

&lt;P&gt;As the&amp;nbsp;dcsrilu0&lt;BR /&gt;
	&amp;nbsp;routine supports only&lt;STRONG&gt; one-based&lt;/STRONG&gt; indexing of the array parameters, regardless of whether the&lt;BR /&gt;
	Fortran or C interface is used.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;You may need to comment out the code&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//for(i=0; i&amp;lt;*N; i++) --ia&lt;I&gt;;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp;// &amp;nbsp; for(i=0; i&amp;lt;*NNZ; i++) --ja&lt;I&gt;;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2015 06:41:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Preconditioner-dcsrilu0-has-returned-the-ERROR-code-106/m-p/1058299#M21556</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2015-07-01T06:41:43Z</dc:date>
    </item>
    <item>
      <title>Hi Maggie, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Preconditioner-dcsrilu0-has-returned-the-ERROR-code-106/m-p/1058300#M21557</link>
      <description>&lt;DIV class="field field-name-comment-body field-type-text-long field-label-hidden" style="font: 13px/19.51px Arial, 宋体, Tahoma, Helvetica, sans-serif; color: rgb(96, 96, 96); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-stroke-width: 0px;"&gt;
	&lt;DIV class="field-items"&gt;
		&lt;DIV class="field-item even" property="content:encoded"&gt;
			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;Hi Maggie,&amp;nbsp;&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;The requirement of "1-based index" for the function&amp;nbsp;is&amp;nbsp; to&amp;nbsp;&amp;nbsp;the content (Value)&amp;nbsp;of array&amp;nbsp;ia and ja,&amp;nbsp; not on&amp;nbsp;array ia and ja 's index.&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;The array&amp;nbsp;&amp;nbsp;ia and ja from Fortran and you are right that their index are from 1,&amp;nbsp; but&amp;nbsp;it is not problem because&amp;nbsp;fortran is passing the reference ( address) of ia and&amp;nbsp;ja&amp;nbsp;etc to C function.&amp;nbsp;In the c code, their&amp;nbsp;index are &amp;nbsp;from 0 naturally,&amp;nbsp; and the content in them are &amp;nbsp;1-based index.&amp;nbsp;&amp;nbsp; you don't need change them.&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//for(i=0; i&amp;lt;*N; i++) --ia&lt;I&gt;;&lt;BR /&gt;
				&amp;nbsp; &amp;nbsp; &amp;nbsp;// &amp;nbsp; for(i=0; i&amp;lt;*NNZ; i++) --ja&lt;I&gt;;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;And you can print the ia[0] and ja[0] to see the result.&lt;/P&gt;

			&lt;P&gt;&amp;nbsp;for(i=0; i&amp;lt;=5; i++) {printf("%d \t ", ia&lt;I&gt;);}; printf("\n");&lt;/I&gt;&lt;/P&gt;

			&lt;P&gt;&amp;nbsp;for(i=0; i&amp;lt;=5; i++) {printf("%d\t", ja&lt;I&gt;);}; printf("\n");&lt;/I&gt;&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;There are some code errors in your code.&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;and the array ipar and dpar should be 128 . not N.&amp;nbsp;&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;and the&amp;nbsp;&amp;nbsp;bilu0 = (double *)calloc(*NNZ, sizeof(double)) , not NN etc.&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;remove some correct conditions which is in original sample code, you don't need when solve the Ax=b..&amp;nbsp;&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;I attach the modifed code and&amp;nbsp;run result&amp;nbsp;for your reference.&amp;nbsp;&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;Best Regards,&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;Ying&amp;nbsp;&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;&amp;nbsp;&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;[&lt;A style="margin: 0px; padding: 0px; color: rgb(8, 109, 182); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-weight: normal; text-decoration: none;" href="mailto:yhu5@prc"&gt;yhu5@prc&lt;/A&gt;-mic01 mklex]$ make&lt;BR /&gt;
				ifort -check bounds -g -traceback -i8 -openmp -w -fast -DMKL_ILP64 -m64 -I/opt/intel/mkl/include/intel64/ilp64 -I/opt/intel/mkl/include &amp;nbsp;-c hypretest.f&lt;BR /&gt;
				icc -g -traceback -i8 -openmp -w -fast -DMKL_ILP64 -m64 -I/opt/intel/mkl/include/intel64/ilp64 -I/opt/intel/mkl/include &amp;nbsp;-c LinearSolver.c&lt;BR /&gt;
				ifort -check bounds -g -traceback hypretest.o LinearSolver.o -L/opt/intel/mkl/lib/intel64 -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_blas95_ilp64 -lmkl_lapack95_ilp64 -liomp5 -lmkl_core &amp;nbsp;-lm -lpthread -o ds&lt;BR /&gt;
				[&lt;A style="margin: 0px; padding: 0px; color: rgb(8, 109, 182); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-weight: normal; text-decoration: none;" href="mailto:yhu5@prc"&gt;yhu5@prc&lt;/A&gt;-mic01 mklex]$ ./ds&lt;BR /&gt;
				&amp;nbsp;number of rows = &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10&lt;BR /&gt;
				&amp;nbsp;number of nonzeros = &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 28&lt;BR /&gt;
				sizetmpi= 306, sizeof(ia)= 8&lt;BR /&gt;
				N=10, NNZ= 28&lt;BR /&gt;
				LinearSolver: Line 48&lt;BR /&gt;
				dfgmres_init&lt;BR /&gt;
				dfgmres_end&lt;BR /&gt;
				ilu begin&lt;BR /&gt;
				ilu end&lt;BR /&gt;
				dfgmres check begin&lt;BR /&gt;
				dfgmres check end&lt;BR /&gt;
				Some info about the current run of RCI FGMRES method:&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;As ipar[7]=0, the automatic test for the maximal number of iterations will be&lt;BR /&gt;
				skipped&lt;BR /&gt;
				+++&lt;BR /&gt;
				As ipar[8]=0, the automatic residual test will be skipped&lt;BR /&gt;
				+++&lt;BR /&gt;
				As ipar[9]=1 the user-defined stopping test will be requested via&lt;BR /&gt;
				RCI_request=2&lt;BR /&gt;
				+++&lt;BR /&gt;
				As ipar[10]=1, the Preconditioned FGMRES iterations will be performed, thus,&lt;BR /&gt;
				the preconditioner action will be requested via RCI_request=3&lt;BR /&gt;
				+++&lt;BR /&gt;
				As ipar[11]=0, the automatic test for the norm of the next generated vector is&lt;BR /&gt;
				not equal to zero up to rounding and computational errors will be skipped,&lt;BR /&gt;
				thus, the user-defined test will be requested via RCI_request=4&lt;BR /&gt;
				+++&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;dfgmres begin to solve&lt;BR /&gt;
				dfgmres end of solve&lt;BR /&gt;
				dfgmres end of solve&lt;BR /&gt;
				dfgmres end of solve&lt;BR /&gt;
				dfgmres end of solve&lt;BR /&gt;
				dfgmres end of solve&lt;BR /&gt;
				dfgmres end of solve&lt;BR /&gt;
				The system has been solved&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;Number of iterations: 1&lt;/P&gt;

			&lt;P style="margin: 0px 0px 1.5em; padding: 0px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 12px; font-weight: normal;"&gt;&amp;nbsp;b( &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 )= &amp;nbsp; 1.00000000000000&lt;BR /&gt;
				&amp;nbsp;b( &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 )= &amp;nbsp; 1.00000000000000&lt;BR /&gt;
				&amp;nbsp;b( &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3 )= &amp;nbsp; 1.00000000000000&lt;BR /&gt;
				&amp;nbsp;b( &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4 )= &amp;nbsp; 1.00000000000000&lt;BR /&gt;
				&amp;nbsp;b( &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5 )= &amp;nbsp; 1.00000000000000&lt;BR /&gt;
				&amp;nbsp;b( &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6 )= &amp;nbsp; 1.00000000000000&lt;BR /&gt;
				&amp;nbsp;b( &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7 )= &amp;nbsp; 1.00000000000000&lt;BR /&gt;
				&amp;nbsp;b( &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8 )= &amp;nbsp; 1.00000000000000&lt;BR /&gt;
				&amp;nbsp;b( &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9 )= &amp;nbsp; 1.00000000000000&lt;BR /&gt;
				&amp;nbsp;b( &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10 )= &amp;nbsp; 1.00000000000000&lt;BR /&gt;
				[&lt;A style="margin: 0px; padding: 0px; color: rgb(8, 109, 182); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-weight: normal; text-decoration: none;" href="mailto:yhu5@prc"&gt;yhu5@prc&lt;/A&gt;-mic01 mklex]$&lt;/P&gt;
		&lt;/DIV&gt;
	&lt;/DIV&gt;
&lt;/DIV&gt;

&lt;SECTION class="field field-name-field-attachments field-type-file field-label-above" style="font: 13px/19.51px Arial, 宋体, Tahoma, Helvetica, sans-serif; color: rgb(96, 96, 96); text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; display: block; white-space: normal; widows: 1; font-size-adjust: none; font-stretch: normal; background-color: rgb(255, 255, 255); -webkit-text-stroke-width: 0px;"&gt;
	&lt;H2 class="field-label" style="margin: 0px 0px 0.5em; padding: 22px 0px 0px; color: rgb(102, 102, 102); line-height: inherit; font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; font-size: 16px; font-weight: bold; text-decoration: none;"&gt;Attachments:&amp;nbsp;&lt;/H2&gt;
&lt;/SECTION&gt;</description>
      <pubDate>Thu, 02 Jul 2015 01:23:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Preconditioner-dcsrilu0-has-returned-the-ERROR-code-106/m-p/1058300#M21557</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2015-07-02T01:23:13Z</dc:date>
    </item>
    <item>
      <title>Attach the LinearSolver.c</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Preconditioner-dcsrilu0-has-returned-the-ERROR-code-106/m-p/1058301#M21558</link>
      <description>&lt;P&gt;Attach the LinearSolver.c file.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2015 01:27:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Preconditioner-dcsrilu0-has-returned-the-ERROR-code-106/m-p/1058301#M21558</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2015-07-02T01:27:32Z</dc:date>
    </item>
    <item>
      <title>Ying, Thank you so much for</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Preconditioner-dcsrilu0-has-returned-the-ERROR-code-106/m-p/1058302#M21559</link>
      <description>&lt;P&gt;Ying, Thank you so much for the help. It definitely resolved my concern.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2015 05:58:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Preconditioner-dcsrilu0-has-returned-the-ERROR-code-106/m-p/1058302#M21559</guid>
      <dc:creator>Maggie_m_</dc:creator>
      <dc:date>2015-07-02T05:58:01Z</dc:date>
    </item>
  </channel>
</rss>

