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
Default: Off
Executes OpenMP parallel for-loops by using multiple threads.
Executes for-loops using a single thread.
This parameter requires that Embedded Coder® and Parallel Computing Toolbox™ be installed.
Parameter:
MultiThreadedLoops |
Value:
'on' | 'off' |
Default:
'off' |
Application | Setting |
---|---|
Debugging | Off |
Traceability | Off |
Efficiency | On (execution speed) |
Safety precaution | No impact |