Generate parallel for-loops
Description
Specify, whether for-loops in the generated code are implemented in parallel for the
MATLAB Function block, the MATLAB System block, and the
For Each Subsystem block with large input data sizes. The MATLAB
Function block and MATLAB System block are executed in parallel
when the MATLAB code contains parfor
-loops instead of traditional
for
-loops.
Category: Optimization
Settings
Default: Off
On
Executes OpenMP parallel for-loops by using multiple threads.
Off
Executes for-loops using a single thread.
Dependency
This parameter requires that Embedded Coder® and Parallel Computing Toolbox™ be installed.
Command-Line Information
Parameter:
MultiThreadedLoops |
Value:
'on' | 'off' |
Default:
'off' |
Recommended Settings
Application | Setting |
---|---|
Debugging | Off |
Traceability | Off |
Efficiency | On (execution speed) |
Safety precaution | No impact |