1# Pi Sample 2Parallel version of calculating π by numerical integration. 3 4## Build 5To build the sample, run the following commands: 6``` 7cmake <path_to_example> 8cmake --build . 9``` 10 11## Run 12### Predefined Make Targets 13* `make run_pi` - executes the example with predefined parameters 14* `make perf_run_pi` - executes the example with suggested parameters to measure the oneTBB performance 15 16### Application Parameters 17You can use the following application parameters: 18``` 19pi [n-of-threads=value] [n-of-intervals=value] [silent] [-h] [n-of-threads [n-of-intervals]] 20``` 21* `-h` - prints the help for command-line options. 22* `n-of-threads` - the number of threads to use. This number is specified in the low\[:high\] range format, where both ``low`` and, optionally, ``high`` are non-negative integers. You can also use ``auto`` to let the system choose a default number of threads suitable for the platform. 23* `n-of-intervals` - the number of intervals to subdivide into. Must be a positive integer. 24* `silent` - no output except the elapsed time. 25