<?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: _Quad type compile issue with Intel C++ 2021 in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1346170#M1771</link>
    <description>&lt;P&gt;hi Junlin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; i suggest you to close this ticket and open a new topic for your recent test case.&amp;nbsp; India TSE team will route your question to appropriate team if needed.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Dec 2021 04:19:52 GMT</pubDate>
    <dc:creator>Jie_L_Intel</dc:creator>
    <dc:date>2021-12-23T04:19:52Z</dc:date>
    <item>
      <title>_Quad type compile issue with Intel C++ 2021</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1341430#M1717</link>
      <description>&lt;P&gt;I have a small visual studio 2019 project that uses _Quad type of Intel C++ 2021 to compile.&amp;nbsp; The 64-bit target compiles successfully.&amp;nbsp; The 32-bit target fails to compile.&amp;nbsp; I got the following errors:&lt;/P&gt;
&lt;P&gt;Severity Code Description Project File Line Suppression State&lt;BR /&gt;Error undefined symbol: ___addq double128Proj C:\Temp2\dev\cgiDouble128Sol_new\double128Proj\lld-link: 1 &lt;BR /&gt;Error undefined symbol: ___ceilq double128Proj C:\Temp2\dev\cgiDouble128Sol_new\double128Proj\lld-link: 1 &lt;BR /&gt;Error undefined symbol: ___divq double128Proj C:\Temp2\dev\cgiDouble128Sol_new\double128Proj\lld-link: 1 &lt;BR /&gt;Error undefined symbol: ___dtoq double128Proj C:\Temp2\dev\cgiDouble128Sol_new\double128Proj\lld-link: 1 etc...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My visual studio 2019 version is&amp;nbsp;16.8.5.&amp;nbsp; The Intel C++ 2021 was downloaded and installed through oneAPI about a week ago.&amp;nbsp; Any ideas what might be the problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Junlin Xu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Dec 2021 16:38:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1341430#M1717</guid>
      <dc:creator>handsomeforest</dc:creator>
      <dc:date>2021-12-04T16:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: _Quad type compile issue with Intel C++ 2021</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1341462#M1718</link>
      <description>&lt;P&gt;please see an example of the problem above&lt;/P&gt;</description>
      <pubDate>Sat, 04 Dec 2021 16:39:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1341462#M1718</guid>
      <dc:creator>handsomeforest</dc:creator>
      <dc:date>2021-12-04T16:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: _Quad type compile issue with Intel C++ 2021</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1341747#M1728</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have compiled the code provided by you on VS 2019 and it is working fine for 64 bit target.&lt;/P&gt;
&lt;P&gt;We were also able to reproduce the issue that you are facing for 32 bit target.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have checked for the same on Intel oneAPI command prompt and it is giving us the correct output for both 32 bit and 64 bit target.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please use the command mentioned below to compile your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;icx dpcppsample.cpp -Qoption,cpp,--extended_float_types&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to the attachments below for more details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We suggest that you give it a try on Intel oneAPI command prompt once.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the issue with VS, we are investigating it at our end and we will get back to you soon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, could you please let us know the oneAPI version you are using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Ditipriya.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 13:12:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1341747#M1728</guid>
      <dc:creator>DitiD_Intel</dc:creator>
      <dc:date>2021-12-06T13:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: _Quad type compile issue with Intel C++ 2021</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1341768#M1729</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Ditipriya:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your reply.&amp;nbsp; My oneAPI version is Version: 2021.4 downloaded and installed on 2021/11/30.&amp;nbsp; I try the command line.&amp;nbsp; Here is the result:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;C:\temp\dev\ConsoleApplication1&amp;gt;"C:\Program Files (x86)\Intel\oneAPI\compiler\2021.4.0\windows\bin\icx" ConsoleApplication1.cpp -Qoption,cpp,--extended_float_types&lt;BR /&gt;Intel(R) oneAPI DPC++/C++ Compiler for applications running on Intel(R) 64, Version 2021.4.0 Build 20210924&lt;BR /&gt;Copyright (C) 1985-2021 Intel Corporation. All rights reserved.&lt;/P&gt;
