<?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: MKL ERROR in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-ERROR/m-p/871536#M8548</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/139396"&gt;joey_hylton&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;&lt;/DIV&gt;
&lt;DIV&gt;MKLLIBSEM64 = -lmkl_solver_lp64_sequential.a -lmkl_sequential.a -lmkl_intel_thread.a -lmkl_core.a -llibiomp5md -lguide -lmkl_em64t&lt;/DIV&gt;
&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
You're asking for trouble when you attempt to link partially the static sequential stubs, the "legacy" OpenMP dynamic, and the "compatibility" OpenMP dynamic all together, and an old dynamic MKL along with partial linking of current static mkl. Our point about dynamic vs static is you won't be able to get the latter right without following the release notes, and any bad stuff you do in the dynamic link will get worse in the static.&lt;BR /&gt;</description>
    <pubDate>Fri, 01 May 2009 13:44:31 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2009-05-01T13:44:31Z</dc:date>
    <item>
      <title>MKL ERROR</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-ERROR/m-p/871528#M8540</link>
      <description>Hello, when I compile and run the following code: &lt;BR /&gt;&lt;BR /&gt;"&lt;BR /&gt;#include "stdafx.h"&lt;BR /&gt;#include "mkl_blas.h"&lt;BR /&gt;#include "mkl_cblas.h"&lt;BR /&gt;#include "mkl_types.h"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;int _tmain(int argc, char *argv[])&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt; MKL_INT         m = 2, n = 4, k = 3;&lt;BR /&gt; MKL_INT         lda = k, ldb = n, ldc = n;&lt;BR /&gt; float           alpha = 1, beta = 1;&lt;BR /&gt; float          *a = new float[6], *b = new float[12], *c = new float[8];&lt;BR /&gt; CBLAS_ORDER     order = CblasRowMajor;&lt;BR /&gt; CBLAS_TRANSPOSE transA = CblasNoTrans, transB = CblasNoTrans;&lt;BR /&gt;&lt;BR /&gt; a[0] = 1;&lt;BR /&gt; a[1] = 2;&lt;BR /&gt; a[2] = 3;&lt;BR /&gt; a[3] = 4;&lt;BR /&gt; a[4] = 5;&lt;BR /&gt; a[5] = 6;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; b[0] = 0;&lt;BR /&gt; b[1] = 1;&lt;BR /&gt; b[2] = 0;&lt;BR /&gt; b[3] = 1;&lt;BR /&gt; b[4] = 1;&lt;BR /&gt; b[5] = 0;&lt;BR /&gt; b[6] = 0;&lt;BR /&gt; b[7] = 1;&lt;BR /&gt; b[8] = 1;&lt;BR /&gt; b[9] = 0;&lt;BR /&gt; b[10] = 1;&lt;BR /&gt; b[11] = 0;&lt;BR /&gt;&lt;BR /&gt; c[0] = 0;&lt;BR /&gt; c[1] = 0;&lt;BR /&gt; c[2] = 0;&lt;BR /&gt; c[3] = 0;&lt;BR /&gt; c[4] = 0;&lt;BR /&gt; c[5] = 0;&lt;BR /&gt; c[6] = 0;&lt;BR /&gt; c[7] = 0;&lt;BR /&gt;&lt;BR /&gt; printf("\n     C B L A S _ S G E M M  EXAMPLE PROGRAM\n");&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; printf("\n     INPUT DATA");&lt;BR /&gt; printf("\n       M=%d  N=%d  K=%d", m, n, k);&lt;BR /&gt; printf("\n       ALPHA=%5.1f  BETA=%5.1f", alpha, beta);&lt;BR /&gt; &lt;BR /&gt;/*      Call SGEMM subroutine ( C Interface )                  */&lt;BR /&gt;&lt;BR /&gt; cblas_sgemm(order, transA, transB, m, n, k, alpha,&lt;BR /&gt; a, lda, b, ldb, beta, c, ldc);&lt;BR /&gt;&lt;BR /&gt;/*       Print output data                                     */&lt;BR /&gt;&lt;BR /&gt; printf("\n\n     OUTPUT DATA");&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;BR /&gt;"&lt;BR /&gt;&lt;BR /&gt;I receive the following output: &lt;BR /&gt;&lt;BR /&gt; C B L A S _ S G E M M  EXAMPLE PROGRAM&lt;BR /&gt;&lt;BR /&gt; INPUT DATA&lt;BR /&gt; M=2  N=4  K=3&lt;BR /&gt; ALPHA=  1.0  BETA=  1.0MKL ERROR: Parameter 5 was incorrect on entry to c&lt;BR /&gt;blas_sgemm&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; OUTPUT DATA&lt;BR /&gt;&lt;BR /&gt;I've tried to change the parameters value, but as far as I can see,there is no problem with parameter 5 (N), or is there?&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Wed, 07 Jan 2009 13:26:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-ERROR/m-p/871528#M8540</guid>
      <dc:creator>sugarpie</dc:creator>
      <dc:date>2009-01-07T13:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: MKL ERROR</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-ERROR/m-p/871529#M8541</link>
      <description>&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;But I was not able to reproduce the problem you reported.&lt;/P&gt;
