Function: get_sys_param_opt

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 Value

Return Value

Description

value

Int, runtime parameter value.

ret

Int, 0 on success; else, failure.