Cases where tbb task scheduler does not execute tbb::task::execute()

Cases where tbb task scheduler does not execute tbb::task::execute()

Hello.

Recently, I have been having problems with the task scheduler as it doesn't seem to call the tbb::task I created and spawned via the task scheduler. Are there any conditions or cases when the task scheduler doesn't execute tbb::tasks at all. I initially assumed there were none but given this behavior, I just have to make sure. :)

By the way, my usage of the task tree is only up to level 1 deep. So, spawn tasks doesn't spawn other tasks.

I appreciate any input on this.

- Edit - It sees like it spawns fine but the problem was preemption.

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Best Reply

If you don't have available parallelism, a spawned task will only be executed when you wait for it.

Leave a Comment

Please sign in to add a comment. Not a member? Join today