<?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 Re:valarray with exp instruction error in Intel OneApi Developer Tools 2021.4? in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/valarray-with-exp-instruction-error-in-Intel-OneApi-Developer/m-p/1321488#M1632</link>
    <description>&lt;P&gt;The issue has been escalated our engineers and we will work on it internally. We will get back to you when update is available. &lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 12 Oct 2021 20:19:52 GMT</pubDate>
    <dc:creator>Alex_Y_Intel</dc:creator>
    <dc:date>2021-10-12T20:19:52Z</dc:date>
    <item>
      <title>valarray with exp instruction error in Intel OneApi Developer Tools 2021.4?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/valarray-with-exp-instruction-error-in-Intel-OneApi-Developer/m-p/1320623#M1622</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I found that&amp;nbsp;Intel OneApi Developer Tools 2021.4 (from w_BaseKit_p_2021.4.0.3421_offline.exe + w_HPCKit_p_2021.4.0.3340_offline.exe packages) has a problem with the generation of good&amp;nbsp;code when valarrays type is used together with exp instructions, i.e. generate the bad results.&lt;BR /&gt;This problem appears, when we use /O2 and /fp:fast options using Intel oneAPI DPC++/C++ Compiler 2021 (but does not appear when we use Intel C++ Compiler Clasic 19.2 from Intel OneApi Developer Tools 2021.4 package). &lt;BR /&gt;See the “textexp.cpp” code:&lt;BR /&gt;-----------------------&lt;BR /&gt;#include &amp;lt;iostream&amp;gt;&lt;BR /&gt;#include &amp;lt;cmath&amp;gt;&lt;BR /&gt;#include &amp;lt;valarray&amp;gt;&lt;BR /&gt;#include &amp;lt;random&amp;gt;&lt;BR /&gt;int main() {&lt;BR /&gt;&amp;nbsp; using namespace std;&lt;BR /&gt;&amp;nbsp; mt19937_64 engine;&lt;BR /&gt;&amp;nbsp; engine.seed(0); //0 to have reproducible results&lt;BR /&gt;&amp;nbsp; uniform_real_distribution&amp;lt;double&amp;gt; uniform0_1(0, 1); &lt;BR /&gt;&lt;BR /&gt;// Random size is used to protect from unrolling loop instructions (e.g. for "for" instructions)&lt;BR /&gt;// If replace this line by "int size = 20;", compiler unrolls "for" instructions.&lt;BR /&gt;&amp;nbsp; int size = 20 + int(0.001 * uniform0_1(engine)); //size=20. &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; valarray&amp;lt;double&amp;gt; x, y;&lt;BR /&gt;&amp;nbsp; x.resize(size);&lt;BR /&gt;&amp;nbsp; y.resize(size);&lt;BR /&gt;&amp;nbsp; for (int i = 0; i &amp;lt; y.size(); ++i)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; y[i] = x[i] = 1.0;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; for (int i = 0; i &amp;lt; y.size(); ++i)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; y[i] *= exp(-x[i]); //All y[i] should be equal to 0.367978...&lt;BR /&gt;&amp;nbsp; //... but for i equal to 2, 3, 6, 7, 10, 11, 14, 15 and so on y[i]=1.44467 !!!???&lt;BR /&gt;&amp;nbsp; //if program is compiled by oneAPI DPC++/C++ Compiler from Intel OneApi Developer Tools 2021.4 &lt;BR /&gt;&amp;nbsp; //(w_BaseKit_p_2021.4.0.3421_offline.exe + w_HPCKit_p_2021.4.0.3340_offline.exe) using MS Visual Studio 2019 envirenment.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; for (int i = 0; i &amp;lt; y.size(); ++i)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout &amp;lt;&amp;lt; y[i] &amp;lt;&amp;lt; endl; //We obtain 0.367978, 0.367978, 1.44467, 1.44467, 0.367978, 0.367978, 1.44467, 1.44467, 0.367978, 0.367978, 1.44467, 1.44467...??? &lt;BR /&gt;&amp;nbsp; return 0;&lt;BR /&gt;}&lt;BR /&gt;-----------------&lt;BR /&gt;Compile options: /GS /W3 /Gy /Zi /O2 /fp:fast /D "NDEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /Qipo /Zc:forScope /std:c17 /Oi /MT /Fa"x64\Release\" /EHsc /nologo /Fo"x64\Release\" //fprofile-instr-use "x64\Release\" /Fp"x64\Release\testexp.pch"&lt;/P&gt;
&lt;P&gt;Please help me, &lt;BR /&gt;Thanks a lot.&lt;BR /&gt;Jerzy&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Oct 2021 11:27:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/valarray-with-exp-instruction-error-in-Intel-OneApi-Developer/m-p/1320623#M1622</guid>
      <dc:creator>JerzyP</dc:creator>
      <dc:date>2021-10-10T11:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: valarray with exp instruction error in Intel OneApi Developer Tools 2021.4?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/valarray-with-exp-instruction-error-in-Intel-OneApi-Developer/m-p/1320627#M1623</link>
      <description>&lt;P&gt;The program was compiled and run on a PC with Windows 10 (i7 3770K processor).&lt;/P&gt;
&lt;P&gt;Jerzy&lt;/P&gt;</description>
      <pubDate>Sun, 10 Oct 2021 11:45:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/valarray-with-exp-instruction-error-in-Intel-OneApi-Developer/m-p/1320627#M1623</guid>
      <dc:creator>JerzyP</dc:creator>
      <dc:date>2021-10-10T11:45:58Z</dc:date>
    </item>
    <item>
      <title>Re:valarray with exp instruction error in Intel OneApi Developer Tools 2021.4?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/valarray-with-exp-instruction-error-in-Intel-OneApi-Developer/m-p/1320849#M1624</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for reporting us.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We are able to reproduce your issue using "release" mode. However, we observed that with "debug" mode we are getting expected/correct results. &lt;/P&gt;&lt;P&gt;We are working on your issue internally and will get back to you soon. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Varsha&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Oct 2021 11:35:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/valarray-with-exp-instruction-error-in-Intel-OneApi-Developer/m-p/1320849#M1624</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2021-10-11T11:35:56Z</dc:date>
    </item>
    <item>
      <title>Re:valarray with exp instruction error in Intel OneApi Developer Tools 2021.4?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/valarray-with-exp-instruction-error-in-Intel-OneApi-Developer/m-p/1321488#M1632</link>
      <description>&lt;P&gt;The issue has been escalated our engineers and we will work on it internally. We will get back to you when update is available. &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Oct 2021 20:19:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/valarray-with-exp-instruction-error-in-Intel-OneApi-Developer/m-p/1321488#M1632</guid>
      <dc:creator>Alex_Y_Intel</dc:creator>
      <dc:date>2021-10-12T20:19:52Z</dc:date>
    </item>
    <item>
      <title>Re:valarray with exp instruction error in Intel OneApi Developer Tools 2021.4?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/valarray-with-exp-instruction-error-in-Intel-OneApi-Developer/m-p/1363490#M1907</link>
      <description>&lt;P&gt;The problem cannot be reproduced for icx compiler 2022.0 in oneAPI Base Toolkit 2022.1.2. I'm closing this issue as fixed. Please feel free to reopen or file a new issue if you find any more problems. &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Feb 2022 20:39:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/valarray-with-exp-instruction-error-in-Intel-OneApi-Developer/m-p/1363490#M1907</guid>
      <dc:creator>Alex_Y_Intel</dc:creator>
      <dc:date>2022-02-24T20:39:48Z</dc:date>
    </item>
  </channel>
</rss>

