aclrtKernelArgsGetPlaceHolderBuffer

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

√

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

√

Function

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 parameter 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.