<?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 The problem is about   mkl in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-ERROR-Parameter-2-was-incorrect-on-entry-to-MKL/m-p/1051756#M21201</link>
    <description>&lt;P&gt;The problem is about&amp;nbsp;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 11.1497144699097px;"&gt;&amp;nbsp;&amp;nbsp;mkl_dcsrgemv(&amp;amp;cvar,&amp;amp;ivar, A, ia, ja, Sol, rhs);&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Parameter 2 was incorrect on entry to MKL_DCSRGEMV.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;int ivar = N;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;char cvar ='N';&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;for (i=0; i&amp;lt;N; i++) Sol&lt;I&gt; = 1.0;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf("dcsrgemv\n");&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;mkl_dcsrgemv(&amp;amp;cvar,&amp;amp;ivar, A, ia, ja, Sol, rhs);&amp;nbsp;&lt;/I&gt;&lt;/P&gt;

&lt;P&gt;I have tried to print the beginning and the end part of array&amp;nbsp;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 11.1497144699097px;"&gt;A, ia, ja, rhs before calling this function. &amp;nbsp;They are exactly as the input. So dont know why get such error.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jun 2015 16:37:47 GMT</pubDate>
    <dc:creator>Maggie_m_</dc:creator>
    <dc:date>2015-06-25T16:37:47Z</dc:date>
    <item>
      <title>Intel MKL ERROR: Parameter 2 was incorrect on entry to MKL_DCSRGEMV.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-ERROR-Parameter-2-was-incorrect-on-entry-to-MKL/m-p/1051754#M21199</link>
      <description>&lt;P&gt;Not sure why I got such error message for the code below. &amp;nbsp;Any suggestions ? Thanks&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2015 22:53:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-ERROR-Parameter-2-was-incorrect-on-entry-to-MKL/m-p/1051754#M21199</guid>
      <dc:creator>Maggie_m_</dc:creator>
      <dc:date>2015-06-23T22:53:48Z</dc:date>
    </item>
    <item>
      <title>I have not looked at the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-ERROR-Parameter-2-was-incorrect-on-entry-to-MKL/m-p/1051755#M21200</link>
      <description>&lt;P&gt;I have not looked at the details of your problem, but here is something that can be a problem if you have not already provided for it. When you store a matrix in the three array CSR scheme (iA,jA,A), there is a restriction in many routines that use such matrices as arguments, especially when factorizing A: you should not skip creating an entry for the diagonal element even when the value of that element is zero.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2015 01:00:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-ERROR-Parameter-2-was-incorrect-on-entry-to-MKL/m-p/1051755#M21200</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2015-06-24T01:00:00Z</dc:date>
    </item>
    <item>
      <title>The problem is about   mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-ERROR-Parameter-2-was-incorrect-on-entry-to-MKL/m-p/1051756#M21201</link>
      <description>&lt;P&gt;The problem is about&amp;nbsp;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 11.1497144699097px;"&gt;&amp;nbsp;&amp;nbsp;mkl_dcsrgemv(&amp;amp;cvar,&amp;amp;ivar, A, ia, ja, Sol, rhs);&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Parameter 2 was incorrect on entry to MKL_DCSRGEMV.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;int ivar = N;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;char cvar ='N';&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;for (i=0; i&amp;lt;N; i++) Sol&lt;I&gt; = 1.0;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf("dcsrgemv\n");&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;mkl_dcsrgemv(&amp;amp;cvar,&amp;amp;ivar, A, ia, ja, Sol, rhs);&amp;nbsp;&lt;/I&gt;&lt;/P&gt;

