aclrtKernelArgsGetPlaceHolderBuffer

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Description

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

Prototype

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

Parameters

Parameter

Input/Output

Description

argsHandle

Input

Handle to the argument list. For details about the type definition, see aclrtArgsHandle.

paramHandle

Input

Parameter handle. For details about the type definition, see aclrtParamHandle.

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; otherwise, failure. For details, see aclError.