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

Automatic task scheduler initialization on Fedora 9 using tbb2.2

Mellisa
Beginner
287 Views
Hi,

I'm running FeedTwoMouths example on Fedora 9 using tbb2.2.

Since the task scheduler initialization is optional for tbb2.2, so I commentted out the line

tbb::task_scheduler_init init( argc>1 ? strtol(argv[1],0,0) : 3 );

in main() function. It compiled but I got segfault whenI ran it.

Then I did the same thing on Windows xp (comment out the same line and using tbb2.2), the example runs fine.

So my question is when I use tbb2.2, the automatic task initialization is not the same thing as I can just simply comment out the initializatin line? Then Why it works on xp? Or is it an OS related issue? Maybe Fedora 9 is too old?

Thanks,
Mellisa
0 Kudos
1 Reply
Alexey-Kukanov
Employee
287 Views
For a start, I would suggest to check with ldd that the version of libtbb.so is really TBB 2.2 taken from the place you expect it to be.
0 Kudos
Reply