aclrtGetSysParamOpt

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 the value of a runtime parameter from the current process.

If aclrtSetSysParamOpt is not called to set the runtime parameter value, you can directly call this API to obtain the default value of each parameter, which is 0, indicating that deterministic computing and memory access violation detection are disabled. After aclrtSetSysParamOpt is called to set the runtime parameter value, you can call aclrtGetSysParamOpt to obtain the parameter value.

Prototype

1
aclError aclrtGetSysParamOpt(aclSysParamOpt opt, int64_t *value)

Parameters

Parameter

Input/Output

Description

opt

Input

Runtime parameter. For details, see aclSysParamOpt.

value

Output

Runtime parameter value.

Returns

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