Function: reset_overflow_status

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

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

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 Values

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 following product models, the overflow status queried by this API is at the process level.

  • Ascend 950PR/Ascend 950DT
  • Atlas A3 training products/Atlas A3 inference products
  • Atlas A2 training products/Atlas A2 inference products