Function: get_sys_param_opt

Applicability

Product

Supported (√/x)

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

Function Usage

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

If acl.rt.set_sys_param_opt 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 out-of-bounds memory access detection are disabled. After acl.rt.set_sys_param_opt is called to set the runtime parameter value, you can call acl.rt.get_sys_param_opt to obtain the parameter value.

Prototype

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

Parameter Description

Parameter

Description

opt

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

Return Value Description

Return Value

Description

value

Int, runtime parameter value.

ret

Int, 0 on success; else, failure.