- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Forum Users,
I'm trying to run my Fortran code with /O3 enabled for speed.
In Properties > Fortran > General I change the following settings:
1) Optimization: max speed plus higher level optimization (/O3)
2) Debug information format: None
Then I press "Start without debugging"
Unfortunately I get the message
warning #10182: disabling optimization; runtime debug checks enabled
The code runs, but without optimization
Can someone please explain what's wrong here? Thanks
Best,
Alessandro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What I mean you have two options for testing "-O3":
1. Continue to test -O3 in debug build but you need turn off "/check stack" in the project properties.
Or
2. Test -O3 in release build which has "/check stack" turned off by default. (I recommend this one).
What you did is checking the "Release" build setting of "Check Stack Frame" (Showed in your screenshot) but still building your code with "Debug" build (Showed in your build log). So please make sure to select "Debug" at the left top of the project properties when you want to change the setting for "Debug" build.
Thanks,
Xiaoping Duan
Intel Customer Support
Link Copied
- 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
Here is the log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The debug build has "/check stack" turned on which will disables optimization and overrides any optimization level set by option O. Suggest you do the O3 testing with the release build.
Thanks,
Xiaoping Duan
Intel Customer Support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks but how can I turn off "/check stack"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Go to "Project Properties -> Fortran -> Runtime -> Check Stack Frame" and select "No".
It is turned off by default for release build.
Thanks,
Xiaoping Duan
Intel Customer Support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I did as you suggested but it doesn't work
In particular, in Project Properties I selected "Configuration: Release" and I made sure that
check stack frame is NO (this is indeed the default option for Release)
However I still get the same mistake
ifort: warning #10182: disabling optimization; runtime debug checks enabled
I write below the build log. I also attach a screenshot with the project properties
- 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
The build log shows you are building the "Debug" build so please make sure you change the setting of "Debug" configuration.
Thanks,
Xiaoping Duan
Intel Customer Support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't understand, if you look at the screenshot that I attached you can see that I selected "Configuration: Release"
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What I mean you have two options for testing "-O3":
1. Continue to test -O3 in debug build but you need turn off "/check stack" in the project properties.
Or
2. Test -O3 in release build which has "/check stack" turned off by default. (I recommend this one).
What you did is checking the "Release" build setting of "Check Stack Frame" (Showed in your screenshot) but still building your code with "Debug" build (Showed in your build log). So please make sure to select "Debug" at the left top of the project properties when you want to change the setting for "Debug" build.
Thanks,
Xiaoping Duan
Intel Customer Support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You also still have bounds checking turned on. You can disable via the same project properties.
It still isn't clear whether you are building "Release" or "Debug" configuration. What Xiaoping is seeing is that, your linker message above is showing that the executable being created is "\Debug\test.exe".
While you may have changed these settings in the properties for the "Release" builds, the build logs you have posted above appear to be for the Debug build.
I suspect you may have tried to use "-O3" by altering the "Debug" configuration. This is likely since the "stack" and "bounds" checks are only enabled (by default) for Debug builds. Please double check that you are selecting and building (and running) the "Release" configuration, and be sure those (debug) runtime checks are not enabled for the Release build.
Mark

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page