<?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 mkl -- inverse square matrix -- transpose in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769269#M480</link>
    <description>hi,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;thank you again very much.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;the function defined in&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]/opt/intel/composerxe-2011.0.084/mkl/interfaces/lapack95/source/[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;that I want to use to "&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; white-space: pre;"&gt;computes an LU factorization of a nxm genelral matrix A&lt;/SPAN&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; white-space: pre;"&gt;" (first step to invert a matrix) is:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]DGETRF[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;and in dgetrf.f90 the subroutine is:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]PURE SUBROUTINE DGETRF_F95(A,IPIV,INFO)

USE F77_LAPACK, ONLY: F77_GETRF, F77_XERBLA
    ! &amp;lt;&amp;lt;&amp;lt; ENTRY point &amp;gt;&amp;gt;&amp;gt;
    ENTRY DGETRF_MKL95(A,IPIV,INFO)
    ! &amp;lt;&amp;lt;&amp;lt; Implicit statement &amp;gt;&amp;gt;&amp;gt;
    IMPLICIT NONE

...
...
...
END SUBROUTINE DGETRF_F95[/bash]&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]&lt;BR /&gt;[/bash]&lt;/PRE&gt; As you can see it need only three arguments:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;1) the matrix to invert A(nxn)&lt;/DIV&gt;&lt;DIV&gt;2) an array dim(n)&lt;/DIV&gt;&lt;DIV&gt;3) a flag&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I compile as:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]-L$MKLPATH -lmkl_lapack95 -mkl  *.f90 
[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;It runs but I have the following error:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]SIGSEGV, segmentation fault occurred
Image              PC                Routine            Line        Source             
libmkl_intel_lp64  00007FBDAD0B37D3  Unknown               Unknown  Unknown
[/bash]&lt;/PRE&gt; and here my code:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]SUBROUTINE quadraturepoints
USE precisionpc
USE basic_funtions_modal_2D
USE comuni
IMPLICIT NONE

....
....
REAL    (DBL),  DIMENSION(nGP1D,nGP1D) :: CoeffMat
REAL    (DBL),  DIMENSION(nGP1D)       :: IPIV

...
...
CALL DGETRF(CoeffMat,ipiv,info)

...
...
...
[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;If I try to callDGETRF_F95 I have an errot&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I don't know if the problem is in the link between my code and lapack95 or in the input in the subroutineDGETRF_F95&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;thank you very much you are my lifesaver&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 19 Aug 2011 16:09:38 GMT</pubDate>
    <dc:creator>diedro</dc:creator>
    <dc:date>2011-08-19T16:09:38Z</dc:date>
    <item>
      <title>mkl -- inverse square matrix -- transpose</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769265#M476</link>
      <description>&lt;META content="text/html; charset=utf-8" http-equiv="content-type" /&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;hi every one,&lt;/DIV&gt;I would like to find the inverse and after that of a square matrix. The matrix it is n x n with n very small, max n = 20-30.&lt;BR /&gt;I would like to use the mkl libraries in intel fortran 95\\2003.&lt;BR /&gt;what libraries could I use ?&lt;BR /&gt;How shall I do?&lt;BR /&gt;thanks&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Aug 2011 10:29:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769265#M476</guid>
      <dc:creator>diedro</dc:creator>
      <dc:date>2011-08-19T10:29:41Z</dc:date>
    </item>
    <item>
      <title>mkl -- inverse square matrix -- transpose</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769266#M477</link>
      <description>Diedro,&lt;DIV&gt;Please see the MKL Manual Documentation - Lapack\Computations routines\Routines for Matrix Inversion.&lt;/DIV&gt;&lt;DIV&gt;also see the &lt;A href="http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/"&gt;MKL Linker Advise&lt;/A&gt;r - to select what MKL'slibraries are recommended for linking ...&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN style="line-height: 16px;"&gt;--Gennady&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;H1 class="topictitle1"&gt;&lt;/H1&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Aug 2011 12:37:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769266#M477</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2011-08-19T12:37:44Z</dc:date>
    </item>
    <item>
      <title>mkl -- inverse square matrix -- transpose</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769267#M478</link>
      <description>hi,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;thank you very much but it seems very comlicate.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I found the functio that are:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]    call GETRF(CoeffMat,ipiv)
    call GETRI(CoeffMat,ipiv) [/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;and I try to compile as:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]ifort -L$MKLPATH -lmkl_lapack -mkl -lpthread *.f90
