Automatic task scheduler initialization on Fedora 9 using tbb2.2

Automatic task scheduler initialization on Fedora 9 using tbb2.2

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

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

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.

Leave a Comment

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