cuda-samples icon indicating copy to clipboard operation
cuda-samples copied to clipboard

GPU power consumption doesn't go back to idle state after CUDA finishes GeMM execution

Open afzalxo opened this issue 3 years ago • 1 comments

I am running some experiments using NVML and CUDA GeMM implementation for power consumption. I measured the following trend of power consumption for multiplication of two 16384 sized square matrices. The horizontal axis is time in seconds while the vertical axis is power in Watts. The measurements are made on a single Tesla V100S.

Screenshot 2021-04-21 at 8 29 58 PM

As can be seen from the plot, consumption in idle state before the CUDA kernel is called is roughly 25W. After the CUDA kernel finishes and memory is deallocated, the power settles at roughly 50W instead of the original 25W idle state value that it should settle to. In the "Finished" state, the GPU is totally free, all variables deallocated. The measurements are made using NVML C++ API.

Is there something that I'm missing here?

Thanks

afzalxo avatar Apr 21 '21 12:04 afzalxo

To add to this, the consumption returns to 25W several seconds after the deallocation phase.

afzalxo avatar Apr 21 '21 12:04 afzalxo