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

Turn off TBB Warning

erling_andersen
New Contributor I
1,409 Views

Hi

 

I understand why get this warning:

 

TBB Warning: The number of workers is currently limited to 3. The request for 7 workers is ignored. Further requests for more workers will be silently ignored until the limit changes.

 

But I do not want TBB print it out ever. How to turn it off?

 

The customers of our program would get very annoyed by this warning.

0 Kudos
6 Replies
NoorjahanSk_Intel
Moderator
1,376 Views

Hi,

Thanks for reaching out to us.

 

The warning is usually caused by either tbb::task_scheduler_init or tbb::task_arena when an explicit number of threads is requested.

Could you please provide a sample reproducer to work on it from our end?

 

Also please provide the below details:

Os & version

Compiler used

OneTBB version is being used.

 

Thanks & Regards,

Noorjahan.

 

 

0 Kudos
erling_andersen
New Contributor I
1,370 Views
Below should be sufficient info. to reproduce it.
 
It also happens you try to set the number threads to a large number in the official OneAPI TBB
Version 2021.4.0 Build 20210924
(for Windows) supplied by you. I tried to set numworkers=128 on a 12 core Windows machine as follows:
 
arena = new tbb::task_arena (numworkers);
 
and got
 
TBB Warning: The number of workers is currently limited to 23. The request for 127 workers is ignored. Further requests for more workers will be silently ignored until the limit changes.
0 Kudos
erling_andersen
New Contributor I
1,352 Views

Now I also located the source generating the warning

 

https://github.com/oneapi-src/oneTBB/search?q=The+number+of+workers+is+currently+limited

 

 

0 Kudos
NoorjahanSk_Intel
Moderator
1,323 Views

Hi,


Thanks for providing the details.


Sorry for the inconvenience caused to you during the TBB warning.


We do not have any flag that can turn off the warning as of now.


If necessary you can raise a feature request if you have priority support, else you can potentially submit a request through GitHub.


Thanks & Regards,

Noorajahn.


0 Kudos
NoorjahanSk_Intel
Moderator
1,282 Views

Hi,


Could you please let us know if you require any further assistance? If not then can we go ahead and close this thread?


Thanks & Regards,

Noorajahan.


0 Kudos
NoorjahanSk_Intel
Moderator
1,185 Views

Hi,


I have not heard back from you, so I will close this inquiry now. If you need further assistance, please post a new question.


Thanks & Regards,

Noorjahan.


0 Kudos
Reply