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

thread_monitor invalid argument

missing__zlw
Beginner
306 Views
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.
0 Kudos
2 Replies
Kirill_R_Intel
Employee
306 Views
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?
0 Kudos
Alexey-Kukanov
Employee
306 Views

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.

0 Kudos
Reply