<?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 Hi Alex,  in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-with-linking-libraries/m-p/1104450#M24052</link>
    <description>&lt;P&gt;Hi Alex,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;Problem 1:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;The cause should be the library's location, &amp;nbsp;Linux &amp;nbsp;linker only resolve the symbol in link line from start to end one time, so you may pay attention about the order of files, library . &amp;nbsp;For example, &amp;nbsp;put all libraries after the source code *. f90 or *.o&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Problem 2;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;You may try &amp;nbsp;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/ &amp;nbsp;to get right mkl library.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;for example&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;ifort&amp;nbsp; -o simple.exe &amp;nbsp;simple.o&amp;nbsp; libtrlan.a&amp;nbsp;&amp;nbsp;/opt/intel/composer_xe_2013_sp1.2.144/mkl/lib/intel64/libmkl_lapack95_lp64.a /opt/intel/composer_xe_2013_sp1.2.144/mkl/lib/intel64/libmkl_blas95_lp64.a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;-Wl,--start-group &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;/opt/intel/composer_xe_2013_sp1.2.144/mkl&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;/lib/intel64/libmkl_intel_lp64.a &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;/opt/intel/composer_xe_2013_sp1.2.144/mkl/&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;lib/intel64/libmkl_core.a &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;/opt/intel/composer_xe_2013_sp1.2.144/mkl/&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;lib/intel64/libmkl_intel_thread.a &lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;-Wl,--end-group -liomp5 -lpthread -lm -ldl&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Ying&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Apr 2016 08:08:24 GMT</pubDate>
    <dc:creator>Ying_H_Intel</dc:creator>
    <dc:date>2016-04-26T08:08:24Z</dc:date>
    <item>
      <title>Problems with linking libraries</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-with-linking-libraries/m-p/1104448#M24050</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;

&lt;P&gt;I'm using ifort composer_xe_2013_sp1.2.144 with Ubuntu 14.04.4&lt;/P&gt;

&lt;P&gt;I want to install a program following the instruction given for other compilers and platforms.&lt;/P&gt;

&lt;P&gt;I compiled the relevant source files and created a library libtrlan.a. with ar t I checked that all objects are included.&lt;/P&gt;

&lt;P&gt;The I wanted to create a test program that uses the programs in libtrlan.a, which themselves need LAPACK and BLAS routines.&lt;/P&gt;

&lt;P&gt;Problem 1:&lt;/P&gt;

&lt;P&gt;Irrespective of whether I try to link the MKL libraries to the exe or not, none of the routines for which interfaces in a MOD file are given is found&lt;/P&gt;

&lt;P&gt;ifort -o simple.exe&amp;nbsp; libtrlan.a&amp;nbsp; simple.o&lt;/P&gt;

&lt;P&gt;yields&amp;nbsp;&amp;nbsp;&amp;nbsp; simple.f90:(.text+0x88): undefined reference to `trl_init_info_' etc.&lt;/P&gt;

&lt;P&gt;If I change the order of the files&lt;/P&gt;

&lt;P&gt;ifort -o simple.exe&amp;nbsp; &amp;nbsp; simple.o libtrlan.a&lt;/P&gt;

&lt;P&gt;there are undefined references to the BLAS routines that are not yet added.&lt;/P&gt;

&lt;P&gt;Problem 2:&lt;/P&gt;

&lt;P&gt;When I try to link the MKL libraries with&lt;/P&gt;

&lt;P&gt;ifort&amp;nbsp; -o simple.exe -L/opt/intel/composer_xe_2013_sp1.2.144/mkl/lib/intel64/&amp;nbsp; libmkl_lapack95_lp64.a&amp;nbsp; libmkl_blas95_lp64.a&amp;nbsp; simple.o&amp;nbsp; libtrlan.a&lt;/P&gt;

&lt;P&gt;I get fortran errors&lt;/P&gt;

&lt;P&gt;ifort: error #10236: File not found:&amp;nbsp; 'libmkl_lapack95_lp64.a'&lt;BR /&gt;
	ifort: error #10236: File not found:&amp;nbsp; 'libmkl_blas95_lp64.a'&lt;/P&gt;

&lt;P&gt;When I do not use the -Ldir option&lt;/P&gt;

&lt;P&gt;ifort&amp;nbsp; -o simple.exe /opt/intel/composer_xe_2013_sp1.2.144/mkl/lib/intel64/libmkl_lapack95_lp64.a /opt/intel/composer_xe_2013_sp1.2.144/mkl/lib/intel64/libmkl_blas95_lp64.a simple.o&amp;nbsp; libtrlan.a&lt;/P&gt;

&lt;P&gt;I get again the undefined references to the BLAS routines.&lt;/P&gt;

&lt;P&gt;I have no idea what's going wrong.&lt;/P&gt;

&lt;P&gt;Please, help.&lt;/P&gt;

&lt;P&gt;alex&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 11:22:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-with-linking-libraries/m-p/1104448#M24050</guid>
      <dc:creator>alexander_s_6</dc:creator>
      <dc:date>2016-04-25T11:22:01Z</dc:date>
    </item>
    <item>
      <title>At some point in time, you</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-with-linking-libraries/m-p/1104449#M24051</link>
      <description>&lt;P&gt;At some point in time, you will need to learn how to use libraries to build programs.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Does your code (simple.f90, or the code used to build&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;libtrlan.a) call MKL routines with the F95 interface? If not, it may suffice to issue the command&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ifort -mkl simple.o -L. -ltrlan&amp;nbsp;&amp;nbsp;-o simple.exe&lt;/P&gt;

&lt;P&gt;Otherwise, please use the MKL link advisor (&amp;nbsp;https://software.intel.com/sites/products/mkl/mkl_link_line_advisor.htm ).&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 14:43:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-with-linking-libraries/m-p/1104449#M24051</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2016-04-25T14:43:23Z</dc:date>
    </item>
    <item>
      <title>Hi Alex, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-with-linking-libraries/m-p/1104450#M24052</link>
      <description>&lt;P&gt;Hi Alex,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;Problem 1:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;The cause should be the library's location, &amp;nbsp;Linux &amp;nbsp;linker only resolve the symbol in link line from start to end one time, so you may pay attention about the order of files, library . &amp;nbsp;For example, &amp;nbsp;put all libraries after the source code *. f90 or *.o&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Problem 2;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;You may try &amp;nbsp;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/ &amp;nbsp;to get right mkl library.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;for example&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;ifort&amp;nbsp; -o simple.exe &amp;nbsp;simple.o&amp;nbsp; libtrlan.a&amp;nbsp;&amp;nbsp;/opt/intel/composer_xe_2013_sp1.2.144/mkl/lib/intel64/libmkl_lapack95_lp64.a /opt/intel/composer_xe_2013_sp1.2.144/mkl/lib/intel64/libmkl_blas95_lp64.a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;-Wl,--start-group &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;/opt/intel/composer_xe_2013_sp1.2.144/mkl&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;/lib/intel64/libmkl_intel_lp64.a &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;/opt/intel/composer_xe_2013_sp1.2.144/mkl/&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;lib/intel64/libmkl_core.a &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;/opt/intel/composer_xe_2013_sp1.2.144/mkl/&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;lib/intel64/libmkl_intel_thread.a &lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;-Wl,--end-group -liomp5 -lpthread -lm -ldl&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Ying&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 08:08:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problems-with-linking-libraries/m-p/1104450#M24052</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2016-04-26T08:08:24Z</dc:date>
    </item>
  </channel>
</rss>

