Function: get_event_avail_num

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

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()
    

Parameters

None

Return Value

Return Value

Description

event_count

Int, number of events

ret

Int, 0 on success; else, failure.