• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..04-Oct-2021-

README.mdH A D04-Oct-20211.1 KiB2622

main.cppH A D04-Oct-20214.1 KiB11781

primes.cppH A D04-Oct-202110.8 KiB308194

primes.hppH A D04-Oct-20211.2 KiB3710

README.md

1# Primes sample
2Parallel version of the Sieve of Eratosthenes.
3
4## Building the example
5```
6cmake <path_to_example>
7cmake --build .
8```
9
10## Running the sample
11### Predefined make targets
12* `make run_primes` - executes the example with predefined parameters
13* `make perf_run_primes` - executes the example with suggested parameters to measure the oneTBB performance
14
15### Application parameters
16Usage:
17```
18primes [n-of-threads=value] [number=value] [grain-size=value] [n-of-repeats=value] [silent] [-h] [n-of-threads [number [grain-size [n-of-repeats]]]]
19```
20* `-h` - prints the help for command line options.
21* `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.
22* `number` - the upper bound of range to search primes in, must be a positive integer.
23* `grain-size` - the optional grain size, must be a positive integer.
24* `n-of-repeats` - the number of the calculation repeats, must be a positive integer.
25* `silent` - no output except elapsed time.
26