<?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_c.lib  -  64bit equivalent in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-c-lib-64bit-equivalent/m-p/910333#M12093</link>
    <description>&lt;P&gt;David,&lt;/P&gt;
&lt;P&gt;as in my reply to your previous post, and according to the release notes and KB, the replacement for the stub mkl_c.lib are (for x64): mkl_intel_thread.lib mkl_core.lib. So you need both of them and your integers model (lp or ilp). Also using libiomp5md.lib instead of old libguide is usually recommended.&lt;/P&gt;
&lt;P&gt;you can take a look at &lt;A href="http://software.intel.com/en-us/articles/performance-tools-for-software-developers-for-easily-migrating-from-mkl-9x-to-10x/"&gt;this KB article&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;But you error message suggests your linker still wants mkl_c.lib, so maybe you refer to it somewhere.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;A.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jan 2010 03:25:09 GMT</pubDate>
    <dc:creator>ArturGuzik</dc:creator>
    <dc:date>2010-01-21T03:25:09Z</dc:date>
    <item>
      <title>mkl_c.lib  -  64bit equivalent</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-c-lib-64bit-equivalent/m-p/910332#M12092</link>
      <description>&lt;P&gt;(w_cprof_p_11.0.061, MKL 10.1.0.018)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I have a program with one subroutine that uses a couple of RNG functions from MKL. The program compiles 'OK' as a 32bit application (only 'OK' because I do get a warning message about mkl_c.lib, but the RNG's were working when I last used that part of the program about 20 months ago.)&lt;/P&gt;
&lt;BR /&gt;
&lt;P&gt;However, when I now attempt to compile it as a 64bit app, I get a fatal link error.&lt;/P&gt;
&lt;P&gt;&lt;I&gt;error LNK2019: unresolved external symbol VSLNEWSTREAM referenced in function PARAMETRIC&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;error LNK2019: unresolved external symbol VSRNGGAUSSIAN referenced in function PARAMETRIC&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;For the 32bit app I have mkl_c.lib &amp;amp; libguide.lib as additional dependencies (Configuration Properties / Linker / Input).&lt;/P&gt;
&lt;P&gt;When I encountered problems compiling as a 64bit app, I found I had no additional dependencies for 64bit compiler, so I copied in mkl_c.lib &amp;amp; libguide.lib, but then I get the following error:&lt;/P&gt;
&lt;P&gt;&lt;I&gt;fatal error LNK1181: cannot open input file 'mkl_c.lib' LINK&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;I then discovered that there is no mkl_c.lib for 64bit; ie no such file in&lt;/P&gt;
&lt;P&gt;C:\\Program Files\\Intel\\MKL\\10.1.0.018\\ia64\\lib&lt;/P&gt;
&lt;P&gt;or anywhere else I looked in the 64bit folders.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Can anyone please advise what lib's I need to specify to get the RNG functions from MKL to work in a 64bit app?&lt;/P&gt;
&lt;P&gt;I tried mkl_intel_c.lib and mkl_core.lib but still get &lt;I&gt;fatal error LNK1181.&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2010 03:20:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-c-lib-64bit-equivalent/m-p/910332#M12092</guid>
      <dc:creator>davidspurr</dc:creator>
      <dc:date>2010-01-21T03:20:14Z</dc:date>
    </item>
    <item>
      <title>mkl_c.lib  -  64bit equivalent</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-c-lib-64bit-equivalent/m-p/910333#M12093</link>
      <description>&lt;P&gt;David,&lt;/P&gt;
&lt;P&gt;as in my reply to your previous post, and according to the release notes and KB, the replacement for the stub mkl_c.lib are (for x64): mkl_intel_thread.lib mkl_core.lib. So you need both of them and your integers model (lp or ilp). Also using libiomp5md.lib instead of old libguide is usually recommended.&lt;/P&gt;
&lt;P&gt;you can take a look at &lt;A href="http://software.intel.com/en-us/articles/performance-tools-for-software-developers-for-easily-migrating-from-mkl-9x-to-10x/"&gt;this KB article&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;But you error message suggests your linker still wants mkl_c.lib, so maybe you refer to it somewhere.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;A.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2010 03:25:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-c-lib-64bit-equivalent/m-p/910333#M12093</guid>
      <dc:creator>ArturGuzik</dc:creator>
      <dc:date>2010-01-21T03:25:09Z</dc:date>
    </item>
    <item>
      <title>mkl_c.lib  -  64bit equivalent</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-c-lib-64bit-equivalent/m-p/910334#M12094</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;After more experimenting &amp;amp; now using mkl_intel_thread.lib mkl_core.lib &amp;amp; libiomp5md.li, I no longer get the "&lt;I&gt;fatal error LNK1181&lt;/I&gt;" message, which I guess means it is finding those lib files OK.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;However, I am now back to my original messages:&lt;/P&gt;
&lt;P&gt;&lt;I&gt;error LNK2019: unresolved external symbol VSLNEWSTREAM referenced in function PARAMETRIC&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;error LNK2019: unresolved external symbol VSRNGGAUSSIAN referenced in function PARAMETRIC&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I have done something a little 'non-standard' in that I have the contents of modules "MKL_VSL_TYPE" and "MKL_VSL" directly in my code, rather than as external (I did this to make the code more portable - exe distributed to "non-tech" people so wanted to distribute only a single exe file, with no dependent dll files etc).&lt;/P&gt;
&lt;P&gt;The functions "&lt;I&gt;VSLNEWSTREAM&lt;/I&gt;" and "&lt;I&gt;VSRNGGAUSSIAN&lt;/I&gt;" are definitely are included in "MKL_VSL". I put the two modules in a file called "mkl_vsl.f90". When I do a full rebuild, that file ("mkl_vsl.f90") is the first one to be compiled, so I do not understand why the linker cannot find them.&lt;/P&gt;
&lt;P&gt;I do not get the error messages when I compile it as a 32bit app &amp;amp; as mentioned previously, this part of the program was working fine 20 months ago (as a 32bit app).&lt;/P&gt;
&lt;P&gt;From what I can deduce from Table 5.3 of the user guide, all I should need for the VSL functions is mkl_core.lib?&lt;/P&gt;
&lt;P&gt;Not certain where to go from here :(&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2010 03:59:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-c-lib-64bit-equivalent/m-p/910334#M12094</guid>
      <dc:creator>davidspurr</dc:creator>
      <dc:date>2010-01-21T03:59:16Z</dc:date>
    </item>
    <item>
      <title>mkl_c.lib  -  64bit equivalent</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-c-lib-64bit-equivalent/m-p/910335#M12095</link>
      <description>&lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=361100" class="basic" href="https://community.intel.com/en-us/profile/361100/"&gt;davidspurr&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="border: 1px inset; padding: 5px; background-color: #e5e5e5; margin-left: 2px; margin-right: 2px;"&gt;, all I should need for the VSL functions is mkl_core.lib?&lt;I&gt;
&lt;P&gt;Not certain where to go from here :(&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/I&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Perhaps you might consult the link advisor on the head page of this forum?&lt;/P&gt;
&lt;P&gt;If you're moving to 64-bit, mkl_core has to be accompanied by the lp64 (if you didn't change source data types from the 32-bit case) or ilp64 library, and either mkl_sequential or mkl_thread plus OpenMP library.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2010 04:28:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-c-lib-64bit-equivalent/m-p/910335#M12095</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-01-21T04:28:47Z</dc:date>
    </item>
    <item>
      <title>mkl_c.lib  -  64bit equivalent</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-c-lib-64bit-equivalent/m-p/910336#M12096</link>
      <description>&lt;P&gt;Hmm - just finshed a 4 paragraph note &amp;amp; hit "Submit" only to get an fatal error &amp;amp; lose the lot :(&lt;/P&gt;
&lt;P&gt;Just read Tim's post (thanks) - will follow up on that.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2010 04:39:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-c-lib-64bit-equivalent/m-p/910336#M12096</guid>
      <dc:creator>davidspurr</dc:creator>
      <dc:date>2010-01-21T04:39:06Z</dc:date>
    </item>
    <item>
      <title>mkl_c.lib  -  64bit equivalent</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-c-lib-64bit-equivalent/m-p/910337#M12097</link>
      <description>&lt;P&gt;Tim, many thanks. the "mkl_intel_lp64.lib" was indeed the missing link !!&lt;/P&gt;
&lt;P&gt;But what an exercise, just to change from 32 - 64 bit compile :( ...&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Also, thanks for the tip re the link advisor (had not noticed that). Very straightforward - right answer and all !!!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2010 04:45:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-c-lib-64bit-equivalent/m-p/910337#M12097</guid>
      <dc:creator>davidspurr</dc:creator>
      <dc:date>2010-01-21T04:45:02Z</dc:date>
    </item>
  </channel>
</rss>

