Kernel name prefix
Prepend this name to generated kernels
Model Configuration Pane: Code Generation / GPU Code
Description
The Kernel name prefix parameter specifies name prefixes for all the kernels in the generated code.
Dependencies
This parameter requires a GPU Coder™ license.
To enable this parameter, select Generate GPU code on the Code Generation pane.
Settings
'' (default) | argument-listSpecify a custom name prefix for all the kernels in the generated code. For example, using the value 'CUDA_' creates kernels with names CUDA_kernel1, CUDA_kernel2, and so on. If no name is provided, GPU Coder prepends the kernel name with the name of the entry-point function. Kernel names can contain upper-case letters, lowercase letters, digits 0–9, and underscore character _. GPU Coder removes unsupported characters from the kernel names and appends alpha to prefixes that do not begin with an alphabetic letter.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Programmatic Use
Parameter: GpuKernelNamePrefix |
| Type: character vector |
Value: '' or a valid user-specified name |
Default: '' |
Version History
Introduced in R2020b