Function: get_event_avail_num

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

Queries the number of available events on the current device.

Prototype

  • C Prototype
    aclError aclrtGetEventAvailNum(uint32_t *eventCount)
  • Python Function
    1
    event_count, ret = acl.rt.get_event_avail_num()
    

Parameter Description

None.

Return Value Description

Return Value

Description

event_count

Int, number of events

ret

Int, 0 on success; else, failure.