Leverage target hardware instruction set extensions
SIMD instruction set for target hardware
Since R2021b
Description
App Configuration Pane: Speed
Configuration Objects: | coder.CodeConfig | coder.EmbeddedCodeConfig
The Leverage target hardware instruction set extensions
parameter specifies the instruction sets to use to generate single instruction, multiple
data (SIMD) code for target hardware. The list of options in the
Settings section shows the dependency of the instruction sets,
where each instruction set depends on the instruction sets that precede it. The code
generator loads the selected instruction set and the instruction sets that it depends
on. For example, if you select AVX, the code generator loads
AVX, SSE4.1, SSE2, and
SSE.
If you select Auto, the code generator selects an instruction set
according to your hardware board:
MATLAB® Host Computer, Intel®, or AMD® —
SSE2ARM® —
None
See Generate SIMD Code from MATLAB Functions for Intel Platforms.
When using GPU Coder™, the code generator always disables this parameter.
Settings
AutoThe code generator selects an instruction set according to your hardware board. This value is the default value.
NoneThe code generator does not produce SIMD code.
SSEThe code generator produces SIMD code that uses the
SSEinstruction set.SSE2The code generator produces SIMD code that uses the
SSE2instruction set.SSE4.1The code generator produces SIMD code that uses the
SSE4.1instruction set.AVXThe code generator produces SIMD code that uses the
AVXinstruction set.AVX2The code generator produces SIMD code that uses the
AVX2instruction set.FMAThe code generator produces SIMD code that uses the
FMAinstruction set.AVX512FThe code generator produces SIMD code that uses the
AVX512Finstruction set.Neon v7The code generator produces SIMD code that uses the
Neon v7instruction set.
Dependencies
The list of available instruction sets depends on the value of the Hardware board parameter.
Programmatic Use
Property:
InstructionSetExtensions |
Values: 'Auto' |
'SSE' | 'SSE2' |
'SSE4.1' | 'AVX' |
'AVX2' | 'FMA' |
'AVX512F' | 'Neon v7' |
'None' |
Default: 'Auto' |
Version History
Introduced in R2021b