[/bash]&lt;/PRE&gt; but I get the following error:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;PRE&gt;[bash]quadraturepoints.f90(86): error #6285: There is no matching specific subroutine for this generic subroutine call.   [GETRF]
    call GETRF(CoeffMat,ipiv)
---------^
quadraturepoints.f90(87): error #6285: There is no matching specific subroutine for this generic subroutine call.   [GETRI]
[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;could you please what it is wrong?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;thank you very much&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Aug 2011 13:42:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769267#M478</guid>
      <dc:creator>diedro</dc:creator>
      <dc:date>2011-08-19T13:42:25Z</dc:date>
    </item>
    <item>
      <title>mkl -- inverse square matrix -- transpose</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769268#M479</link>
      <description>The combination of array data types and rank declarations must match one of the original BLAS functions. The source code for the lapack use modules is provided in your installation, in case that will help you see what are the supported specific subroutines. You could post a complete small example if you want further advice.</description>
      <pubDate>Fri, 19 Aug 2011 15:02:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769268#M479</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2011-08-19T15:02:47Z</dc:date>
    </item>
    <item>
      <title>mkl -- inverse square matrix -- transpose</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769269#M480</link>
      <description>hi,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;thank you again very much.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;the function defined in&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]/opt/intel/composerxe-2011.0.084/mkl/interfaces/lapack95/source/[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;that I want to use to "&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; white-space: pre;"&gt;computes an LU factorization of a nxm genelral matrix A&lt;/SPAN&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; white-space: pre;"&gt;" (first step to invert a matrix) is:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]DGETRF[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;and in dgetrf.f90 the subroutine is:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]PURE SUBROUTINE DGETRF_F95(A,IPIV,INFO)

USE F77_LAPACK, ONLY: F77_GETRF, F77_XERBLA
    ! &amp;lt;&amp;lt;&amp;lt; ENTRY point &amp;gt;&amp;gt;&amp;gt;
    ENTRY DGETRF_MKL95(A,IPIV,INFO)
    ! &amp;lt;&amp;lt;&amp;lt; Implicit statement &amp;gt;&amp;gt;&amp;gt;
    IMPLICIT NONE

...
...
...
END SUBROUTINE DGETRF_F95[/bash]&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]&lt;BR /&gt;[/bash]&lt;/PRE&gt; As you can see it need only three arguments:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;1) the matrix to invert A(nxn)&lt;/DIV&gt;&lt;DIV&gt;2) an array dim(n)&lt;/DIV&gt;&lt;DIV&gt;3) a flag&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I compile as:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]-L$MKLPATH -lmkl_lapack95 -mkl  *.f90 
[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;It runs but I have the following error:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]SIGSEGV, segmentation fault occurred
Image              PC                Routine            Line        Source             
libmkl_intel_lp64  00007FBDAD0B37D3  Unknown               Unknown  Unknown
[/bash]&lt;/PRE&gt; and here my code:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]SUBROUTINE quadraturepoints
USE precisionpc
USE basic_funtions_modal_2D
USE comuni
IMPLICIT NONE

....
....
REAL    (DBL),  DIMENSION(nGP1D,nGP1D) :: CoeffMat
REAL    (DBL),  DIMENSION(nGP1D)       :: IPIV

...
...
CALL DGETRF(CoeffMat,ipiv,info)

