Main Content

Include error checks in generated code

Include error checks in GPU code at runtime

Since R2020b

Model Configuration Pane: Simulation Target / GPU Acceleration

Description

The Include error checks in generated code parameter specifies whether to add run-time error-checking functionality to the generated CUDA® code.

Dependencies

  • This parameter requires a GPU Coder™ license.

  • This parameter is enabled by GPU acceleration on the Simulation Target pane.

Settings

off (default) | on

Default: Off

On

Generates code with error-checking for CUDA API and kernel calls and performs run-time checks.

Off

The generated CUDA code does not contain error-checking functionality.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

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

Version History

Introduced in R2020b