Function: get_op_execute_timeout

Applicable Products

Product

Supported (√/x)

Ascend 950PR/Ascend 950DT

√

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas training products

√

Atlas inference products

√

Atlas 200I/500 A2 inference products

√

Description

Obtains the timeout interval of AI Core operator execution.

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

Prototype

  • C Prototype
    1
    aclError aclrtGetOpExecuteTimeout(uint32_t *const timeoutMs)
    
  • Python Function
    1
    time_out_ms, ret = acl.rt.get_op_execute_timeout ()
    

Parameters

None

Return Values

Parameter

Description

time_out_ms

Int, timeout interval, in milliseconds.

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

ret

Int, 0 on success; else, failure.