Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

Problem compiling with O2 intel 17

Tom_R_
Beginner
132 Views

My application is crashing when building with O2, but it runs with O0 and O3.  Is there a list of options that O2 and O3 turn on?  I'd like to test the individual optimizations to see which is causing the problem, and which option in O3 is "fixing" it.  This crash doesn't occur with intel 15 or 16.  

 

 

0 Kudos
4 Replies
Steve_Lionel
Black Belt Retired Employee
132 Views

No, there is not such a list. Most of the optimizations don't have individual controls.

Have you tried version 18? If it still fails, submit a problem report to Intel and attach everything they need to reproduce the problem.

Tom_R_
Beginner
132 Views

Thanks for the response, Steve.  I don't have intel 18 yet, so I haven't tried it.  I have tried intel 15 and 16 and they both have no problem.  

Steve_Lionel
Black Belt Retired Employee
132 Views

Since you did not attach a test case, there is little anyone here can do for you. Try 18 and if it still fails, use the Intel Online Service Center to report it.

jimdempseyatthecove
Black Belt
132 Views

>>My application is crashing when building with O2, but it runs with O0 and O3.

Check the results between O0 and O3. Lack of crash does not mean your program is running correctly. Have you run with all compiler warnings (especially interface checking) and runtime checks (array out of bounds checking, uninitialized variables, ...). Any errors in either can yield a program with undefined behavior (including the appearance of it running correctly).

Note, in a multi-file application, you can build with each file having different optimization levels.

And, don't forget to experiment between using/not using IPO, single file IPO, multi-file IPO.

Jim Dempsey

Reply