Main Content

Kernel name prefix


Specify custom kernel name prefixes.

Category: Code Generation > GPU Code


Default: ''

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.


  • This parameter requires a GPU Coder license.

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

Command-Line Information

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

Related Topics