Function: set_op_execute_time_out
Applicable Products
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Sets the timeout interval (in seconds) for operator execution. If this API is called multiple times in a process, the last configured timeout is used. If a timeout interval is carried during operator delivery, the timeout interval takes precedence over the timeout interval set by this API.
Prototype
- C Prototype
1aclError aclrtSetOpExecuteTimeOut(uint32_t timeout)
- Python Function
1ret = acl.rt.set_op_execute_time_out(timeout)
Parameters
Parameter |
Description |
|---|---|
timeout |
Int, timeout interval, in seconds. 0 means to use the maximum timeout interval. |
Return Values
Return Value |
Description |
|---|---|
ret |
Int, error code. 0 on success; else, failure. |
Restrictions
- If this API is not called, the default timeout interval for operator execution is as follows.
Version
Default Timeout Interval of AI Core Operators
Default Timeout Interval of AI CPU Operators
Ascend 950PR /Ascend 950DT 1,091 seconds
28 seconds
Atlas inference products 547 seconds
28 seconds
Atlas training products 68 seconds
28 seconds
Atlas A2 training products /Atlas A2 inference products 1,091 seconds
28 seconds
Atlas 200I/500 A2 inference products 1,091 seconds
28 seconds
Atlas A3 training products /Atlas A3 inference products 1,091 seconds
60
- The maximum timeout of AI Core and AI CPU operators varies according to the architecture of the product model.
Version
Maximum Timeout Interval of AI Core Operators
Maximum Timeout Interval of AI CPU Operators
Atlas inference products 547 seconds
Not supported
Atlas training products 2,176 seconds
2,176 seconds
Atlas A2 training products /Atlas A2 inference products 1,091 seconds
1,091 seconds
Atlas 200I/500 A2 inference products 1,091 seconds
1,091 seconds
Atlas A3 training products /Atlas A3 inference products 1,091 seconds
1,091 seconds