Intel® C++ Compiler 18.0 Developer Guide and Reference
Causes the compiler to flag file-scope functions and data objects in the source file with the offload attribute target(mic) or target(gfx). This option only applies when targeting Intel® Xeon Phi™ products and Intel® Graphics Technology. This is a deprecated option. There is no replacement option.
Only available when targeting Intel® Xeon Phi™ products, on Intel® 64 architecture targeting Intel® Graphics Technology, or when targeting Intel® Graphics Technology running on IA-32 architecture
Linux: | -qoffload-attribute-target=target-name |
macOS: | None |
Windows: | /Qoffload-attribute-target:target-name |
target-name |
Is a specific target or application. The supported values for this argument are:
|
OFF |
The compiler does not flag file-scope functions and data objects in the source file with the offload attribute target(mic) or target(gfx). |
This option causes the compiler to flag file-scope functions and data objects in the source file with the offload attribute target(mic) or target(gfx).
This option is similar to using the pragma offload_attribute target(mic) to set the attribute target(mic), or offload_attribute target(gfx) to set the attribute target(gfx), for all functions and data objects in the file scope.
Target declspecs/attributes on individual declarations take precedence over any offload_attribute pragma in effect, and declspecs, attributes, and pragmas all take precedence over this option.
None
Consider the following individual source files:
If you compile them as follows, it will properly place an instance of subr in the host (CPU) and target binaries: