User and Reference Guide for the Intel® C++ Compiler 14.0
This is a summary of the OpenMP* pragmas and clauses supported in the Intel compiler. For detailed information about the OpenMP API, see the OpenMP Application Program Interface Version 4.0 specification, which is available from the OpenMP web site (http://www.openmp.org/).
Use this pragmas to form a team of threads and execute those threads in parallel.
|
Pragma |
Description |
|---|---|
|
Specifies that a structured block should be run in parallel by a team of threads. |
Use these pragmas to share work among a team of threads.
|
Pragma |
Description |
|---|---|
|
Specifies a parallel loop. Each iteration of the loop is executed by one of the threads in the team. |
|
|
Defines a region of structured blocks that will be distributed among the threads in a team. |
|
|
Specifies a structured block that will be executed only once by a single thread in the team. |
Use these pragmas as a shortcut for a PARALLEL pragma followed by a WORKSHARING pragmas.
|
Pragma |
Description |
|---|---|
|
Specifies a parallel construct containing one or more associated loops. |
|
|
Specifies a parallel construct that contains a single sections construct. |
Use these pragmas for deferring execution.
|
Pragma |
Description |
|---|---|
|
Specifies the beginning of a code block whose execution may be deferred. |
|
|
Specifies that the current task can be suspended at this point, in favor of execution of a different task. |
Use these pragmas to synchronize between threads.
|
Pragma |
Description |
|---|---|
|
Specifies a computation that must be executed atomically. |
|
|
Specifies a point in the code where each thread must wait until all threads in the team arrive. |
|
|
Specifies a code block that is restricted to access by only one thread at a time. |
|
|
Identifies a point at which the view of the memory by the thread becomes consistent with the memory. |
|
|
Specifies the beginning of a code block that must be executed only once by the master thread of the team. |
|
|
Specifies the beginning of a code block that must be executed only once by the master thread of the team. |
|
|
Causes the program to wait until the completion of all enclosed and descendant tasks. |
|
|
Specifies a wait on the completion of child tasks generated since the beginning of the current task. |
Use this pragma to give threads global private data.
|
Pragma |
Description |
|---|---|
|
Specifies a list of globally-visible variables that will be allocated private to each thread. |
Use these pragmas to control execution on one or more coprocessors.
|
Pragma |
Description |
|---|---|
|
Creates a device-specific version of a function that can be called from a target region. This pragma only applies to Intel® MIC Architecture. |
|
|
Specifies that the iterations of one of more loops should be shared among the master threads of all thread teams in a league. |
|
|
Creates a device data environment and then executes the construct on that device. |
|
|
Creates a device data environment by making a mapping of variables from the host to the target device. |
|
|
Makes the items listed in the device data environment consistent between the device and host, in accordance with the motion clauses on the pragma. |
|
|
Creates a league of thread teams to execute the structured block in the master thread of each team. |
Use these pragmas to control execution on vector hardware.
|
Pragma |
Description |
|---|---|
|
Transforms the loop into a loop that will be executed concurrently using Single Instruction Multiple Data (SIMD) instructions. |
|
|
Creates a version of a function that can process multiple arguments using Single Instruction Multiple Data (SIMD) instructions from a single invocation from a SIMD loop. |
|
|
Specifies the beginning of a loop that can be executed concurrently using Single Instruction Multiple Data (SIMD) instructions. Each iteration of the loop is executed by one of the threads in the team. |
|
|
Specifies a parallel region that contains a loop to execute with Single Instruction Multiple Data (SIMD) instructions. |
Use these clauses to specify options in the pragmas.