aclrtCtxSetSysParamOpt

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

Sets the value of a system parameter in the current context. If this API is called for multiple times, the value set in the last call is used. After this API is called to set the runtime parameter value, you can call aclrtCtxGetSysParamOpt to obtain the parameter value.

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

Prototype

1
aclError aclrtCtxSetSysParamOpt(aclSysParamOpt opt, int64_t value)

Parameters

Parameter

Input/Output

Description

opt

Input

System parameter. For details about the type definition, see aclSysParamOpt.

value

Input

System parameter value.

Returns

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