aclopSetKernelArgs
Description
Sets tiling arguments and number of times the AI Cores will be kickstarted for concurrent execution in dynamic shape scenarios.
Prototype
aclError aclopSetKernelArgs(aclopKernelDesc *kernelDesc,
const char *kernelId,
uint32_t blockDim,
const void *args,
uint32_t argSize)
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
kernelDesc |
Input |
Kernel description buffer, which is a pointer to the aclopKernelDesc type. typedef struct aclopKernelDesc aclopKernelDesc; |
|
kernelId |
Input |
Pointer to the kernel ID, which must be the same as that passed to the aclopCreateKernel call. |
|
blockDim |
Input |
Number of times the AI Cores will be kickstarted for concurrent kernel execution. Keep the setting be consistent with that used in the TIK operator implementation. |
|
args |
Input |
Pointer to the tiling arguments. |
|
argSize |
Input |
Memory size in bytes of the tiling arguments. |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.