I am trying to see all the events provided by the K20 Tesla that I have. CUPTI provides several functions to enlist those events. The events are divided into different domains and the code cuda-5.0/extras/CUPTI/sample/cupti_query provides the events for the first domainId. I came across the function
CUptiResult cuptiDeviceEnumEventDomains ( CUdevice device,
CUpti_EventDomainID* domainArray )
and in the cupti_query code, the domainArray is just a single domainID element rather than an array.
How can I access different domains using these functions to get the details of all the events present on my K20?