Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
6712 Discussions

libiomp5.dylib needed even though I link statically

Mikael_Grev
Beginner
368 Views
Hello, Maybe I have misunderstood this in some way but I'm trying to link without any dunamic libs. I statically link to libiomp5.a but still it wants the .dylib when I run the app.

I use OpenMP.

Any suggestions how I can break the dependency on libiomp5.dylib?

Cheers,
Mikael Grev

Btw. Got 67ms jpeg encode+decode on a 2560x1600/32 image. Darn that's fast!! MacBook Pro Dual Core 2.
0 Kudos
3 Replies
Mikael_Grev
Beginner
368 Views
Oh yeah. Almost forgot.

I'm on a Mac OS X 10.5.7 using Compiler 11.1/058
0 Kudos
Mikael_Grev
Beginner
368 Views
You post, you solve. :)

Intel Compiler Runtime needs to be set to static under "Build" in XCode.

Cheers,
Mikael
0 Kudos
Ying_H_Intel
Employee
368 Views
Quoting - mikaelgrev
You post, you solve. :)

Intel Compiler Runtime needs to be set to static under "Build" in XCode.

Cheers,
Mikael

Hi Mikael,

Thank you for sharing. Yeah, when enable OPENMP, Intel Compiler will link libiomp5 dynamic by default.The openmp library used by IPP is also from Intel Compiler. So we need take care when use them.

Some related info: IPP threading FAQ

<http://software.intel.com/en-us/articles/intel-integrated-performance-primitives-intel-ipp-threading-openmp-faq/>

Regards,
Ying
0 Kudos
Reply