&lt;P&gt;LINK : fatal error LNK1104: cannot open file 'libircmt.lib'&lt;BR /&gt;clang-cl: error: linker command failed with exit code 1104 (use -v to see invocation)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I found another potential bug in the compiler&lt;/P&gt;
&lt;P&gt;m = (int)(double)__log10q(n); // there is a bug in Intel 2021 compiler. need to do cast here&lt;BR /&gt;int mm = __log10q(n);&lt;BR /&gt;if (mm != m) {&lt;BR /&gt;printf("!!!!!!!!!!!!!!!!!!!!!!!!!!!!n = %g, m = %d, mm = %d\n", (double)n, m, mm);&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;for _Quad n =&amp;nbsp;23.1416, i got the following print out.&lt;/P&gt;
&lt;P&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!n = 23.1416, m = 1, mm = 2&lt;/P&gt;
&lt;P&gt;Is the cast supposed to be required to use&amp;nbsp;__log10q() function?&amp;nbsp; It seems to be me a fundamental bug.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Junlin Xu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 14:36:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1341768#M1729</guid>
      <dc:creator>handsomeforest</dc:creator>
      <dc:date>2021-12-06T14:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: _Quad type compile issue with Intel C++ 2021</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1342482#M1737</link>
      <description>&lt;P&gt;Any update on these two issues?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Junlin Xu&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 13:38:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1342482#M1737</guid>
      <dc:creator>handsomeforest</dc:creator>
      <dc:date>2021-12-08T13:38:04Z</dc:date>
    </item>
    <item>
      <title>Re:_Quad type compile issue with Intel C++ 2021</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1342763#M1738</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We are working on this issue and we will get back to you soon.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Ditipriya.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Dec 2021 09:51:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1342763#M1738</guid>
      <dc:creator>DitiD_Intel</dc:creator>
      <dc:date>2021-12-09T09:51:52Z</dc:date>
    </item>
    <item>
      <title>Re:_Quad type compile issue with Intel C++ 2021</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1343562#M1739</link>
      <description>&lt;P&gt;This IDE bug will be fixed in the coming release.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Dec 2021 06:48:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1343562#M1739</guid>
      <dc:creator>Jie_L_Intel</dc:creator>
      <dc:date>2021-12-13T06:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Re:_Quad type compile issue with Intel C++ 2021</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1343564#M1740</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ide-workaround.png" style="width: 913px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/24786i2DC597F212B771FD/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="ide-workaround.png" alt="ide-workaround.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 06:51:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1343564#M1740</guid>
      <dc:creator>Jie_L_Intel</dc:creator>
      <dc:date>2021-12-13T06:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: _Quad type compile issue with Intel C++ 2021</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1343565#M1741</link>
      <description>&lt;P&gt;one workaround is to modify the library path manually as shown in above picture.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 06:53:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1343565#M1741</guid>
      <dc:creator>Jie_L_Intel</dc:creator>
      <dc:date>2021-12-13T06:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: _Quad type compile issue with Intel C++ 2021</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1343666#M1743</link>
      <description>&lt;P&gt;Hello Jie_L_Intel:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the workaround.&amp;nbsp; Now I can compile the code in Win32 mode.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do see the same bug in&amp;nbsp;__log10q() math function.&amp;nbsp; The following code produces wrong results in both 32-bit and 64-bit.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;_Quad nn = 23.1416Q;&lt;BR /&gt;int mm1 = (int)(double)__log10q(nn); // there is a bug in Intel 2021 compiler. need to do cast here&lt;BR /&gt;int mm2 = __log10q(nn);&lt;BR /&gt;if (mm1 != mm2) {&lt;BR /&gt;printf("!!!!!!!!!!!!!!!!!!!!!!!!!!!!nn = %g, mm1 = %d, mm2 = %d\n", (double)nn, mm1, mm2);&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In 32-bit release, it prints:&amp;nbsp;!!!!!!!!!!!!!!!!!!!!!!!!!!!!nn = 23.1416, mm1 = 1, mm2 = 2&lt;/P&gt;