&lt;P&gt;Below the output I ve got:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;C B L A S _ S G E M M EXAMPLE PROGRAM&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;INPUT DATA&lt;/P&gt;
&lt;P&gt;M=2 N=4 K=3&lt;/P&gt;
&lt;P&gt;ALPHA= 1.0 BETA= 1.0&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;OUTPUT DATA&lt;/P&gt;
&lt;P&gt;Press any key to continue . . .&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt; I used MKL version 10.1&lt;/P&gt;
&lt;P&gt; VS2005&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Can you provide more details about your environment for reproducing the problem?&lt;/P&gt;
&lt;P&gt;-- MKL version&lt;/P&gt;
&lt;P&gt;-- linking dependencies&lt;/P&gt;
&lt;P&gt;-- MSVC version&lt;/P&gt;
&lt;P&gt;Regards,Gennady&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2009 07:29:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-ERROR/m-p/871529#M8541</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-01-08T07:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: MKL ERROR</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-ERROR/m-p/871530#M8542</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;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;But I was not able to reproduce the problem you reported.&lt;/P&gt;
&lt;P&gt;Below the output I ve got:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;C B L A S _ S G E M M EXAMPLE PROGRAM&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;INPUT DATA&lt;/P&gt;
&lt;P&gt;M=2 N=4 K=3&lt;/P&gt;
&lt;P&gt;ALPHA= 1.0 BETA= 1.0&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;OUTPUT DATA&lt;/P&gt;
&lt;P&gt;Press any key to continue . . .&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt; I used MKL version 10.1&lt;/P&gt;
&lt;P&gt; VS2005&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Can you provide more details about your environment for reproducing the problem?&lt;/P&gt;
&lt;P&gt;-- MKL version&lt;/P&gt;
&lt;P&gt;-- linking dependencies&lt;/P&gt;
&lt;P&gt;-- MSVC version&lt;/P&gt;
&lt;P&gt;Regards,Gennady&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;MKL version: 10.1.0.018&lt;BR /&gt;&lt;BR /&gt;Linking dependencies: libguide.lib libguide40.lib libiomp5md.lib libiomp5mt.lib mkl_blacs_ilp64_dll.lib mkl_blacs_intelmpi_ilp64.lib mkl_blacs_intelmpi_lp64.lib mkl_blacs_lp64_dll.lib mkl_blacs_mpich2_ilp64.lib mkl_blacs_mpich2_lp64.lib mkl_blacs_msmpi_ilp64.lib mkl_blacs_msmpi_lp64.lib mkl_cdft.lib mkl_cdft_core.lib mkl_cdft_core_dll.lib mkl_cdft_dll.lib mkl_core.lib mkl_core_dll.lib mkl_dll.lib mkl_em64t.lib mkl_intel_ilp64.lib mkl_intel_ilp64_dll.lib mkl_intel_lp64.lib mkl_intel_lp64_dll.lib mkl_intel_thread.lib mkl_intel_thread_dll.lib mkl_lapack.lib mkl_pgi_thread.lib mkl_pgi_thread_dll.lib mkl_scalapack.lib mkl_scalapack_dll.lib mkl_scalapack_ilp64.lib mkl_scalapack_ilp64_dll.lib mkl_scalapack_lp64.lib mkl_scalapack_lp64_dll.lib mkl_sequential.lib mkl_sequential_dll.lib mkl_solver.lib mkl_solver_ilp64.lib mkl_solver_ilp64_sequential.lib mkl_solver_lp64.lib mkl_solver_lp64_sequential.lib&lt;BR /&gt;&lt;BR /&gt;(I wasnt sure on which to use so I took em all:s)&lt;BR /&gt;&lt;BR /&gt;MSVC: 2008&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Jan 2009 08:44:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-ERROR/m-p/871530#M8542</guid>
      <dc:creator>sugarpie</dc:creator>
      <dc:date>2009-01-08T08:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: MKL ERROR</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-ERROR/m-p/871531#M8543</link>
      <description>&lt;BR /&gt;
