Function: synchronize_event

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

Blocks the current thread until all tasks captured in an event are completed. For more details, see acl.rt.record_event.

Prototype

  • C Prototype
    1
    aclError aclrtSynchronizeEvent(aclrtEvent event)
    
  • Python Function
    1
    ret = acl.rt.synchronize_event(event)
    

Parameters

Parameter

Description

event

Int, event object pointer address to be waited for.

Return Value

Return Value

Description

ret

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

Reference

For the API call example, see Event Synchronization.