<?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   in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Unresolved-reference-to-lapack95-subroutine/m-p/1122293#M25041</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Yes, please refer to&amp;nbsp;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor&lt;/P&gt;

&lt;P&gt;for example, if 64bit application, you can try&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13.008px; line-height: 14.3088px;"&gt;ifort &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;${MKLROOT}/lib/intel64/libmkl_blas95_lp64 ${MKLROOT}/lib/intel64/libmkl_lapack95_lp64&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13.008px; line-height: 14.3088px;"&gt;-mkl=sequential test_lapack.F90&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13.008px; line-height: 14.3088px;"&gt;Best Regards,&lt;BR /&gt;
	Ying&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jul 2016 01:38:18 GMT</pubDate>
    <dc:creator>Ying_H_Intel</dc:creator>
    <dc:date>2016-07-12T01:38:18Z</dc:date>
    <item>
      <title>Unresolved reference to lapack95 subroutine</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Unresolved-reference-to-lapack95-subroutine/m-p/1122291#M25039</link>
      <description>&lt;P&gt;I am sure I am making a very simple and obvious mistake in using lapack95, but I cannot figure it out at present.&lt;/P&gt;

&lt;P&gt;Compiling and linking with MKL of the following sample code:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;      program test_lapack
            use lapack95,only:ggev
            implicit none
            integer,parameter::x_=8
            integer,parameter::n =2
            complex(kind=x_)::a    (0:n-1,0:n-1)=reshape((/11._x_,12._x_,21._x_,22._x_/),(/2,2/))
            complex(kind=x_)::b    (0:n-1,0:n-1)=reshape((/ 1._x_, 0._x_, 0._x_, 1._x_/),(/2,2/))
            complex(kind=x_)::alpha(0:n-1)
            complex(kind=x_):: beta(0:n-1)
            call ggev(a,b,alpha,beta)
  end program test_lapack&lt;/PRE&gt;

&lt;P&gt;with:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;ifort -mkl=sequential test_lapack.F90&lt;/PRE&gt;

&lt;P&gt;yields:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;/tmp/ifortzuGiE1.o: In function `MAIN__':
test_lapack.F90:(.text+0x185): undefined reference to `zggev_f95_'&lt;/PRE&gt;

&lt;P&gt;which means the program does find lapack95's &lt;STRONG&gt;ggev&amp;nbsp;&lt;/STRONG&gt;interface, but the&amp;nbsp;&lt;STRONG&gt;zggev_F95&amp;nbsp;&lt;/STRONG&gt;is still unresolved. I have checked that both the lapack95.F90 and all lapack95 routine implementations are in place, at&amp;nbsp;&lt;EM&gt;/opt/intel/compilers_and_libraries_2016.3.210/linux/mkl/include &lt;/EM&gt;and&amp;nbsp;&lt;EM&gt;/opt/intel/compilers_and_libraries_2016.3.210/linux/mkl/interfaces/lapack95/source&amp;nbsp;&lt;/EM&gt;respectively. So it appears I am just missing on how to link the lapack95 implementation with its interface, or whatnot.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 15:57:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Unresolved-reference-to-lapack95-subroutine/m-p/1122291#M25039</guid>
      <dc:creator>Trent_Hawkins</dc:creator>
      <dc:date>2016-07-11T15:57:07Z</dc:date>
    </item>
    <item>
      <title>You must specify that the mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Unresolved-reference-to-lapack95-subroutine/m-p/1122292#M25040</link>
      <description>&lt;P&gt;You must specify that the mkl_lapack95 library is to be used at link time. This library wraps the F77 Lapack routines with F95 interfaces. For more details, consult the MKL Link Line Advisor.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 17:11:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Unresolved-reference-to-lapack95-subroutine/m-p/1122292#M25040</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2016-07-11T17:11:00Z</dc:date>
    </item>
    <item>
      <title> </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Unresolved-reference-to-lapack95-subroutine/m-p/1122293#M25041</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Yes, please refer to&amp;nbsp;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor&lt;/P&gt;

