- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Can someone tell me where to look for the list of optimization flags? I also use openmp so wonder if it conflicts with other flags?
At some topic people suggested-O3 -xHost -ipo for ifort v11, my version is 12.0.5. I use these flags and find that they create errors.
Lam
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The only interaction of -openmp with other compile options is that it sets -auto and conflicts with -save. If your program has bugs which appear with -auto or by omission of -save, they surely will appear with -openmp.
Regardless of whether you set -openmp, you may want the options
-assume protect_parens -prec-div -prec-sqrt
or the more conservative -fp-model source, so as to adhere to Fortran and IEEE floating point standards.
If you get errors when you set -openmp, it's more likely that you have threading errors. The compiler does little checking itself, although there is the -diag-enable openmp option to perform some static correctness checking (working together with Inspector, which can also perform run-time parallel consistency checking).
Regardless of whether you set -openmp, you may want the options
-assume protect_parens -prec-div -prec-sqrt
or the more conservative -fp-model source, so as to adhere to Fortran and IEEE floating point standards.
If you get errors when you set -openmp, it's more likely that you have threading errors. The compiler does little checking itself, although there is the -diag-enable openmp option to perform some static correctness checking (working together with Inspector, which can also perform run-time parallel consistency checking).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The error I get happens in a serial block, not a parallel one.
I have flag -C to check array bounds. The error says the array subscript is 0 which is less than the lower bound of 1. However if I print the subscript out to see if it's really 0, it's printed out non-zero and no error message happens.
I found that if I don't use -C I get no error.Lam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I see there was no progress on this thread and like to help you. Would you be able to provide a small reproducer so we can verify the problem you're seeing?
Thank you & best regards,
Georg Zitzlsberger
I see there was no progress on this thread and like to help you. Would you be able to provide a small reproducer so we can verify the problem you're seeing?
Thank you & best regards,
Georg Zitzlsberger

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