Function: set_sys_param_opt
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Sets the value of a runtime parameter in the current process. After this API is called to set the runtime parameter value, you can call acl.rt.get_sys_param_opt to obtain the parameter value.
This API applies to processes, whereas acl.rt.ctx_set_sys_param_opt applies to contexts.
Prototype
- C Prototype
1aclErroraclrtSetSysParamOpt(aclrtSysParamOpt opt, int64_t value)
- Python Function
1ret = acl.rt.set_sys_param_opt(opt, value)
Parameter Description
Parameter |
Description |
|---|---|
opt |
Int, runtime system parameter. For details, see aclSysParamOpt. |
value |
Int, runtime parameter value. |
Return Value Description
Return Value |
Description |
|---|---|
ret |
Int, 0 on success; else, failure. |
Restrictions
If this API is called for multiple times, the last setting is used.
Parent topic: Runtime Configuration