&lt;P&gt;for example, if 64bit application, you can try&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13.008px; line-height: 14.3088px;"&gt;ifort &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;${MKLROOT}/lib/intel64/libmkl_blas95_lp64 ${MKLROOT}/lib/intel64/libmkl_lapack95_lp64&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13.008px; line-height: 14.3088px;"&gt;-mkl=sequential test_lapack.F90&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13.008px; line-height: 14.3088px;"&gt;Best Regards,&lt;BR /&gt;
	Ying&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2016 01:38:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Unresolved-reference-to-lapack95-subroutine/m-p/1122293#M25041</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2016-07-12T01:38:18Z</dc:date>
    </item>
    <item>
      <title>Thanks, I have been working</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Unresolved-reference-to-lapack95-subroutine/m-p/1122294#M25042</link>
      <description>&lt;P&gt;Thanks, I have been working my link line, using the link line advisor and modifying my own line accordingly. Thought ifort mkl performed super dynamic linking with no paths at all, but I was wrong. Well at least as the 95 interface is concerned. I could still use the ordinary F77 call but I wanted something more robust and reusable, especially when my real simulation (it is shown in this sample too) I use a globally adjustable precision. Thanks again for your help, both of you, and for the simple and demonstrative link line example.&lt;/P&gt;

&lt;P&gt;EDIT&lt;/P&gt;

&lt;P&gt;In particular, from link advisor:&lt;/P&gt;

&lt;P&gt;ifort test_lapack.F90 ${MKLROOT}/lib/intel64_lin/libmkl_lapack95_lp64.a -lpthread -lm -ldl -I${MKLROOT}/include/intel64/lp64 -mkl=sequential&lt;/P&gt;

&lt;P&gt;A simplified version (used with a well-setup ifort isntallation):&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;ifort test_lapack.F90 ${MKLROOT}/lib/intel64_lin/libmkl_lapack95_lp64.a -mkl=sequential&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2016 07:29:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Unresolved-reference-to-lapack95-subroutine/m-p/1122294#M25042</guid>
      <dc:creator>Trent_Hawkins</dc:creator>
      <dc:date>2016-07-12T07:29:00Z</dc:date>
    </item>
    <item>
      <title>The -mkl compiler flag does</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Unresolved-reference-to-lapack95-subroutine/m-p/1122295#M25043</link>
      <description>&lt;P&gt;The &lt;STRONG&gt;-mkl&lt;/STRONG&gt; compiler flag does not pull in any Lapack95 or BLAS95 routines. That is why you have to specify the xx95 libraries explicitly.&lt;/P&gt;

&lt;P&gt;Note that your command line in #4 specifies the static library for Lapack95. Most of the time, I prefer to use the shared library, so the flag for me would be &lt;STRONG&gt;-lmkl_lapack95_lp64&lt;/STRONG&gt; .&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2016 10:25:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Unresolved-reference-to-lapack95-subroutine/m-p/1122295#M25043</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2016-07-12T10:25:34Z</dc:date>
    </item>
    <item>
      <title>Awesome! Before posting this</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Unresolved-reference-to-lapack95-subroutine/m-p/1122296#M25044</link>
      <description>&lt;P&gt;Awesome! Before posting this thread, I did try -lmkl_lapack95, which was getting me nowhere, and thus I posted it. I was missing the _lp64 suffix for integer specification! Many thanks again for the pointers, usage of the shared library (and in general as a much cross-platform command as possible) is my preference too.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2016 10:31:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Unresolved-reference-to-lapack95-subroutine/m-p/1122296#M25044</guid>
      <dc:creator>Trent_Hawkins</dc:creator>
      <dc:date>2016-07-12T10:31:56Z</dc:date>
    </item>
  </channel>
</rss>

