ICPU_SET_TILING_KEY
Functions
Specifies the tilingKey used for the current CPU debugging. During debugging, only the selection to which tilingKey corresponds in the operator kernel function is executed.
Prototype
1 | ICPU_SET_TILING_KEY(tilingKey) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
tilingKey |
Input |
Specifies the tilingKey used for the current CPU debugging. 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 debugging in this case, an alarm will be displayed to notify you of the tilingKey value being 0 and the debugging continues. If the kernel function has tilingKey branches, only the selection 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 debugging continues. If the input is 0, the selection 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.
Examples
1 2 | ICPU_SET_TILING_KEY(10086); ICPU_RUN_KF(sort_kernel0, coreNum, (uint8_t*)x, (uint8_t*)y); |
Parent topic: CPU twin debugging