Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Optimization issues

kstultz
Beginner
955 Views

We have a large Fortran code that we have ported to IVF ver. 10 from CFV. All is well except that in a small number of cases we get different answers when we compile the code using optimization vs. when we compile the code unoptimized. We have isolated the routine causing the grief and are working on figuring out what the problem is.

In the meantime we'd like to optimize all the code except for the offending routine when we compile. Is there some way to accomplish this through the VS2005 interface rather than having to fool with compiling from a command line?

Thanks, Kenny

0 Kudos
4 Replies
jimdempseyatthecove
Honored Contributor III
955 Views

Kenny,

Open the Solution Explorer in the IDE, expand the Project with the file of interest, Right-Click on the file of interest, select Properties, then set Optimization properties the way you want.

Note, when a file has options other than "inherit from project" a little red tick mark appears on the file in the solution explorer as a reminder that something is different. Also, for properties that are not "inherit from project" the option text is in bold face type.

I have a similar problem in a large solution in IVF 10.0.027 where if either of twoloops gets vectorized that incorrect results occure. My final solution was to insert

!DEC$ NOVECTOR

Above the two loops in question. But compile with full optimizations. With several 100's of files it took a bit of time to locate the offending code.

Good luck

Jim Dempsey

0 Kudos
Les_Neilson
Valued Contributor II
955 Views

If I understand correctly. In the IDEyou should be able to select the configuration, then in the soltion explorere window right mouse click on thefile in question, select properties then choose the optimization or any other property for that file.

Les

0 Kudos
jimdempseyatthecove
Honored Contributor III
955 Views
Yes
0 Kudos
kstultz
Beginner
955 Views

Thank you very much. That will make my like much easier.

Kenny

0 Kudos
Reply