Function: set_kernel_args
C Prototype |
aclError aclopSetKernelArgs(aclopKernelDesc *kernelDesc, const char *kernelId, uint32_t blockDim, const void *args, uint32_t argSize) |
---|---|
Python Function |
ret = acl.op.set_kernel_args(kernel_desc, kernel_id, block_dim, args, arg_size) |
Function Usage |
Sets tiling arguments and number of blocks for concurrent execution in the dynamic shape scenario. |
Input Description |
kernel_desc: int, Kernel description buffer, pointer to the aclopKernelDesc type. kernel_id: str, kernel ID. It must be the same as that passed to the acl.op.create.kernel call. block_dim: int, number of blocks for kernel concurrent execution. bin_data: int, memory address of the operator kernel file. bin_size: int, memory size of the operator kernel file, in bytes. args: int, Tiling argument. arg_size: int, Tiling argument size, in bytes. |
Return Value |
ret: int, error code.
|
Restrictions |
None |
Precautions |
None |