&lt;P&gt;In 32-bit debug, it prints:&amp;nbsp;!!!!!!!!!!!!!!!!!!!!!!!!!!!!nn = 23.1416, mm1 = 4266, mm2 = 4267&lt;/P&gt;
&lt;P&gt;IN 64-bit debug and release, it prints: !!!!!!!!!!!!!!!!!!!!!!!!!!!!nn = 23.1416, mm1 = 1, mm2 = 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you confirm this is a bug?&amp;nbsp; I do not see this behavior in Intel C++ 16.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Junlin Xu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 13:51:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1343666#M1743</guid>
      <dc:creator>handsomeforest</dc:creator>
      <dc:date>2021-12-13T13:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: _Quad type compile issue with Intel C++ 2021</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1343946#M1744</link>
      <description>&lt;P&gt;i could not reproduce your errors, see below picture for both ia32 and x64 build.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="log10.PNG" style="width: 999px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/24819i2F8DF22AFE1FD511/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="log10.PNG" alt="log10.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my code, adding the (double) cast or not got the same result -&lt;/P&gt;
&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/P&gt;
&lt;P&gt;int main(){&lt;BR /&gt;_Quad n = 23.1416Q;&lt;BR /&gt;int m = (int)__log10q(n); // there is a bug in Intel 2021 compiler. need to do cast here&lt;BR /&gt;int mm = __log10q(n);&lt;BR /&gt;if (mm != m) {&lt;BR /&gt;printf("!!!!!!!!!!!!!!!!!!!!!!!!!!!!n = %g, m = %d, mm = %d\n", (double)n, m, mm);&lt;BR /&gt;}&lt;BR /&gt;return m;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 09:56:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1343946#M1744</guid>
      <dc:creator>Jie_L_Intel</dc:creator>
      <dc:date>2021-12-14T09:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: _Quad type compile issue with Intel C++ 2021</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1346162#M1770</link>
      <description>&lt;P&gt;I downloaded and installed the latest intel oneAPI (w_BaseKit_p_2022.1.0.116_offline) .&amp;nbsp; Attached here is a sample project I made.&amp;nbsp; I was able to compile the project with Visual Studio 2022 using Intel C++ compiler 2022.&amp;nbsp; However, I got the following wrong errors:&lt;/P&gt;
&lt;P&gt;debug x64:&amp;nbsp;m = 2, mm = 2&lt;/P&gt;
&lt;P&gt;release x64:&amp;nbsp;m = 2, mm = 2&lt;/P&gt;
&lt;P&gt;debug x86:&amp;nbsp;m = -4859, mm = -4859&lt;/P&gt;
&lt;P&gt;release x86:&amp;nbsp;m = -4939, mm = -4939&lt;/P&gt;
&lt;P&gt;Can you try to reproduce the problem on your end?&amp;nbsp; Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Junlin Xu&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 03:24:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1346162#M1770</guid>
      <dc:creator>handsomeforest</dc:creator>
      <dc:date>2021-12-23T03:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: _Quad type compile issue with Intel C++ 2021</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1346170#M1771</link>
      <description>&lt;P&gt;hi Junlin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; i suggest you to close this ticket and open a new topic for your recent test case.&amp;nbsp; India TSE team will route your question to appropriate team if needed.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 04:19:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1346170#M1771</guid>
      <dc:creator>Jie_L_Intel</dc:creator>
      <dc:date>2021-12-23T04:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: _Quad type compile issue with Intel C++ 2021</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1346255#M1776</link>
      <description>&lt;P&gt;I created a new topic here:&amp;nbsp;&lt;A href="https://community.intel.com/t5/Intel-C-Compiler/Quad-type-math-errors/m-p/1346254#M39547" target="_blank"&gt;https://community.intel.com/t5/Intel-C-Compiler/Quad-type-math-errors/m-p/1346254#M39547&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 13:33:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Quad-type-compile-issue-with-Intel-C-2021/m-p/1346255#M1776</guid>
      <dc:creator>handsomeforest</dc:creator>
      <dc:date>2021-12-23T13:33:53Z</dc:date>
    </item>
  </channel>
</rss>

