Processor Specific Optimisation

Argument

Comment

-xtarget Generates specialized code for any Intel® processor that supports the instruction set specified by target. The executable will not run on non-Intel processors or on Intel processors that support only lower instruction sets. Possible values of target, from highest to lowest instruction set: CORE-AVX512, MIC-AVX512, CORE-AVX2, AVX, SSE4.2, ATOM_SSE4.2, SSE4.1, ATOM_SSSE3, SSSE3, SSE3, SSE2
-mtarget Generates specialized code for any Intel processor or compatible, non-Intel processor that supports the instruction set specified by target. Running the executable on an Intel processor or compatible, non-Intel processor that does not support the specified instruction set may result in a run-time error. Possible values of target: AVX, SSE4.2, SSE4.1, SSSE3, SSE3, SSE2, IA32
-xhost Generates instruction sets up to the highest that is supported by the compilation host. On Intel processors, this corresponds to the most suitable -x option; on compatible, non-Intel processors, this corresponds to the most suitable of the -m options IA32, SSE2 or SSE3.
-axtarget May generate specialized code for any Intel processor that supports the instruction set specified by target, while also generating a default code path. Possible values of target: CORE-AVX512, MIC-AVX512, CORE-AVX2, AVX, SSE4.2, SSE4.1, SSSE3, SSE3, SSE2 Multiple values, separated by commas, may be used to tune for additional Intel processors in the same executable, e.g. SSE4.2. The default code path will run on any Intel or compatible, non-Intel processor that supports at least SSE2, but may be modified by using in addition a -x or -m switch.

Supported By

File Browser Reference
Department FHERIS
University of Galway
HEA Logo