Function: get_sys_param_opt

Applicable Products

Product

Supported (√/x)

Ascend 950PR/Ascend 950DT

√

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas training products

√

Atlas inference products

√

Atlas 200I/500 A2 inference products

√

Description

Obtains the value of a runtime parameter of the current process.

If you do not call the acl.rt.set_sys_param_opt API to set the runtime parameter values, you can directly call this API to obtain the default value 0 of each parameter, indicating that deterministic computing or out-of-bounds memory access detection is disabled. After the acl.rt.set_sys_param_opt API is called to set the runtime parameter values, you need to call the acl.rt.get_sys_param_opt API to obtain the parameter values.

Prototype

  • C Prototype
    1
    aclError aclrtGetSysParamOpt(aclrtSysParamOpt opt, int64_t *value)
    
  • Python Function
    1
    value, ret = acl.rt.get_sys_param_opt(opt)
    

Parameters

Parameter

Description

opt

Int, runtime system parameter. For details, see aclSysParamOpt.

Return Values

Return Value

Description

value

Int, runtime parameter value.

ret

Int, 0 on success; else, failure.