Main Content

Kernel name prefix

Prepend this name to generated kernels

Since R2020b

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-list

Specify 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

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

Parameter: GpuKernelNamePrefix
Type: character vector
Value: '' or a valid user-specified name
Default: ''

Version History

Introduced in R2020b