aclrtCtxGetSysParamOpt

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

Obtains system parameter values in the current context.

System parameters do not have default values. If you call this API to obtain system parameter values without calling aclrtCtxSetSysParamOpt to set system parameter values, a failure message will be returned.

Prototype

aclError aclrtCtxGetSysParamOpt(aclSysParamOpt opt, int64_t *value)

Parameters

Parameter

Input/Output

Description

opt

Input

System parameter.

value

Output

Pointer to the memory for storing system parameter values.

Returns

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