GPU Power Profiling with nvprof and Visual Profiler

cuda, profiling, visual-studio-2010, windows

Solution

Power profiling can be enabled:

- On the second wizard page when creating a new session.

- From the "Settings" view under the session timeline view.

Power profiling is not available for all devices and does not work on Mac OS X.

Update from @ahmad:

Oh, I found the problem. I was running win32 binary on 64-bit operating system. This is why the profilers do not report power, while every other profiling facilities work. Please add this issue to your answer, so we can mark this question answered. Thanks again.

Problem

I can see the power variations of my K20C through nvidia-smi as depicted below: ``` ==============NVSMI LOG============== Timestamp : Fri Jan 31 11:45:21 2014 Driver Version : 332.21 Attached GPUs : 2 GPU 0000:04:00.0 Temperature Gpu : 28 C Power Readings Power Management : Supported Power Draw : 16.12 W Power Limit : 225.00 W Default Power Limit : 225.00 W Enforced Power Limit : 225.00 W Min Power Limit : 150.00 W Max Power Limit : 225.00 W ``` I'm trying to profile GPU power during execution of my CUDA application. However, I cannot find where these numbers are reported in `Visual Profiler` or `nvprof`. According to CUDA Toolkit guide, I use the following command in `nvprof` to enable power profiling: ``` "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\bin\nvprof.exe" --print-gpu-trace --system-profiling on .\vectorAdd.exe ``` I also tried to retrieve the power profiling information from `Visual Profiler`. I check the `Enable power, clock, and thermal profiling` box. However, I cannot see the power profile in the Timeline. I'm using CUDA v5.5 on Windows 7 64-bit and the system GPU is K20c. I compile the CUDA application with Visual Studio 2010. Any idea is highly appreciated.

Original source