README.md
1# Convex_hull sample
2Parallel version of convex hull algorithm (quick hull).
3
4## Building the example
5```
6cmake <path_to_example>
7cmake --build .
8```
9
10This sample contains two additional predefined build targets:
11- `convex_hull_sample` - builds parallel version of the example which uses `parallel_reduce`, `parallel_for` and `concurrent_vector`.
12- `convex_hull_bench` - build version of the example that compares serial and parallel buffered and unbuffered implementations.
13
14## Running the sample
15### Predefined make targets
16* `make run_convex_hull` - executes the example with predefined parameters.
17* `make perf_run_convex_hull` - executes the example with suggested parameters to measure the oneTBB performance.
18* `make light_test_convex_hull` - executes the example with suggested parameters to reduce execution time.
19
20### Application parameters
21Usage:
22```
23convex_hull_sample [n-of-threads=value] [n-of-points=value] [silent] [verbose] [-h] [n-of-threads [n-of-points]]
24convex_hull_bench [n-of-threads=value] [n-of-points=value] [silent] [verbose] [-h] [n-of-threads [n-of-points]]
25```
26* `-h` - prints the help for command line options.
27* `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.
28* `n-of-points` - number of points.
29* `silent` - no output except elapsed time.
30* `verbose` - turns verbose ON.
31