OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1718 Discussions

Power consumption (Watt)

SChbi
Beginner
763 Views

Hi,

I look for a software measurement tool or an API I can include to know my kernel power consumption during execution on GPU. How can I do that?

Thanks

0 Kudos
7 Replies
Robert_I_Intel
Employee
763 Views

Hi Samy,

I know some tools internal to Intel that can do that. I am trying to find out if we have commercial or publicly available tools that can do this. I will get back to you on this as soon as I find out more.

0 Kudos
Robert_I_Intel
Employee
763 Views

Hi Samy,

System Analyzer, part of Intel(R) Graphics Performance Analyzers (see https://software.intel.com/en-us/gpa), can take some power measurements depending on the platform.   For client parts its primarily package power and pkg/tdp power, for mobile you have a few more options.  

 

What platform are you planning to do your measurements on?

0 Kudos
SChbi
Beginner
763 Views

Hello Robert,

I am on both MacOSX and Ubuntu. I try to measure the power consumption of my OpenCL kernels when they run on the GPU.

0 Kudos
SChbi
Beginner
763 Views

I've downloaded GPA but it looks like I can only use it for Android? Not for MacOSX GPU?

 

0 Kudos
Robert_I_Intel
Employee
763 Views

Here is another recommendation:

You can try using Intel Vtune Amplifier for Systems (Shipped with ISS https://software.intel.com/en-us/intel-system-studio). You can run the Energy profiler analysis as stated at https://software.intel.com/en-us/node/529838. This should give timeline information for Graphics C/P states - https://software.intel.com/en-us/node/534382.

 

Mac OSX apparently is not supported :(

0 Kudos
Robert_I_Intel
Employee
763 Views

Hi Sami,

Apparently, Mac OSX support is in the works, but no definite delivery date yet.

0 Kudos
Shailen_Sobhee
Employee
763 Views

Hi Samy,

In addition to the great resources that Robert already shared, you may wish to check out Intel Performance Counter Monitor (PCM). It works on Windows, Linux and Mac: https://software.intel.com/en-us/articles/intel-performance-counter-monitor

However, PCM will not give you a fine-grained result like VTune.  Also, it will not give you the power consumption of the GPU only. Instead, PCM will give you power measurements for the whole package (socket), that is, CPU + integrated GPU.

Depending on your hardware, if you have integrated graphics and your OpenCL application is offloading most of its work to the integrated GPU, you can estimate the power consumption of your app running on the GPU. You will have to do some linear regression of your data to single out the CPU power.

On another note, what you are trying to do is interesting for Intel and the power-conscious community. If you do try out the above, please let us know your results!

Best regards,

Shailen.

0 Kudos
Reply