<?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: Help: basic MKL link options using Intel C compiler under L in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-basic-MKL-link-options-using-Intel-C-compiler-under-Linux/m-p/875271#M8855</link>
    <description>The best way may be to open the MKl userguide for Linux and refer to page 49 ~ 50 (5-7 ~ 5-8).&lt;BR /&gt;
&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;&lt;BR /&gt;&lt;A href="http://software.intel.com/sites/products/documentation/hpc/mkl/userguide_lnx.pdf" target="_blank"&gt;http://software.intel.com/sites/products/documentation/hpc/mkl/userguide_lnx.pdf&lt;/A&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 09 Sep 2009 03:20:58 GMT</pubDate>
    <dc:creator>jaewonj</dc:creator>
    <dc:date>2009-09-09T03:20:58Z</dc:date>
    <item>
      <title>Help: basic MKL link options using Intel C compiler under Linux</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-basic-MKL-link-options-using-Intel-C-compiler-under-Linux/m-p/875270#M8854</link>
      <description>I'm very new to MKL and I'm trying to get a very basic C program (using MKL)to compile and link under Linux (Redhat RHEL 4 Update 7) - see attached&lt;BR /&gt;&lt;BR /&gt;But try as I have I can't get it to link (see makefile below) - already run mklvars32.sh - this should be easy.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------START MAKEFILE--------------------------------&lt;BR /&gt;CC = icc&lt;BR /&gt;&lt;BR /&gt;XLD_LIBRARY_PATH="/opt/intel/mkl/10.0.011/lib/32"&lt;BR /&gt;&lt;BR /&gt;XMKLINC=-I"/opt/intel/mkl/10.0.011/include"&lt;BR /&gt;MKLLIB=/opt/intel/mkl/10.0.011/lib/32/libmkl_intel.a \&lt;BR /&gt;/opt/intel/mkl/10.0.011/lib/32/libmkl_core.a&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;matrix: mkl_lab_solution.c&lt;BR /&gt;$(CC) mkl_lab_solution.c -I$(INCLUDE) -L$(MKLLIB)&lt;BR /&gt;&lt;BR /&gt;clean:&lt;BR /&gt;rm *.o matrix&lt;BR /&gt;&lt;BR /&gt;---------------------END MAKEFILE-----------------------------&lt;BR /&gt;&lt;BR /&gt;So what do I need to include in the makefile to get this simple C program to compile and use MKL?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;output from make:&lt;BR /&gt;icc mkl_lab_solution.c -I/opt/intel/mkl/10.0.011/include -L/opt/intel/mkl/10.0.011/lib/32/libmkl_intel.a /opt/intel/mkl/10.0.011/lib/32/libmkl_core.a&lt;BR /&gt;/tmp/icc7nJbz4.o(.text+0x49b): In function `main':&lt;BR /&gt;: undefined reference to `cblas_ddot'&lt;BR /&gt;/tmp/icc7nJbz4.o(.text+0x7b7): In function `main':&lt;BR /&gt;: undefined reference to `cblas_dgemv'&lt;BR /&gt;/tmp/icc7nJbz4.o(.text+0x9fb): In function `main':&lt;BR /&gt;: undefined reference to `cblas_dgemm'&lt;BR /&gt;/tmp/icc7nJbz4.o(.text+0xcb9): In function `Dgemm_multiply':&lt;BR /&gt;: undefined reference to `cblas_dgemm'&lt;BR /&gt;/tmp/icc7nJbz4.o(.text+0xd40): In function `Dgemv_multiply':&lt;BR /&gt;: undefined reference to `cblas_dgemv'&lt;BR /&gt;/tmp/icc7nJbz4.o(.text+0xde9): In function `Ddot_Multiply':&lt;BR /&gt;: undefined reference to `cblas_ddot'&lt;BR /&gt;make: *** [matrix] Error 1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Sep 2009 02:16:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-basic-MKL-link-options-using-Intel-C-compiler-under-Linux/m-p/875270#M8854</guid>
      <dc:creator>MikeP_Intel</dc:creator>
      <dc:date>2009-09-09T02:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help: basic MKL link options using Intel C compiler under L</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-basic-MKL-link-options-using-Intel-C-compiler-under-Linux/m-p/875271#M8855</link>
      <description>The best way may be to open the MKl userguide for Linux and refer to page 49 ~ 50 (5-7 ~ 5-8).&lt;BR /&gt;
&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;&lt;BR /&gt;&lt;A href="http://software.intel.com/sites/products/documentation/hpc/mkl/userguide_lnx.pdf" target="_blank"&gt;http://software.intel.com/sites/products/documentation/hpc/mkl/userguide_lnx.pdf&lt;/A&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Sep 2009 03:20:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-basic-MKL-link-options-using-Intel-C-compiler-under-Linux/m-p/875271#M8855</guid>
      <dc:creator>jaewonj</dc:creator>
      <dc:date>2009-09-09T03:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help: basic MKL link options using Intel C compiler under L</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-basic-MKL-link-options-using-Intel-C-compiler-under-Linux/m-p/875272#M8856</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/431061"&gt;jaewonj&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;The best way may be to open the MKl userguide for Linux and refer to page 49 ~ 50 (5-7 ~ 5-8).&lt;BR /&gt;
&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;&lt;BR /&gt;&lt;A href="http://software.intel.com/sites/products/documentation/hpc/mkl/userguide_lnx.pdf" target="_blank"&gt;http://software.intel.com/sites/products/documentation/hpc/mkl/userguide_lnx.pdf&lt;/A&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;agree with jaewonj's advice: this is really the best way. You can find there Syntax of Linkig command and a lot of examples for IA32 and intel64 architectures.&lt;BR /&gt; The second way - visit the Linker Adviser KB article: "http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/".&lt;BR /&gt;&lt;BR /&gt;--Gennady&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Sep 2009 06:29:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-basic-MKL-link-options-using-Intel-C-compiler-under-Linux/m-p/875272#M8856</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-09-09T06:29:13Z</dc:date>
    </item>
  </channel>
</rss>

