aclrtSetSysParamOpt

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

Function

Sets the value of a runtime parameter of the current process. After this API is called to set the runtime parameter value, you can call aclrtGetSysParamOpt to obtain the parameter value.

This API applies to processes, whereas aclrtCtxSetSysParamOpt applies to contexts.

Prototype

1
aclError aclrtSetSysParamOpt(aclSysParamOpt opt, int64_t value)

Parameters

Parameter

Input/Output

Description

opt

Input

Runtime parameter. For details, see aclSysParamOpt.

value

Input

Runtime parameter value.

Returns

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