Debian Codegraph @

third-party/tbb/examples/parallel_pipeline/square/README.md

raw
1 # Square sample
2 Text filter that demonstrates the use of `parallel_pipeline`. Example program reads a file containing decimal integers in text format, and changes each to its square.
3
4 ## Building the example
5 ```
6 cmake <path_to_example>
7 cmake --build .
8 ```
9
10 ## Running the sample
11 ### Predefined make targets
12 * `make run_square` - executes the example with predefined parameters
13 * `make perf_run_square` - executes the example with suggested parameters to measure the oneTBB performance
14 * `make light_test_square` - executes the example with suggested parameters to reduce execution time.
15
16 ### Application parameters
17 Usage:
18 ```
19 square [n-of-threads=value] [input-file=value] [output-file=value] [max-slice-size=value] [silent] [-h] [n-of-threads [input-file [output-file [max-slice-size]]]]
20 ```
21 * `-h` - prints the help for command line options.
22 * `n-of-threads` - the number of threads to use; a range of the form low\[:high\], where low and optional high are non-negative integers or `auto` for a platform-specific default number.
23 * `input`- file is an input file name.
24 * `output`- file is an output file name.
25 * `max-slice-size` - the maximum number of characters in one slice.
26 * `silent` - no output except elapsed time.