<?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 Hi mecej4, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VSL-Summary-Statistics-VSL-SS-SUM-error/m-p/1044027#M20859</link>
    <description>&lt;P&gt;Hi &lt;A href="https://software.intel.com/en-us/user/9972"&gt;&lt;U&gt;&lt;FONT color="#0066cc"&gt;mecej4&lt;/FONT&gt;&lt;/U&gt;&lt;/A&gt;,&lt;BR /&gt;
	Thank you for your quick follow!&lt;BR /&gt;
	Ok, It may&amp;nbsp;depend on&amp;nbsp;some optimization done&amp;nbsp;by the compiler used.&lt;BR /&gt;
	I am using MS Visual studio 2012 and the program is&amp;nbsp; in some other tesiting stuffs.&lt;BR /&gt;
	I will extract it alone and make a new simple solution.&lt;BR /&gt;
	I will upload whole&amp;nbsp;solution files&amp;nbsp;if I succeed to reproduce the error.&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jun 2014 01:49:23 GMT</pubDate>
    <dc:creator>Shigeo_Kobayashi</dc:creator>
    <dc:date>2014-06-19T01:49:23Z</dc:date>
    <item>
      <title>VSL Summary Statistics VSL_SS_SUM error</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VSL-Summary-Statistics-VSL-SS-SUM-error/m-p/1044025#M20857</link>
      <description>&lt;P&gt;Pls let me know why the code bellow shows invalid results(sum) when NR is greater than 1999.&lt;/P&gt;

&lt;P&gt;#define NR&amp;nbsp; 2000&amp;nbsp;&amp;nbsp; // MEAN=1 but invalid SUM !&lt;BR /&gt;
	//#define NR&amp;nbsp; 1999 // MEAN=1 and SUM==1999 of course&lt;BR /&gt;
	#define DIM 4&lt;BR /&gt;
	void Test()&lt;BR /&gt;
	{&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; VSLSSTaskPtr task;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; int errcode,dim = DIM, n=NR,x_storage=VSL_SS_MATRIX_STORAGE_COLS;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; double x[NR*DIM],mean[DIM], sum[DIM],W[2];&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; W[0]=0;&amp;nbsp;W[1]=0;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; for(int j=0;j&amp;lt;DIM;++j)&amp;nbsp;&amp;nbsp; {mean&lt;J&gt;=0;sum&lt;J&gt;=0;}&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; for(int i=0;i&amp;lt;NR*DIM;++i) x&lt;I&gt;=1;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; errcode = vsldSSNewTask( &amp;amp;task, &amp;amp;dim, &amp;amp;n, &amp;amp;x_storage, (double*)x, 0, 0 );&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; errcode = vsldSSEditTask(task,VSL_SS_ED_ACCUM_WEIGHT,W);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; errcode = vsldSSEditTask(task,VSL_SS_ED_MEAN,mean);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; errcode = vsldSSEditTask(task,VSL_SS_ED_SUM,sum);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; errcode = vsldSSCompute( task, VSL_SS_MEAN | VSL_SS_SUM, VSL_SS_METHOD_FAST );&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; for(int i=0;i&amp;lt;dim;++i)&amp;nbsp; printf("M[%d] %g&amp;nbsp; S[%d] %g\n",i,mean&lt;I&gt;,i, sum&lt;I&gt;);&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; errcode = vslSSDeleteTask( &amp;amp;task );&lt;BR /&gt;
	}&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/J&gt;&lt;/J&gt;&lt;/P&gt;

&lt;P&gt;The result when NR=2000 is:&lt;/P&gt;

&lt;P&gt;M[0] 1&amp;nbsp; S[0] -2.65698e+303&lt;BR /&gt;
	M[1] 1&amp;nbsp; S[1] -2.65698e+303&lt;BR /&gt;
	M[2] 1&amp;nbsp; S[2] -2.65698e+303&lt;BR /&gt;
	M[3] 1&amp;nbsp; S[3] -2.65698e+303&lt;/P&gt;

&lt;P&gt;I got this result under&lt;BR /&gt;
	&amp;nbsp; Windows 8.1&lt;BR /&gt;
	&amp;nbsp; Intel(R) Math Kernel Library Version 11.1.3 Product Build 20140416 for 32-bit applications&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2014 00:12:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VSL-Summary-Statistics-VSL-SS-SUM-error/m-p/1044025#M20857</guid>
      <dc:creator>Shigeo_Kobayashi</dc:creator>
      <dc:date>2014-06-19T00:12:48Z</dc:date>
    </item>
    <item>
      <title>I tried your program (after</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VSL-Summary-Statistics-VSL-SS-SUM-error/m-p/1044026#M20858</link>
      <description>&lt;P&gt;I tried your program (after changing "Test" to "main") with the 14.0.2.176 32-bit compiler and MKL 11.1.3 on Windows 8.1 X64 , and I could not reproduce the problem. Please state the compiler version number and specify the compiler options used.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2014 00:43:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VSL-Summary-Statistics-VSL-SS-SUM-error/m-p/1044026#M20858</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2014-06-19T00:43:00Z</dc:date>
    </item>
    <item>
      <title>Hi mecej4,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VSL-Summary-Statistics-VSL-SS-SUM-error/m-p/1044027#M20859</link>
      <description>&lt;P&gt;Hi &lt;A href="https://software.intel.com/en-us/user/9972"&gt;&lt;U&gt;&lt;FONT color="#0066cc"&gt;mecej4&lt;/FONT&gt;&lt;/U&gt;&lt;/A&gt;,&lt;BR /&gt;
	Thank you for your quick follow!&lt;BR /&gt;
	Ok, It may&amp;nbsp;depend on&amp;nbsp;some optimization done&amp;nbsp;by the compiler used.&lt;BR /&gt;
	I am using MS Visual studio 2012 and the program is&amp;nbsp; in some other tesiting stuffs.&lt;BR /&gt;
	I will extract it alone and make a new simple solution.&lt;BR /&gt;
	I will upload whole&amp;nbsp;solution files&amp;nbsp;if I succeed to reproduce the error.&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2014 01:49:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VSL-Summary-Statistics-VSL-SS-SUM-error/m-p/1044027#M20859</guid>
      <dc:creator>Shigeo_Kobayashi</dc:creator>
      <dc:date>2014-06-19T01:49:23Z</dc:date>
    </item>
    <item>
      <title>MS Visual studio may have bug</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VSL-Summary-Statistics-VSL-SS-SUM-error/m-p/1044028#M20860</link>
      <description>&lt;P&gt;MS Visual studio may have bug.&lt;BR /&gt;
	I got correct result in 'Release' mode,the error was in 'Debug' mode!!!&amp;nbsp;&lt;BR /&gt;
	I should have tested it in both modes even for&amp;nbsp;such&amp;nbsp;a simple example ...&lt;BR /&gt;
	But this is not a&amp;nbsp;MKL issue anyway... thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2014 02:38:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/VSL-Summary-Statistics-VSL-SS-SUM-error/m-p/1044028#M20860</guid>
      <dc:creator>Shigeo_Kobayashi</dc:creator>
      <dc:date>2014-06-19T02:38:51Z</dc:date>
    </item>
  </channel>
</rss>

