- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
My TBB program gives "thread_monitor invalid argument" error.
When I do task_scheduler_init, I did't pass any argument then the thread number:
It looks like:
tbb::task_schedule_init init(num_threads);
What could the problem be? Please give me some suggestion.
My TBB program gives "thread_monitor invalid argument" error.
When I do task_scheduler_init, I did't pass any argument then the thread number:
It looks like:
tbb::task_schedule_init init(num_threads);
What could the problem be? Please give me some suggestion.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Check if the num_threads has realistic value (>0 and not too much). If you state it's valueto 2 or 4 - is there the problem? If it is, please provide a code sample so I can try to get the error on my side.
Also, what tbb version do you use?
Also, what tbb version do you use?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is a known source of this problem: if you compile your code with one of recent TBB 3.0 updates but use an olderTBB runtime library (maybe accidentally). Check if this is the case, and make sure an appropriate library is used at runtime.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page