<?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 to install MKL under cygwin in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-install-MKL-under-cygwin/m-p/875981#M8931</link>
    <description>&lt;P&gt;Hi, tim18, thank you for the reply!&lt;/P&gt;
&lt;P&gt;Let me be more specific about my scenario. I want to install a numpy (numerical python) package in Cygwin.numpy requires some libraries which can be obtained from MKL. I at first installed MKL library under windows.Then I tried to link MKL librarieswithcygwin by the way specified in&lt;A href="http://www.scipy.org/Installing_SciPy/Windows"&gt;http://www.scipy.org/Installing_SciPy/Windows&lt;/A&gt;. But it never works. The details of how I linked the lib are provided as below:&lt;/P&gt;
&lt;H3 id="head-c0b53ab2aaf93663bf4001439bfbffd28d6f6fad"&gt;Build NumPy&lt;/H3&gt;&lt;SPAN class="anchor" id="line-50"&gt;&lt;/SPAN&gt;&lt;SPAN class="anchor" id="line-51"&gt;&lt;/SPAN&gt;
&lt;P class="line862"&gt;Once you've checked out the source for &lt;A href="http://www.scipy.org/NumPy"&gt;NumPy&lt;/A&gt;, create an empty file called ".numpy-site.cfg" in your home directory (something like C:Documents and Settingsusername). Windows Explorer might not allow you to create a file starting with ".", so you may have to use the command line to rename it. Make sure you have a HOME user environment variable that points to your home directory (see Control Panel/System/Advanced/Environment Variables). Add the following to the file, substituting your MKL installation path where appropriate: &lt;SPAN class="anchor" id="line-52"&gt;&lt;/SPAN&gt;&lt;SPAN class="anchor" id="line-53"&gt;&lt;/SPAN&gt;&lt;PRE&gt;# config file for building numpy on ia32 platform,
&lt;SPAN class="anchor" id="line-54"&gt;&lt;/SPAN&gt;# using Intel's Math Kernel Library for win32
&lt;SPAN class="anchor" id="line-55"&gt;&lt;/SPAN&gt;# builds successfully with MSVC7.1
&lt;SPAN class="anchor" id="line-56"&gt;&lt;/SPAN&gt;# replace C:Program FilesIntelMKL9.0 with your Intel MKL install path
&lt;SPAN class="anchor" id="line-57"&gt;&lt;/SPAN&gt;
&lt;SPAN class="anchor" id="line-58"&gt;&lt;/SPAN&gt;[mkl]
&lt;SPAN class="anchor" id="line-59"&gt;&lt;/SPAN&gt;include_dirs = C:Program FilesIntelMKL9.0include
&lt;SPAN class="anchor" id="line-60"&gt;&lt;/SPAN&gt;library_dirs = C:Program FilesIntelMKL9.0ia32lib
&lt;SPAN class="anchor" id="line-61"&gt;&lt;/SPAN&gt;mkl_libs = mkl_ia32, mkl_c_dll, libguide40
&lt;SPAN class="anchor" id="line-62"&gt;&lt;/SPAN&gt;lapack_libs = mkl_lapack
&lt;SPAN class="anchor" id="line-63"&gt;&lt;/SPAN&gt;# mkl_c or mkl_c_dll? either seem to work:
&lt;SPAN class="anchor" id="line-64"&gt;&lt;/SPAN&gt;# mkl_c : "cdecl interface library"
&lt;SPAN class="anchor" id="line-65"&gt;&lt;/SPAN&gt;# mkl_c_dll : "cdecl interface library for dynamic library"
&lt;SPAN class="anchor" id="line-66"&gt;&lt;/SPAN&gt;# libguide or libguide40? either seem to work:
&lt;SPAN class="anchor" id="line-67"&gt;&lt;/SPAN&gt;# libguide.lib : "Static threading library"
&lt;SPAN class="anchor" id="line-68"&gt;&lt;/SPAN&gt;# libguide40.lib : "Interface library for dynamic threading library"
&lt;SPAN class="anchor" id="line-69"&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;SPAN class="anchor" id="line-70"&gt;&lt;/SPAN&gt;&lt;SPAN class="anchor" id="line-71"&gt;&lt;/SPAN&gt;
&lt;/P&gt;&lt;P class="line874"&gt;Check that the specified libraries can indeed be found by running: &lt;SPAN class="anchor" id="line-72"&gt;&lt;/SPAN&gt;&lt;SPAN class="anchor" id="line-73"&gt;&lt;/SPAN&gt;&lt;PRE&gt;python setup.py config
&lt;SPAN class="anchor" id="line-74"&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;SPAN class="anchor" id="line-75"&gt;&lt;/SPAN&gt;
&lt;/P&gt;&lt;P class="line862"&gt;from the root &lt;A href="http://www.scipy.org/NumPy"&gt;NumPy&lt;/A&gt; source directory. Then, (as of numpy rev 3726) all that's required is running: &lt;SPAN class="anchor" id="line-76"&gt;&lt;/SPAN&gt;&lt;SPAN class="anchor" id="line-77"&gt;&lt;/SPAN&gt;&lt;PRE&gt;python setup.py install
&lt;SPAN class="anchor" id="line-78"&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;SPAN class="anchor" id="line-79"&gt;&lt;/SPAN&gt;
&lt;/P&gt;&lt;P class="line862"&gt;from the root &lt;A href="http://www.scipy.org/NumPy"&gt;NumPy&lt;/A&gt; source directory. This should build &lt;A href="http://www.scipy.org/N
umPy"&gt;NumPy&lt;/A&gt; without errors and install it to your site-packages directory. Finally, &lt;A href="http://www.scipy.org/Installing_SciPy/Windows#test"&gt;test&lt;/A&gt; your installation.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jun 2008 23:42:48 GMT</pubDate>
    <dc:creator>webhopper</dc:creator>
    <dc:date>2008-06-10T23:42:48Z</dc:date>
    <item>
      <title>How to install MKL under cygwin</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-install-MKL-under-cygwin/m-p/875979#M8929</link>
      <description>Currenlty I want to install MKL lib for cygwin. There are MKL download versions for windows or linux. However, I tried both download versions and none works for me. For Linux, install.sh does not work under cygwin. For Windows, I don't know how to link Windows lib to Cygwin. I believe there must be some way to do it. Could some help? Thanks!&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Jun 2008 06:48:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-install-MKL-under-cygwin/m-p/875979#M8929</guid>
      <dc:creator>webhopper</dc:creator>
      <dc:date>2008-06-10T06:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to install MKL under cygwin</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-install-MKL-under-cygwin/m-p/875980#M8930</link>
      <description>&lt;P&gt;You have left your question open to interpretation, but your own interpretation must be at variance with the design of these tools. You should first read up on cygwin, and adjust your interpretation of "works for me" to match theirs. It is not an emulator which would allow any use of software built for linux. As described &lt;A href="http://www.mingw.org/mingwfaq.shtml"&gt;here&lt;/A&gt;it's possible the mingw compiler, invoked from a cygwin shellby gcc -mno-cygwin, may be able to create a standard Windows program a.exe, e.g.&lt;/P&gt;