...
...
...
[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;If I try to callDGETRF_F95 I have an errot&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I don't know if the problem is in the link between my code and lapack95 or in the input in the subroutineDGETRF_F95&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;thank you very much you are my lifesaver&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Aug 2011 16:09:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769269#M480</guid>
      <dc:creator>diedro</dc:creator>
      <dc:date>2011-08-19T16:09:38Z</dc:date>
    </item>
    <item>
      <title>mkl -- inverse square matrix -- transpose</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769270#M481</link>
      <description>You must first resolve the compile time problem. The message you quoted before refers to the list of specific versions of getrf, dgetri, which you will see in lapack/interfaces.f90. Fortran looks at the list of alternatives there and gives you the error when none of the alternate specific subroutines match your data types.&lt;BR /&gt;IPIV is not a flag; it's an array of default integers to record interchanges. If you don't get that right, that would give rise to the error. If you supply it as an array of double precision, as you appear to have done, that also will give rise to the rejection. Likewise, INFO, which you may call a flag, must be typed integer (rank 0).&lt;BR /&gt;The integer types would be default integer, unless you choose the ilp libraries, in which case they would be integer(kind=8).</description>
      <pubDate>Fri, 19 Aug 2011 18:24:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769270#M481</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2011-08-19T18:24:34Z</dc:date>
    </item>
    <item>
      <title>mkl -- inverse square matrix -- transpose</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769271#M482</link>
      <description>Hi really really thank you,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;A is amatrix andIPIV an array:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]REAL    (DBL),  DIMENSION(nGP1D)       :: IPIV[/bash]&lt;/PRE&gt; info is an integer, not standard I suppose, what do you mean for&lt;I&gt;ilp libraries.&lt;/I&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;I&gt;&lt;BR /&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;DIV&gt;AboutDGETRI_f95, it seems to be inDGETRI.f90 where it calls some F77 subroutine (ex.F77_GETRF)&lt;I&gt;&lt;/I&gt;I suppose using lapack_interfaces.f90.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;How can I use it? How shall compile with mkl?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I will use &lt;META http-equiv="content-type" content="text/html; charset=utf-8" /&gt;DGETRIeacuse it os double , is it right?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;thank again&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Aug 2011 19:41:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769271#M482</guid>
      <dc:creator>diedro</dc:creator>
      <dc:date>2011-08-19T19:41:37Z</dc:date>
    </item>
    <item>
      <title>mkl -- inverse square matrix -- transpose</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769272#M483</link>
      <description>Hi,&lt;DIV&gt;I tried also to set all the variables and mlk again:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]./mklvars.sh intel64
[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;and I have:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]./mklvars.sh: 12: Bad substitution
diego@diedro:/opt/intel/composerxe-2011/mkl/bin$ 
[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;Is this the problem?&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Aug 2011 20:25:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769272#M483</guid>
      <dc:creator>diedro</dc:creator>
      <dc:date>2011-08-19T20:25:03Z</dc:date>
    </item>
    <item>
      <title>mkl -- inverse square matrix -- transpose</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769273#M484</link>
      <description>I guess you're not using the ilp (64-bit integer) libraries, but you haven't given us that information. You don't need to change anything in the source code for the MKL .mod files; I just referred you to it to point out where the data type mismatch is (evidently, your wrong data type for IPIV, possibly others).</description>
      <pubDate>Fri, 19 Aug 2011 22:02:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769273#M484</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2011-08-19T22:02:37Z</dc:date>
    </item>
    <item>
      <title>mkl -- inverse square matrix -- transpose</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769274#M485</link>
      <description>hi,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;now I can compile, I hope correctely:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]ifort *.f90 -L$MKLPATH/lib/em64t  -lmkl_blas95_ilp64 -lmkl_lapack95_ilp64 -lmkl_intel_ilp64 -lmkl_sequential -lmkl_core -lpthread
