<?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 Quote:Ying H (Intel) wrote: in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrgemv-provokes-access-violation/m-p/1020272#M19691</link>
    <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Ying H (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;HI LB,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I noticed you mentioned INTEGER *8, &amp;nbsp;do you link the ilp64 interface? &amp;nbsp;&lt;/P&gt;

&lt;P&gt;What mkl libraries are you using? &amp;nbsp; Here is MKL link line advisor:&amp;nbsp;&lt;A href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor"&gt;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi Ying,&lt;/P&gt;

&lt;P&gt;I use the ilp64 interface. In fact, I compile linking the following libraries:&lt;/P&gt;

&lt;P&gt;mkl_intel_ilp64.lib mkl_intel_thread.lib mkl_core.lib&amp;nbsp; mkl_solver_ilp64.lib libiomp5mt.lib&lt;/P&gt;

&lt;P&gt;Default library directory is set as $(IFortInstallDir)mkl\em64t\lib in compiler options. Do I need to include an interface? Or something else?&lt;/P&gt;</description>
    <pubDate>Thu, 22 May 2014 07:57:24 GMT</pubDate>
    <dc:creator>Lorenzo_B_</dc:creator>
    <dc:date>2014-05-22T07:57:24Z</dc:date>
    <item>
      <title>mkl_?csrgemv provokes access violation</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrgemv-provokes-access-violation/m-p/1020269#M19688</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;

&lt;P&gt;I am developing a routine to use the DFGMRES iterative solver. The routine is attached.&lt;/P&gt;

&lt;P&gt;Mainly, I call this routine with these variables which are all double precision (INTEGER*8, REAL*8):&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTEGER, INTENT(IN)&amp;nbsp; :: nequa, nthre, nrhsi, lusol, symmq&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTEGER, INTENT(IN)&amp;nbsp; :: iamat(nequa+1)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTEGER, INTENT(IN)&amp;nbsp; :: jamat(*)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REAL*8,&amp;nbsp; INTENT(IN)&amp;nbsp; :: amatr(*)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REAL*8,&amp;nbsp; INTENT(IN)&amp;nbsp; :: rhsid(nequa)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REAL*8, INTENT(out)&amp;nbsp; :: unkno(nequa)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;amatr, iamat and jamat represent the description of the matrix in CSR notation with fortran indexing. In addition I create also the temporal vector tmprl as required in the MKL manual (nequa is the number of rows):&lt;/P&gt;

&lt;P&gt;REAL*8&amp;nbsp; tmprl(nequa*(2*nequa+1)+(nequa*(nequa+9))/2+1)&lt;/P&gt;

&lt;P&gt;Then, when performing the following operation:&lt;/P&gt;

&lt;P&gt;call mkl_dcsrgemv('n',nequa, amatr, iamat, jamat,tmprl(ipara(22)), tmprl(ipara(23)))&lt;/P&gt;

&lt;P&gt;it throws:&lt;/P&gt;

&lt;P&gt;Unhandled exception at 0x000000014029f4ae in MyComet64.exe: 0xC0000005: Access violation reading location 0x0000000000000001.&lt;/P&gt;

&lt;P&gt;What is happening here? How can I solve it? I am running under Windows 7 with Fortran compiler 11.072 and MKL library 10.1&lt;/P&gt;

&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2014 18:09:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrgemv-provokes-access-violation/m-p/1020269#M19688</guid>
      <dc:creator>Lorenzo_B_</dc:creator>
      <dc:date>2014-05-21T18:09:10Z</dc:date>
    </item>
    <item>
      <title>We also need the sources</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrgemv-provokes-access-violation/m-p/1020270#M19689</link>
      <description>&lt;P&gt;We also need the sources containing routines RUNEND and BUILPR, a driver program to call Subroutine SolvGM, and any data file that may be needed to run the program.&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2014 00:19:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrgemv-provokes-access-violation/m-p/1020270#M19689</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2014-05-22T00:19:00Z</dc:date>
    </item>
    <item>
      <title>HI LB, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrgemv-provokes-access-violation/m-p/1020271#M19690</link>
      <description>&lt;P&gt;HI LB,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I noticed you mentioned INTEGER *8, &amp;nbsp;do you link the ilp64 interface? &amp;nbsp;&lt;/P&gt;

&lt;P&gt;What mkl libraries are you using? &amp;nbsp; Here is MKL link line advisor:&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&lt;A href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor" target="_blank"&gt;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2014 02:29:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrgemv-provokes-access-violation/m-p/1020271#M19690</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2014-05-22T02:29:51Z</dc:date>
    </item>
    <item>
      <title>Quote:Ying H (Intel) wrote:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrgemv-provokes-access-violation/m-p/1020272#M19691</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Ying H (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;HI LB,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I noticed you mentioned INTEGER *8, &amp;nbsp;do you link the ilp64 interface? &amp;nbsp;&lt;/P&gt;

&lt;P&gt;What mkl libraries are you using? &amp;nbsp; Here is MKL link line advisor:&amp;nbsp;&lt;A href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor"&gt;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi Ying,&lt;/P&gt;

&lt;P&gt;I use the ilp64 interface. In fact, I compile linking the following libraries:&lt;/P&gt;

&lt;P&gt;mkl_intel_ilp64.lib mkl_intel_thread.lib mkl_core.lib&amp;nbsp; mkl_solver_ilp64.lib libiomp5mt.lib&lt;/P&gt;

&lt;P&gt;Default library directory is set as $(IFortInstallDir)mkl\em64t\lib in compiler options. Do I need to include an interface? Or something else?&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2014 07:57:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrgemv-provokes-access-violation/m-p/1020272#M19691</guid>
      <dc:creator>Lorenzo_B_</dc:creator>
      <dc:date>2014-05-22T07:57:24Z</dc:date>
    </item>
    <item>
      <title>Quote:mecej4 wrote:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrgemv-provokes-access-violation/m-p/1020273#M19692</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;mecej4 wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;We also need the sources containing routines RUNEND and BUILPR, a driver program to call Subroutine SolvGM, and any data file that may be needed to run the program.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Hi mecej4,&lt;/P&gt;

&lt;P&gt;RUNEND is a routine that writes an error message and then stops the program. I am sure that it is not the problem so you can omit that. Instead BUILPR creates a preconditioner matrix. It is attached the routine. The thing is that those routines work and DFGMRES_CHECK returns 0, so data seems to be saved the right way.&lt;/P&gt;

&lt;P&gt;EDIT: I forgot to add a driver program that launches SolvGM. Here it is a simplified version of the main program.&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2014 08:32:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrgemv-provokes-access-violation/m-p/1020273#M19692</guid>
      <dc:creator>Lorenzo_B_</dc:creator>
      <dc:date>2014-05-22T08:32:10Z</dc:date>
    </item>
    <item>
      <title>Hi again,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrgemv-provokes-access-violation/m-p/1020274#M19693</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;

&lt;P&gt;first of all, I adjusted the version that I attached. At the moment, as you can see, the code works and the result is correct.&lt;/P&gt;

&lt;P&gt;I noticed that the problem is in the definition of the pointers that through the program defines the position of the matrices and vectors in the memory. The memory allocation is done with malloc. The same memory allocation is done when I solve with Pardiso solver, so this is not the problem.&lt;/P&gt;

&lt;P&gt;The actual program call to the routine is in fact&lt;/P&gt;

&lt;P&gt;call solvgm(%val(p_rof),%val(p_col),%val(p_mat),%val(iwoso), unkno, nequa, 1, 1, 1, .true., 34)&lt;/P&gt;

&lt;P&gt;where p_rof, p_col, p_mat and iwoso are the pointers respectively to row vector iamat, columns vector jamat, coefficient matrix amatr and right hand side vector rhsid. However, if I stop before the call of mkl_dcsrgemv while debugging and I recall variables in the watch windows, then they are allocated and with their proper value.&lt;/P&gt;

&lt;P&gt;So, is it a pointer problem? How can I check it in VS2008?&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2014 14:06:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrgemv-provokes-access-violation/m-p/1020274#M19693</guid>
      <dc:creator>Lorenzo_B_</dc:creator>
      <dc:date>2014-05-22T14:06:41Z</dc:date>
    </item>
    <item>
      <title>This thread has become</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrgemv-provokes-access-violation/m-p/1020275#M19694</link>
      <description>&lt;P&gt;This thread has become somewhat confusing, with multiple program versions.&lt;/P&gt;

&lt;P&gt;However, there is a potential problem in Solver.f, where you declare the argument RHSID as INTENT(IN). This is in conflict with the interfaces of DFGMRES and DFGMRES_GET as to intent (INOUT and OUT, respectively). You can detect these mismatches by compiling mkl_rci.f90 and adding "USE mkl_rci&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;" to your subroutine SOLVER.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2014 00:17:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrgemv-provokes-access-violation/m-p/1020275#M19694</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2014-05-23T00:17:54Z</dc:date>
    </item>
    <item>
      <title>Hi Lorenzo, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrgemv-provokes-access-violation/m-p/1020276#M19695</link>
      <description>&lt;P&gt;Hi Lorenzo,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I'm not sure if it is the function bug in MKL 10.1 &amp;nbsp;or some problem in your real call. &amp;nbsp;I did a test with the files your provided with MKL 11.1 and 32bit. After fix some compile error like&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;"The type of the actual argument differs from the type of the dummy argument. &amp;nbsp; [LUSOL&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;]"&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;LUSOL some time was integer, &amp;nbsp;some place is&amp;nbsp;&amp;nbsp;Logical*1 :: lusol. , the problem can run without any problem.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I haven't tried ilp64bit. &amp;nbsp;because In the test case, you haven't define the integer as integer *8. &amp;nbsp; &amp;nbsp;So not sure where is the root cause, but any way,&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;is it possible for you to try the latest MKL version&lt;/SPAN&gt;?&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt; &amp;nbsp;since MKL 10.1 there are many bug fix&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Like&amp;nbsp;https://software.intel.com/en-us/articles/intel-mkl-110-bug-fixes&lt;/P&gt;

&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="font-size: 13px; width: 700px;"&gt;
	&lt;TBODY style="border-top-width: 1px; border-top-style: solid; border-top-color: rgb(204, 204, 204);"&gt;
		&lt;TR&gt;
			&lt;TD valign="top"&gt;DPD200316016&lt;/TD&gt;
			&lt;TD&gt;Fixed mkl_scsrgemv error with one test data on MIC&lt;/TD&gt;
		&lt;/TR&gt;
	&lt;/TBODY&gt;
&lt;/TABLE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2014 06:27:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrgemv-provokes-access-violation/m-p/1020276#M19695</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2014-05-23T06:27:43Z</dc:date>
    </item>
    <item>
      <title> </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrgemv-provokes-access-violation/m-p/1020277#M19696</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;gt;&amp;gt;&amp;gt;Unhandled exception at 0x000000014029f4ae in MyComet64.exe: 0xC0000005: Access violation reading location 0x0000000000000001.&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;What is happening here? How can I solve it? I am running under Windows 7 with Fortran compiler 11.072 and MKL library 10.1&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;Coming late to discussion:)&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;I assume that MyComet64.exe is your application.By looking at error description it seems that this is data access violation.When running under debugger and with source available debugger will be able to pinpoint the exact source code line of the error.&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;In your case &amp;nbsp;instruction at this code point&amp;nbsp;&lt;SPAN style="font-size: 12px; line-height: 14.399999618530273px;"&gt;0x000000014029f4ae caused an accesss violation exception.In order to find the possible culprit you should run your app under debugger and break on av exception next step can be backward stack tracing and observing where&amp;nbsp;0x0000000000000001 address came from.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2014 07:14:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrgemv-provokes-access-violation/m-p/1020277#M19696</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2014-05-23T07:14:14Z</dc:date>
    </item>
  </channel>
</rss>

