Main Content

Kernel name prefix

Custom kernel name prefixes

Description

App Configuration Pane: GPU Code

Configuration Objects: coder.gpuConfig

The Kernel name prefix parameter specifies 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 uppercase letters, lowercase letters, digits 0–9, and underscore character _. GPU Coder removes unsupported characters from the kernel names and prepends alpha to prefixes that do not begin with an alphabetic letter.

Settings

no default

Enter the prefix for custom kernel name.

Programmatic Use

Property: KernelNamePrefix
Values: "" | character vector
Default: ""

Version History

Introduced in R2018a