Optimization and OpenMp

Optimization and OpenMp

Hello

I have big program in Fortran.

when I tried to run the program in Release mode with -O2 and Qopenmp it works wrong. I can not trace it because in Debug mode it works fine with both O2 and Qopenmp. There are not openmp directives in the program now.

If works fine with only O2 (optimization) and very fast. It works fine with only Qopenmp. 

It is IVF Composer 2011, IA-32, WIn 2008; it is  a Console appl. 

O2 I set from: Project properties/Fortran/Optimization/Maximize speed. 

Qopenmp set by: Project Properties/Language/ Process OpenMP directives/Generate parallel code.

I tried to recompile with dynamic libraries: Project properties/Labraries/ Debug Multithread DDL,

But it has no effect. Heap and stack reserve and commit size are 0.

HELP!

THANKS

Poly

2 帖子 / 0 全新
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项

For OpenMP you have available diagnostic tools such as Inspector, or you can add or remove parallelization incrementally, if you're having difficulty locating the error.
You should be able to add -O2 to your debug options and get the same behavior as without debug.

发表评论

登录添加评论。还不是成员?立即加入