3rd-party/tbb/examples/concurrent_hash_map/count_strings/readme.html
The example counts the number of unique words in a text.
System Requirements
For the most up to date system requirements, see the release notes.
Files
count_strings.cppSource code for the example. MakefileMakefile for building the example.
Directories
msvsContains Microsoft* Visual Studio* workspace for building and running the example (Windows* systems only). xcodeContains Xcode* IDE workspace for building and running the example (macOS* systems only).
For information about the minimum supported version of IDE, see release notes.
Build instructions
General build directions can be found here.
Usage
count_strings _-h_Prints the help for command line options count_strings [n-of-threads=value] [n-of-strings=value] [verbose] [silent]count_strings [n-of-threads [n-of-strings]] [verbose] [silent] n-of-threads is 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.
n-of-strings is a number of strings.
verbose - enables printing of extra information during execution.
silent - no output except elapsed time.
To run a short version of this example, e.g., for use with Intel® Parallel Inspector: Build a debug version of the example.
Run it with a small number of strings and the desired number of threads, e.g., count_strings 2 10000.
Legal Information
Intel and the Intel logo are trademarks of Intel Corporation in the U.S. and/or other countries.
* Other names and brands may be claimed as the property of others.
© 2020, Intel Corporation