I know that there's a way to read the power consumption of a GPU using CUPTI. Do you know of any method I can use? and where I can find examples?
Asked
Active
Viewed 1,409 times
2 Answers
5
Probably what you are looking for is the cupti ActivityEnvironment data.
As far as I know, this particular data category is new in CUDA 5.5, so you may need to be sure you are using CUDA 5.5 to access these parameters.
Collecting this data is part of the cupti Activity API
An example of the usage of this API is given in the activity_trace_async
example that is included in the CUPTI toolkit.
On a standard linux install, this sample would be located at /usr/local/cuda/extras/CUPTI/sample/activity_trace_async

Robert Crovella
- 143,785
- 11
- 213
- 257
-
The enum `CUPTI_ACTIVITY_KIND_ENVIRONMENT` does seem to be working. I get `CUPTI_ERROR_NOT_COMPATIBLE` for most of the `CUPTI_ACTIVITY_KIND_*` not present in `activity_trace_async` when I call `cuptiActivityEnable()` api. Is there something I am missing ? – Sagar Masuti Aug 12 '14 at 03:28