Enable automatic parallelization
R2026bAutomatic parallelization of for loops
Description
App Configuration Pane: Speed
Configuration Objects: coder.MexCodeConfig | coder.CodeConfig | coder.EmbeddedCodeConfig
Automatic parallelization of for loops.
When using GPU Coder™, the code generator always enables
automatic parallelization of for loops.
Dependencies
To enable this parameter, select the Enable OpenMP library if possible and Enable dynamic memory allocation check boxes.
Settings
- Off
Code generator does not automatically parallelize
forloops.- On
This value is the default value.
The code generator automatically parallelizes
forloops in the generated code. Automatic parallelization can significantly improve the execution speed of the generated code. See Automatic Parallelization of for-Loops in the Generated Code.
Programmatic Use
Property:
EnableAutoParallelization |
Values: false |
true |
Default: true |
Version History
Introduced in R2021a