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 parallel
execution for the MATLAB Function and MATLAB System block
usesparfor
-loops in the code 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 |