Visible to Intel only — GUID: GUID-85470C68-431B-49D8-92F4-5B25CC2E45F0
Visible to Intel only — GUID: GUID-85470C68-431B-49D8-92F4-5B25CC2E45F0
Parallelizing Simple Loops
The simplest form of scalable parallelism is a loop of iterations that can each run simultaneously without interfering with each other. The following sections demonstrate how to parallelize simple loops.
When compiling oneTBB programs, be sure to link in the oneTBB shared library, otherwise undefined references will occur. The following table shows compilation commands that use the debug version of the library. Remove the “_debug” portion to link against the production version of the library.
Operating System |
Command line |
---|---|
Windows* OS |
icl /MD example.cpp tbb_debug.lib |
Linux* OS |
icc example.cpp -ltbb_debug |