目录

GetKernelName

Function Description

Obtains the name of the current kernel.

Function Prototype

const char *GetKernelName() const

Parameters

None

Return Value

Name of the current kernel.

Restrictions

None

Calling Example

// Assume that **KernelContext *context** already exists.
auto extend_context = reinterpret_cast<ExtendedKernelContext *>(context);
auto kernel_name = extend_context->GetKernelName();