<?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 btw, the latest version of in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-Intel-inspector-quot-uninitialized-memory-acces-quot/m-p/1009516#M19166</link>
    <description>&lt;P&gt;btw, the latest version of Inspector ( Intel(R) Inspector XE 2015)&amp;nbsp;doesn't report such sort of problem.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Oct 2014 18:17:01 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2014-10-01T18:17:01Z</dc:date>
    <item>
      <title>dgemm - Intel inspector: "uninitialized memory acces"</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-Intel-inspector-quot-uninitialized-memory-acces-quot/m-p/1009513#M19163</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I launched an Memory Error Analysis with Intel Inspector on simple test of the dgemm function and i got this warning:&lt;STRONG&gt; "uninitialized memory access"&lt;/STRONG&gt; &lt;STRONG&gt;located on the dgemm call.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Here is my test (really simple !) :&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;void dgemm_test()
{
  double *A,*B,*C;
  double alpha, beta;
  int m,i;

  m = 10;
  A = (double*)mkl_malloc((m*m)*sizeof(double),128);
  B = (double*)mkl_malloc((m*m)*sizeof(double),128);
  C = (double*)mkl_malloc((m*m)*sizeof(double),128);

  for(i=0; i&amp;lt;m*m; i++){
    A&lt;I&gt; = (double)(rand() % (m*m)) / (double)(m*m);
    B&lt;I&gt; = (double)(rand() % (m*m)) / (double)(m*m);
    C&lt;I&gt; = 0.0;
  }

  alpha = 1.0;
  beta = 0.0;
  cblas_dgemm(CblasRowMajor, CblasNoTrans, CblasNoTrans, m, m, m, alpha, A, m, B, m, beta, C, m);

  mkl_free(A);
  mkl_free(B);
  mkl_free(C);
}&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;Each buffer seems to be initialized... Do I have to be worried about this warning ? Is it an expected behavior ?&lt;/P&gt;

&lt;P&gt;My configuration: Intel Inspector XE 2013.&amp;nbsp; MKL: 11.1.2 (32bit mode). CPU: Xeon E5-1620. OS: W7 64bit (SP1).&lt;/P&gt;

&lt;P&gt;Thanks in advance for your help !&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2014 14:48:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-Intel-inspector-quot-uninitialized-memory-acces-quot/m-p/1009513#M19163</guid>
      <dc:creator>Guillaume_A_</dc:creator>
      <dc:date>2014-10-01T14:48:10Z</dc:date>
    </item>
    <item>
      <title>The problem with partial</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-Intel-inspector-quot-uninitialized-memory-acces-quot/m-p/1009514#M19164</link>
      <description>&lt;P&gt;The problem with partial reports such as yours is that they cannot be verified.&lt;/P&gt;

&lt;P&gt;Using the current versions of Intel C (15.0) and MKL (11.2) with the older Inspector 2013, I added a few lines of code to make a complete example as shown below. Note that I have suppressed initialization of C, which should be OK when alpha = 0. I see no reports of uninitialized variables with Inspector XE. However, when I change the value of alpha to a nonzero value, I do get detection of uninitialized variables. Reactivation of the initialization of C made the error go away. All these findings agree with what one expects.&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;mkl.h&amp;gt;

void dgemm_test()
{
  double *A,*B,*C;
  double alpha, beta;
  int m,i;

  m = 10;
  A = (double*)mkl_malloc((m*m)*sizeof(double),128);
  B = (double*)mkl_malloc((m*m)*sizeof(double),128);
  C = (double*)mkl_malloc((m*m)*sizeof(double),128);

  for(i=0; i&amp;lt;m*m; i++){
    A&lt;I&gt; = (double)(rand() % (m*m)) / (double)(m*m);
    B&lt;I&gt; = (double)(rand() % (m*m)) / (double)(m*m);
//    C&lt;I&gt; = 0.0;
  } 

  alpha = 0.0;
  beta  = 1.0;
  cblas_dgemm(CblasRowMajor, CblasNoTrans, CblasNoTrans, m, m, m, alpha, A, m, B, m, beta, C, m);

  mkl_free(A);
  mkl_free(B);
  mkl_free(C);
}

main(){
dgemm_test();
}
&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2014 16:51:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-Intel-inspector-quot-uninitialized-memory-acces-quot/m-p/1009514#M19164</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2014-10-01T16:51:00Z</dc:date>
    </item>
    <item>
      <title>This is a known problem of</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-Intel-inspector-quot-uninitialized-memory-acces-quot/m-p/1009515#M19165</link>
      <description>&lt;P&gt;This is a known problem of Intel Inspector. It reports false alarms for some MKL routines.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2014 17:10:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-Intel-inspector-quot-uninitialized-memory-acces-quot/m-p/1009515#M19165</guid>
      <dc:creator>Zhang_Z_Intel</dc:creator>
      <dc:date>2014-10-01T17:10:03Z</dc:date>
    </item>
    <item>
      <title>btw, the latest version of</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-Intel-inspector-quot-uninitialized-memory-acces-quot/m-p/1009516#M19166</link>
      <description>&lt;P&gt;btw, the latest version of Inspector ( Intel(R) Inspector XE 2015)&amp;nbsp;doesn't report such sort of problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2014 18:17:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dgemm-Intel-inspector-quot-uninitialized-memory-acces-quot/m-p/1009516#M19166</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2014-10-01T18:17:01Z</dc:date>
    </item>
  </channel>
</rss>

