<?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: Linking errors with mkl_intel_thread in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-errors-with-mkl-intel-thread/m-p/894196#M10722</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/367365"&gt;tim18&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; As you have linked the t hreading library, you must also link the threading support (/Openmp if using Intel compiler, libiompxxx.lib if using VC9 or possibly VC8).&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;I'm not sure if this particular library is the problem, but I have changed my project settings in Visual Studio such that these libraries are linked: &lt;BR /&gt;&lt;BR /&gt;mkl_intel_c.lib libmmdd.lib mkl_lapack.lib mkl_c_dll.lib mkl_intel_thread.lib mkl_core.lib libguide.lib&lt;BR /&gt;&lt;BR /&gt;However, as I run through the program, when it reaches the sgemm function call which involves BLAS in MKL, I am getting this message as attached during run-time. As seen in the debugger, I got an exit code of 3 when the program returned from the main function. It would be great if someone can light up some recommendations if this is a common error of using MKL improperly. Thanks.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 26 Feb 2009 02:09:13 GMT</pubDate>
    <dc:creator>ssylee</dc:creator>
    <dc:date>2009-02-26T02:09:13Z</dc:date>
    <item>
      <title>Linking errors with mkl_intel_thread</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-errors-with-mkl-intel-thread/m-p/894194#M10720</link>
      <description>I have implemented helper functions that would call certain Lapack and BLAS functions to calculate matrix inverses, mat-mat multiplications, and mat-vec multiplications. However, when I'm linking with the intel MKL libraries, I keep on getting the following linker errors, which I have no idea how to solve. Any suggestions would be much appreciated.&lt;BR /&gt;&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgetrf_ib_omp.obj) : error LNK2019: unresolved external symbol ___kmpc_global_thread_num referenced in function _mkl_lapack_sgetrf_ib&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgetrf_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_global_thread_num&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgemm_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_global_thread_num&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(strsm_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_global_thread_num&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(strmm_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_global_thread_num&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgetrf_omp.obj) : error LNK2019: unresolved external symbol ___kmpc_dispatch_init_4 referenced in function L__mkl_lapack_sgetrf_340__par_loop1&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgetrf_omp.obj) : error LNK2019: unresolved external symbol ___kmpc_dispatch_next_4 referenced in function L__mkl_lapack_sgetrf_340__par_loop1&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgetrf_omp.obj) : error LNK2019: unresolved external symbol _omp_get_thread_num referenced in function L__mkl_lapack_sgetrf_243__par_region0&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgetrf_omp.obj) : error LNK2019: unresolved external symbol ___kmpc_barrier referenced in function L__mkl_lapack_sgetrf_243__par_region0&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgetrf_omp.obj) : error LNK2019: unresolved external symbol ___kmpc_critical referenced in function L__mkl_lapack_sgetrf_243__par_region0&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgetrf_omp.obj) : error LNK2019: unresolved external symbol ___kmpc_end_critical referenced in function L__mkl_lapack_sgetrf_243__par_region0&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgetrf_ib_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_ok_to_fork&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgetrf_omp.obj) : error LNK2019: unresolved external symbol ___kmpc_ok_to_fork referenced in function L__mkl_lapack_sgetrf_243__par_region0&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgemm_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_ok_to_fork&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(strsm_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_ok_to_fork&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(strmm_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_ok_to_fork&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgetrf_omp.obj) : error LNK2019: unresolved external symbol ___kmpc_push_num_threads referenced in function L__mkl_lapack_sgetrf_243__par_region0&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgemm_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_push_num_threads&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(strsm_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_push_num_threads&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(strmm_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_push_num_threads&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgetrf_ib_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_fork_call&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgetrf_omp.obj) : error LNK2019: unresolved external symbol ___kmpc_fork_call referenced in function L__mkl_lapack_sgetrf_243__par_region0&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgemm_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_fork_call&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(strsm_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_fork_call&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(strmm_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_fork_call&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgetrf_ib_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_serialized_parallel&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgetrf_omp.obj) : error LNK2019: unresolved external symbol ___kmpc_serialized_parallel referenced in function L__mkl_lapack_sgetrf_243__par_region0&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgemm_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_serialized_parallel&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(strsm_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_serialized_parallel&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(strmm_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_serialized_parallel&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgetrf_ib_omp.obj) : error LNK2019: unresolved external symbol ___kmpc_end_serialized_parallel referenced in function _SGETRF_IB_OMP.&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgetrf_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_end_serialized_parallel&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgemm_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_end_serialized_parallel&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(strsm_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_end_serialized_parallel&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(strmm_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_end_serialized_parallel&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgetrf_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_dispatch_fini_4&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgemm_omp.obj) : error LNK2019: unresolved external symbol ___kmpc_for_static_init_4 referenced in function L__mkl_blas_sgemm_437__par_loop1&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(strsm_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_for_static_init_4&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(strmm_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_for_static_init_4&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgetrf_ib_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_for_static_init_4&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgemm_omp.obj) : error LNK2019: unresolved external symbol ___kmpc_for_static_fini referenced in function L__mkl_blas_sgemm_437__par_loop1&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(strsm_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_for_static_fini&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(strmm_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_for_static_fini&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(sgetrf_ib_omp.obj) : error LNK2001: unresolved external symbol ___kmpc_for_static_fini&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(mkl_threading.obj) : error LNK2019: unresolved external symbol _omp_in_parallel referenced in function _MKL_Get_Max_Threads&lt;BR /&gt;1&amp;gt;mkl_intel_thread.lib(mkl_threading.obj) : error LNK2019: unresolved external symbol _omp_get_max_threads referenced in function _MKL_Get_Max_Threads&lt;BR /&gt;1&amp;gt;C:\Robotics and Controls Laboratory\rcl_dicom2stradwin_mkl\branches\version-movenode\Debug/rcl_dicom2stradwin.exe : fatal error LNK1120: 17 unresolved externals</description>
      <pubDate>Thu, 26 Feb 2009 00:27:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-errors-with-mkl-intel-thread/m-p/894194#M10720</guid>
      <dc:creator>ssylee</dc:creator>
      <dc:date>2009-02-26T00:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Linking errors with mkl_intel_thread</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-errors-with-mkl-intel-thread/m-p/894195#M10721</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
