Forum Discussion

JLAMB3's avatar
JLAMB3
Icon for New Contributor rankNew Contributor
7 years ago
Solved

Power/Energy Measurements with Arria 10 and OpenCL SDK

I am trying to get an accurate power measurement to estimate energy consumption for an application using an Arria 10 device and Nallatech board (p510t_sch_ax115) and the Intel OpenCL SDK (Version 17....
  • HRZ's avatar
    7 years ago

    You probably came across my advice on the forum. However, I only had success using quartus_pow on the placed and routed OpenCL design on Stratix V and could not use it on Arria 10 since it failed with some error similar to your case. Good news is, most Arria 10 boards have on-board power sensors which can be used to get accurate power readings. Since you are using a Nallatech board, they provide an MMD layer function which allows you to read the sensor in a C application. There is an example of how to use the function in "Nallatech OpenCL A10 BSP Reference Guide, Section 7.5 - MMD Layer Functions". I have written a header based on this function which can be used alongside with OpenCL application. You can find the header here:

    https://github.com/zohourih/rodinia_fpga/blob/master/common/power_fpga.h

    You can check the benchmarks inside of the repository to see how the header can be used. Please note that the header is made for the Nallatech 385A board but it should also work with the 510T board if the board name is corrected in the header. Furthermore, the header uses the old "altera"-based naming scheme used up until Quartus v16.1.2. I think the function names have been changed in the newer versions.