Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

Statically linking to tbb

alon_b_
Beginner
361 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
361 Views

ping :)

0 Kudos
RafSchietekat
Valued Contributor III
361 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.

 

0 Kudos
Reply