aclrtGetOpExecuteTimeout

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

√

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

√

Function

Obtains the timeout interval of AI Core operator execution.

If AI Core operators never time out, the output value of the timeoutMs parameter is the maximum value of uint32_t.

Prototype

1
aclError aclrtGetOpExecuteTimeout(uint32_t *const timeoutMs)

Parameters

Parameter

Input/Output

Description

timeoutMs

Output

Timeout interval, in milliseconds.

If the timeout interval has been set by calling a set API (for example, aclrtSetOpExecuteTimeOut), the actual timeout interval of the hardware is returned. Otherwise, the default timeout interval of AI Core is returned.

Returns

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