As you have linked the t hreading library, you must also link the threading support (/Openmp if using Intel compiler, libiompxxx.lib if using VC9 or possibly VC8).&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Feb 2009 00:57:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-errors-with-mkl-intel-thread/m-p/894195#M10721</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-02-26T00:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Linking errors with mkl_intel_thread</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-errors-with-mkl-intel-thread/m-p/894196#M10722</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/367365"&gt;tim18&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; As you have linked the t hreading library, you must also link the threading support (/Openmp if using Intel compiler, libiompxxx.lib if using VC9 or possibly VC8).&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;I'm not sure if this particular library is the problem, but I have changed my project settings in Visual Studio such that these libraries are linked: &lt;BR /&gt;&lt;BR /&gt;mkl_intel_c.lib libmmdd.lib mkl_lapack.lib mkl_c_dll.lib mkl_intel_thread.lib mkl_core.lib libguide.lib&lt;BR /&gt;&lt;BR /&gt;However, as I run through the program, when it reaches the sgemm function call which involves BLAS in MKL, I am getting this message as attached during run-time. As seen in the debugger, I got an exit code of 3 when the program returned from the main function. It would be great if someone can light up some recommendations if this is a common error of using MKL improperly. Thanks.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Feb 2009 02:09:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-errors-with-mkl-intel-thread/m-p/894196#M10722</guid>
      <dc:creator>ssylee</dc:creator>
      <dc:date>2009-02-26T02:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Linking errors with mkl_intel_thread</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-errors-with-mkl-intel-thread/m-p/894197#M10723</link>
      <description>&lt;DIV style="margin:0px;"&gt;Thatt not good idea to link static and dynamic libraries at the same time.&lt;BR /&gt;What mkls version are you using? Ill get you the right way to do that but &lt;BR /&gt;I d recommend you to read mkls userguide  you can find there all recommendation you need to link your application.&lt;BR /&gt;--Gennady&lt;BR /&gt;&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Feb 2009 05:54:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-errors-with-mkl-intel-thread/m-p/894197#M10723</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-02-26T05:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Linking errors with mkl_intel_thread</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-errors-with-mkl-intel-thread/m-p/894198#M10724</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/334681"&gt;Gennady Fedorov (Intel)&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;
