3rd-party/tbb/examples/index.html
This directory includes example usages of Intel® Threading Building Blocks (Intel® TBB).
System Requirements:
For the most up to date system requirements, see the release notes.
Directories
GettingStartedExamples from the Intel TBB Getting Started Guide. concurrent_hash_mapExamples using concurrent_hash_map container. concurrent_priority_queueExamples using concurrent_priority_queue container. graphExamples using Intel TBB Flow Graph feature. parallel_doExamples using parallel_do algorithm. parallel_forExamples using parallel_for algorithm. parallel_reduceExamples using parallel_reduce algorithm. pipelineExamples using pipeline algorithm. taskExamples using raw task interface. task_groupExamples using task_group interface. task_arenaExamples using the task_arena feature. test_allExamples that test various components of Intel TBB. commonCommon files for building various examples. Should not be used directly. But if you copy an example to other place this folder should be copied also and should have the same relative path for copied example.
Build Instructions
Note: Some of the following directions refer to a shell window. This refers to the command prompt environment/window normally used on your system:
Set up the environment for using Intel TBB:
To set up the environment for Windows* OS:
It is strongly recommended to set up the environment when installing Intel TBB. Do this by selecting the appropriate check-box during the install. However, if the environment is not set up during installation, or you wish to build for an alternate architecture or Microsoft* Visual Studio* version, it may be set up, for a given type of shell window, by using one of the following commands:
For cmd.exe (command prompt):
<_installdir_>/bin/tbbvars.bat (arch) [vs]
where: - (arch) argument represents target architecture. Its possible values are 'ia32' or 'intel64'.
tbbvars intel64 vs2015To set up the environment for Linux* OS and macOS*:
The environment may be set up, for a given type of shell window, by using one of the following commands:
For sh, bash, ksh, dash (or compatibles):
**.** <_installdir_>/bin/tbbvars.sh (arch) [platform [TBBROOT_detection_mode]]
For csh (or compatibles):
source <_installdir_>/bin/tbbvars.csh (arch) [platform [TBBROOT_detection_mode]]
where: - (arch) argument represents target architecture. Its possible values are 'ia32' or 'intel64'.
Build each example by using one of the following methods:
To build by using a Microsoft* Visual Studio* project (Windows* systems):
To build by using a Xcode* IDE project (macOS* systems):
Note: Xcode* project instructions are not applicable for the Intel TBB Sample Bundle for Intel® System Studio because Intel System Studio does not support macOS*. For additional information, see the Release Notes.
To build by using a Makefile (Windows*, Linux* or macOS* systems):
Note: Only flow graph examples are currently supported. make testRun an executable previously produced by one of the above commands. make [(above options or targets)] CXX= { icl, icc } Build and run as above, but use Intel® C++ Compiler instead of default, native compilers (e.g., icl instead of cl.exe on Windows* systems, or icc instead of g++ on Linux* or macOS* systems). make [(above options or targets)] offload=micBuild and run the offload version of an example for Intel® Many Integrated Core (Intel® MIC) Architecture.
Note: Only Intel® MIC Architecture with Linux* based host is currently supported. make cleanRemove any executables or intermediate files produced by the above commands.
Up to parent directory (available only in the Intel® Parallel Studio and Intel® System Studio Online Samples packages and the open-source version of Intel TBB)
Legal Information:
|
Optimization Notice
| | --- | |
Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.
Notice revision #20110804
|
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