This tutorial uses files in the ~/krnl_cbc directory.
All steps except for host program execution in this tutorial are finished by the GNU Make. This example design supports four Alveo cards (U200, U250, U50, U280), and you must make the necessary adjustments to the ~/krnl_cbc/Makefile for each card by uncommenting the line matching your Alveo card.
41 # PART setting: uncomment the line matching your Alveo card
42 PART := xcu200-fsgd2104-2-e
43 #PART := cu250-figd2104-2L-e
44 #PART := xcu50-fsvh2104-2-e
45 #PART := xcu280-fsvh2892-2L-e
46
47 # PLATFORM setting: uncomment the lin matching your Alveo card
48 PLATFORM := xilinx_u200_xdma_201830_2
49 #PLATFORM := xilinx_u250_xdma_201830_2
50 #PLATFORM := xilinx_u50_gen3x16_xdma_201920_3
51 #PLATFORM := xilinx_u280_xdma_201920_3
As an alternative, instead of making the modification, you can use the command line option to override the default setting. An example is shown in the following steps related to using the make tool for the U50 card:
make xxx PART=xcu50-fsvh2104-2-e PLATFORM=xilinx_u50_gen3x16_xdma_201920_3
Before starting, ensure that you source the setup scripts in XRT and Vitis installation path. For example:
source /opt/xilinx/xrt/setup.sh
source /tools/Xilinx/Vitis/2023.1/settings64.sh