Intel-Specific Pragma Reference
- alloc_section
Allocates variable in specified section. Controls section attribute specification for variables.
- cilk grainsize
Specifies the grain size for one cilk_for loop.
- distribute_point
Instructs the compiler to prefer loop distribution at the location indicated.
- inline, noinline, forceinline
Specify inlining of all calls in a statement.
- intel_omp_task
For Intel legacy tasking, specifies a unit of work, potentially executed by a different thread.
- intel_omp_taskq
For Intel legacy tasking, specifies an environment for the while loop in which to enqueue the units of work specified by the enclosed task pragma.
- ivdep
Instructs the compiler to ignore assumed vector dependencies.
- loop_count
Specifies the iterations for the for loop.
- nofusion
Prevents a loop from fusing with adjacent loops.
- novector
Specifies that the loop should never be vectorized.
- offload
Executes the statements on the target. This pragma only applies to Intel® MIC Architecture.
- offload_attribute
Specifies that all functions and variables declared subsequent to the pragma are available on the coprocessor. This pragma only applies to Intel® MIC Architecture.
- offload_transfer
Initiates asynchronous data transfer, or initiates and completes synchronous data transfer. This pragma only applies to Intel® MIC Architecture.
- offload_wait
Specifies a wait for a previously initiated asynchronous activity. This pragma only applies to Intel® MIC Architecture.
- omp atomic
Ensures that a specific memory location is updated atomically, which prevents the possibility of multiple, simultaneous reading and writing of threads.
- omp task
Defines a task region.
- omp taskyield
Specifies that the current task can be suspended at this point, in favor of execution of a different task.
- omp taskwait
Specifies a wait on the completion of child tasks generated since the beginning of the current task
- optimize
Enables or disables optimizations for code after this pragma till another optimize pragma or end of the translation unit.
- optimization_level
Controls optimization for one function or all functions after its first occurrence.
- optimization_parameter
Tells the compiler to generate code specialized for a particular processor, at the function level, similar to the -m (/arch) options.
- parallel/noparallel
The parallel pragma helps the compiler resolve dependencies thereby facilitating auto-parallelization of the immediately following loop. The noparallel pragma prevents auto-parallelization of the immediately following loop.
- prefetch/noprefetch
Invites the compiler to issue data prefetches from memory (prefetch) or disables data prefetching (noprefetch). This pragma only applies to Intel® MIC Architecture.
- simd
The simd pragma enforces vectorization of loops.
- unroll/nounroll
Indicates to the compiler to unroll or not to unroll a counted loop.
- unroll_and_jam/nounroll_and_jam
Hints to the compiler to enable or disable loop unrolling and jamming. These pragmas can only be applied to iterative FOR loops.
- unused
Describes variables that are unused (warnings not generated).
- vector
Indicates to the compiler that the loop should be vectorized according to the argument keywords always/aligned/assert/unaligned/nontemporal/temporal.