Visible to Intel only — GUID: GUID-A5A2EA7B-A70F-4BBB-A698-D4E969AB5133
Visible to Intel only — GUID: GUID-A5A2EA7B-A70F-4BBB-A698-D4E969AB5133
mintrinsic-promote, Qintrinsic-promote
Enables functions containing calls to intrinsics that require a specific CPU feature to have their target architecture automatically promoted to allow the required feature.
Syntax
Linux: |
-mintrinsic-promote |
Windows: |
/Qintrinsic-promote |
Arguments
None
Default
OFF |
If this option is not specified and you call an intrinsic that requires a CPU feature not provided by the specified (or default) target processor, an error will be reported. |
Description
This option enables functions containing calls to intrinsics that require a specific CPU feature to have their target architecture automatically promoted to allow the required feature.
All code within the function will be compiled with that target architecture, and the resulting code for such functions will not execute correctly on processors that do not support the required feature.
You are responsible for guarding the execution path at runtime so that such functions are not dynamically reachable when the program is run on processors that do not support the required feature.
We recommend that you use __attribute__((target(<required target>))) to mark functions that are intended to be executed on specific target architectures instead of using this option. This attribute will provide significantly better compile time error checking.
This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation.
IDE Equivalent
Alternate Options
None