&lt;P&gt;I have tried to print the beginning and the end part of array&amp;nbsp;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 11.1497144699097px;"&gt;A, ia, ja, rhs before calling this function. &amp;nbsp;They are exactly as the input. So dont know why get such error.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2015 16:37:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-ERROR-Parameter-2-was-incorrect-on-entry-to-MKL/m-p/1051756#M21201</guid>
      <dc:creator>Maggie_m_</dc:creator>
      <dc:date>2015-06-25T16:37:47Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-ERROR-Parameter-2-was-incorrect-on-entry-to-MKL/m-p/1051757#M21202</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Have you link with ilp64 or lp64 MKL libraries? Try to changed your link line - the problem will fixed&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2015 08:09:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-ERROR-Parameter-2-was-incorrect-on-entry-to-MKL/m-p/1051757#M21202</guid>
      <dc:creator>Alexander_K_Intel2</dc:creator>
      <dc:date>2015-06-26T08:09:22Z</dc:date>
    </item>
    <item>
      <title>Hi Maggie, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-ERROR-Parameter-2-was-incorrect-on-entry-to-MKL/m-p/1051758#M21203</link>
      <description>&lt;P&gt;Hi Maggie,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;i try you code. &amp;nbsp;and can't get the error, but other error.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;gt;source /opt/intel/composer_xe_2015.2.164/bin/iccvars.sh intel64&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;gt;icc main.c LinearSolver.c -mkl&lt;/P&gt;

&lt;P&gt;and the error is like below.&amp;nbsp;&lt;/P&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;matrix column indexes are not in increasing order.&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;From error message, it seems&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;there are two problems in your programs:&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;P&gt;1.&amp;nbsp;mkl_dcsrgemv &amp;nbsp;and dcsrilu0&amp;nbsp;supports only one-based indexing of the input arrays &amp;nbsp;and m&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;atrix column indexes must be in increasing order. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;why you have code to change this?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;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;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;2. the key problem, as alex mentioned, &amp;nbsp;what model do you want, &amp;nbsp;ILP64 or LP64. &amp;nbsp;If ILP64. &amp;nbsp;Then it is better to use MKL_INT &amp;nbsp;to replace the int where needed.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;20803 0.000037 1583 -1.288940&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;20809 0.000635 1584 -0.294387&lt;BR /&gt;
	&amp;nbsp;20815 0.000056 433 -1.870527&lt;BR /&gt;
	&amp;nbsp;20821 -0.000022 1009 -0.125222&lt;BR /&gt;
	&amp;nbsp;dcsrgemv&lt;BR /&gt;
	Linear Solver begins&lt;BR /&gt;
	sizetmpi= 27474718&lt;BR /&gt;
	N=3314, NNZ= 20820&lt;BR /&gt;
	LinearSolver: Line 48&lt;BR /&gt;
	dfgmres_init&lt;BR /&gt;
	dfgmres_end&lt;BR /&gt;
	ilu begin&lt;/P&gt;

&lt;P&gt;------------------------------------------------------------------------------&lt;BR /&gt;
	Intel MKL DCSRILU0 ERROR:&lt;BR /&gt;
	Cannot proceed with calculations as input&lt;BR /&gt;
	matrix column indexes are not in increasing order.&lt;BR /&gt;
	ilu end&lt;BR /&gt;
	Preconditioner dcsrilu0 has returned the ERROR code -106-------------------------------------------------------------------&lt;BR /&gt;
	Unfortunately, FGMRES+ILU0 C example has FAILED&lt;BR /&gt;
	-------------------------------------------------------------------&lt;BR /&gt;
	The error is 2&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2015 08:44:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-ERROR-Parameter-2-was-incorrect-on-entry-to-MKL/m-p/1051758#M21203</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2015-06-26T08:44:00Z</dc:date>
    </item>
    <item>
      <title>Thank you, Ying and Alex. I</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-ERROR-Parameter-2-was-incorrect-on-entry-to-MKL/m-p/1051759#M21204</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 11.1497144699097px;"&gt;Thank you, Ying and Alex. I do use ilp64 in my makefile. And I have attached my makefile.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 10.2857141494751px;"&gt;for(i=0; i&amp;lt;*N; i++) --ia&lt;I&gt;;&lt;/I&gt;&lt;/SPAN&gt;&lt;BR style="font-size: 12px; line-height: 10.2857141494751px;" /&gt;
	&lt;SPAN style="font-size: 12px; line-height: 10.2857141494751px;"&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;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 10.2857141494751px;"&gt;These two lines are because the input ia, ja are from the output of fortran code, the array of which begins from 1.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;FC = ifort -check bounds -g -traceback&lt;BR /&gt;
	CC = icc -g -traceback&lt;/P&gt;

&lt;P&gt;MKLDIR = /nas02/apps/intel-15.0/cc/mkl&lt;/P&gt;

