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.
m, Qm
Tells the compiler which instruction set extensions based on CPUID bits it may generate.
Syntax
Linux: |
-mcode |
Windows: |
/Qmcode |
Arguments
code |
Indicates the instruction set extensions based on CPUID bits that the compiler may generate. Many of the Clang settings for option -m are supported. For more information on Clang settings for option -m, see the Clang documentation. |
Default
varies |
If option arch is not specified, the default target architecture supports Intel® SSE2 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.
IDE Equivalent
Alternate Options
None