<?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 Expression assignment problem on MIC in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Expression-assignment-problem-on-MIC/m-p/985425#M27025</link>
    <description>&lt;P&gt;I faced a strange problem. My program is running on MIC, and after I finished calculating an expression then assigned it to a variable, the problem cracked. The variable I assigned right now keeps zero and the assignment didn't work. The code looks like that:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;
wp[index] = p * w[l-1]
printf("&lt;X&gt;%f w:%f p:%f should be %f\n", wp[index],w[l-1],o,w[l-1]*p);
&lt;/X&gt;&lt;/PRE&gt;

&lt;P&gt;The output is strange, 'wp[index]' is zero but w[l-1]*p isn't. The final result is also zero, so I don't think it's only a block of print.&lt;/P&gt;

&lt;P&gt;I also checked ASM code 'icpc' generate. It seems all right and the instruction 'movss' does really exist.&lt;/P&gt;

&lt;P&gt;Does anyone have faced similar problems? I have no idea about it.&lt;/P&gt;</description>
    <pubDate>Sat, 15 Feb 2014 12:40:37 GMT</pubDate>
    <dc:creator>Chang_X_</dc:creator>
    <dc:date>2014-02-15T12:40:37Z</dc:date>
    <item>
      <title>Expression assignment problem on MIC</title>
      <link>https://community.intel.com/t5/Software-Archive/Expression-assignment-problem-on-MIC/m-p/985425#M27025</link>
      <description>&lt;P&gt;I faced a strange problem. My program is running on MIC, and after I finished calculating an expression then assigned it to a variable, the problem cracked. The variable I assigned right now keeps zero and the assignment didn't work. The code looks like that:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;
wp[index] = p * w[l-1]
printf("&lt;X&gt;%f w:%f p:%f should be %f\n", wp[index],w[l-1],o,w[l-1]*p);
&lt;/X&gt;&lt;/PRE&gt;

&lt;P&gt;The output is strange, 'wp[index]' is zero but w[l-1]*p isn't. The final result is also zero, so I don't think it's only a block of print.&lt;/P&gt;

&lt;P&gt;I also checked ASM code 'icpc' generate. It seems all right and the instruction 'movss' does really exist.&lt;/P&gt;

&lt;P&gt;Does anyone have faced similar problems? I have no idea about it.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2014 12:40:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Expression-assignment-problem-on-MIC/m-p/985425#M27025</guid>
      <dc:creator>Chang_X_</dc:creator>
      <dc:date>2014-02-15T12:40:37Z</dc:date>
    </item>
    <item>
      <title>Depending on formatting, a</title>
      <link>https://community.intel.com/t5/Software-Archive/Expression-assignment-problem-on-MIC/m-p/985426#M27026</link>
      <description>&lt;P&gt;Depending on formatting, a tiny number may print as 0.0. Is this the case (tiny number).&lt;/P&gt;

&lt;P&gt;Try printing out the hex (%x) of the values instead of float (%f). A true 0.0 will display as 0x0000&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2014 13:35:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Expression-assignment-problem-on-MIC/m-p/985426#M27026</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2014-02-15T13:35:22Z</dc:date>
    </item>
  </channel>
</rss>

