## 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 Intel® 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

msvs
  Contains Microsoft* Visual Studio* 2005 workspace for building and running the example (Windows* systems only).
xcode
  Contains Xcode* IDE workspace for building and running the example (Mac OS* X systems only).

## 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-2012 Intel Corporation. All Rights Reserved.

Intel is a registered trademark or trademark 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.