Importing Files - Importing Files - 2026.1 English - UG1702

Vitis Reference Guide (UG1702)

Document ID
UG1702
Release Date
2026-06-23
Version
2026.1 English

If you did not add source files when you created the component, you can add it after by using the following steps. You can also add missing source files or include files to resolve any build errors when building the AI Engine component.

  1. Right-click the sources folder for importing in the Explorer window, select Import > Files/Folders
  2. Select the file or folder, or hold Shift and select multiple files or folders
  3. Click Open
Tip: Files and folders are imported directly into the AI Engine component folder in the open workspace.
If the sources you specified in the graph header contain the relative path to the kernel sources, there is no need to add each sub-directory to the config file. If there is no relative path, you must add the include file manually. In the following code, all kernel paths are relative to the top directory, so adding the kernel folder is sufficient:
adf::source(interpolator) = "kernels/interpolators/hb27_2i.cc";
adf::source(clip) = "kernels/polar_clip.cpp";
adf::source(classify) = "kernels/classifiers/classify.cc";

The general recommendation is to add all the sub-directories manually to the config file to ensure completeness. Right-click on any directory under sources in Component Explorer, select copy path, and paste it into the config file. Use the same syntax as existing included files.