<?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 Bug in dsytrf() in versions 10 and 11.1? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-in-dsytrf-in-versions-10-and-11-1/m-p/943970#M14714</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;

&lt;P&gt;I have MKL version 10.2.5.035 and have found that the&lt;/P&gt;

&lt;P&gt;following program dies when compiled for 64bit (for 32bit it runs correctly):&lt;/P&gt;

&lt;P&gt;#include "stdafx.h"&lt;BR /&gt;
	#include &amp;lt;malloc.h&amp;gt;&lt;BR /&gt;
	#include "mkl_lapack.h"&lt;/P&gt;

&lt;P&gt;int main(int argc, char* argv[])&lt;BR /&gt;
	{&lt;BR /&gt;
	&amp;nbsp;MKL_INT m = 3, info;&lt;BR /&gt;
	&amp;nbsp;double tmp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; MKL_INT work_sz = -1; // workspace query; optimal size is returned in tmp&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; dsytrf("L", &amp;amp;m, NULL, &amp;amp;m, NULL, (double *)&amp;amp;tmp, &amp;amp;work_sz, &amp;amp;info);&lt;BR /&gt;
	&amp;nbsp;fprintf(stdout, "info=%d tmp=%lf\n", info, tmp);&lt;BR /&gt;
	&amp;nbsp;return(0);&lt;BR /&gt;
	}&lt;/P&gt;

