Visible to Intel only — GUID: GUID-B4670EED-D317-46D4-9635-618B36C827C3
Visible to Intel only — GUID: GUID-B4670EED-D317-46D4-9635-618B36C827C3
m, Qm
Tells the compiler which instruction set extensions based on CPUID bits it may generate.
Syntax
Linux: |
-mcode |
macOS: |
-mcode |
Windows: |
/Qmcode (ifx) None (ifort) |
Arguments
code |
Indicates the instruction set extensions based on CPUID bits that the compiler may generate. ifx: Many of the Clang settings for option -m are supported. For more information on Clang settings for -m, see the Clang documentation. ifort: Many of the gcc settings for option -m are supported. For more information on gcc settings for -m, see the gcc documentation. |
Default
varies |
If option arch is not specified, the default target architecture supports Intel® SSE2 instructions. On macOS, the default target architecture supports Intel® SSSE3 instructions. |
Description
This option tells the compiler which instruction set extensions based on CPUID bits it may generate.
Code generated with these options should execute on any compatible, non-Intel processor with support for the corresponding instruction set.
Options -m and /Qm enable specific sets of instructions based on CPUID bits. If you want to enable all instructions supported by a named microarchitecture, you should use option -march (Linux) or /arch (Windows).
This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation. Offloading can only be enabled when using ifx.
IDE Equivalent
Alternate Options
None