Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public
Document Table of Contents

m, Qm

Tells the compiler which instruction set extensions based on CPUID bits it may generate.

Syntax

Linux:

-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.

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.

NOTE:

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).

NOTE:

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

None

Alternate Options

None

See Also