Intel® Threading Building Blocks

set tbb lib and include path

Hi all,

I am having some trouble in getting tbb setup. I have downloaded the src and lin file and extracted them. however the linux version (linux 2.6.18) I am using is not found in the lin (binary tar file).

I read a website which someone wrote and under it, it states that when running make, it will create the lib file for linux but it doesn't seem so.

Can anyone help me out by guiding me throught how to get tbb set up (starting from extracting the tar files)
Thanks

Regards,
Stanley

Problem Debugging in Visual Studio with TBB

I hope that this hasn't been covered elsewhere and I missed it, but I can't seem to solve the following problem:

I have a clean install of MS Visual Studio with MSVC 8, and I have TBB installed and all the environment variables set up (correctly, I think).

I can compile and run the sample TBB code, along with new test code I wrote. The problem is if I try to run code in the debugger. E.g., a simple F5 on some code that works perfectly in release mode gives me the following error:

Per Thread Init?

Hi,

is there a way to have a init function that is called for every thread the task scheduler creates? I am trying to use TBB with OpenSG which has something called aspects where each thread gets its own aspect. However, this also requires me to set the correct aspect for each thread to work with. Calling this in the operator() is not really an option since it causes massive slowdowns.

tbb20_014oss build examples crash MSVC 8.0 compiler

Hello,


I downloaded thetbb20_014oss source. Using Visual studio 2005 professional commandwindowand gnu Make from Cygwin distribution, the library and dll seem to build ok; However, the following examples crashed the ms c compiler during the release and debug build processes:


Count_strings.exe, Primes.exe, Parallel_PreOrder.exe, Text_filter.exe, Tree_sum.exe, and Fibonacci.exe.


Long

thread stack size

Is it possible to specify the stack size for the TBB threads? From looking at the source code this does not seem to be possible.


It is my experience that different platforms have different default stack sizes for threads started by pthread_create(). For example, the convex hull test cases don't run on IBM AIX unless I explicitly increase the thread stack size. It seems to me that an optional stack size argument inthe task_scheduler_init class would solve this issue. If no stack size is specified, the defaults are taken. Otherwise the user supplied value is used.

Bug in documentation?

I think there's a error in the tutorial document (http://cache-www.intel.com/cd/00/00/30/11/301132_301132.pdf). On page 57, it gives an example using recycling as a demonstration of how to sometimes avoid allocating other tasks, but then it goes and allocates all of the tasks anyway. I'm pretty sure that line 12 of that example, "FibTask& a = *new( c.allocate_child() ) FibTask(n-2,&c.x);", should be removed.

Pages

S’abonner à Intel® Threading Building Blocks