aclrtKernelArgsGetPlaceHolderBuffer

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Description

Obtains the memory address to which the paramHandle placeholder points based on the memory size specified by the user.

Prototype

aclError aclrtKernelArgsGetPlaceHolderBuffer(aclrtArgsHandle argsHandle, aclrtParamHandle paramHandle, size_t dataSize, void **bufferAddr)

Parameters

Parameter

Input/Output

Description

argsHandle

Input

Handle to the argument list.

paramHandle

Input

Parameter handle.

The value of paramHandle must be the same as that of paramHandle in aclrtKernelArgsAppendPlaceHolder.

dataSize

Input

Memory size.

bufferAddr

Output

Memory address to which the paramHandle placeholder points.

You need to manage the data in the memory, but not the memory lifecycle.

Returns

0 on success; else, failure. For details, see aclError.