ICPU_SET_TILING_KEY

Function Usage

Specifies the tilingKey used for the current CPU commissioning. During commissioning, only the branch to which tilingKey corresponds in the operator kernel function is executed.

Prototype

ICPU_SET_TILING_KEY(tilingKey)

Parameters

Parameter

Input/Output

Description

tilingKey

Input

Specifies the tilingKey used for the current CPU commissioning. The parameter type is int32_t.

Returns

None

Constraints

  • If you do not use this API to set the tilingKey, its default value 0 is used. During commissioning in this case, an alarm will be displayed to notify you of the tilingKey value being 0 and the commissioning continues. If the kernel function has tilingKey branches, only the branch whose tilingKey is 0 is executed, and other tilingKey branches are not executed.
  • You are advised to set tilingKey to a positive integer. If tilingKey is set to a negative number or 0, an alarm is reported and the commissioning continues. If the input is 0, the branch whose tilingKey is 0 is executed. If the input is a negative number, undefined behavior occurs.
  • This API must be called before ICPU_RUN_KF.

Example

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