<?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 linking to LAPACK95 problem in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/linking-to-LAPACK95-problem/m-p/891535#M10463</link>
    <description>&lt;P&gt;Just look at the corrected example and its output:&lt;/P&gt;
&lt;P&gt;program main&lt;BR /&gt;use lapack95, only:getrf&lt;BR /&gt;implicit none&lt;BR /&gt;integer::info&lt;BR /&gt;integer,parameter::knd=selected_real_kind(12)&lt;BR /&gt;real(knd)::a(2,2)&lt;BR /&gt;integer::i(2)&lt;BR /&gt;a=1.0&lt;BR /&gt;print *,'a=',a&lt;BR /&gt;call getrf(a,i,info)&lt;BR /&gt;print *,'info=',info&lt;BR /&gt;print *,'a=',a&lt;BR /&gt;print *,'i=',i&lt;BR /&gt;end program main&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;% ./a.out&lt;BR /&gt;a= 1.00000000000000 1.00000000000000 1.00000000000000&lt;BR /&gt; 1.00000000000000&lt;BR /&gt;info= 2&lt;BR /&gt;a= 1.00000000000000 1.00000000000000 1.00000000000000&lt;BR /&gt; 0.000000000000000E+000&lt;BR /&gt;i= 1 2&lt;/P&gt;</description>
    <pubDate>Tue, 16 Feb 2010 14:07:40 GMT</pubDate>
    <dc:creator>barragan_villanueva_</dc:creator>
    <dc:date>2010-02-16T14:07:40Z</dc:date>
    <item>
      <title>linking to LAPACK95 problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/linking-to-LAPACK95-problem/m-p/891533#M10461</link>
      <description>&lt;P&gt;I have just installed the Intel Fortran compiler + MKL etc on my Mac (with Intel Core Duo), and had no difficulty getting my codes with Lapack subroutines to run. But I want to move to Lapack95, and I cannot get this to work! The small fortran test program I've been using is&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: normal;"&gt;
&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV id="_mcePaste"&gt;program main&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;use lapack95, only:getrf&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;implicit none&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;integer::info&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;integer,parameter::knd=selected_real_kind(12)&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;real(knd)::a(2,2)&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;a=1.0&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;call getrf(a,info)&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;end program main&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: normal;"&gt;and I have tried to run it from the command line&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: normal;"&gt;
&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ifort -L$MKLROOT/lib/em64t -I$MKLROOT/include/em64t/lp64 -lmkl_lapack95 -lmkl_lapack95_lp64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread main.f90&lt;/P&gt;
&lt;P&gt;The file lapack95.mod is in the directory $MKLROOT/include/em64t/lp64, and the file -lmkl_lapack95_lp64.a is in $MKLROOT/lib/em64t.&lt;/P&gt;
&lt;P&gt;The error message I obtain is:&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;error #6285: There is no matching specific subroutine for this generic subroutine call.  [GETRF]&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I wonder what I am doing wrong in the command line or in the program?&lt;/P&gt;
&lt;P&gt;John E.I.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2010 11:32:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/linking-to-LAPACK95-problem/m-p/891533#M10461</guid>
      <dc:creator>John_Inglesfield</dc:creator>
      <dc:date>2010-02-16T11:32:35Z</dc:date>
    </item>
    <item>
      <title>linking to LAPACK95 problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/linking-to-LAPACK95-problem/m-p/891534#M10462</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;GETRF has three arguments:&lt;/P&gt;
&lt;P&gt;INTERFACE GETRF&lt;BR /&gt; PURE SUBROUTINE SGETRF_F95(A,IPIV,INFO)&lt;BR /&gt; ! Fortran77 call:&lt;BR /&gt; ! SGETRF(M,N,A,LDA,IPIV,INFO)&lt;BR /&gt; USE F95_PRECISION, ONLY: WP =&amp;gt; SP&lt;BR /&gt; INTEGER, INTENT(OUT), OPTIONAL :: INFO&lt;BR /&gt; REAL(WP), INTENT(INOUT) :: A(:,:)&lt;BR /&gt; INTEGER, INTENT(OUT), OPTIONAL, TARGET :: IPIV(:)&lt;BR /&gt; END SUBROUTINE SGETRF_F95&lt;BR /&gt; PURE SUBROUTINE DGETRF_F95(A,IPIV,INFO)&lt;BR /&gt; ! Fortran77 call:&lt;BR /&gt; ! DGETRF(M,N,A,LDA,IPIV,INFO)&lt;BR /&gt; USE F95_PRECISION, ONLY: WP =&amp;gt; DP&lt;BR /&gt; INTEGER, INTENT(OUT), OPTIONAL :: INFO&lt;BR /&gt; REAL(WP), INTENT(INOUT) :: A(:,:)&lt;BR /&gt; INTEGER, INTENT(OUT), OPTIONAL, TARGET :: IPIV(:)&lt;BR /&gt; END SUBROUTINE DGETRF_F95&lt;BR /&gt; PURE SUBROUTINE CGETRF_F95(A,IPIV,INFO)&lt;BR /&gt; ! Fortran77 call:&lt;BR /&gt; ! CGETRF(M,N,A,LDA,IPIV,INFO)&lt;BR /&gt; USE F95_PRECISION, ONLY: WP =&amp;gt; SP&lt;BR /&gt; INTEGER, INTENT(OUT), OPTIONAL :: INFO&lt;BR /&gt; COMPLEX(WP), INTENT(INOUT) :: A(:,:)&lt;BR /&gt; INTEGER, INTENT(OUT), OPTIONAL, TARGET :: IPIV(:)&lt;BR /&gt; END SUBROUTINE CGETRF_F95&lt;BR /&gt; PURE SUBROUTINE ZGETRF_F95(A,IPIV,INFO)&lt;BR /&gt; ! Fortran77 call:&lt;BR /&gt; ! ZGETRF(M,N,A,LDA,IPIV,INFO)&lt;BR /&gt; USE F95_PRECISION, ONLY: WP =&amp;gt; DP&lt;BR /&gt; INTEGER, INTENT(OUT), OPTIONAL :: INFO&lt;BR /&gt; COMPLEX(WP), INTENT(INOUT) :: A(:,:)&lt;BR /&gt; INTEGER, INTENT(OUT), OPTIONAL, TARGET :: IPIV(:)&lt;BR /&gt; END SUBROUTINE ZGETRF_F95&lt;BR /&gt;END INTERFACE GETRF&lt;/P&gt;
&lt;P&gt;So, please defineIPIV in main.f90 and addit as the second argument for GETRF.&lt;/P&gt;
&lt;P&gt;Try your source file main.f90 before libraries (deleted junk there)&lt;/P&gt;
&lt;P&gt;ifort main.f90 -L$MKLROOT/lib/em64t -I$MKLROOT/include/em64t/lp64 -lmkl_lapack95_lp64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2010 13:34:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/linking-to-LAPACK95-problem/m-p/891534#M10462</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2010-02-16T13:34:01Z</dc:date>
    </item>
    <item>
      <title>linking to LAPACK95 problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/linking-to-LAPACK95-problem/m-p/891535#M10463</link>
      <description>&lt;P&gt;Just look at the corrected example and its output:&lt;/P&gt;
