ICPU_RUN_KF

Function Usage

Functions as the CPU commissioning entry and completes calls to CPU operator programs during verification of the CPU-side operation of the kernel function.

Prototype

#define ICPU_RUN_KF(func, blkdim, ...)

Parameters

Parameter

Input/Output

Description

func

Input

Pointer to the operator kernel function.

blkdim

Input

Number of operator cores (corenum).

...

Input

Fill in all input and output parameters in sequence.

Returns

None

Availability

Atlas Training Series Product

Constraints

Except func and blkdim, other variables must be pointers to the shared memory allocated by GmAlloc. The number and sequence of input parameters must be the same as those of the kernel function.

Example

ICPU_RUN_KF(sort_kernel0, coreNum, (uint8_t*)x, (uint8_t*)y);