Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

Statically linking to tbb

alon_b_
Beginner
156 Views

Hey, is there a way to statically link to both TBB and IPP?

I would like to deploy a binary only.

Thanks,

Alon

0 Kudos
2 Replies
alon_b_
Beginner
156 Views

ping :)

RafSchietekat
Black Belt
156 Views

TBB is intended to be linked dynamically, to avoid inadvertent duplicate copies. This goes for tbbmalloc as well.

If you're using Windows, try if you can still link statically with the runtime library, and see how fast your application crashes by allocating memory with one copy, e.g., the dynamically linked one used by a library you're using, perhaps indirectly, and deallocating with another, e.g., the one linked statically with your executable.

With TBB, you also have task pools, thread-local storage, and perhaps other things that might break.

 

Reply