Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*

2025.1 floating point issue

may_ka
Beginner
134 Views

Hi,

 

after installing the 2025.1 oneapi basekit and hpckit release I have stumbled over substantial differences in calculation results.

 

After some digging it turned out that the culprit is icpx.

Doing some comparisons for the respective calculations I found that g++ 14.2, clang++ 19.1, icpx 2024.0.2 all deliver the same results irrespective of the floating point model (i.e. irrespective of whether "-ffast-math" is set or not). icpx 2025.1 also delivers the same results but only when using "-O0 -g", or "-O3 -fno-fast-math".

 

Is this a bug ....... or is icpx 2025.1 requiring different flags?

 

The calculations involve multiplication, addition, subtraction, square root, power, and absolute value, where for the last there std::sqrt, std::pow and std::abs is used.

 

Any idea?

 

Thanks

 

OS: Linux

Kernel: 6.14

0 Kudos
1 Reply
Sravani_K_Intel
Moderator
56 Views

Could you provide a test case that demonstrates the differences in results?

0 Kudos
Reply