&lt;P&gt;Ok, I used the same MKL's version, but MSVC 2005.&lt;BR /&gt;Please open the project property pages and modify: LinkerInputAdditional Dependencies: "mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib"&lt;BR /&gt;--Gennady&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2009 20:32:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-ERROR/m-p/871531#M8543</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-01-08T20:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: MKL ERROR</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-ERROR/m-p/871532#M8544</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;BR /&gt;
&lt;P&gt;Ok, I used the same MKL's version, but MSVC 2005.&lt;BR /&gt;Please open the project property pages and modify: LinkerInputAdditional Dependencies: "mkl_intel_c.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib"&lt;BR /&gt;--Gennady&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;I used "mkl_em64t.lib libiomp5mt.lib" instead (compiling for x64) which solved the problem. Thanks allot for the help! Do you know the reason why I got that weird error message? &lt;BR /&gt;</description>
      <pubDate>Fri, 09 Jan 2009 09:37:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-ERROR/m-p/871532#M8544</guid>
      <dc:creator>sugarpie</dc:creator>
      <dc:date>2009-01-09T09:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: MKL ERROR</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-ERROR/m-p/871533#M8545</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;P&gt;I believe that the reason is your linking dependencies are not correct.&lt;/P&gt;
&lt;P&gt;We recommend the following libraries for linking cblas routines:&lt;/P&gt;
&lt;P&gt;mkl_intel_lp64.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib&lt;/P&gt;
&lt;P&gt;[ for more info ( including some examples ) about that, please see userguide manual. ]&lt;/P&gt;
&lt;P&gt;Please try to use this linking dependencies and let us know the result.&lt;/P&gt;
&lt;P&gt;--Gennady&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2009 08:53:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-ERROR/m-p/871533#M8545</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-01-13T08:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: MKL ERROR</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-ERROR/m-p/871534#M8546</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;P&gt;I believe that the reason is your linking dependencies are not correct.&lt;/P&gt;
&lt;P&gt;We recommend the following libraries for linking cblas routines:&lt;/P&gt;
&lt;P&gt;mkl_intel_lp64.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib&lt;/P&gt;
&lt;P&gt;[ for more info ( including some examples ) about that, please see userguide manual. ]&lt;/P&gt;
&lt;P&gt;Please try to use this linking dependencies and let us know the result.&lt;/P&gt;
&lt;P&gt;--Gennady&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2009 08:53:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-ERROR/m-p/871534#M8546</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-01-13T08:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: MKL ERROR</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-ERROR/m-p/871535#M8547</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;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;P&gt;I believe that the reason is your linking dependencies are not correct.&lt;/P&gt;
&lt;P&gt;We recommend the following libraries for linking cblas routines:&lt;/P&gt;
&lt;P&gt;mkl_intel_lp64.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib&lt;/P&gt;
&lt;P&gt;[ for more info ( including some examples ) about that, please see userguide manual. ]&lt;/P&gt;
&lt;P&gt;Please try to use this linking dependencies and let us know the result.&lt;/P&gt;
&lt;P&gt;--Gennady&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Gennady,
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt; My problem is in Linux cluster by trying to use sequential libraries. However, we always got something un-expected. I sucessfully linked the program by using the following link. But When I tested the code, it is still using multiple threads.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;MKLLIBSEM64 = -lmkl_solver_lp64_sequential.a -lmkl_sequential.a -lmkl_intel_thread.a -lmkl_core.a -llibiomp5md -lguide -lmkl_em64t&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;BTW: we have to use static library for the cluster, and the original thread of my question are here.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=65231" target="_blank"&gt;http://software.intel.com/en-us/forums/showthread.php?t=65231&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 May 2009 13:29:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-ERROR/m-p/871535#M8547</guid>
      <dc:creator>joey_hylton</dc:creator>
      <dc:date>2009-05-01T13:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: MKL ERROR</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-ERROR/m-p/871536#M8548</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/139396"&gt;joey_hylton&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;&lt;/DIV&gt;
&lt;DIV&gt;MKLLIBSEM64 = -lmkl_solver_lp64_sequential.a -lmkl_sequential.a -lmkl_intel_thread.a -lmkl_core.a -llibiomp5md -lguide -lmkl_em64t&lt;/DIV&gt;
&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
You're asking for trouble when you attempt to link partially the static sequential stubs, the "legacy" OpenMP dynamic, and the "compatibility" OpenMP dynamic all together, and an old dynamic MKL along with partial linking of current static mkl. Our point about dynamic vs static is you won't be able to get the latter right without following the release notes, and any bad stuff you do in the dynamic link will get worse in the static.&lt;BR /&gt;</description>
      <pubDate>Fri, 01 May 2009 13:44:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-ERROR/m-p/871536#M8548</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-05-01T13:44:31Z</dc:date>
    </item>
  </channel>
</rss>

