Step 1: Compile Host Software - 2023.2 English

Vitis Tutorials: AI Engine

Document ID
XD100
Release Date
2023-11-29
Version
2023.2 English

Following is an example of how to compile the ../Module_02_aie/Work_x4_x100/ps/c_rts/aie_control_xrt.cpp file.

XFLIB_DIR_REL_PATH :=$(DSPLIB_VITIS)/utils
XFLIB_DIR := $(shell readlink -f $(XFLIB_DIR_REL_PATH))

$(XILINX_VITIS)/gnu/aarch64/lin/aarch64-linux/bin/aarch64-linux-gnu-g++ -Wall -c -g \
                      -fmessage-length=0  \
                      -std=c++17 \
                      -Wno-unknown-pragmas
                      -Wno-unused-label
                      -Wno-int-to-pointer-cast
                      --sysroot=$(SDKTARGETSYSROOT)
                      -I$(SDKTARGETSYSROOT)/usr/include/xrt
                      -I$(SDKTARGETSYSROOT)/usr/include
                      -I./
                      -I../Module_02_aie
                      -I../Module_02_aie/src
                      -I$XILINX_VITIS/aietools/include
                      -I$XILINX_VITIS/include
                      -I$(XFLIB_DIR)/ext/xcl2
                      -I$(XFLIB_DIR)/utils/L1/include
                      -o ./build/aie_control_xrt.o
                      ../Module_02_aie/build/Work_x4_x100/ps/c_rts/aie_control_xrt.cpp

The same compilation options were used to compile the host/nbody.cpp, host/log.cpp, host/main_xrt.cpp, and host/main_animate.cpp files.