Intel® oneAPI DPC++/C++ Compiler
Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
Pragmas
Pragmas are directives that provide instructions to the compiler for use in specific cases. For example, you can use the novector pragma to specify that a loop should never be vectorized. The keyword #pragma is standard in the C++ language, but individual pragmas are machine-specific or operating system-specific, and vary by compiler.
Some pragmas provide the same functionality as compiler options. Pragmas override behavior specified by compiler options.
Some pragmas are available for both Intel® and non-Intel microprocessors but they may perform additional optimizations for Intel® microprocessors than they perform for non-Intel microprocessors. Refer to the individual pragma name for detailed description.
Details about the Intel® oneAPI DPC++/C++ Compiler pragmas are specified in these topics:
Intel-specific Pragmas - Information about pragmas developed or modified by Intel to work specifically with the Intel oneAPI DPC++/C++ Compiler
Supported OpenMP Pragmas - Information about supported OpenMP* pragmas
Pragmas Compatible with Other Compilers - Information about pragmas developed by external sources that are supported by the Intel oneAPI DPC++/C++ Compiler for compatibility reasons
Use Pragmas
Enter pragmas into your C++ source code using the following syntax:
#pragma <pragma name>