Documentation

Generate parallel for-loops

Description

Specify, whether for-loops in the generated code are implemented in parallel for theMATLAB Functionblock ,theMATLAB System块,For Each Subsystemblock with large input data sizes. The parallel execution for theMATLAB FunctionandMATLAB Systemblock usesparfor-loops in the code instead of traditionalfor-loops.

Category:Optimization

Settings

Default:Off

On

执行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

Related Topics