AMD provides a standalone command line utility
v++ -c --mode aie
to compile the AI Engine graph and generate
the libadf.a
file for use in simulation, emulation,
and hardware flows. The AMD Vitis™
Unified IDE uses the
v++ -c --mode aie
command line to compile the AI Engine graph code for
either x86simulator
or aiesimulator
based on the target of the compilation process.
The v++ -c --mode aie
command takes the
graph, platform or part, and compiler options as inputs which can be either specified
directly as part of the command or in a config
file.
In addition, thev++ -c --mode aie
command supports AI Engine partitions and
independent compilation and linking of ADF graphs into disjoint partitions.
include
and target
, which are generic to different compilation modes.
AI Engine compilation
specific options are listed in v++ Mode AI Engine.v++ -c --mode aie --help
.The contents of a configuration file can vary, but the sample aiecompiler.cfg
file shown below uses the following
commands.
include=<VITIS_INSTALL_PATH>/Vitis/2024.1/aietools/include
include=./aie
include=./data
include=./aie/kernels
include=./
platform= xilinx_vck190_base_202410_1.xpfm
target=hw
[AIE]
Xelfgen=-j4
workdir=./Work_3
Xmapper=DisableFloorplanning
output-archive=libadf_1.a
The options under the [AIE]
section are
applicable only to the AI Engine compilation. The following sections describe the v++ -c
--mode aie
command usage with an example and an insight on different AI Engine compile options
which can be used in the configuration file.