Overview

This directory contains an example that computes Fibonacci numbers in several different ways. The purpose of the example is to exercise every include file and class in Threading Building Blocks. Most of the computations are deliberately silly and not expected to show any speedup on multiprocessors.

Files

Fibonacci.cpp
Source code for example.
Makefile
Makefile for building example.

Directories

vc7.1
Contains Microsoft* Visual Studio* .NET 2003 workspace for building and running the example.
vc8
Contains Microsoft* Visual Studio* 2005 workspace for building and running the example.
xcode
Contains Xcode* IDE workspace for building and running the example.

To Build

General build directions can be found here.

Usage

fibonacci K [M[:N]] [R]
Calculates the K-th fibonacci number. M and N are a range of numbers of threads to be used. R is the number of times to repeat the calculation.
To run a short version of this example, e.g., for use with Intel® Threading Tools:
Build a debug version of the example (see the build directions).
Run it with a small fibonacci number and the desired number of threads, e.g., fibonacci 100 4.

Up to parent directory

Copyright © 2005-2007 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.