&lt;P&gt;gcc -mno-cygwin yourprogram.c mkl_intel_c.lib mkl_core.lib mkl_sequential.lib&lt;/P&gt;
&lt;P&gt;assuming you have set the MKL include and library paths and use the MKL upper-case function names.&lt;/P&gt;
&lt;P&gt;So, you can't install MKL "for cygwin." mingw gcc is not one of the compilers supported by MKL, although it may work.&lt;/P&gt;
&lt;P&gt;The usual way of using MKL with cygwin is to open up a command prompt windowin a Microsoft or Intel compiler installation, so that you use that compiler rather than one supplied for cygwin, then run your cygwin.bat to open a bash shell inside your Windows compiler environment. This allows you to use cygwin posix tools such as gnu make, with a standard Windows compiler. cygwin itself knows nothing about the paths for these compilers or cygwin, and may get in the way of using the Microsoft versions of certain tools.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2008 10:23:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-install-MKL-under-cygwin/m-p/875980#M8930</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2008-06-10T10:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to install MKL under cygwin</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-install-MKL-under-cygwin/m-p/875981#M8931</link>
      <description>&lt;P&gt;Hi, tim18, thank you for the reply!&lt;/P&gt;
&lt;P&gt;Let me be more specific about my scenario. I want to install a numpy (numerical python) package in Cygwin.numpy requires some libraries which can be obtained from MKL. I at first installed MKL library under windows.Then I tried to link MKL librarieswithcygwin by the way specified in&lt;A href="http://www.scipy.org/Installing_SciPy/Windows"&gt;http://www.scipy.org/Installing_SciPy/Windows&lt;/A&gt;. But it never works. The details of how I linked the lib are provided as below:&lt;/P&gt;
&lt;H3 id="head-c0b53ab2aaf93663bf4001439bfbffd28d6f6fad"&gt;Build NumPy&lt;/H3&gt;&lt;SPAN class="anchor" id="line-50"&gt;&lt;/SPAN&gt;&lt;SPAN class="anchor" id="line-51"&gt;&lt;/SPAN&gt;
&lt;P class="line862"&gt;Once you've checked out the source for &lt;A href="http://www.scipy.org/NumPy"&gt;NumPy&lt;/A&gt;, create an empty file called ".numpy-site.cfg" in your home directory (something like C:Documents and Settingsusername). Windows Explorer might not allow you to create a file starting with ".", so you may have to use the command line to rename it. Make sure you have a HOME user environment variable that points to your home directory (see Control Panel/System/Advanced/Environment Variables). Add the following to the file, substituting your MKL installation path where appropriate: &lt;SPAN class="anchor" id="line-52"&gt;&lt;/SPAN&gt;&lt;SPAN class="anchor" id="line-53"&gt;&lt;/SPAN&gt;&lt;PRE&gt;# config file for building numpy on ia32 platform,
&lt;SPAN class="anchor" id="line-54"&gt;&lt;/SPAN&gt;# using Intel's Math Kernel Library for win32
&lt;SPAN class="anchor" id="line-55"&gt;&lt;/SPAN&gt;# builds successfully with MSVC7.1
&lt;SPAN class="anchor" id="line-56"&gt;&lt;/SPAN&gt;# replace C:Program FilesIntelMKL9.0 with your Intel MKL install path
&lt;SPAN class="anchor" id="line-57"&gt;&lt;/SPAN&gt;
&lt;SPAN class="anchor" id="line-58"&gt;&lt;/SPAN&gt;[mkl]
&lt;SPAN class="anchor" id="line-59"&gt;&lt;/SPAN&gt;include_dirs = C:Program FilesIntelMKL9.0include
&lt;SPAN class="anchor" id="line-60"&gt;&lt;/SPAN&gt;library_dirs = C:Program FilesIntelMKL9.0ia32lib
&lt;SPAN class="anchor" id="line-61"&gt;&lt;/SPAN&gt;mkl_libs = mkl_ia32, mkl_c_dll, libguide40
&lt;SPAN class="anchor" id="line-62"&gt;&lt;/SPAN&gt;lapack_libs = mkl_lapack
&lt;SPAN class="anchor" id="line-63"&gt;&lt;/SPAN&gt;# mkl_c or mkl_c_dll? either seem to work:
&lt;SPAN class="anchor" id="line-64"&gt;&lt;/SPAN&gt;# mkl_c : "cdecl interface library"
&lt;SPAN class="anchor" id="line-65"&gt;&lt;/SPAN&gt;# mkl_c_dll : "cdecl interface library for dynamic library"
&lt;SPAN class="anchor" id="line-66"&gt;&lt;/SPAN&gt;# libguide or libguide40? either seem to work:
&lt;SPAN class="anchor" id="line-67"&gt;&lt;/SPAN&gt;# libguide.lib : "Static threading library"
&lt;SPAN class="anchor" id="line-68"&gt;&lt;/SPAN&gt;# libguide40.lib : "Interface library for dynamic threading library"
&lt;SPAN class="anchor" id="line-69"&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;SPAN class="anchor" id="line-70"&gt;&lt;/SPAN&gt;&lt;SPAN class="anchor" id="line-71"&gt;&lt;/SPAN&gt;
&lt;/P&gt;&lt;P class="line874"&gt;Check that the specified libraries can indeed be found by running: &lt;SPAN class="anchor" id="line-72"&gt;&lt;/SPAN&gt;&lt;SPAN class="anchor" id="line-73"&gt;&lt;/SPAN&gt;&lt;PRE&gt;python setup.py config
&lt;SPAN class="anchor" id="line-74"&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;SPAN class="anchor" id="line-75"&gt;&lt;/SPAN&gt;
&lt;/P&gt;&lt;P class="line862"&gt;from the root &lt;A href="http://www.scipy.org/NumPy"&gt;NumPy&lt;/A&gt; source directory. Then, (as of numpy rev 3726) all that's required is running: &lt;SPAN class="anchor" id="line-76"&gt;&lt;/SPAN&gt;&lt;SPAN class="anchor" id="line-77"&gt;&lt;/SPAN&gt;&lt;PRE&gt;python setup.py install
&lt;SPAN class="anchor" id="line-78"&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;SPAN class="anchor" id="line-79"&gt;&lt;/SPAN&gt;
&lt;/P&gt;&lt;P class="line862"&gt;from the root &lt;A href="http://www.scipy.org/NumPy"&gt;NumPy&lt;/A&gt; source directory. This should build &lt;A href="http://www.scipy.org/N
umPy"&gt;NumPy&lt;/A&gt; without errors and install it to your site-packages directory. Finally, &lt;A href="http://www.scipy.org/Installing_SciPy/Windows#test"&gt;test&lt;/A&gt; your installation.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2008 23:42:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-install-MKL-under-cygwin/m-p/875981#M8931</guid>
      <dc:creator>webhopper</dc:creator>
      <dc:date>2008-06-10T23:42:48Z</dc:date>
    </item>
  </channel>
</rss>