[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;But there is a problem:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;If I use:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]SUBROUTINE quadraturepoints
USE precisionpc
USE basic_funtions_modal_2D
USE mkl95_LAPACK[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;Fortran compile without any problem, it recognize also:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]CALL DGETRF_F95 (Inv,IPIV,INFO)[/bash]&lt;/PRE&gt; &lt;DIV&gt;&lt;/DIV&gt;however the program is non able to run to the end. I have check, the subroutine &lt;META http-equiv="content-type" content="text/html; charset=utf-8" /&gt;&lt;PRE&gt;[bash]DGETRF_F95[/bash]&lt;/PRE&gt;seems to not work.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;If I choose also&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]USE LAPACK95[/bash]&lt;/PRE&gt; and I compile as&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash] ifort *.f90 -L$MKLPATH/lib/em64t  -lmkl_blas95_ilp64 -lmkl_lapack95_ilp64 -lmkl_intel_ilp64 -lmkl_sequential -lmkl_core -lpthread -llapack95
[/bash]&lt;/PRE&gt; I have the following errors:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]error #6633: The type of the actual argument differs from the type of the dummy argument.   [INV]
   CALL DGETRF_F95 (Inv,IPIV,INFO)
--------------------^
quadraturepoints.f90(91): error #6633: The type of the actual argument differs from the type of the dummy argument.   [IPIV]
   CALL DGETRF_F95 (Inv,IPIV,INFO)
------------------------^
quadraturepoints.f90(91): error #6633: The type of the actual argument differs from the type of the dummy argument.   [INFO]
   CALL DGETRF_F95 (Inv,IPIV,INFO)
-----------------------------^
compilation aborted for quadraturepoints.f90 (code 1)
diego@diedro:~/Desktop/dottorato/src/fortran_src/cgk2D_gauss_n$ 
[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;why?&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Aug 2011 23:19:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769274#M485</guid>
      <dc:creator>diedro</dc:creator>
      <dc:date>2011-08-19T23:19:03Z</dc:date>
    </item>
    <item>
      <title>mkl -- inverse square matrix -- transpose</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769275#M486</link>
      <description>hi,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;now I try ti summurized what is going on.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I am using composerxe2011.0.084&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;First of all I compile my program as:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash] ifort *.f90 -L$MKLPATH/lib/em64t  -lmkl_blas95_ilp64 -lmkl_lapack95_ilp64 -lmkl_intel_ilp64 -lmkl_sequential -lmkl_core -lpthread
[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;After that I wrote a program to test the inversion of a matrix using mkl libraries:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]program inversion
use f95_precision
use lapack95
implicit none
    
    integer(sp)   :: I, N,info
    integer(sp)  ,  dimension(:)   , allocatable:: IPIV
    real   (sp)  ,  dimension(:,:) , allocatable:: A, AA
    
    N = 3
    
    allocate( IPIV(N) )
    allocate( A(N,N), AA(N,N) )
    
    AA(1,1) = 1.0d0; AA(1,2) = 3.0d0; AA(1,3) = 1.0d0
    AA(2,1) = 1.0d0; AA(2,2) = 1.0d0; AA(2,3) = 2.0d0
    AA(3,1) = 2.0d0; AA(3,2) = 3.0d0; AA(3,3) = 4.0d0

    A = AA

    write(*,*) 'The Matrix A is:'
    do I = 1,N
        write(*,*) AA(I,:)
    end do

    write(*,*) 'The First Step is to Factorise A'
    call GETRF( A, IPIV)


    write(*,*) 'The Inverted Matrix is:'
    do I = 1,N
        write(*,*) A(I,:)
    end do
!     
    write(*,*) 'IPIV',IPIV
    write(*,*) 'The Second Step is to Invert A'
    call GETRI(A, IPIV )
! 
    write(*,*) 'The Inverted Matrix is:'
    do I = 1,N
        write(*,*) A(I,:)
    end do

end program inversion[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;and this are the results:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]&lt;DIV id="_mcePaste"&gt;&lt;PRE name="code" class="bash"&gt; The Matrix A is:
   1.000000       3.000000       1.000000    
   1.000000       1.000000       2.000000    
   2.000000       3.000000       4.000000    
 The First Step is to Factorise A
 The Inverted Matrix is:
   2.000000       3.000000       4.000000    
  0.5000000       1.500000      -1.000000    
  0.5000000     -0.3333333     -0.3333333    
 info           0
 IPIV           3           3           3
 The Second Step is to Invert A
