Name Date Size #Lines LOC

..12-Feb-2024-

CMakeLists.txtH A D12-Feb-20241 KiB3425

README.mdH A D12-Feb-20241 KiB2521

common.hH A D12-Feb-20241.3 KiB5226

main.cppH A D12-Feb-20243.4 KiB10164

pi.cppH A D12-Feb-20241.5 KiB5630

README.md

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