aclrtSetSysParamOpt

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

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

aclError aclrtSetSysParamOpt(aclSysParamOpt opt, int64_t value)

Parameters

Parameter

Input/Output

Description

opt

Input

Runtime parameter.

value

Input

Runtime parameter value.

Returns

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