<?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: Undefined Symbols error calling LAPACK subroutines in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-Symbols-error-calling-LAPACK-subroutines/m-p/867223#M8096</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%; height: 600px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/405783"&gt;carless&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;ifort -O4 /Library/Frameworks/Intel_MKL.framework/Versions/10.0.3.020/include/mkl_lapack.f90 -o HHP HH_P.f90 -L/Library/Frameworks/Intel_MKL.framework/Versions/10.0.3.020/lib/em64t -I/Library/Frameworks/Intel_MKL.framework/Versions/10.0.3.020/include -lmkl_lapack -lmkl_intel_thread -lmkl_core -lguide -lpthread&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;P&gt;Try adding -lmkl_intel_lp64 before "-lmkl_lapack" in your build command above.libmkl_intel_lp64.dylib is the interface library which is always necessary in addition to the threading layer ("-lmkl_intel_thread" above) and computation layer ("-lmkl_core" above). Chapter 5 in the User Guide in your doc directory goes into some detail about this.&lt;/P&gt;
&lt;P&gt;-Todd&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Oct 2008 05:24:10 GMT</pubDate>
    <dc:creator>Todd_R_Intel</dc:creator>
    <dc:date>2008-10-16T05:24:10Z</dc:date>
    <item>
      <title>Undefined Symbols error calling LAPACK subroutines</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-Symbols-error-calling-LAPACK-subroutines/m-p/867222#M8095</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I just started using the MKL for MAc OS X. I cannot link and I get an Undefined Symbols error when I try to call a LAPACK subroutine. I would very much appreciate some help.&lt;BR /&gt;&lt;BR /&gt;I use the following software:&lt;BR /&gt;&lt;BR /&gt;XCode v.3.1.1&lt;BR /&gt;&lt;BR /&gt;Mac OS X v. 10.5.4&lt;BR /&gt;&lt;BR /&gt;Intel Fortran Compiler v.10.1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In the main code I have the commands:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;USE mkl95_PRECISION, ONLY: WP =&amp;gt; SP&lt;BR /&gt;&lt;BR /&gt; USE mkl95_LAPACK, ONLY: gttrf,gttrs&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;call cgttrf(ifou_r, dl, dd, du, du2, ipiv, info1)&lt;BR /&gt;&lt;BR /&gt; call cgttrs(N, ifou_r, 1, dl, dd, du, du2, ipiv, BB, ifou_r, info2)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The compilation command reads:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ifort -O4 /Library/Frameworks/Intel_MKL.framework/Versions/10.0.3.020/include/mkl_lapack.f90 -o HHP HH_P.f90 -L/Library/Frameworks/Intel_MKL.framework/Versions/10.0.3.020/lib/em64t -I/Library/Frameworks/Intel_MKL.framework/Versions/10.0.3.020/include -lmkl_lapack -lmkl_intel_thread -lmkl_core -lguide -lpthread&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I always get the following error:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Undefined symbols:&lt;BR /&gt;&lt;BR /&gt; "_cgttrf_", referenced from:&lt;BR /&gt;&lt;BR /&gt; _MAIN__ in ifortMrPnMw.o&lt;BR /&gt;&lt;BR /&gt; "_cgttrs_", referenced from:&lt;BR /&gt;&lt;BR /&gt; _MAIN__ in ifortMrPnMw.o&lt;BR /&gt;&lt;BR /&gt;ld: symbol(s) not found&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;&lt;BR /&gt;Carles&lt;/P&gt;</description>
      <pubDate>Tue, 14 Oct 2008 16:15:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-Symbols-error-calling-LAPACK-subroutines/m-p/867222#M8095</guid>
      <dc:creator>carless</dc:creator>
      <dc:date>2008-10-14T16:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined Symbols error calling LAPACK subroutines</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-Symbols-error-calling-LAPACK-subroutines/m-p/867223#M8096</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%; height: 600px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/405783"&gt;carless&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;ifort -O4 /Library/Frameworks/Intel_MKL.framework/Versions/10.0.3.020/include/mkl_lapack.f90 -o HHP HH_P.f90 -L/Library/Frameworks/Intel_MKL.framework/Versions/10.0.3.020/lib/em64t -I/Library/Frameworks/Intel_MKL.framework/Versions/10.0.3.020/include -lmkl_lapack -lmkl_intel_thread -lmkl_core -lguide -lpthread&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;P&gt;Try adding -lmkl_intel_lp64 before "-lmkl_lapack" in your build command above.libmkl_intel_lp64.dylib is the interface library which is always necessary in addition to the threading layer ("-lmkl_intel_thread" above) and computation layer ("-lmkl_core" above). Chapter 5 in the User Guide in your doc directory goes into some detail about this.&lt;/P&gt;
&lt;P&gt;-Todd&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2008 05:24:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-Symbols-error-calling-LAPACK-subroutines/m-p/867223#M8096</guid>
      <dc:creator>Todd_R_Intel</dc:creator>
      <dc:date>2008-10-16T05:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined Symbols error calling LAPACK subroutines</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-Symbols-error-calling-LAPACK-subroutines/m-p/867224#M8097</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;Quoting - &lt;A href="https://community.intel.com/en-us/profile/336755"&gt;Todd Rosenquist (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%; height: 600px;"&gt;Thank you so much for your assistance. The point is that I just saw that the Fortran 90 interface, which I need, had to be built by hand, and I just tryied it with no success however. To use the library that you suggest I should be able to build the em64t Fortran 90 interface, but maybe there is a bug in the software, since it gives me an error. If you would be so kind to read my next contribution to the forum it would certainly be a great help, I explain the problem there. Best, Carles&lt;/DIV&gt;
&lt;DIV style="margin-top: 5px; width: 100%; height: 600px;"&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV style="margin-top: 5px; width: 100%; height: 600px;"&gt;&lt;/DIV&gt;
&lt;DIV style="margin-top: 5px; width: 100%; height: 600px;"&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV style="margin-top: 5px; width: 100%; height: 600px;"&gt;&lt;/DIV&gt;
&lt;DIV style="margin-top: 5px; width: 100%; height: 600px;"&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV style="margin-top: 5px; width: 100%; height: 600px;"&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2008 14:17:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-Symbols-error-calling-LAPACK-subroutines/m-p/867224#M8097</guid>
      <dc:creator>carless</dc:creator>
      <dc:date>2008-10-16T14:17:57Z</dc:date>
    </item>
  </channel>
</rss>

