Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TBB warning on 0 workers when running ExternalWork on a single thread #32597

Open
makortel opened this issue Jan 4, 2021 · 6 comments
Open

Comments

@makortel
Copy link
Contributor

makortel commented Jan 4, 2021

In comments of #31721 (#31721 (comment), #31721 (comment)) it is reported that in a single-threaded job that uses an ExternalWork TBB gives a warning

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

We should understand the exact meaning of this warning.

@makortel
Copy link
Contributor Author

makortel commented Jan 4, 2021

assign core

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 4, 2021

New categories assigned: core

@Dr15Jones,@smuzaffar,@makortel you have been requested to review this Pull request/Issue and eventually sign? Thanks

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 4, 2021

A new Issue was created by @makortel Matti Kortelainen.

@Dr15Jones, @dpiparo, @silviodonato, @smuzaffar, @makortel, @qliphy can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here

@makortel
Copy link
Contributor Author

makortel commented Jan 4, 2021

Could the change from tbb::task_scheduler_init to tbb::global_control + explicit tbb::task_arena (#31313) have caused this?

@makortel
Copy link
Contributor Author

makortel commented Jan 4, 2021

If the message really means that tbb::task_arena::enqueue() no longer creates an additional thread, this is actually the behavior we'd want. In that case it would be nice to be able to suppress the warning.

@makortel
Copy link
Contributor Author

makortel commented Jan 4, 2021

The warning is emitted here
https://github.com/oneapi-src/oneTBB/blob/d86ed7fbaaa33f1ab6f9ac2037776a1e6c16851a/src/tbb/market.cpp#L103-L106
and uxlfoundation/oneTBB#115 makes me believe that the explicit use of tbb::task_arena plays a role in the warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants