Community
cancel
Showing results for 
Search instead for 
Did you mean: 
alon_b_
Beginner
62 Views

Statically linking to tbb

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
62 Views

ping :)

RafSchietekat
Black Belt
62 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