Intel® C++ Compiler 19.0 Developer Guide and Reference
Lets you specify the mode for offloading or tell the compiler to ignore language constructs for offloading. This option only applies when targeting Intel® Xeon Phi™ products. This is a deprecated option. There is no replacement option.
Keywords mandatory and optional: Only available when targeting Intel® Xeon Phi™ products
/Qoffload- and /Qoffload:none: Only available when targeting Intel® Xeon Phi™ products
Linux: | -qoffload[=keyword] -qno-offload |
macOS: | None |
Windows: | /Qoffload[:keyword] /Qoffload- |
keyword |
Specifies the mode for offloading or it disables offloading. Possible values are:
|
mandatory |
The compiler recognizes language constructs for offloading if they are specified. If option -qoffload (Linux*) or /Qoffload (Windows*) is specified with no keyword, the default is mandatory. |
This option lets you specify the mode for offloading or tell the compiler to ignore language constructs for offloading.
Option -q[no-]offload is the replacement option for -[no-]offload, which is deprecated.
If no -qoffload (Linux*) or /Qoffload (Windows*) option appears on the command line, then offload pragmas are processed and:
The mandatory or optional clauses are obeyed if present
If no mandatory or optional clause is present, the offload is mandatory
If any of the following appears on the command line, then offload pragmas are ignored:
Linux* systems: -qoffload=none or -qno-offload
Windows* systems: /offload:none or /Qoffload-
However, OpenMP* pragmas for processor control (for example, omp target) are recognized if the [q or Q]openmp option is specified, regardless of whether or not offload pragmas are recognized or ignored.
If keyword mandatory or optional appears for [Q]offload, then offload pragmas are processed and:
The mandatory or optional clauses are obeyed, regardless of the -qoffload (Linux*) or /Qoffload (Windows*) keyword
If no mandatory or optional clause is present, then the -qoffload (Linux*) or /Qoffload (Windows*) keyword is obeyed
If the status clause is specified for an offload pragma, it affects run-time behavior.
Visual Studio: Code Generation [Intel C++] > Offload Constructs
Eclipse: Language > Offload Constructs
Xcode: None
None