&lt;DIV style="margin:0px;"&gt;Thatt not good idea to link static and dynamic libraries at the same time.&lt;BR /&gt;What mkls version are you using? Ill get you the right way to do that but &lt;BR /&gt;I d recommend you to read mkls userguide  you can find there all recommendation you need to link your application.&lt;BR /&gt;--Gennady&lt;BR /&gt;&lt;/DIV&gt;
&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;I'm using version 10.1 for the MKL and 11.0 for the compiler. Where would the recommendations be in the manual (or what term would you recommend me to search on msdn for the recommendation since the manual is integrated with msdn on my computer). Thanks.&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Feb 2009 08:34:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-errors-with-mkl-intel-thread/m-p/894198#M10724</guid>
      <dc:creator>ssylee</dc:creator>
      <dc:date>2009-02-26T08:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Linking errors with mkl_intel_thread</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-errors-with-mkl-intel-thread/m-p/894199#M10725</link>
      <description>&lt;DIV style="margin:0px;"&gt;1.mkls userguide (userguide.pdf)  you can find this manual into the directory: &lt;BR /&gt;..Compiler11.0&amp;#0;66cppDocumentationmkl &lt;BR /&gt;2. the recommended linking line is the following:&lt;BR /&gt;mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib&lt;BR /&gt;--Gennady&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Feb 2009 09:42:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-errors-with-mkl-intel-thread/m-p/894199#M10725</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-02-26T09:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Linking errors with mkl_intel_thread</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-errors-with-mkl-intel-thread/m-p/894200#M10726</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/334681"&gt;Gennady Fedorov (Intel)&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;
&lt;DIV style="margin:0px;"&gt;1.mkls userguide (userguide.pdf)  you can find this manual into the directory: &lt;BR /&gt;..Compiler11.0&amp;#0;66cppDocumentationmkl &lt;BR /&gt;2. the recommended linking line is the following:&lt;BR /&gt;mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib&lt;BR /&gt;--Gennady&lt;/DIV&gt;
&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;Thanks for the linking line suggestion. As for the manual, I knew where the manual is located in the MKL directory. What I was asking though, is which section in the manual, clarifying my original question.&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Feb 2009 18:51:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-errors-with-mkl-intel-thread/m-p/894200#M10726</guid>
      <dc:creator>ssylee</dc:creator>
      <dc:date>2009-02-26T18:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Linking errors with mkl_intel_thread</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-errors-with-mkl-intel-thread/m-p/894201#M10727</link>
      <description>&lt;DIV style="margin:0px;"&gt;chapter 5 - Linking Your Application with Intel Math Kernel Library&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Feb 2009 19:43:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-errors-with-mkl-intel-thread/m-p/894201#M10727</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-02-26T19:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Linking errors with mkl_intel_thread</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-errors-with-mkl-intel-thread/m-p/894202#M10728</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/334681"&gt;Gennady Fedorov (Intel)&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;
&lt;DIV style="margin:0px;"&gt;chapter 5 - Linking Your Application with Intel Math Kernel Library&lt;/DIV&gt;
&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Also, see the detailed directory structure in Chapter 3, which you can cross-reference with the libraries in Chapter 5 (See table 5-3).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Mar 2009 17:48:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-errors-with-mkl-intel-thread/m-p/894202#M10728</guid>
      <dc:creator>MikeLevine</dc:creator>
      <dc:date>2009-03-02T17:48:29Z</dc:date>
    </item>
  </channel>
</rss>

