Main Content
Include error checks in generated code
Include error checks in GPU code at runtime
Since R2020b
Model Configuration Pane: Code Generation / GPU Code
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.
To enable this parameter, select Generate GPU code on the Code Generation pane.
Settings
off (default) | on
- 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
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |
Programmatic Use
Parameter: GPUErrorChecks |
Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
Version History
Introduced in R2020b