Optimize reductions
Generate SIMD code for reduction operations | Parallelize for-loops performing reduction operations
Since R2022a
Description
App Configuration Pane: Speed
Configuration Objects: coder.MexCodeConfig
| coder.CodeConfig
| coder.EmbeddedCodeConfig
To generate SIMD code for reduction operations.
Value | Description |
---|---|
false | This value is the default value. Code generator does not generate SIMD code for reduction operations. |
true | To use this parameter, you must select an instruction set
for the |
See Generate SIMD Code from MATLAB Functions for Intel Platforms.
To generate parallel for
-loops performing reduction operations, use
one of the values as specified in this table.
Value | Description |
---|---|
false | This value is the default value. Code generator
does not automatically parallelize |
true | The code generator automatically parallelizes
|
See Reduction Operations Supported for Automatic Parallelization of for-loops.
Note
Vectorizing and parallelizing reduction operations might introduce slight numerical deviations. For more information, see Handling Overflow in Automatic Parallelization of for-loops.
Settings
- Off
This value is the default value.
- On
Programmatic Use
Property:
OptimizeReductions |
Values: 'false' |
'true' |
Default: 'false' |
Version History
Introduced in R2022a