Main Content

Include error checks in generated code

Description

Add run-time error-checking functionality to the generated CUDA® code.

Category: Code Generation > GPU Code

Settings

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.

Dependencies

  • This parameter requires a GPU Coder™ license.

  • To enable this parameter, select Generate GPU code on the Code Generation pane.

Command-Line Information

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

Related Topics