aclrtCtxGetSysParamOpt
Description
Obtains system parameter values in the current context.
Restrictions
System parameters do not have default values. If you call this API to obtain system parameter values without calling aclrtCtxSetSysParamOpt to set system parameter values, a failure message will be returned.
Prototype
aclError aclrtCtxGetSysParamOpt(aclSysParamOpt opt, int64_t *value)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
opt |
Input |
System parameter. |
value |
Output |
Pointer to the memory for storing system parameter values. |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.
Parent topic: Context Management