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

Unneeded OpenMP library?

David_DiLaura
Beginner
459 Views
I've just moved from Studio 2005/Fortran 11.1 to Studio 2012/Fortran XE 12.1, but haven't changed any source code (yet). The exe I build will not run on customer machines becauselibiomp5md.dll is missing. If I statically link (put/Qopenmp-link:static in the command line for the compiler) it runs but the exe image grows by 1/2 Mb. I don't have any threading in this code and certainly no calls to OpenMP, so I assume I don't need the OpenMP library at all. Right? No calls to the IML either. Is there a way/setting to compile and link with have the OpenMP material attached?

0 Kudos
1 Reply
TimP
Honored Contributor III
459 Views
If you don't use OpenMP or its library functions, then removing all /Qopenmp and /Qparallel options (either command line or VS property parallel options) should remove all dependency on libiomp5. If you call one of the Intel performance libraries, such as MKL, you need to specify its sequential library to eliminate threading and OpenMP dependency.
0 Kudos
Reply