Function: set_op_execute_time_out

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas training product

Atlas inference product

Atlas 200I/500 A2 inference product

Description

Sets the timeout interval for operator execution.

Prototype

  • C Prototype
    1
    aclError aclrtSetOpExecuteTimeOut(uint32_t timeout)
    
  • Python Function
    1
    ret = acl.rt.set_op_execute_time_out(timeout)
    

Parameters

Parameter

Description

timeout

Int, timeout interval, in seconds. 0 means to use the maximum timeout interval.

Return Value

Return Value

Description

ret

Int, error code. 0 on success; else, failure.

Restrictions

  • If this API is not called, the default timeout interval for operator execution is as follows.

    Version

    Default Timeout Interval of AI Core Operators

    Default Timeout Interval of AI CPU Operators

      

    547 seconds

    28 seconds

      

    68 seconds

    28 seconds

      

    1,091 seconds

    28 seconds

      

    1,091 seconds

    28 seconds

      

    1,091 seconds

    60

  • If this API is called for multiple times in a process, setting of the last time is used. The maximum time that can be set is as follows.

    Version

    Maximum Timeout Interval of AI Core Operators

    Maximum Timeout Interval of AI CPU Operators

      

    547 seconds

    Not supported

      

    2,176 seconds

    2,176 seconds

      

    1,091 seconds

    1,091 seconds

      

    1,091 seconds

    1,091 seconds

      

    1,091 seconds

    1,091 seconds