<?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: Strange behaviour when using ZGETRF  in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-behaviour-when-using-ZGETRF/m-p/894093#M10694</link>
    <description>&lt;DIV style="margin:0px;"&gt;Hello Nico,&lt;BR /&gt;&lt;BR /&gt;You are linking ilp64 libraries by -lmkl_intel_ilp64. It assumes that all input integers are 8byte long. In Fortran default integer length is 4byte. So you need one of:&lt;BR /&gt;1. Add -i8 flagwhile compiling Fortran sources, so the default integer length will become 8byte.&lt;/DIV&gt;
&lt;P&gt;2. Link with -lmkl_intel_lp64, which assumes 4byte integers on input.&lt;/P&gt;
&lt;P&gt;--Alexander&lt;/P&gt;</description>
    <pubDate>Thu, 05 Nov 2009 13:33:25 GMT</pubDate>
    <dc:creator>Alexander_K_Intel3</dc:creator>
    <dc:date>2009-11-05T13:33:25Z</dc:date>
    <item>
      <title>Strange behaviour when using ZGETRF</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-behaviour-when-using-ZGETRF/m-p/894092#M10693</link>
      <description>When trying to use the subroutine ZGETRF we get&lt;BR /&gt;MKL ERROR: Parameter 4 was incorrect on entry to ZGETRF&lt;BR /&gt;&lt;BR /&gt;Our code is:&lt;BR /&gt;
&lt;PRE&gt;[plain]*     ZGETRF (F07ARF) Example Program Text
*     Mark 15 Release. NAG Copyright 1991.
*     .. Parameters ..
      INTEGER          NIN, NOUT
      PARAMETER        (NIN=5,NOUT=6)
      INTEGER          MMAX, NMAX, LDA
      PARAMETER        (MMAX=8,NMAX=8,LDA=MMAX)
*     .. Local Scalars ..
      INTEGER          I, IFAIL, INFO, J, M, N
*     .. Local Arrays ..
      COMPLEX*16       A(LDA,NMAX)
      COMPLEX*16       B(LDA,NMAX)
      INTEGER          IPIV(NMAX)
      CHARACTER        CLABS(1), RLABS(1)
*     .. External Subroutines ..
      EXTERNAL         ZGETRF, X04DBF
*     .. Intrinsic Functions ..
      INTRINSIC        MIN
*     .. Executable Statements ..
      WRITE (NOUT,*) 'ZGETRF Example Program Results'
*     Skip heading in data file
      READ (NIN,*)
      READ (NIN,*) M, N
      IF (M.LE.MMAX .AND. N.LE.NMAX) THEN
*
*        Read A from data file
*
         READ (NIN,*) ((A(I,J),J=1,N),I=1,M)
         B(1:M,1:N)=A(1:M,1:N)
*
*        Factorize A
*
         CALL ZGETRF(M,N,A,LDA,IPIV,INFO)
*
      END IF
      STOP
      END
[/plain]&lt;/PRE&gt;
which is the code provided in the examples directory. Our change is an assignment of the matrix A to B.&lt;BR /&gt;The code works fine without the assignment.&lt;BR /&gt;&lt;BR /&gt;The input was taken from the examples directory too.&lt;BR /&gt;&lt;BR /&gt;compilation command:&lt;BR /&gt;mpif90 -L/opt/intel/Compiler/11.1/046/mkl/lib/em64t -lmkl_core -lmkl_sequential -lmkl_lapack -lmkl_intel_ilp64 zgetrfx.f&lt;BR /&gt;&lt;BR /&gt;execution command:&lt;BR /&gt;./a.out &amp;lt; zgetrfx.d&lt;BR /&gt;&lt;BR /&gt;Help would be highly appreciated.&lt;BR /&gt;Best regards&lt;BR /&gt;Nico Parragh</description>
      <pubDate>Wed, 04 Nov 2009 15:56:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-behaviour-when-using-ZGETRF/m-p/894092#M10693</guid>
      <dc:creator>nicop</dc:creator>
      <dc:date>2009-11-04T15:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Strange behaviour when using ZGETRF</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-behaviour-when-using-ZGETRF/m-p/894093#M10694</link>
      <description>&lt;DIV style="margin:0px;"&gt;Hello Nico,&lt;BR /&gt;&lt;BR /&gt;You are linking ilp64 libraries by -lmkl_intel_ilp64. It assumes that all input integers are 8byte long. In Fortran default integer length is 4byte. So you need one of:&lt;BR /&gt;1. Add -i8 flagwhile compiling Fortran sources, so the default integer length will become 8byte.&lt;/DIV&gt;
&lt;P&gt;2. Link with -lmkl_intel_lp64, which assumes 4byte integers on input.&lt;/P&gt;
&lt;P&gt;--Alexander&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2009 13:33:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-behaviour-when-using-ZGETRF/m-p/894093#M10694</guid>
      <dc:creator>Alexander_K_Intel3</dc:creator>
      <dc:date>2009-11-05T13:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Strange behaviour when using ZGETRF</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-behaviour-when-using-ZGETRF/m-p/894094#M10695</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Thank you, this solved the problem!&lt;BR /&gt;Best&lt;BR /&gt;Nico&lt;BR /&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 Nov 2009 09:55:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Strange-behaviour-when-using-ZGETRF/m-p/894094#M10695</guid>
      <dc:creator>nicop</dc:creator>
      <dc:date>2009-11-06T09:55:58Z</dc:date>
    </item>
  </channel>
</rss>

