- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much. That will make my like much easier.
Kenny
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page