aclmdlRIKernelTaskParams

1
2
3
4
5
6
7
8
9
typedef struct aclmdlRIKernelTaskParams {
    aclrtFuncHandle funcHandle;
    aclrtLaunchKernelCfg* cfg;
    void* args;
    uint32_t isHostArgs;
    size_t argsSize;
    uint32_t numBlocks;
    uint32_t rsv[10];
} aclmdlRIKernelTaskParams;

Member

Description

funcHandle

Kernel function handle. For the type definition, see aclrtFuncHandle.

cfg

Configuration information that delivers the operator task. For the type definition, see aclrtLaunchKernelCfg.

args

Pointer to the address that stores all input arguments of the kernel function.

isHostArgs

Memory attribute of args. This parameter has a fixed value of 0 in the query API.

The options are as follows:

  • 0: device memory
  • 1: host memory

argsSize

Memory size of args, in bytes.

numBlocks

Number of cores on which the kernel function will be executed.

rsv

Reserved.