Function: get_op_timeout_interval
Applicable Products
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Obtains the minimum interval (in microseconds) supported by the hardware for operator timeout configuration.
Prototype
- C Prototype
1aclError aclrtGetOpTimeoutInterval(uint64_t *interval)
- Python Function
1interval, ret = acl.rt.get_op_timeout_interval()
Parameters
None
Return Values
Parameter |
Description |
|---|---|
interval |
Int, minimum interval, in microseconds. The timeout that can be configured and applied is "interval × N". N is an integer of [1, 254]. If the configured timeout is not equal to "interval × N", the timeout is rounded up to "interval × N". For example, if interval is 100 microseconds and the configured timeout is 50 microseconds, the actual timeout is 100 microseconds (100 × 1). If the user-defined timeout is 30,000 microseconds, the actual timeout is 25,400 microseconds (100 × 254). |
ret |
Int, 0 on success; else, failure. |