<?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: How do I use C with the MKL in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-use-C-with-the-MKL/m-p/958859#M15689</link>
    <description>I forgot to mention that I want to use the MKL LAPACK and code in C.&lt;BR /&gt;&lt;BR /&gt;Heath</description>
    <pubDate>Wed, 07 Dec 2005 12:54:29 GMT</pubDate>
    <dc:creator>heathgerhardt</dc:creator>
    <dc:date>2005-12-07T12:54:29Z</dc:date>
    <item>
      <title>How do I use C with the MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-use-C-with-the-MKL/m-p/958858#M15688</link>
      <description>I am not sure if this is the appropriate place to ask this but I am tired to searching the net.&lt;BR /&gt;&lt;BR /&gt;I want to program in C and use the MKL on a linux system. Would anyone mind telling me the "best" way of doing this. Links to code examples and compiling and installing notes would make me extremely happy.&lt;BR /&gt;&lt;BR /&gt;I have been trying to get CLAPACK and MKL to work together cannot figure out how to do it.&lt;BR /&gt;&lt;BR /&gt;thanks in advance,&lt;BR /&gt;Heath</description>
      <pubDate>Wed, 07 Dec 2005 12:50:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-use-C-with-the-MKL/m-p/958858#M15688</guid>
      <dc:creator>heathgerhardt</dc:creator>
      <dc:date>2005-12-07T12:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use C with the MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-use-C-with-the-MKL/m-p/958859#M15689</link>
      <description>I forgot to mention that I want to use the MKL LAPACK and code in C.&lt;BR /&gt;&lt;BR /&gt;Heath</description>
      <pubDate>Wed, 07 Dec 2005 12:54:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-use-C-with-the-MKL/m-p/958859#M15689</guid>
      <dc:creator>heathgerhardt</dc:creator>
      <dc:date>2005-12-07T12:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use C with the MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-use-C-with-the-MKL/m-p/958860#M15690</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;STRONG&gt;I wonder if you check this. &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://support.intel.com/support/performancetools/libraries/mkl/win/sb/cs-017282.htm" target="_blank"&gt;http://support.intel.com/support/performancetools/libraries/mkl/win/sb/cs-017282.htm&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Intel MKL v6.0 with Microsoft* Visual C++* .NET (v7.0)&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Select &lt;STRONG&gt;View &amp;gt;&amp;gt; Solution Explorer&lt;/STRONG&gt; (and make sure this window is active).&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Select &lt;STRONG&gt;Tools &amp;gt;&amp;gt; Options &amp;gt;&amp;gt; Projects &amp;gt;&amp;gt; VC++ Directories&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;In the drop down menu titled &lt;STRONG&gt;Show directories for:&lt;/STRONG&gt;, select &lt;STRONG&gt;Include Files&lt;/STRONG&gt;, and then type in the directory for the Intel MKL include files (e.g. default: C:Program FilesIntelMKL60include).&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;In the drop down menu titled &lt;STRONG&gt;Show directories for:&lt;/STRONG&gt;, select &lt;STRONG&gt;Library Files&lt;/STRONG&gt;, and then type in the directory for the Intel MKL library files (e.g. default: C:Program FilesIntelMKL60ia32lib).&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;In the drop down menu titled &lt;STRONG&gt;Show directories for:&lt;/STRONG&gt;, select &lt;STRONG&gt;Executable Files&lt;/STRONG&gt;, and then type in the directory for the Intel MKL executable files (e.g. default: C:Program FilesIntelMKL60ia32&amp;#8;in).&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;On the main toolbar select &lt;STRONG&gt;Project &amp;gt;&amp;gt; Properties &amp;gt;&amp;gt; Linker &amp;gt;&amp;gt; Input&lt;/STRONG&gt; and in the "Additional Dependencies" line, add the libraries you require (e.g. mkl_c.lib).&lt;/LI&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;A target="_blank"&gt;&lt;/A&gt;&lt;STRONG&gt;Intel MKL v6.0 with Microsoft* Visual C++* (v6.0)&lt;/STRONG&gt;&lt;BR /&gt;In &lt;STRONG&gt;Project Settings&lt;/STRONG&gt;, add the location (path) of Intel MKL sub-library in the link properties, for example, in Microsoft* Visual Studio* / Microsoft Visual C++ (v6.0):
