aclrtKernelArgsParaUpdate

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

Updates the value of an argument appended by the aclrtKernelArgsAppend API.

Prototype

1
aclError aclrtKernelArgsParaUpdate(aclrtArgsHandle argsHandle, aclrtParamHandle paramHandle, void *param, size_t paramSize)

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.

param

Input

The address of the memory where the parameter value is to be updated.

This is the host memory address.

paramSize

Input

Memory size, in bytes.

Returns

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