forrtl: severe (174): SIGSEGV, segmentation fault occurred
[/bash]&lt;/PRE&gt;  &lt;/DIV&gt;&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;why Do I have a segmentation fault with the GETRI call?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I am not able to understand,&lt;META content="text/html; charset=utf-8" http-equiv="content-type" /&gt;GETRF seems to work correctely but not&lt;META content="text/html; charset=utf-8" http-equiv="content-type" /&gt;GETRI, and the belong to the same family functions&lt;/DIV&gt;</description>
      <pubDate>Sun, 21 Aug 2011 11:20:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769275#M486</guid>
      <dc:creator>diedro</dc:creator>
      <dc:date>2011-08-21T11:20:38Z</dc:date>
    </item>
    <item>
      <title>mkl -- inverse square matrix -- transpose</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769276#M487</link>
      <description>hi,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;now I try ti summurized what is going on.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;First of all I compile my program as:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash] ifort *.f90 -L$MKLPATH/lib/em64t  -lmkl_blas95_ilp64 -lmkl_lapack95_ilp64 -lmkl_intel_ilp64 -lmkl_sequential -lmkl_core -lpthread
[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;After that I wrote a program to test the inversion of a matrix using mkl libraries:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]program inversion
use f95_precision
use lapack95
implicit none
    
    integer(sp)   :: I, N,info
    integer(sp)  ,  dimension(:)   , allocatable:: IPIV
    real   (sp)  ,  dimension(:,:) , allocatable:: A, AA
    
    N = 3
    
    allocate( IPIV(N) )
    allocate( A(N,N), AA(N,N) )
    
    AA(1,1) = 1.0d0; AA(1,2) = 3.0d0; AA(1,3) = 1.0d0
    AA(2,1) = 1.0d0; AA(2,2) = 1.0d0; AA(2,3) = 2.0d0
    AA(3,1) = 2.0d0; AA(3,2) = 3.0d0; AA(3,3) = 4.0d0

    A = AA

    write(*,*) 'The Matrix A is:'
    do I = 1,N
        write(*,*) AA(I,:)
    end do

    write(*,*) 'The First Step is to Factorise A'
    call GETRF( A, IPIV)


    write(*,*) 'The Inverted Matrix is:'
    do I = 1,N
        write(*,*) A(I,:)
    end do
!     
    write(*,*) 'IPIV',IPIV
    write(*,*) 'The Second Step is to Invert A'
    call GETRI(A, IPIV )
! 
    write(*,*) 'The Inverted Matrix is:'
    do I = 1,N
        write(*,*) A(I,:)
    end do

end program inversion[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;and this are the results:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]&lt;DIV id="_mcePaste"&gt;&lt;PRE name="code" class="bash"&gt; The Matrix A is:
   1.000000       3.000000       1.000000    
   1.000000       1.000000       2.000000    
   2.000000       3.000000       4.000000    
 The First Step is to Factorise A
 The Inverted Matrix is:
   2.000000       3.000000       4.000000    
  0.5000000       1.500000      -1.000000    
  0.5000000     -0.3333333     -0.3333333    
 info           0
 IPIV           3           3           3
 The Second Step is to Invert A
