Function: reset_overflow_status

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

Clears the overflow status of tasks on all streams in the current device. This API is asynchronous.

Prototype

  • C Prototype
    1
    aclError aclrtResetOverflowStatus(aclrtStream stream)
    
  • Python Function
    1
    ret = acl.rt.reset_overflow_status(stream)
    

Parameters

Parameter

Description

stream

Specified stream to deliver an overflow status resetting task.

Return Value

Return Value

Description

ret

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

Restrictions

This API is asynchronous. The API call delivers a task rather than executes a task.

After this API is called, call the synchronization API (for example, acl.rt.synchronize_stream) to ensure that the task is complete.

For the Atlas A2 training product/Atlas A2 inference product, this API clears the overflow status at the process level.

For the Atlas A3 training product/Atlas A3 inference product, this API clears the overflow status at the process level.