Changes between Version 26 and Version 27 of Tutorials/Edge Computing/Alveo Getting Started
- Timestamp:
- May 11, 2020, 1:21:35 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorials/Edge Computing/Alveo Getting Started
v26 v27 17 17 18 18 * Load alveo_runtime.ndz on a reserved server/node. This image comes with Vitis 2019.2, XRT(Xilinx RunTime) and Alveo U200 XDMA deployment shell installed. 19 {{{ 19 {{{#!shell-session 20 20 prasanthi@console:~$ omf load -i alveo-runtime.ndz -t node1-6 21 21 }}} 22 22 23 23 * Once the node is successfully imaged, turn it on 24 {{{ 24 {{{#!shell-session 25 25 prasanthi@console:~$ omf tell -a on -t node1-6 26 26 }}} 27 27 28 28 * After giving it some time to power up and boot, ssh to the node 29 {{{ 29 {{{#!shell-session 30 30 prasanthi@console:~$ ssh root@node1-6 31 31 }}} … … 36 36 [[CollapsibleStart(Validate Card and check shell installation)]] 37 37 * The reserved resource (node in SB9, orbit) has Alveo U200 card attached over PCIe bus. Check if the card is successfully installed and if its firmware matches with the shell installed on the host. Run lspci command as shown below. If the card is successfully installed, two physical functions should be found per card, one for management and one for user. 38 {{{ 38 {{{#!shell-session 39 39 root@node1-6:~# sudo lspci -vd 10ee: 40 40 d8:00.0 Processing accelerators: Xilinx Corporation Device d000 … … 54 54 }}} 55 55 * The above output shows only the management function. In that case, the firmware on the FPGA needs to be updated as follows. xilinx_u200_xdma_201830_2 is the deployment shell installed on the alveo_runtime.ndz image. 56 {{{ 56 {{{#!shell-session 57 57 root@node1-6:~# sudo /opt/xilinx/xrt/bin/xbmgmt flash --update --shell xilinx_u200_xdma_201830_2 58 58 Status: shell needs updating … … 118 118 }}} 119 119 * Use the xbmgmt flash --scan command to view and validate the card's current firmware version, as well as display the installed card details 120 {{{ 120 {{{#!shell-session 121 121 root@node1-6:~# /opt/xilinx/xrt/bin/xbmgmt flash --scan 122 122 Card [0000:d8:00.0] … … 138 138 139 139 * Multiple examples, from a couple of Xilinx repositories have been cloned to the node image. A simple matrix multiplication application obtained from https://github.com/Xilinx/Vitis-Tutorials/blob/master/docs/Pathway3 is demonstrated in this tutorial. The xclbin files for software emulation, hardware emulation and hardware targets were built following instructions in the Vitis-Tutorials repository. Slightly modified host code (to display the output) was also built. Run the accelerated application on the Alveo U200 target using the following command 140 {{{ 140 {{{#!shell-session 141 141 root@node1-6:~/Vitis-Tutorials/docs/Pathway3/reference-files/run# ./host mmult.hw.xilinx_u200_xdma_201830_2.xclbin 142 142 Found Platform … … 189 189 * Vitis platform provides options to generate various reports which help understand and analyze the accelerated application. Profile summary, timeline trace, waveform view are a few of them. Vitis analyzer can be used to view these reports. 190 190 * System estimate report is generated while building the hardware target xclbin file. It gives information on the resource usage, clock frequency, kernel latency estimate, etc. 191 {{{ 191 {{{#!shell-session 192 192 root@node1-6:~/Vitis-Tutorials/docs/Pathway3/reference-files/run# vitis_analyzer mmult.hw.xilinx_u200_xdma_201830_2.xclbin.link_summary 193 193 }}} … … 195 195 196 196 * Waveform view - While generating the hardware emulation target, waveform view can be enabled by editing the xrt.ini file. This option displays kernel signals in a waveform view while running hardware emulation. Hardware emulation can be run as follows 197 {{{ 197 {{{#!shell 198 198 export XCL_EMULATION_MODE=hw_emu 199 199 ./host mmult.hw_emu.xilinx_u200_xdma_201830_2.xclbin