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

TBB load balance across different programs?

Daniel_P_Intel1
Employee
368 Views

Hi,

does TBB automatically do load balancing between two different programs which both use TBB?

E.g. a quad core machine is used. Program 1 has a tbb_parallel_for loop to do some heavy calculations. Program 2 uses such a loop as well for its calculations. Does TBB track that across different programs? Specifically not the same program with some threads, but different binary file being executed.

Thanks,

  Daniel

1 Reply
Alexei_K_Intel
Employee
368 Views

Hi Daniel,

Intel TBB runtime does not balance calculations across different processes. If you want to run two parallel programs on the same machine simultaneously, you may want to use affinity masks for processes to split the computational resources and limit Intel TBB runtimes to particular parts of the CPU.

Regards,
Alex

0 Kudos
Reply