See run_example.sh for the latest instructions with the lates shell.
The instructions below are old and outdated, do not use them. Instead use the procedure outlined in run_example.sh.
with 2020.2
with 2022.1
Copy example to your user space
cp -r /opt/xilinx/Vitis/2020.2/examples examples20
cd examples20/vadd
# replace “XDEVICE=xilinx_u200_xdma_201920_1”
# with “XDEVICE=xilinx_u250_xdma_201830_2”
# in vitis.mk
Compile it
scl enable devtoolset-9 bash
source /opt/xilinx/Vitis/2020.2/settings64.sh
source /opt/xilinx/xrt/setup.sh
# go to your examples/vadd/
make -f vitis.mk host
make -f vitis.mk xbin_hw
# this will take a few hours to complete
cp -r /opt/xilinx/Vitis/2022.1/examples examples22
cd examples22/vadd
# replace “XDEVICE=xilinx_u200_xdma_201920_1”
# with “XDEVICE=xilinx_u250_gen3x16_xdma_4_1_202210_1”
# in vitis.mk
Compile it
scl enable devtoolset-9 bash
source /opt/xilinx/Vitis/2022.1/settings64.sh
source /opt/xilinx/xrt/setup.sh
# go to your examples/vadd/
make -f vitis.mk host
make -f vitis.mk xbin_hw
# this will take a few hours to complete
Run it
# !! this does not work yet, we need to update the shell
source /opt/xilinx/xrt/setup.sh
./vadd bin_vadd_hw.xclbin