Function: synchronize_stream

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

Blocks app running until all tasks in the specified stream are complete.

Prototype

  • C Prototype

    aclError aclrtSynchronizeStream(aclrtStream stream)
    
  • Python Function

    ret = acl.rt.synchronize_stream(stream)
    

Parameters

Parameter Description
stream Int, pointer address of the stream object that needs to complete all tasks.

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.