&lt;P&gt;program main&lt;BR /&gt;use lapack95, only:getrf&lt;BR /&gt;implicit none&lt;BR /&gt;integer::info&lt;BR /&gt;integer,parameter::knd=selected_real_kind(12)&lt;BR /&gt;real(knd)::a(2,2)&lt;BR /&gt;integer::i(2)&lt;BR /&gt;a=1.0&lt;BR /&gt;print *,'a=',a&lt;BR /&gt;call getrf(a,i,info)&lt;BR /&gt;print *,'info=',info&lt;BR /&gt;print *,'a=',a&lt;BR /&gt;print *,'i=',i&lt;BR /&gt;end program main&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;% ./a.out&lt;BR /&gt;a= 1.00000000000000 1.00000000000000 1.00000000000000&lt;BR /&gt; 1.00000000000000&lt;BR /&gt;info= 2&lt;BR /&gt;a= 1.00000000000000 1.00000000000000 1.00000000000000&lt;BR /&gt; 0.000000000000000E+000&lt;BR /&gt;i= 1 2&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2010 14:07:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/linking-to-LAPACK95-problem/m-p/891535#M10463</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2010-02-16T14:07:40Z</dc:date>
    </item>
    <item>
      <title>linking to LAPACK95 problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/linking-to-LAPACK95-problem/m-p/891536#M10464</link>
      <description>&lt;P&gt;Many thanks Victor for the corrections to the arguments of getrf, and for getting rid of junk in the command line. I'm delighted to be able to use Lapack95!&lt;/P&gt;
&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2010 16:59:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/linking-to-LAPACK95-problem/m-p/891536#M10464</guid>
      <dc:creator>John_Inglesfield</dc:creator>
      <dc:date>2010-02-16T16:59:05Z</dc:date>
    </item>
    <item>
      <title> Dear Victor Pasko</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/linking-to-LAPACK95-problem/m-p/891537#M10465</link>
      <description>&lt;P style="font-size: 13.008px; line-height: 19.512px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-top:0in;margin-right:0in;margin-bottom:.25in;margin-left:0in;
line-height:14.65pt"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&amp;nbsp;Dear Victor Pasko&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0in 0in 0.25in; line-height: 14.65pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Could you please recommend me on&amp;nbsp;the command line to compile program to use lapack95 for&amp;nbsp;GETRF using the intel MKL 11.3. As I used the command &amp;nbsp;"ifort axb.f90 -L$MKLROOT/lib/intel64 -I$MKLROOT/include/intel64/lp64 &amp;nbsp;-l$MKLROOT/lib/intel64_lin/libmkl_intel_lp64 -llibmkl_intel_thread -llibmkl_core -llibiomp5 -llibpthread", I got an error as "ld: cannot find -llibmkl_lapack95_lp64". I have tried to correct it but I could not get success.&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0in 0in 0.25in; line-height: 14.65pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Thank you very much for your kind helps,&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin: 0in 0in 0.25in; line-height: 14.65pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Vithaya&amp;nbsp;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2015 16:27:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/linking-to-LAPACK95-problem/m-p/891537#M10465</guid>
      <dc:creator>Vithaya_R_</dc:creator>
      <dc:date>2015-10-24T16:27:15Z</dc:date>
    </item>
    <item>
      <title>There are several errors in</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/linking-to-LAPACK95-problem/m-p/891538#M10466</link>
      <description>&lt;P&gt;There are several errors in your command line, and the command options you showed could not have attempted to use the Lapack95 library. The linker ld adds "lib" as a prefix and ".so" or ".a" as a suffix to the library names specified with the -l (lower case L, as in "lib") option.&lt;/P&gt;

&lt;P&gt;Please use the MKL Link Line Advisor, which may be installed on your computer or is available at&amp;nbsp;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/ .&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2015 16:50:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/linking-to-LAPACK95-problem/m-p/891538#M10466</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2015-10-24T16:50:00Z</dc:date>
    </item>
  </channel>
</rss>