forrtl: severe (174): SIGSEGV, segmentation fault occurred
[/bash]&lt;/PRE&gt;  &lt;/DIV&gt;&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;why Do I have a segmentation fault with the GETRI call?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I am not able to understand,&lt;META http-equiv="content-type" content="text/html; charset=utf-8" /&gt;GETRF seems to work correctely but not&lt;META http-equiv="content-type" content="text/html; charset=utf-8" /&gt;GETRI, and the belong to the same family functions&lt;/DIV&gt;</description>
      <pubDate>Sun, 21 Aug 2011 11:20:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769276#M487</guid>
      <dc:creator>diedro</dc:creator>
      <dc:date>2011-08-21T11:20:48Z</dc:date>
    </item>
    <item>
      <title>mkl -- inverse square matrix -- transpose</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769277#M488</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You need to link with LP64 MKL libraries if yourprogram uses default INTEGERs.&lt;BR /&gt;Otherwise please try adding -i8 option for ifort to use INTEGER*8to correspond to ILP64 MKL libraries.&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/"&gt;Intel MKL Link Line Advisor&lt;/A&gt;will help you too.</description>
      <pubDate>Sun, 21 Aug 2011 15:17:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769277#M488</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2011-08-21T15:17:43Z</dc:date>
    </item>
    <item>
      <title>mkl -- inverse square matrix -- transpose</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769278#M489</link>
      <description>hi,&lt;DIV&gt;it seems that does not work.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I'm using ubuntu 11.04 and this is my bash.bashrc (now I have include also the ilp64 to compile also the integer in 64 bit):&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]PATH="/opt/intel/compilerpro-12.0.0.084/bin/intel64$PATH"
source /opt/intel/compilerpro-12.0.0.084/bin/ifortvars.sh intel64
export LD_LIBRARY_PATH=/opt/intel/compilerpro-12.0.0.084/debugger/lib/intel64:$LD_LIBRARY_PATH
export PATH
###################################################################################################
source /opt/intel/composerxe-2011.0.084/mkl/bin/mklvars.sh intel64 mod ilp64
export PATH[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;I have use the &lt;A href="http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/"&gt;Intel MKL Link Line Advisor&lt;/A&gt;and here is the result:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]-L$(MKLROOT)/lib/em64t  -lmkl_blas95_ilp64 -lmkl_lapack95_ilp64 -lmkl_intel_ilp64 -lmkl_sequential -lmkl_core -lpthread[/bash]&lt;/PRE&gt; so I compile as:&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]~/Desktop/prova/prova3$ ifort *.f90 -L$MKLPATH/lib/em64t  -lmkl_blas95_ilp64 -lmkl_lapack95_ilp64 -lmkl_intel_ilp64 -lmkl_sequential -lmkl_core -lpthread[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;after that I run the same program, all in single precision, so I use the:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]call GETRF( A, IPIV,info)

and

call GETRI( A, IPIV,info)[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;but I get the same problem:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash] The Matrix A is:
   1.000000       3.000000       1.000000    
   1.000000       1.000000       2.000000    
   2.000000       3.000000       4.000000    
 The First Step is to Factorise A
 The Inverted Matrix is:
   2.000000       3.000000       4.000000    
  0.5000000       1.500000      -1.000000    
  0.5000000     -0.3333333     -0.3333333    
 info           0
 IPIV           3           3           3
 The Second Step is to Invert A
forrtl: severe (174): SIGSEGV, segmentation fault occured[/bash]&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 21 Aug 2011 22:49:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769278#M489</guid>
      <dc:creator>diedro</dc:creator>
      <dc:date>2011-08-21T22:49:18Z</dc:date>
    </item>
    <item>
      <title>mkl -- inverse square matrix -- transpose</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769279#M490</link>
      <description>&lt;DIV id="_mcePaste"&gt;GETRF works but not GETRI&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Have I done something wrong?&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;do I have to update my compiler? (compilerpro-12.0.0.084)&lt;/DIV&gt;</description>
      <pubDate>Sun, 21 Aug 2011 22:56:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769279#M490</guid>
      <dc:creator>diedro</dc:creator>
      <dc:date>2011-08-21T22:56:04Z</dc:date>
    </item>
    <item>
      <title>mkl -- inverse square matrix -- transpose</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769280#M491</link>
      <description>hi,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;now it seems to work&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;the code:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]program inversion