&lt;P&gt;Debugging has shown that MKL tries to write 12 bytes to the location of the second NULL, so replacement of the second NULL with the address of the dummy variable (two int's, for example) keeps the program alive, but the optimal size is 192 (which is much larger than correct value of 3), and returned value of&amp;nbsp;info is not 0.&lt;/P&gt;

&lt;P&gt;I have downloaded trial version 11.1. Now the program does not die, and returns optimal size of 3, but returned info is still not 0, but ~-3689348818177884160 (which nevertheless prints out as 0).&lt;/P&gt;

&lt;P&gt;Is it a known bug? I would appreciate any observations with regards to this issue.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yuri&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Dec 2013 15:27:18 GMT</pubDate>
    <dc:creator>Yuri_R_1</dc:creator>
    <dc:date>2013-12-23T15:27:18Z</dc:date>
    <item>
      <title>Bug in dsytrf() in versions 10 and 11.1?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-in-dsytrf-in-versions-10-and-11-1/m-p/943970#M14714</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;

&lt;P&gt;I have MKL version 10.2.5.035 and have found that the&lt;/P&gt;

&lt;P&gt;following program dies when compiled for 64bit (for 32bit it runs correctly):&lt;/P&gt;

&lt;P&gt;#include "stdafx.h"&lt;BR /&gt;
	#include &amp;lt;malloc.h&amp;gt;&lt;BR /&gt;
	#include "mkl_lapack.h"&lt;/P&gt;

&lt;P&gt;int main(int argc, char* argv[])&lt;BR /&gt;
	{&lt;BR /&gt;
	&amp;nbsp;MKL_INT m = 3, info;&lt;BR /&gt;
	&amp;nbsp;double tmp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; MKL_INT work_sz = -1; // workspace query; optimal size is returned in tmp&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; dsytrf("L", &amp;amp;m, NULL, &amp;amp;m, NULL, (double *)&amp;amp;tmp, &amp;amp;work_sz, &amp;amp;info);&lt;BR /&gt;
	&amp;nbsp;fprintf(stdout, "info=%d tmp=%lf\n", info, tmp);&lt;BR /&gt;
	&amp;nbsp;return(0);&lt;BR /&gt;
	}&lt;/P&gt;

&lt;P&gt;Debugging has shown that MKL tries to write 12 bytes to the location of the second NULL, so replacement of the second NULL with the address of the dummy variable (two int's, for example) keeps the program alive, but the optimal size is 192 (which is much larger than correct value of 3), and returned value of&amp;nbsp;info is not 0.&lt;/P&gt;

&lt;P&gt;I have downloaded trial version 11.1. Now the program does not die, and returns optimal size of 3, but returned info is still not 0, but ~-3689348818177884160 (which nevertheless prints out as 0).&lt;/P&gt;

&lt;P&gt;Is it a known bug? I would appreciate any observations with regards to this issue.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yuri&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2013 15:27:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-in-dsytrf-in-versions-10-and-11-1/m-p/943970#M14714</guid>
      <dc:creator>Yuri_R_1</dc:creator>
      <dc:date>2013-12-23T15:27:18Z</dc:date>
    </item>
    <item>
      <title>this is an unexpected problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-in-dsytrf-in-versions-10-and-11-1/m-p/943971#M14715</link>
      <description>&lt;P&gt;this is an unexpected problem. I have checked how it works with the latest 11.1 update1. Windows, 64 bit.&lt;/P&gt;

&lt;P&gt;linking line:&amp;nbsp;mkl_intel_lp64.lib;mkl_intel_thread.lib;mkl_core.lib;libiomp5md.lib&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Major version: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Minor version: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;BR /&gt;
	Update version: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;
	Product status: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Product&lt;BR /&gt;
	Build: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20131010&lt;BR /&gt;
	Processor optimization: &amp;nbsp;Intel(R) Advanced Vector Extensions (Intel(R) AVX) Enabled Processor&lt;BR /&gt;
	================================================================&lt;/P&gt;

&lt;P&gt;info=0 tmp=3.000000&lt;/P&gt;

&lt;P&gt;Press any key to continue . . .&lt;/P&gt;

&lt;P&gt;+++++++++++++++++++++++++++++++&lt;/P&gt;

&lt;P&gt;here is the code which I used:&lt;/P&gt;

&lt;P&gt;int mkl_version(void) {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; MKLVersion Version;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; mkl_get_version(&amp;amp;Version);&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; printf("Major version: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %d\n",Version.MajorVersion);&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; printf("Minor version: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %d\n",Version.MinorVersion);&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; printf("Update version: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%d\n",Version.UpdateVersion);&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; printf("Product status: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%s\n",Version.ProductStatus);&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; printf("Build: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; %s\n",Version.Build);&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; printf("Processor optimization: &amp;nbsp;%s\n",Version.Processor);&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; printf("================================================================\n");&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; printf("\n");&lt;BR /&gt;
	&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; return 0;&lt;BR /&gt;
	}&lt;/P&gt;

&lt;P&gt;int main( ) {&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;int m = 3, info;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;double tmp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;mkl_version();&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;int work_sz = -1; // workspace query; optimal size is returned in tmp&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;dsytrf("L", &amp;amp;m, NULL, &amp;amp;m, NULL, (double *)&amp;amp;tmp, &amp;amp;work_sz, &amp;amp;info);&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fprintf(stdout, "info=%d tmp=%lf\n\n\n", info, tmp);&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;return(0);&lt;BR /&gt;
	}&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2013 17:20:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-in-dsytrf-in-versions-10-and-11-1/m-p/943971#M14715</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2013-12-23T17:20:31Z</dc:date>
    </item>
    <item>
      <title>Hello Gennady,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-in-dsytrf-in-versions-10-and-11-1/m-p/943972#M14716</link>
      <description>&lt;P&gt;Hello Gennady,&lt;/P&gt;

&lt;P&gt;I've got:&lt;/P&gt;

&lt;P&gt;Major version:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11&lt;BR /&gt;
	Minor version:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;
	Update version:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;BR /&gt;
	Product status:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product&lt;BR /&gt;
	Build:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20130711&lt;BR /&gt;
	Processor optimization:&amp;nbsp; Intel(R) Core(TM) i7 Processor&lt;/P&gt;

&lt;P&gt;info=0 tmp=3.000000&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;But as I said, despite being printed as 0, debugging shows that info is not 0, and this can be verified by adding&lt;/P&gt;

&lt;P&gt;&amp;nbsp;if(info!=0)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;fprintf(stdout, "info is not 0\n");&lt;/P&gt;

&lt;P&gt;This makes check for correctness of execution useless. So some sort of bug is still there.&lt;/P&gt;

&lt;P&gt;What really bothers me, is that my current version, 10.2.5.035 just dies.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yuri&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2013 19:53:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Bug-in-dsytrf-in-versions-10-and-11-1/m-p/943972#M14716</guid>
      <dc:creator>Yuri_R_1</dc:creator>
      <dc:date>2013-12-23T19:53:43Z</dc:date>
    </item>
  </channel>
</rss>

