<?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: Big bug in oneAPI DPC++/C++ Compiler from Intel OneApi Developer Tools 2021.4 for arrays in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1320866#M1627</link>
    <description>&lt;P&gt;The problem also exists with static arrays:&lt;BR /&gt;double x[150];&lt;BR /&gt;double y[150];&lt;BR /&gt;&lt;BR /&gt;Jerzy&lt;/P&gt;</description>
    <pubDate>Mon, 11 Oct 2021 13:37:44 GMT</pubDate>
    <dc:creator>JerzyP</dc:creator>
    <dc:date>2021-10-11T13:37:44Z</dc:date>
    <item>
      <title>Big bug in oneAPI DPC++/C++ Compiler from Intel OneApi Developer Tools 2021.4 for arrays</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1320839#M1626</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;This post is an extension of my yesterday's post, which only covered valarrays and exp() functions.&amp;nbsp;Because the error found is very important, I founded a new thread (as new subjects).&lt;/P&gt;
&lt;P&gt;I found a big bug in oneAPI DPC++/C++ Compiler from Intel OneApi Developer Tools 2021 (versions w_BaseKit_p_2021.4.0.3421_offline.exe + w_HPCKit_p_2021.4.0.3340_offline.exe or earlier).&lt;BR /&gt;Try to compile the easy program given below with /O2:&lt;BR /&gt;----------&lt;/P&gt;
&lt;P&gt;#include &amp;lt;iostream&amp;gt;&lt;BR /&gt;#include &amp;lt;cmath&amp;gt;&lt;/P&gt;
&lt;P&gt;int main() {&lt;BR /&gt;using namespace std;&lt;BR /&gt;int size = 150;&lt;/P&gt;
&lt;P&gt;double* x = new double[size];&lt;BR /&gt;double* y = new double[size];&lt;/P&gt;
&lt;P&gt;for (int i = 0; i &amp;lt; size; ++i)&lt;BR /&gt;y[i] = x[i] = 1.0;&lt;/P&gt;
&lt;P&gt;for (int i = 0; i &amp;lt; size; ++i)&lt;BR /&gt;y[i] *= exp(x[i]);&lt;/P&gt;
&lt;P&gt;for (int i = 0; i &amp;lt; size; ++i)&lt;BR /&gt;cout &amp;lt;&amp;lt; y[i] &amp;lt;&amp;lt; endl;&lt;/P&gt;
&lt;P&gt;delete[] y;&lt;BR /&gt;delete[] x;&lt;BR /&gt;return 0;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;----------&lt;BR /&gt;&lt;BR /&gt;I compiled this program as Release and for x64 platform using MS Visual Studio 2019 environment by oneAPI DPC++/C++ Compiler (on a PC with Windows 10 64-bit and Intel i7-2700 or i7-3770).&lt;BR /&gt;&lt;BR /&gt;The all compilation option are: /GS /W3 /Gy /Zi /O2 /D "NDEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /Qipo /Zc:forScope /Oi /MD /Fa"x64\Release\" /EHsc /nologo /Fo"x64\Release\" //fprofile-instr-use "x64\Release\" /Fp"x64\Release\bigbug.pch"&lt;BR /&gt;The all linker options are: /OUT:"C:\Users\Jerzy\source\repos\bigbug\x64\Release\bigbug.exe" /MANIFEST /NXCOMPAT /PDB:"C:\Users\Jerzy\source\repos\bigbug\x64\Release\bigbug.pdb" /DYNAMICBASE "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib" /DEBUG /MACHINE:X64 /OPT:REF /INCREMENTAL:NO /SUBSYSTEM:CONSOLE /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /ManifestFile:"x64\Release\bigbug.exe.intermediate.manifest" /OPT:ICF /NOLOGO /TLBID:1&lt;BR /&gt;&lt;BR /&gt;So, we expect to obtain: 2.71828, 2.71828, 2.71828, 2.71828,…(i.e. exp(1.0)),&lt;BR /&gt;but we get wrong results: 2.71828, 2.71828, 15.1543, 15.1543, 2.71828, 2.71828, 15.1543, 15.1543,…&lt;BR /&gt;&lt;BR /&gt;Similar problem exist if we replace exp() function by sin(), cos(), tan(), log(), and many others.&lt;BR /&gt;This bug appears, when the program is optimized for favor speed (by options /O2, /Ox, or /O3) for variable size&amp;gt;127 or if the variable size is unknown during compilation time (i.e. appears as a calculated or given input variable).&lt;BR /&gt;&lt;BR /&gt;Also, I got the same wrong results when I used valarray or arrays containers.&lt;BR /&gt;&lt;BR /&gt;Please, help me, haw I can run around this problem in oneAPI DPC++/C++ Compiler to have the good-optimized program (this problem appeared in my numerical program which needs dozens of hours calculation time). So far I used Intel C++ Compiler Classic that gave a little less optimized execution code.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Jerzy&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 10:41:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1320839#M1626</guid>
      <dc:creator>JerzyP</dc:creator>
      <dc:date>2021-10-11T10:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Big bug in oneAPI DPC++/C++ Compiler from Intel OneApi Developer Tools 2021.4 for arrays</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1320866#M1627</link>
      <description>&lt;P&gt;The problem also exists with static arrays:&lt;BR /&gt;double x[150];&lt;BR /&gt;double y[150];&lt;BR /&gt;&lt;BR /&gt;Jerzy&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 13:37:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1320866#M1627</guid>
      <dc:creator>JerzyP</dc:creator>
      <dc:date>2021-10-11T13:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Big bug in oneAPI DPC++/C++ Compiler from Intel OneApi Developer Tools 2021.4 for arrays</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1321095#M1628</link>
      <description>&lt;P&gt;And also with single precision:&lt;BR /&gt;float x[150];&lt;BR /&gt;float y[150];&lt;BR /&gt;&lt;BR /&gt;Jerzy&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 16:56:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1321095#M1628</guid>
      <dc:creator>JerzyP</dc:creator>
      <dc:date>2021-10-11T16:56:24Z</dc:date>
    </item>
    <item>
      <title>Re:Big bug in oneAPI DPC++/C++ Compiler from Intel OneApi Developer Tools 2021.4 for arrays</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1321289#M1629</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;Could you please let us know which version of Microsoft Visual Studio you are using?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&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;&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>Tue, 12 Oct 2021 08:05:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1321289#M1629</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2021-10-12T08:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Big bug in oneAPI DPC++/C++ Compiler from Intel OneApi Developer Tools 2021.4 for arrays</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1321292#M1630</link>
      <description>&lt;P&gt;Microsoft Visual Studio Enterprise 2019, ver.&amp;nbsp;16.11.4.&lt;/P&gt;
&lt;P&gt;Jerzy&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 08:12:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1321292#M1630</guid>
      <dc:creator>JerzyP</dc:creator>
      <dc:date>2021-10-12T08:12:01Z</dc:date>
    </item>
    <item>
      <title>Re:Big bug in oneAPI DPC++/C++ Compiler from Intel OneApi Developer Tools 2021.4 for arrays</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1321586#M1633</link>
      <description>&lt;P&gt;Jerzy,&lt;/P&gt;&lt;P&gt;    Does it work if build with "icpx test.cpp" in command line?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Oct 2021 04:08:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1321586#M1633</guid>
      <dc:creator>Jie_L_Intel</dc:creator>
      <dc:date>2021-10-13T04:08:57Z</dc:date>
    </item>
    <item>
      <title>Re:Big bug in oneAPI DPC++/C++ Compiler from Intel OneApi Developer Tools 2021.4 for arrays</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1321638#M1635</link>
      <description>&lt;P&gt;i could not reproduce with your test code with VS16.3.6 and oneAPI 2021.4.&lt;/P&gt;&lt;P&gt;How did you create a VS project? i use "File"-&amp;gt;"New" -&amp;gt;"Project" -&amp;gt; "Create a New Project" pop-up and select "DPC++ Console Application".&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Oct 2021 09:28:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1321638#M1635</guid>
      <dc:creator>Jie_L_Intel</dc:creator>
      <dc:date>2021-10-13T09:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Big bug in oneAPI DPC++/C++ Compiler from Intel OneApi Developer Tools 2021.4 for arrays</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1321649#M1636</link>
      <description>&lt;P&gt;&lt;SPAN&gt;1. I use "File"-&amp;gt;"New" -&amp;gt;"Project" -&amp;gt; "Create a New Project" pop-up and select "Empty Project".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. I write the source code using VS.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3. In VS, I change the configuration from Debug to Release and platform from x86 to x64.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4.&amp;nbsp;In VS, I change VS C++ compiler to Intel C++ Compiler 2021 ("Project" -&amp;gt; "Properties" pop-up and select&amp;nbsp; in General-&amp;gt;Platform Toolset - &amp;gt; Intel C++ 2021). Next, I set in&amp;nbsp;General -&amp;gt; C++ Language Standard -&amp;gt; "ISO C++17 Standard".&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 10:18:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1321649#M1636</guid>
      <dc:creator>JerzyP</dc:creator>
      <dc:date>2021-10-13T10:18:53Z</dc:date>
    </item>
    <item>
      <title>Re:Big bug in oneAPI DPC++/C++ Compiler from Intel OneApi Developer Tools 2021.4 for arrays</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1322185#M1637</link>
      <description>&lt;P&gt;With your detailed steps, i could reproduce the same sighting with you. i will submit this bug to developer team. And one work-around now is to select the "Intel oneAPI DPC++ Compiler" in "General" of project properties.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Oct 2021 04:24:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1322185#M1637</guid>
      <dc:creator>Jie_L_Intel</dc:creator>
      <dc:date>2021-10-15T04:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Big bug in oneAPI DPC++/C++ Compiler from Intel OneApi Developer Tools 2021.4 for arrays</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1322519#M1638</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Jie_L_Intel,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This method only partially solves the problem because if I select "Intel oneAPI DPC++ Compiler" in "General" of project properties then:&lt;BR /&gt;1) The “Project -&amp;gt; Properties -&amp;gt; Code Generation -&amp;gt; DPC++ -&amp;gt; Runtime Library -&amp;gt; Multi-threaded (/MT)” option disappears from VS Environment. How can I compile the program with static library linking?&lt;BR /&gt;2) The “Tools -&amp;gt; Intel Compiler -&amp;gt; Profile Guided Optimization” menu disappears from VS Environment. The PGO method that uses the “Compilation -&amp;gt; Profile Guided Optimization” does not work and when I use the -fprofile-instr-generate compilation option and next after running, the program the the -fprofile-instr-use compilation option also does not work. I get the information: “error: Could not read profile default.profdata: no such file or directory”.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jerzy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Oct 2021 13:14:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1322519#M1638</guid>
      <dc:creator>JerzyP</dc:creator>
      <dc:date>2021-10-16T13:14:05Z</dc:date>
    </item>
    <item>
      <title>Re:Big bug in oneAPI DPC++/C++ Compiler from Intel OneApi Developer Tools 2021.4 for arrays</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1322687#M1639</link>
      <description>&lt;P&gt;You are right that dpcpp and icx share some options but there are some options specific for icx and some for dpcpp only. i have conveyed the item 1 to developer team and item 2 could not apply to dpcpp. So the workaround could not solve all your problems, it could just solve the exp result value bugs. Let's wait for the bug-fixing.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Oct 2021 03:41:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1322687#M1639</guid>
      <dc:creator>Jie_L_Intel</dc:creator>
      <dc:date>2021-10-18T03:41:43Z</dc:date>
    </item>
    <item>
      <title>Re:Big bug in oneAPI DPC++/C++ Compiler from Intel OneApi Developer Tools 2021.4 for arrays</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1323011#M1645</link>
      <description>&lt;P&gt;Primary analysis shows that the /O2 and IPO co-exist lead to this sighting. Lowering to /O1 with Intel Compiler 2021 could be one work around. &lt;/P&gt;&lt;P&gt;And for /MT with DPC++ project, it is not supported in DPC++ toolchain which means static library could not be supported. So you have to use "Intel Compiler 2021". &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Oct 2021 02:42:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1323011#M1645</guid>
      <dc:creator>Jie_L_Intel</dc:creator>
      <dc:date>2021-10-19T02:42:09Z</dc:date>
    </item>
    <item>
      <title>Re:Big bug in oneAPI DPC++/C++ Compiler from Intel OneApi Developer Tools 2021.4 for arrays</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1344584#M1749</link>
      <description>&lt;P&gt;Fixed in oneAPI 2022.1 release.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Dec 2021 10:39:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Big-bug-in-oneAPI-DPC-C-Compiler-from-Intel-OneApi-Developer/m-p/1344584#M1749</guid>
      <dc:creator>Jie_L_Intel</dc:creator>
      <dc:date>2021-12-16T10:39:36Z</dc:date>
    </item>
  </channel>
</rss>

