Function: synchronize_event

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 the current thread until all tasks captured in an event are completed. For details, see the acl.rt.record_event API reference.

Prototype

  • C Prototype

    aclError aclrtSynchronizeEvent(aclrtEvent event)
    
  • Python Function

    ret = acl.rt.synchronize_event(event)
    

Parameters

Parameter Description
event Int, event object pointer address to be waited for.

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.