<?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 linking problem in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-linking-problem/m-p/795852#M2674</link>
    <description>And now, what command are you using to link the final executable?&lt;BR /&gt;&lt;BR /&gt;It appears you are not including the mkl libraries.&lt;BR /&gt;&lt;BR /&gt;there is a command line switch that will add the libraries for you:&lt;BR /&gt;&lt;BR /&gt; ifort -mkl gas.o -o gas&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; --Lorri</description>
    <pubDate>Fri, 29 Jun 2012 10:50:46 GMT</pubDate>
    <dc:creator>Lorri_M_Intel</dc:creator>
    <dc:date>2012-06-29T10:50:46Z</dc:date>
    <item>
      <title>mkl linking problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-linking-problem/m-p/795849#M2671</link>
      <description>I have a strange problem. using MKL for linear solver, I had no problem to link MKL to my code in visual studio. Now under mac when I try to compile the exact same code with make file, I get error message&lt;P class="p1"&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P class="p1"&gt;Obj/mod_diffusion.o Obj/mod_time.o gas.f90 -c -module Mod/  -o Obj/gas.o&lt;/P&gt;&lt;P class="p1"&gt;Solver/linear_solver_RCIISS.f90(13): error #5102: Cannot open include file 'mkl_rci.fi'&lt;/P&gt;&lt;P class="p1"&gt;	INCLUDE 'mkl_rci.fi'&lt;/P&gt;&lt;P class="p1"&gt;----------------^&lt;/P&gt;&lt;P class="p1"&gt;compilation aborted for gas.f90 (code 1)&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;



&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;The MKL include directory is defined in the make file as:&lt;/P&gt;&lt;P class="p1"&gt;MKLROOT = /opt/intel/composer_xe_2011_sp1.9.289/mkl/&lt;/P&gt;
&lt;P class="p1"&gt;MKL = -I$(MKLROOT)/include/intel64/lp64 -I$(MKLROOT)/include -L$(MKLROOT)/lib $(MKLROOT)/lib/libmkl_blas95_lp64.a $(MKLROOT)/lib/libmkl_lapack95_lp64.a -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -openmp -lpthread -lm&lt;/P&gt;&lt;P class="p1"&gt;and the file is there (/opt/intel/composer_xe_2011_sp1.9.289/mkl/include/mkl_rci.fi)&lt;/P&gt;&lt;P class="p1"&gt;I even add the file 'mkl_rci.fi' directly to the project, but it gives me the same error. I used other MKL functions before the recent changes in the project and there was no problem in linking and compiling. Any clue what would be the problem?&lt;/P&gt;&lt;P class="p1"&gt;Ebrahim&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2012 03:20:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-linking-problem/m-p/795849#M2671</guid>
      <dc:creator>e_shahraeeni</dc:creator>
      <dc:date>2012-06-26T03:20:45Z</dc:date>
    </item>
    <item>
      <title>mkl linking problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-linking-problem/m-p/795850#M2672</link>
      <description>I am not familiar with the Macintosh MKL setup, but I notice this discrepancy:&lt;BR /&gt;&lt;BR /&gt;You specified&lt;BR /&gt;&lt;BR /&gt; -I$(MKLROOT)/include/intel64/lp64&lt;BR /&gt;&lt;BR /&gt;but the particular include file is not target-architecture specific, and is therefore located in&lt;BR /&gt;&lt;BR /&gt; $(MKLROOT)/include&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Jun 2012 11:55:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-linking-problem/m-p/795850#M2672</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2012-06-26T11:55:00Z</dc:date>
    </item>
    <item>
      <title>mkl linking problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-linking-problem/m-p/795851#M2673</link>
      <description>I supposed there is no difference between:&lt;DIV&gt;&lt;/DIV&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;MKL = -I$(MKLROOT)/include/intel64/lp64 -I$(MKLROOT)/include&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;and&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;MKL = -I$(MKLROOT)/include -I$(MKLROOT)/include/intel64/lp64&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;but there is!&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Following your advice by using the second one, now I get new error:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BLOCKQUOTE&gt;&lt;P class="p1"&gt;Undefined symbols for architecture x86_64:&lt;/P&gt;&lt;P class="p2"&gt;"_linear_solver_rciiss_", referenced from:&lt;/P&gt;&lt;P class="p2"&gt;_MAIN__ in gas.o&lt;/P&gt;&lt;P class="p2"&gt;ld: symbol(s) not found for architecture x86_64&lt;/P&gt;&lt;P class="p2"&gt;make: *** [FRSGW3D.e] Error 1&lt;/P&gt;&lt;/BLOCKQUOTE&gt;




&lt;P class="p2"&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 Jun 2012 18:43:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-linking-problem/m-p/795851#M2673</guid>
      <dc:creator>e_shahraeeni</dc:creator>
      <dc:date>2012-06-26T18:43:54Z</dc:date>
    </item>
    <item>
      <title>mkl linking problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-linking-problem/m-p/795852#M2674</link>
      <description>And now, what command are you using to link the final executable?&lt;BR /&gt;&lt;BR /&gt;It appears you are not including the mkl libraries.&lt;BR /&gt;&lt;BR /&gt;there is a command line switch that will add the libraries for you:&lt;BR /&gt;&lt;BR /&gt; ifort -mkl gas.o -o gas&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; --Lorri</description>
      <pubDate>Fri, 29 Jun 2012 10:50:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-linking-problem/m-p/795852#M2674</guid>
      <dc:creator>Lorri_M_Intel</dc:creator>
      <dc:date>2012-06-29T10:50:46Z</dc:date>
    </item>
  </channel>
</rss>

