Main Content

GPU acceleration

Description

Speed up the execution of MATLAB Function block on NVIDIA® GPUs by generating CUDA® code. This option requires a GPU Coder™ license.

Category: Simulation Target

Settings

Default: Off

On

Enables simulation acceleration by using GPU Coder. When this option is on, the software generates CUDA MATLAB® executable (MEX) code from the block and dynamically links the generated code to Simulink® during simulation.

Off

Disables simulation acceleration by using GPU Coder.

Command-Line Information

Parameter: GPUAcceleration
Type: character vector
Value: 'on' | 'off'
Default: 'off'

Recommended Settings

ApplicationSetting
DebuggingOn
TraceabilityNo impact
EfficiencyNo impact
Safety precautionOn

Related Topics