Forum Discussion
Well, that is a problem. If you were using Bittware or Nallatech boards, I could give you code to read the power sensor on those boards right away. Intel's reference board also apparently has some GUI application that reports the board power consumption (but I have not used that myself). However, as far as I know, there is no easy way to read power consumption on the Terasic board. Even though their board also has a power sensor, it is not ready to use. You will need to add the necessary logic for reading the sensor in HDL yourself and integrating all that into OpenCL will be difficult. Based on their documentation, they have a NIOS demo that can read the board power consumption but again, that is useless in the context of OpenCL. You can try contacting Terasic's support to see if they provide a library or something to read the power sensor in a C application.
I had success with running quartus_pow on placed-and-routed OpenCL designs and getting estimated power consumption, but that was on Stratix V. I tried it once long ago on Arria 10 but it didn't work.