third-party/tbb/examples/parallel_pipeline/square/README.md
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.
cmake <path_to_example>
cmake --build .
make run_square - executes the example with predefined parametersmake perf_run_square - executes the example with suggested parameters to measure the oneTBB performancemake light_test_square - executes the example with suggested parameters to reduce execution time.Usage:
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]]]]
-h - prints the help for command line options.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.input- file is an input file name.output- file is an output file name.max-slice-size - the maximum number of characters in one slice.silent - no output except elapsed time.