目录

GetKernelType

Function Description

Obtains the type of the current kernel.

Function Prototype

const char *GetKernelType() const

Parameters

None

Return Value

Type of the current kernel.

Restrictions

None

Calling Example

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