<?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 Thanks for your help, I didn in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-in-64-bit-mkl-dcsrmv/m-p/1063585#M21807</link>
    <description>&lt;P&gt;Thanks for your help, I didn't know that this was the default when using the -mkl flag. I thought that by defining -DMKL_ILP64 the compiler would choose the correct linking when also defining the mkl flag. I think this should be coordinated within the Intel compiler. But anyway: this is no bug within the MKL. It works now using the Link Line Advisor.&lt;/P&gt;</description>
    <pubDate>Mon, 16 May 2016 21:49:12 GMT</pubDate>
    <dc:creator>Lars_K_1</dc:creator>
    <dc:date>2016-05-16T21:49:12Z</dc:date>
    <item>
      <title>Bug in 64-bit mkl_dcsrmv</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-in-64-bit-mkl-dcsrmv/m-p/1063583#M21805</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I need sparse matrix-vector multiplication in my code and want to use the MKL, as I want to also use the Xeon Phi cards in my system. However, the 64-bit version (the one activated by the -DMKL_ILP64 flag for the Intel compiler) seems to be broken&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;#include &amp;lt;iostream&amp;gt;
#include &amp;lt;mkl.h&amp;gt;

int main() {
  MKL_INT           rows = 2;
  MKL_INT           cols = 2;
  double const     alpha = 1.0;
  double const     val[] = {1.0, 1.0, 1.0};
  MKL_INT         indx[] = {0, 1, 1};
  MKL_INT        outer[] = {0, 2, 3};
  MKL_INT const*   pntrb = outer;
  MKL_INT const*   pntre = outer + 1;
  double const       x[] = {0.0, 1.0};
  double const      beta = 0.0;
  double             y[] = {0.0, 0.0};

  mkl_dcsrmv("N", &amp;amp;rows, &amp;amp;cols, &amp;amp;alpha, "G**C", val, indx, pntrb, pntre, x, &amp;amp;beta, y);
  std::cout &amp;lt;&amp;lt; "y = {" &amp;lt;&amp;lt; y[0] &amp;lt;&amp;lt; ", " &amp;lt;&amp;lt; y[1] &amp;lt;&amp;lt; "}" &amp;lt;&amp;lt; std::endl;
}&lt;/PRE&gt;

&lt;P&gt;When I compile the above code with: icpc -mkl, I get the output: "y = {1, 1}", which should be expected. When I do so with the -DMKL_ILP64 switch I get: "y = {0, 0}".&lt;/P&gt;

&lt;P&gt;I need this fixed rather quickly, as our client really needs his Xeon Phi cards running this code. Can you please confirm this bug? I am using Intel Compiler version 16.0.3 20160415 as well as Intel MKL 11.3 Update 3.&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Lars&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2016 16:57:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-in-64-bit-mkl-dcsrmv/m-p/1063583#M21805</guid>
      <dc:creator>Lars_K_1</dc:creator>
      <dc:date>2016-05-16T16:57:47Z</dc:date>
    </item>
    <item>
      <title>Lars, when you use compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-in-64-bit-mkl-dcsrmv/m-p/1063584#M21806</link>
      <description>&lt;P&gt;Lars, when you use compiler option -mkl or /Qmkl, then&amp;nbsp;LP64 for the Intel® 64 architecture will be used.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Please have a look at the MKL's User's Guide -&amp;nbsp;Using the /Qmkl Compiler Option&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2016 19:35:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-in-64-bit-mkl-dcsrmv/m-p/1063584#M21806</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2016-05-16T19:35:39Z</dc:date>
    </item>
    <item>
      <title>Thanks for your help, I didn</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-in-64-bit-mkl-dcsrmv/m-p/1063585#M21807</link>
      <description>&lt;P&gt;Thanks for your help, I didn't know that this was the default when using the -mkl flag. I thought that by defining -DMKL_ILP64 the compiler would choose the correct linking when also defining the mkl flag. I think this should be coordinated within the Intel compiler. But anyway: this is no bug within the MKL. It works now using the Link Line Advisor.&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2016 21:49:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-in-64-bit-mkl-dcsrmv/m-p/1063585#M21807</guid>
      <dc:creator>Lars_K_1</dc:creator>
      <dc:date>2016-05-16T21:49:12Z</dc:date>
    </item>
  </channel>
</rss>

