Kabira  K
Kabira K

Reputation: 2007

control number of threads used in cnc/tbb

I am using intel cnc library and it creates as many threads as there are cores. Is there any way to control the number of threads used for the purpose and possibly control their placement.

Upvotes: 0

Views: 363

Answers (1)

Andriy Tylychko
Andriy Tylychko

Reputation: 16256

not sure about cnc, but since you tagged this question as tbb, there's a class tbb::task_scheduler_init which takes number of threads as ctor arg

Upvotes: 1

Related Questions