&lt;OL&gt;
&lt;LI&gt;Select &lt;STRONG&gt;Project &amp;gt;&amp;gt; Settings&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Select the &lt;STRONG&gt;Link&lt;/STRONG&gt; tab.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;In the &lt;STRONG&gt;Category&lt;/STRONG&gt; drop-down menu, select &lt;STRONG&gt;Input&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;In the &lt;STRONG&gt;Object/library&lt;/STRONG&gt; modules section add &lt;STRONG&gt;mkl_c.lib&lt;/STRONG&gt; &lt;U&gt;or&lt;/U&gt; &lt;STRONG&gt;mkl_s.lib&lt;/STRONG&gt; for static cdecl or CVF (respectively) interface libraries (mkl_c_dll, mkl_s_dll for dynamic interface libraries). The other libraries (LAPACK, BLAS, etc.) are identified as default libraries within the interface library and cause the linker to automatically link appropriately. The processor type is determined at runtime.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;You must also add the library path to the location of these libraries. In the &lt;STRONG&gt;Additional library path&lt;/STRONG&gt; section, add the location of the Intel MKL sub-libraries. For example, on an IA32 system, you would add C:Program FilesintelMKL60ia32lib (for the default install location).&lt;/LI&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;A target="_blank"&gt;&lt;/A&gt;&lt;STRONG&gt;Intel MKL v5.2 with Microsoft* Visual C++* (v6.0)&lt;/STRONG&gt;&lt;BR /&gt;In &lt;STRONG&gt;Project Settings&lt;/STRONG&gt;, add the location (path) of Intel MKL sub-library in the link properties, for example, in Microsoft Visual Studio / Microsoft Visual C++ (V6.0) with Intel MKL V5.2:
&lt;OL&gt;
&lt;LI&gt;Select &lt;STRONG&gt;Project &amp;gt;&amp;gt; Settings&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Select the &lt;STRONG&gt;Link&lt;/STRONG&gt; tab.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;In the &lt;STRONG&gt;Category&lt;/STRONG&gt; drop-down menu, select &lt;STRONG&gt;Input&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;In the Object/library modules section add &lt;STRONG&gt;mkl_c.lib&lt;/STRONG&gt; &lt;U&gt;or&lt;/U&gt; &lt;STRONG&gt;mkl_s.lib&lt;/STRONG&gt;, as well as &lt;STRONG&gt;mkl_def.lib, mkl_p3.lib, mkl_p4.lib or mkl_itp.lib&lt;/STRONG&gt; for tar
get processor default (Pentium, Pentium Pro, Pentium &lt;FONT face="Times, serif"&gt;II&lt;/FONT&gt;), Intel Pentium III processor, Intel Pentium 4 processor, or Itanium processor.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; If you need LAPACK support you must also add mkl_lapack library.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;You must also add the library path to the location of these libraries. In the &lt;STRONG&gt;Additional library path&lt;/STRONG&gt; section, add the location of the Intel MKL sub-libraries. For example, on an IA32 system, you would add C:Program FilesintelMKLia32lib (for the default install location).&lt;/LI&gt;&lt;/OL&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 07 Dec 2005 13:46:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-use-C-with-the-MKL/m-p/958860#M15690</guid>
      <dc:creator>jongil_lim</dc:creator>
      <dc:date>2005-12-07T13:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use C with the MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-use-C-with-the-MKL/m-p/958861#M15691</link>
      <description>I use Linux (with either the gcc or icc compilers) not windows.</description>
      <pubDate>Thu, 08 Dec 2005 08:10:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-use-C-with-the-MKL/m-p/958861#M15691</guid>
      <dc:creator>heathgerhardt</dc:creator>
      <dc:date>2005-12-08T08:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use C with the MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-use-C-with-the-MKL/m-p/958862#M15692</link>
      <description>&lt;P&gt;Hello Heath,&lt;/P&gt;
&lt;P&gt;LAPACK defines a Fortran interface so you have to pay attention to a few details when calling LAPACK functions from a C program:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Fortran is call-by-reference, C is call-by-value&lt;/LI&gt;
&lt;LI&gt;Fortran uses column-major ordering, C is row-major&lt;/LI&gt;
&lt;LI&gt;For best performance,array datapassed to LAPACK must be contiguous in memory.&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;To compile and link,just include the &lt;FONT face="Courier New"&gt;mkl.h&lt;/FONT&gt; header in your program and link the following libraries:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;-lmkl -lmkl_lapack -lvml -lguide -lpthread&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Henry&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2006 00:31:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-do-I-use-C-with-the-MKL/m-p/958862#M15692</guid>
      <dc:creator>Henry_G_Intel</dc:creator>
      <dc:date>2006-01-06T00:31:16Z</dc:date>
    </item>
  </channel>
</rss>

