aclrtGetOpTimeOutInterval

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Description

Obtains the minimum interval (in microseconds) supported by the hardware for operator timeout configuration.

Prototype

1
aclError aclrtGetOpTimeoutInterval(uint64_t *interval)

Parameters

Parameter

Input/Output

Description

interval

Output

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).

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

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Returns

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