Function: get_event_id

Applicability

Product

Supported (√/x)

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

Function Usage

Obtains the ID of a specified event.

Prototype

  • C Prototype
    aclError aclrtGetEventId(aclrtEvent event, uint32_t *eventId)
  • Python Function
    1
    event_id, ret = acl.rt.get_event_id(event)
    

Parameter Description

Parameter

Description

event

Int, event to be queried.

Return Value Description

Return Value

Description

event_id

Int, event ID.

ret

Int, 0 on success; else, failure.