Debian Codegraph @

third-party/tbb/examples/test_all/fibonacci/README.md

raw
1 # Fibonacci sample
2 This directory contains an example that computes Fibonacci numbers in several different ways.
3
4 The purpose of the example is to exercise every include file and class in IntelĀ® oneAPI Threading Building Blocks. Most of the computations are deliberately silly and not expected to show any speedup on multiprocessors.
5
6 ## Building the example
7 ```
8 cmake <path_to_example>
9 cmake --build .
10 ```
11
12 ## Running the sample
13 ### Predefined make targets
14 * `make run_fibonacci` - executes the example with predefined parameters.
15
16 ### Application parameters
17 Usage:
18 ```
19 fibonacci K [M[:N]] [R]
20 ```
21 * `K` - specifies the fibonacci number which would be calculated.
22 * `[M:N]` -a range of numbers of threads to be used.
23 * `R` - the number of times to repeat the calculation.