aclrtCtxSetSysParamOpt
Applicable Products
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function
Sets the value of a system parameter in the current context. If this API is called multiple times, the value set in the last call applies. After this API is called to set a runtime parameter, you can call aclrtCtxGetSysParamOpt to obtain the parameter value.
This API applies to contexts, whereas aclrtSetSysParamOpt applies to processes.
Prototype
1 | aclError aclrtCtxSetSysParamOpt(aclSysParamOpt opt, int64_t value) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
opt |
Input |
System parameter. For details about the type definition, see aclSysParamOpt. |
value |
Input |
Parameter value. |
Returns
0 on success; otherwise, failure. For details, see aclError.