- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
In the past, there was a class named "task_scheduler_init" in the "tbb" library, but I think that class does not exist anymore. For example, instead of the "tbb :: task_scheduler_init :: default_num_threads ()" function, there could be an approach like this link -> https://github.com/oneapi-src/oneTBB/issues/248
My question is how can I determine how many threads to use for execution. Specifically "tbb :: task_scheduler_init init {number};" What can I use instead?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You will need to use task_arena and control the concurrency to achieve this effect. When you create a task_arena, you can specify the maximum concurrency, which will set how many threads are used. Please see https://software.intel.com/content/www/us/en/develop/documentation/tbb-documentation/top/intel-threading-building-blocks-developer-reference/task-scheduler/taskarena-class.html for details.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for reaching out to us.
As this issue is more related to TBB, we are moving this issue to the oneAPI TBB forum.
Warm Regards,
Abhishek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You will need to use task_arena and control the concurrency to achieve this effect. When you create a task_arena, you can specify the maximum concurrency, which will set how many threads are used. Please see https://software.intel.com/content/www/us/en/develop/documentation/tbb-documentation/top/intel-threading-building-blocks-developer-reference/task-scheduler/taskarena-class.html for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This issue has been resolved and we will no longer monitor this thread. If you require additional assistance from Intel, please start a new thread.Any further interaction in this thread will be considered community only.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page