...
The Xilinx xrt driver allows to measure power using a standalone command line tool. The specific tool invocation and output format depends on the xrt version (module xilinx/xrt and configuration constraint xilinx_u280_xrt...
).
We recommend to run kernels for at least ~1s and automatically perform repeated invocations to the command line tool concurrently in order to get reasonably accurate results. Further effects of increased power consumption due to thermal effects can be observed after multiple minutes of load on the cards, but are comparably minor.
...