Function: reset_overflow_status

Applicable Products

  • Ascend 950PR&950DT products: Supported
  • Atlas A3 products: Supported
  • Atlas A2 products: Supported
  • Atlas 200I/500 A2 inference products: Supported
  • Atlas inference products: Supported
  • Atlas training products: Supported

Function

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

Prototype

  • C Prototype

    aclError aclrtResetOverflowStatus(aclrtStream stream)
    
  • Python Function

    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. If 0 is returned, the operation is successful. If other values are returned, the operation fails.

Constraints

This API is asynchronous. A successful call indicates only that the task has been delivered, not that it has completed. After calling this API, call a 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&950DT products
  • Atlas A3 products
  • Atlas A2 products