1

I'm trying to measure power consumption on a GPU. First of all I want to know if I can use PAPI to measure power consumption and also I want to know how can I compile CUDA with PAPI code if that's possible.

user1730250
  • 582
  • 2
  • 9
  • 26
  • It certainly is possible. I personally havent tried it because the PAPI is not getting installed on my system mac os. Compiling shouldnt be a problem just pass the correct library path and the include path to nvcc, you should be good to go. If [that](http://web.eece.maine.edu/~vweaver/papers/pasa2012/pasa2012_power.pdf) helps. – Sagar Masuti Sep 28 '13 at 05:39

1 Answers1

5

Nvidia provides a C-based API for monitoring and managing various states of the NVIDIA GPU devices, including the power consumption.

nvmlDeviceGetPowerUsage (nvmlDevice_t device, unsigned int* power)

Please refer to this link for more info about NVML

https://developer.nvidia.com/nvidia-management-library-nvml

kangshiyin
  • 9,681
  • 1
  • 17
  • 29