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.cpp
Source code for the example.
Makefile
Makefile for building the example.
Directories
msvs
Contains Microsoft* Visual Studio* workspace for building and running the example (Windows* systems only).
xcode
Contains 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.

Up to parent directory
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.
© 2019, Intel Corporation