AR# 75881

|

2020.2 Versal ACAP: AIE Matrix Multiplication demo application does not work on VCK190 ES1 boards

Description

In the 2020.2 release versions of Yocto or PetaLinux, The AIE Matrix Multiplication demo application does not work on a VCK190 ES1 board.

Solution

This is a known issue with the 2020.2 VCK190 ES1 when using the PetaLinux BSP or a Yocto Project, as the Versal ID code is hardcoded to the production silicon version.

To work around this issue, follow the steps below:

  1. Clone the AIE Matrix Multiplication demo application from https://github.com/Xilinx/plnx-aie-examples/tree/rel-v2020.2 
  2. Recompile the application for a VCK190 ES1 board using the 2020.2 AIE tools.
  3. Follow the below PetaLinux or Yocto steps to package the application files to rootfs.

PetaLinux:

1) Copy the recompiled AIE Matrix Multiplication demo application project files such as Work, aie-matrix-multiplication.xclbin, aie-matrix-multiplication files to the aie-matrix-multiplication directory as shown below.

If these directory and recipes do not exist then manually create <plnx-proj-root>/project-spec/meta-user/recipes-apps/aie-matrix-multiplication/files/

$ mkdir -p <plnx-proj-root>/project-spec/meta-user/recipes-apps/aie-matrix-multiplication/files
$ cp -rf Work aie-matrix-multiplication.xclbin aie-matrix-multiplication <plnx-proj-root>/project-spec/meta-user/recipes-apps/aie-matrix-multiplication/files

2) Modify the aie-matrix-multiplication_%.bbappend file with the below content using a text editor:

$ vim <plnx-proj-root>/project-spec/meta-user/recipes-apps/aie-matrix-multiplication/aie-matrix-multiplication_%.bbappend

# aie-matrix-multiplication_%.bbappend content
SRC_URI_append = " \
file://aie-matrix-multiplication.xclbin \
file://aie-matrix-multiplication \
file://Work \
"

FILESEXTRAPATHS_prepend := "${THISDIR}/files:

3) Clean the aie-matrix-multiplication and rebuild the aie-matrix-multiplication recipes:

$ petalinux-build -c aie-matrix-multiplication -x cleanall
$ petalinux-build -c aie-matrix-multiplication

Yocto:

1) Copy the recompiled AIE Matrix Multiplication demo application project files such as Work, aie-matrix-multiplication.xclbin, aie-matrix-multiplication files to the aie-matrix-multiplication directory as shown below.

If these directory and recipes do not exist then manually create <yocto-proj-root>/sources/meta-petalinux/recipes-apps/aie-matrix-multiplication/files/

$ mkdir -p <yocto-proj-root>/sources/meta-petalinux/recipes-apps/aie-matrix-multiplication/files
$ cp -rf Work aie-matrix-multiplication.xclbin aie-matrix-multiplication <yocto-proj-root>/sources/meta-petalinux/recipes-apps/aie-matrix-multiplication/files

2) Modify the aie-matrix-multiplication_%.bbappend file with the below content using a text editor:

$ vim <yocto-proj-root>/sources/meta-petalinux/recipes-apps/aie-matrix-multiplication/aie-matrix-multiplication_%.bbappend

# aie-matrix-multiplication_%.bbappend content
SRC_URI_append = " \
file://aie-matrix-multiplication.xclbin \
file://aie-matrix-multiplication \
file://Work \
"

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

3) Clean the aie-matrix-multiplication and rebuild the aie-matrix-multiplication recipes:

$ bitbake aie-matrix-multiplication -c cleanall
$ bitbake aie-matrix-multiplication
AR# 75881
Date 11/24/2020
Status Active
Type Known Issues
Devices
Tools
Boards & Kits
People Also Viewed