Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

Inline optimization options change output

kirbychapman
Beginner
1,018 Views
I have a program that i have been running in debug mode. I just changed it to release mode and many of the numbers changed to unrealistic values (this is an iterative solution code, so numbers blow up pretty quickly). I narrowed it down to the inline optimization in the release version. It defaults to "any suitable." This causes the problem. If I change it to "Only INLINE Directive (/Ob1)" then everything is fine.

So while the release version now works, i would still like to understand the differences. There are numerous subroutines and functions in the code, if that is meaningful.

Thanks for any guidance.

0 Kudos
3 Replies
Steven_L_Intel1
Employee
1,018 Views
Without seeing the actual program, it's impossible to know. Inline expansion should not change the results of a correct program. Your program may be incorrect, or there may be a compiler bug. Which specific compiler version are you using?
0 Kudos
kirbychapman
Beginner
1,018 Views
Understandable that it is difficult to diagnose without the code. I am using 11.1.051.

Is there a way that i can designate which functions are treated in a specific inlining way? That wasy i may be able to narrow it down to the problem child. Alternatively, i can send you the source code and sln file...

Thanks for the help, Steve -- i'm beginning to think you live online!
0 Kudos
Steven_L_Intel1
Employee
1,018 Views
Please try 11.1.065 and see if the problem remains. I am aware of an inlining bug fixed in that version.
0 Kudos
Reply