how to find out if a multiprocessor has a specific CUPTI event counter

In the section of CUPTI metric API, the author says " It is necessary to normalize the event counts because the number of event counter instances varies by device and by the event being counted. For example, a device might have 8 multiprocessors but only have event counters for 4 of the multiprocessors, and might have 3 memory units and only have events counters for one memory unit. When calculating a metric that requires a multiprocessor event and a memory unit event, the 4 multiprocessor counters should be summed and multiplied by 2 to normalize the event count across the entire device. Similarly, the one memory unit counter should be multiplied by 3 to normalize the event count across the entire device."

quoted from http://docs.nvidia.com/cuda/cupti/r_main.html#r_metric_api

My question would be: how to find out if a multiprocessor has a specific CUPTI event counter (e.g., inst_executed)? More specifically, in the previous example, how to find which 4 of the 8 multiprocessors have a event counter (e.g., inst_executed). What are the ID for these 4 multiprocessors.

Thank you.