- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I downloaded and installed the latest intel oneAPI (w_BaseKit_p_2022.1.0.116_offline). I have the following code in Visual Studio 2022.
int main() {
_Quad n = 23.1416Q;
int m = (int)__log10q(n); // there is a bug in Intel 2021 compiler. need to do cast here
int mm = __log10q(n);
printf("m = %d, mm = %d", m, mm);
if (mm != m) {
printf("!!!!!!!!!!!!!!!!!!!!!!!!!!!!n = %g, m = %d, mm = %d\n", (double)n, m, mm);
}
return m;
}
However, I got the following wrong errors:
debug x64: m = 2, mm = 2
release x64: m = 2, mm = 2
debug x86: m = -4859, mm = -4859
release x86: m = -4939, mm = -4939
I believe the correct result should be m = 1, mm = 1.
Attached here is the test project. Can you try to reproduce the problem on your end? Thanks
Junlin Xu
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for reaching out to us.
We are able to reproduce your issue with icx compiler(2022.1) at our end.
We are working on your issue. We will get back to you soon.
Meanwhile, could you please try using icl classic compiler? As we are able to get the expected results for both x64, x86 in both debug and release mode.
Please find the below screenshot(x86 Debug and x64 Release) for more details with the classic compiler(19.2) in Visual Studio 2022 with oneAPI 2022.1
Thanks & Regards,
Noorjahan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for the confirmation, Noorjahan.
I do not see Intel C++ 19.2 on my visual studio 2022. I only see the option of Intel C++ 16.0 classic which I purchased in 2016. When I do use Intel C++ 16.0, I got build errors as shown here. How can I get Intel C++ 19.2 option appear on Visual Studio 2022? Is it free?
Junlin Xu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
>> How can I get Intel C++ 19.2 option appear on Visual Studio 2022?..
Could you please confirm whether you have installed oneAPI HPC toolkit in your system?
If not, please download and install oneAPI HPC Toolkit as the Intel classic compiler comes with this toolkit.
>>Is it free?
Yes, it is free. You can download oneAPI HPC Toolkit from the below link
https://www.intel.com/content/www/us/en/developer/tools/oneapi/hpc-toolkit-download.html
Please do let us know if you face any issues.
Thanks & Regards,
Noorjahan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Noorjahan:
I can confirm that Intel C++ 19.2 works for me. Please do let me know if when the bug is fixed in Intel C++ 2022.
Thanks.
Junlin Xu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We are working on your issue. We will get back to you soon.
Thanks & Regards,
Noorjahan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This issue was fixed in the latest oneAPI release.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page