Function: get_sys_param_opt
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
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
1aclErroraclrtGetSysParamOpt(aclrtSysParamOpt opt, int64_t *value)
- Python Function
1value, 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. |