Count number of events without enumerating them

Hello,

I was wondering if there is any other way of counting the number of events for a device other than enumerating them all. This process seem to take a long time and some third party tools using CUPTI might only need to report the number of events without actually accessing them.

Thanks,
Giuseppe

Hi Giuseppe,

Can you please clarify for which CUPTI API you want to query the number of events? Event API or Profiling API?
For Event API, enum CUPTI_DEVICE_ATTR_MAX_EVENT_ID can be queried using the API cuptiDeviceGetAttribute(). This attribute provides number of events available for the device.

Hi mjain,

Thank you for the response. I am using the Event API.

–Giuseppe