Changes between Version 26 and Version 27 of Tutorials/Edge Computing/Alveo Getting Started


Ignore:
Timestamp:
May 11, 2020, 1:21:35 AM (5 years ago)
Author:
msherman
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/Edge Computing/Alveo Getting Started

    v26 v27  
    1717 
    1818* 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
    2020  prasanthi@console:~$ omf load -i alveo-runtime.ndz -t node1-6
    2121  }}}
    2222
    2323* Once the node is successfully imaged, turn it on
    24   {{{
     24  {{{#!shell-session
    2525  prasanthi@console:~$ omf tell -a on -t node1-6
    2626  }}}
    2727
    2828* After giving it some time to power up and boot, ssh to the node
    29   {{{
     29  {{{#!shell-session
    3030  prasanthi@console:~$ ssh root@node1-6
    3131  }}}
     
    3636[[CollapsibleStart(Validate Card and check shell installation)]]
    3737* 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
    3939root@node1-6:~# sudo lspci -vd 10ee:
    4040d8:00.0 Processing accelerators: Xilinx Corporation Device d000
     
    5454}}}
    5555* 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
    5757root@node1-6:~# sudo /opt/xilinx/xrt/bin/xbmgmt flash --update --shell xilinx_u200_xdma_201830_2
    5858         Status: shell needs updating
     
    118118}}}
    119119* 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
    121121root@node1-6:~# /opt/xilinx/xrt/bin/xbmgmt flash --scan
    122122Card [0000:d8:00.0]
     
    138138
    139139* 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
    141141root@node1-6:~/Vitis-Tutorials/docs/Pathway3/reference-files/run# ./host mmult.hw.xilinx_u200_xdma_201830_2.xclbin
    142142Found Platform
     
    189189* 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.
    190190* 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
    192192root@node1-6:~/Vitis-Tutorials/docs/Pathway3/reference-files/run# vitis_analyzer mmult.hw.xilinx_u200_xdma_201830_2.xclbin.link_summary
    193193}}}
     
    195195
    196196* 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
    198198export XCL_EMULATION_MODE=hw_emu
    199199./host mmult.hw_emu.xilinx_u200_xdma_201830_2.xclbin