aclrtSetOpExecuteTimeOut
Applicable Products
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function
Sets the timeout interval (in seconds) for operator execution. If this API is called multiple times in a process, the last configured interval is used. If a timeout interval is carried during operator delivery, the timeout interval takes precedence over the timeout interval set by this API.
For the
Prototype
1 | aclError aclrtSetOpExecuteTimeOut(uint32_t timeout) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
timeout |
Input |
Timeout interval, in seconds. 0 means to use the maximum timeout interval. |
Returns
0 on success; otherwise, failure. For details, see aclError.
Restrictions
- If this API is not called, the default timeout interval of AI Core and AI CPU operators varies depending on the product model.
- For the
Ascend 950PR /Ascend 950DT , the default timeout interval of AI Core operators is 1,091s, and that of AI CPU operators is 28s. - For the
Atlas A3 training products /Atlas A3 inference products , the default timeout interval of AI Core operators is 1,091s, and that of AI CPU operators is 60s. - For the
Atlas A2 training products /Atlas A2 inference products , the default timeout interval of AI Core operators is 1,091s, and that of AI CPU operators is 28s. - For the
Atlas 200I/500 A2 inference products , the default timeout interval of AI Core operators is 1,091s, and that of AI CPU operators is 28s. - For the
Atlas inference products , the default timeout interval of AI Core operators is 547s, and that of AI CPU operators is 28s. - For the
Atlas training products , the default timeout interval of AI Core operators is 68s, and that of AI CPU operators is 28s.
- For the
- The maximum timeout interval of AI Core and AI CPU operators varies depending on the architecture of the product model.
- For the product models below, the maximum timeout is interval × 254 (unit: μs). interval can be obtained through the aclrtGetOpTimeoutInterval API.
Ascend 950PR /Ascend 950DT Atlas A3 training products /Atlas A3 inference products Atlas A2 training products /Atlas A2 inference products - For the
Atlas 200I/500 A2 inference products , the maximum timeout interval is 1,091s. - For the
Atlas inference products , the maximum timeout interval of AI Core operators is 547s, and that of AI CPU operators cannot be set. - For the
Atlas training products , the maximum timeout interval is 2,176s.
- For the product models below, the maximum timeout is interval × 254 (unit: μs). interval can be obtained through the aclrtGetOpTimeoutInterval API.