<?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 Thank you for your reply in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Possible-bug-using-DGEMM-beta-parameter/m-p/973031#M16862</link>
    <description>&lt;P&gt;Thank you for your reply &lt;STRONG&gt;mecej4&lt;/STRONG&gt;. I didn't know that dgemm_() result was column-major, even if you specify "T" to transpose the input matrices. So, using cblas_dgemm() everything was solved :).&lt;BR /&gt;&lt;BR /&gt;I thought that it was about the beta value, but it was just a simple coincidence.&lt;BR /&gt;&lt;BR /&gt;Thank you again.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Nov 2013 18:42:26 GMT</pubDate>
    <dc:creator>SRG</dc:creator>
    <dc:date>2013-11-04T18:42:26Z</dc:date>
    <item>
      <title>Possible bug using DGEMM beta parameter</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Possible-bug-using-DGEMM-beta-parameter/m-p/973028#M16859</link>
      <description>&lt;P&gt;&lt;BR /&gt;Good afternoon,&lt;BR /&gt;&lt;BR /&gt;I've been trying to solve a bug in my C code for&amp;nbsp;some time&amp;nbsp;and I ended up discovering that dgemm_() doesn't seem to use the beta value :S. According to &lt;A href="http://software.intel.com/sites/products/documentation/doclib/mkl_sa/11/tutorials/mkl_mmx_f/GUID-36BFBCE9-EB0A-43B0-ADAF-2B65275726EA.htm"&gt;Intel's MKL&amp;nbsp;Documentation &lt;/A&gt;and BLAS reference documentation, the expected behaviour for this function is&lt;EM&gt;:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;C = alpha*A*B + beta*C&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;If beta is set to 0, then it's not expected to give&amp;nbsp;C as input of the operation and will only work as output. But if beta is set to another value (e.g., -1.0), the product will take place and the result will be added to &lt;STRONG&gt;&lt;EM&gt;alpha*A*B&lt;/EM&gt;&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;For some reason, I can set beta to any value and it's like dgemm_() never uses it. Have you tested this function using the latest version of the MKL?&lt;BR /&gt;&lt;BR /&gt;To check if&amp;nbsp;it was me calling&amp;nbsp;this function in a wrong way, I manually did &lt;EM&gt;&lt;STRONG&gt;alpha*A*B&lt;/STRONG&gt;&lt;/EM&gt; product and the result was equivalent to the one given by dgemm_() with a random beta value.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2013 00:56:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Possible-bug-using-DGEMM-beta-parameter/m-p/973028#M16859</guid>
      <dc:creator>SRG</dc:creator>
      <dc:date>2013-11-03T00:56:55Z</dc:date>
    </item>
    <item>
      <title>Excuse me for my post, the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Possible-bug-using-DGEMM-beta-parameter/m-p/973029#M16860</link>
      <description>&lt;P&gt;&lt;BR /&gt;Excuse me for my post, the function works perfectly as expected. I tested the code&amp;nbsp;in another machine with an older version of the MKL library and the behaviour was the same, so the error is in my code for sure.&lt;BR /&gt;&lt;BR /&gt;Again, excuse me :).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2013 01:14:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Possible-bug-using-DGEMM-beta-parameter/m-p/973029#M16860</guid>
      <dc:creator>SRG</dc:creator>
      <dc:date>2013-11-03T01:14:50Z</dc:date>
    </item>
    <item>
      <title>If you post a code example</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Possible-bug-using-DGEMM-beta-parameter/m-p/973030#M16861</link>
      <description>&lt;P&gt;If you post a code example that shows the arguments that you passed to DGEMM, someone here could help you to spot the error. Note that dgemm_() is intended to be called from Fortran, and that if you call it from C you need to follow Fortran conventions. In particular, you have to pass the addresses of even scalar arguments. Consider using the CBLAS variant, cblas_dgemm().&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2013 10:48:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Possible-bug-using-DGEMM-beta-parameter/m-p/973030#M16861</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2013-11-03T10:48:36Z</dc:date>
    </item>
    <item>
      <title>Thank you for your reply</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Possible-bug-using-DGEMM-beta-parameter/m-p/973031#M16862</link>
      <description>&lt;P&gt;Thank you for your reply &lt;STRONG&gt;mecej4&lt;/STRONG&gt;. I didn't know that dgemm_() result was column-major, even if you specify "T" to transpose the input matrices. So, using cblas_dgemm() everything was solved :).&lt;BR /&gt;&lt;BR /&gt;I thought that it was about the beta value, but it was just a simple coincidence.&lt;BR /&gt;&lt;BR /&gt;Thank you again.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2013 18:42:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Possible-bug-using-DGEMM-beta-parameter/m-p/973031#M16862</guid>
      <dc:creator>SRG</dc:creator>
      <dc:date>2013-11-04T18:42:26Z</dc:date>
    </item>
  </channel>
</rss>

