Users familiar with OpenCL might be aware of the term "kernel", where a function executing in OpenCL is called a "kernel".
The same nomenclature is used in the Vitis acceleration flows. However, the Xilinx Runtime (XRT) API is used to execute the kernels.
The XRT is Linux based, and will run on the x86, or on the development boards (aarch64 or arm). The XRT is functionality independent from the architecture it is executing on, meaning it does not know if it is executing on an x86 or a development board (aarch64, or arm).
However, for the edge (aarch64, or arm) platforms we need to add the ZOCL driver. The ZOCL driver is used to allocate resources for each kernel. In this blog we will discuss how to add the XRT and ZOCL to a new or existing PetaLinux project.
Adding the XRT to the PetaLinux Project:
petalinux-create -t project --template zynqMP -n zcu104_base_sw
petalinux-config --get-hw-description=<path to XSA> Select DTG Settings -> (zcu104-revc) MACHINE_NAME
Open the project-spec/meta-user/conf/user-rootfsconfig, and add the following: