aclrtSetOpExecuteTimeOutV2

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Description

Sets the timeout (in microseconds) for operator execution.

Prototype

aclError aclrtSetOpExecuteTimeOutV2(uint64_t timeout,  uint64_t *actualTimeout)

Parameters

Parameter

Input/Output

Description

timeout

Input

Timeout, in microseconds.

0 means using the maximum timeout.

actualTimeout

Output

Actual timeout, in microseconds.

For the following product models, only the timeout of AI Core operators can be obtained:

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Returns

0 on success; else, failure. For details, see aclError.