Xilinx U280
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.
Usage example and sample output for xrt 2.12, after selecting the first card. During this example, the card is idle and configured with the validation bitstream. Total card power in line 17.
[tester@n2fpga02 ~]$ ml fpga [tester@n2fpga02 ~]$ ml xilinx/xrt/2.12 [tester@n2fpga02 ~]$ xbutil examine ... Devices present [0000:a1:00.1] : xilinx_u280_xdma_201920_3 user(inst=129) [0000:81:00.1] : xilinx_u280_xdma_201920_3 user(inst=130) [0000:01:00.1] : xilinx_u280_xdma_201920_3 user(inst=128) [tester@n2fpga02 ~]$ xbutil examine -d 0000:a1:00.1 --report electrical ----------------------------------------------- 1/1 [0000:a1:00.1] : xilinx_u280_xdma_201920_3 ----------------------------------------------- Electrical Max Power : 225 Watts Power : 33.793573 Watts Power Warning : false Power Rails : Voltage Current 12 Volts Auxillary : 12.199 V, 1.363 A 12 Volts PCI Express : 12.192 V, 1.408 A 3.3 Volts PCI Express : 3.286 V 3.3 Volts Auxillary : 3.292 V Internal FPGA Vcc : 0.851 V, 5.076 A DDR Vpp Bottom : 2.500 V DDR Vpp Top : 2.500 V 5.5 Volts System : 5.488 V Vcc 1.2 Volts Top : 1.212 V Vcc 1.2 Volts Bottom : 1.204 V 1.8 Volts Top : 1.808 V 0.9 Volts Vcc : 0.901 V 12 Volts SW : 12.235 V Mgt Vtt : 1.203 V
Bittware 520N
The Bittware driver allows to measure power using a standalone command line tool that queries the board power via the i2c bus. It's available on all FPGA nodes with Bittware 520N cards (irrespective of the constraint).
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.
Usage example and sample output:
[tester@fpga-0001 tmp]$ bittware_power acl0: 64.86W acl1: 65.99W [tester@fpga-0001 tmp]$ bittware_power -c0 acl0: 64.91W [tester@fpga-0001 tmp]$ bittware_power -c1 acl1: 65.99W |
Run with --help
to get a list of command line arguments. For example, with -c
the 520N card of interest can be selected.