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® —
SSE2
ARM® —
None
See Generate SIMD Code from MATLAB Functions for Intel Platforms.
When using GPU Coder™, the code generator always disables this parameter.
Settings
Auto
The code generator selects an instruction set according to your hardware board. This value is the default value.
None
The code generator does not produce SIMD code.
SSE
The code generator produces SIMD code that uses the
SSE
instruction set.SSE2
The code generator produces SIMD code that uses the
SSE2
instruction set.SSE4.1
The code generator produces SIMD code that uses the
SSE4.1
instruction set.AVX
The code generator produces SIMD code that uses the
AVX
instruction set.AVX2
The code generator produces SIMD code that uses the
AVX2
instruction set.FMA
The code generator produces SIMD code that uses the
FMA
instruction set.AVX512F
The code generator produces SIMD code that uses the
AVX512F
instruction set.Neon v7
The code generator produces SIMD code that uses the
Neon v7
instruction 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