Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
2477 ディスカッション

TBB load balance across different programs?

Daniel_P_Intel1
従業員
444件の閲覧回数

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 返信
Alexei_K_Intel
従業員
444件の閲覧回数

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

返信