use f95_precision
use lapack95
implicit none
!ifort -i8 *.f90 -L$MKLPATH/lib/em64t  -lmkl_blas95_ilp64 -lmkl_lapack95_ilp64 -lmkl_intel_ilp64 -lmkl_sequential -lmkl_core 
    integer(dp)   :: I, N,info
    integer(dp)  ,  dimension(:)   , allocatable:: IPIV
    real   (dp)  ,  dimension(:,:) , allocatable:: A, AA
    
    N = 3
    
    allocate( IPIV(N) )
    allocate( A(N,N), AA(N,N) )
    
    AA(1,1) = 1.0d0; AA(1,2) = 3.0d0; AA(1,3) = 1.0d0
    AA(2,1) = 1.0d0; AA(2,2) = 1.0d0; AA(2,3) = 2.0d0
    AA(3,1) = 2.0d0; AA(3,2) = 3.0d0; AA(3,3) = 4.0d0

    A = AA

    write(*,*) 'The Matrix A is:'
    do I = 1,N
        write(*,*) AA(I,:)
    end do

    write(*,*) 'The First Step is to Factorise A'
    call GETRF( A, IPIV,info)


    write(*,*) 'The Inverted Matrix is:'
    do I = 1,N
        write(*,*) A(I,:)
    end do
!    
    write(*,*) 'info',info 
    write(*,*) 'IPIV',IPIV
    write(*,*) 'The Second Step is to Invert A'
    call GETRI(A, IPIV,info)
! 
    write(*,*) 'The Inverted Matrix is:'
    do I = 1,N
        write(*,*) A(I,:)
    end do
end program inversion[/bash]&lt;/PRE&gt; and I compile as:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash] ifort -i8 *.f90 -L$MKLPATH/lib/em64t  -lmkl_blas95_ilp64 -lmkl_lapack95_ilp64 -lmkl_intel_ilp64 -lmkl_sequential -lmkl_core -lpthread[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;now I have a new question:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;If I want to compile inQuadruple precision?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;what are the difference between GETRi e DGETRI, because when I compile with DGETRI?&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 Aug 2011 00:22:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769280#M491</guid>
      <dc:creator>diedro</dc:creator>
      <dc:date>2011-08-22T00:22:56Z</dc:date>
    </item>
    <item>
      <title>mkl -- inverse square matrix -- transpose</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769281#M492</link>
      <description>There's no MKL support for quad precision, in part because quad precision (e.g. ifort REAL(KIND=16)) doesn't allow for the optimizations typical of MKL, including vectorization. You could build the netlib functions using ifort quad precision, if you chose.&lt;BR /&gt;The lapack95 getri is simply a way of letting the compiler choose among the f77 ?getri functions, supplying the additional arguments automatically.</description>
      <pubDate>Mon, 22 Aug 2011 00:43:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769281#M492</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2011-08-22T00:43:34Z</dc:date>
    </item>
    <item>
      <title>mkl -- inverse square matrix -- transpose</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769282#M493</link>
      <description>hi,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;ok, I get it.&lt;/DIV&gt;&lt;DIV&gt;However, DGETRI does not work, I have a segmetation fault error.&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 Aug 2011 06:48:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769282#M493</guid>
      <dc:creator>diedro</dc:creator>
      <dc:date>2011-08-22T06:48:11Z</dc:date>
    </item>
    <item>
      <title>mkl -- inverse square matrix -- transpose</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769283#M494</link>
      <description>hi,&lt;DIV&gt;do you know why?&lt;/DIV&gt;&lt;DIV&gt;This is just to understand better.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Everything is working now:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[bash]CALL GETRF(Inv,IPIV,info)
CALL GETRI(Inv,IPIV,info)

Coeff1D = TRANSPOSE(Inv)
        DO i=1,nCP1D
          DO j=1,nCP1D
              Coeff1D(i,j) = REAL(Coeff1D(i,j),R16P)
          ENDDO
        ENDDO[/bash]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;in this way I get also the quadruple precision&lt;/DIV&gt;</description>
      <pubDate>Mon, 22 Aug 2011 22:00:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-inverse-square-matrix-transpose/m-p/769283#M494</guid>
      <dc:creator>diedro</dc:creator>
      <dc:date>2011-08-22T22:00:49Z</dc:date>
    </item>
  </channel>
</rss>

