Function: ctx_set_sys_param_opt
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Sets system parameter values in the current context.
Prototype
- C Prototype
1aclError aclrtCtxSetSysParamOpt(aclSysParamOpt opt, int64_t value)
- Python Function
1ret = acl.rt.ctx_set_sys_param_opt(opt, value)
Parameter Description
Parameter |
Description |
|---|---|
opt |
Int, system parameter. For details, see aclSysParamOpt. |
value |
Int, system parameter value. |
Return Value Description
Return Value |
Description |
|---|---|
ret |
Int, error code: 0 on success; else, failure. |
Restrictions
If this API is called for multiple times, the last setting is used.
Parent topic: Context Management