Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
6628 Discussions

libiomp5.dylib needed even though I link statically

Mikael_Grev
Beginner
148 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
148 Views
Oh yeah. Almost forgot.

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

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

Cheers,
Mikael
Ying_H_Intel
Employee
148 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...

Regards,
Ying
Reply