aclrtGetSysParamOpt
Description
Obtains the value of a runtime parameter of the current process.
If aclrtSetSysParamOpt 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 memory access violation detection are disabled. After aclrtSetSysParamOpt is called to set the runtime parameter value, you can call aclrtGetSysParamOpt to obtain the parameter value.
Prototype
aclError aclrtGetSysParamOpt(aclSysParamOpt opt, int64_t *value)
Command-Line Options
Parameter |
Input/Output |
Description |
|---|---|---|
opt |
Input |
Runtime parameter. |
value |
Output |
Runtime parameter value. |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.
Parent topic: Runtime Configuration