&lt;P&gt;FFLAGS = -i8 -openmp -w -fast -DMKL_ILP64 -m64 &amp;nbsp;\&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp; -I$(MKLDIR)/include/intel64/ilp64 \&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp; -I$(MKLDIR)/include&amp;nbsp;&lt;/P&gt;

&lt;P&gt;CFLAGS = -i8 -openmp -w -fast -DMKL_ILP64 -m64 \&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp; -I$(MKLDIR)/include/intel64/ilp64 \&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp; -I$(MKLDIR)/include&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	#INCLUDES = -I$(MKLDIR)/include/intel64/ilp64 -I$(MKLDIR)/include&lt;/P&gt;

&lt;P&gt;LFLAGS = -L$(MKLDIR)/lib/intel64 -lmkl_intel_ilp64 \&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp; -lmkl_intel_thread -lmkl_blas95_ilp64 -lmkl_lapack95_ilp64 \&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-liomp5 -lmkl_core &amp;nbsp;-lm -lpthread&lt;/P&gt;

&lt;P&gt;OBJS = &amp;nbsp;main.o LinearSolver.o&lt;/P&gt;

&lt;P&gt;ALL_OBJ = $(OBJS)&lt;/P&gt;

&lt;P&gt;%.o: %.f&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;$(FC) $(FFLAGS) -c $&amp;lt;&lt;BR /&gt;
	%.o:%.c&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;$(CC) $(FFLAGS) -c $&amp;lt;&lt;/P&gt;

&lt;P&gt;ds: &amp;nbsp;$(ALL_OBJ)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;$(CC) $(ALL_OBJ) $(LFLAGS) -o ds&amp;nbsp;&lt;/P&gt;

&lt;P&gt;clean:&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;rm -rf *.o *.mod *.out *.chk ds&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2015 17:26:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-ERROR-Parameter-2-was-incorrect-on-entry-to-MKL/m-p/1051759#M21204</guid>
      <dc:creator>Maggie_m_</dc:creator>
      <dc:date>2015-06-29T17:26:19Z</dc:date>
    </item>
    <item>
      <title>If you call MKL routines from</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-ERROR-Parameter-2-was-incorrect-on-entry-to-MKL/m-p/1051760#M21205</link>
      <description>&lt;P&gt;If you call MKL routines from C or Fortran 77, you do not need "&amp;nbsp;-lmkl_blas95_ilp64 -lmkl_lapack95_ilp64 ". You need those libraries only if you call from Fortran 90+ and you call the F95 interface names rather than the F77 names.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2015 17:49:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-ERROR-Parameter-2-was-incorrect-on-entry-to-MKL/m-p/1051760#M21205</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2015-06-29T17:49:45Z</dc:date>
    </item>
    <item>
      <title>Also,  I have changed all the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-ERROR-Parameter-2-was-incorrect-on-entry-to-MKL/m-p/1051761#M21206</link>
      <description>&lt;P&gt;Also, &amp;nbsp;I have changed all the int to MKL_INT. However, I still got the error:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;dcsrgemv&lt;BR /&gt;
	Linear Solver begins&lt;BR /&gt;
	sizetmpi= 27474718&lt;BR /&gt;
	N=3314, NNZ= 20820&lt;BR /&gt;
	LinearSolver: Line 48&lt;BR /&gt;
	dfgmres_init&lt;BR /&gt;
	dfgmres_end&lt;BR /&gt;
	ilu begin&lt;/P&gt;

&lt;P&gt;------------------------------------------------------------------------------&lt;BR /&gt;
	Intel MKL DCSRILU0 ERROR:&amp;nbsp;&lt;BR /&gt;
	Cannot proceed with calculations as input&lt;BR /&gt;
	matrix column indexes are not in increasing order.&lt;BR /&gt;
	ilu end&lt;BR /&gt;
	Preconditioner dcsrilu0 has returned the ERROR code -106-------------------------------------------------------------------&lt;BR /&gt;
	Unfortunately, FGMRES+ILU0 C example has FAILED&lt;BR /&gt;
	-------------------------------------------------------------------&lt;BR /&gt;
	The error is 0&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2015 20:54:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-ERROR-Parameter-2-was-incorrect-on-entry-to-MKL/m-p/1051761#M21206</guid>
      <dc:creator>Maggie_m_</dc:creator>
      <dc:date>2015-06-29T20:54:25Z</dc:date>
    </item>
  </channel>
</rss>

