aclrtCtxGetSysParamOpt

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

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

1
aclError aclrtCtxGetSysParamOpt(aclSysParamOpt opt, int64_t *value)

Parameters

Parameter

Input/Output

Description

opt

Input

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

value

Output

Pointer to the memory for storing system parameter values.

Returns

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