build/ CHANGES COPYING doc/ examples/ include/ index.html Makefile README src/
source /usr/foo/tbb21_20090511oss/build/linux*cc*libc*kernel*release/tbbvars.shTo check your environment, "cd tbb21_20090511oss/examples/parallel_reduce/primes" and run "make". It will build and run the program primes if your environment is correct. Below is a sample transcript:
Chapter 2 of the TBB Tutorial describes the TBB directory layout in detail.$ cd examples/parallel_reduce/primes/ $ make g++ -O2 -DNDEBUG -o primes primes.cpp -ltbb ./primes 100000000 0:4 #primes from [2..100000000] = 5761455 (0.47 sec with serial code) #primes from [2..100000000] = 5761455 (0.50 sec with 1-way parallelism) #primes from [2..100000000] = 5761455 (0.24 sec with 2-way parallelism) #primes from [2..100000000] = 5761455 (0.19 sec with 3-way parallelism) #primes from [2..100000000] = 5761455 (0.14 sec with 4-way parallelism)