Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DPU example on ZCU104 with 2021.1 tools #87

Closed
ksstms opened this issue Jul 20, 2021 · 6 comments
Closed

DPU example on ZCU104 with 2021.1 tools #87

ksstms opened this issue Jul 20, 2021 · 6 comments
Assignees

Comments

@ksstms
Copy link

ksstms commented Jul 20, 2021

Hi! I'm having some issues with the ZCU104 Vitis embedded platform tutorial. I tried it with 2020.2 and 2021.1 version tools. I used the provided makefiles in both cases to create the platform, then did the last step in the Vitis GUI to build the DPU example project. The 2020.2 version worked without any issues. However, when doing the same in 2021.1, I get the following error when building the DPU example project:

../src/app/samples/src/resnet50.cpp:25:10: fatal error: opencv2/core.hpp: No such file or directory

There are some additional warnings with 2021.1 as well. I have shortened the absolute paths in the first two.

Invalid project path: Include path not found (<...>/02-Edge-AI-ZCU104/ref_files/step3_pfm/sw_comp/sysroots/cortexa72-cortexa53-xilinx-linux/usr/include/xrt/).
Invalid project path: Include path not found (<...>/02-Edge-AI-ZCU104/ref_files/vitis-workspace/dpu_trd/Emulation-SW/dpu_trd/src/app/samples/include).
Invalid project path: Include path not found (dpu_trd/Emulation-SW/dpu_trd/src/app/samples/include).

The /usr/include/xrt directory really is missing from the rootfs. I have checked the PetaLinux project, and it was not enabled. I manually followed step 2 of the tutorial to add the packages, but the build failed with the following error:

ERROR: Nothing RPROVIDES 'packagegroup-petalinux-xrt' (but <...>/02-Edge-AI-ZCU104/ref_files/step2_petalinux/build/petalinux/components/yocto/layers/meta-petalinux/recipes-core/images/petalinux-image-minimal.bb RDEPENDS on or otherwise requires it)

The 2nd and 3rd warnings are the same (I guess). The build configuration is set to Hardware, so I have no idea why it's checking the Emulation-SW directory. Setting the library search path to an absolute path (instead of the workspace path shown in the tutorial) makes no difference.

0b11101010 pushed a commit to 0b11101010/Vitis-Tutorials that referenced this issue Jul 30, 2021
@Premduth
Copy link

@imrickysu can you look into this?

imrickysu pushed a commit that referenced this issue Aug 20, 2021
@imrickysu
Copy link
Contributor

@ksstms Could you take a look at newly released tutorial for 2021.1? It should have addressed these issues because PetaLinux 2021.1 has some updates.

packagegroup-petalinux-xrt is not needed in 2021.1. Instead, please use xrt package. Contents in packagegroup-petalinux-xrt were added to the dependencies of xrt. PetaLinux will add them automatically.

@imrickysu imrickysu added the question Further information is requested label Aug 21, 2021
@ksstms
Copy link
Author

ksstms commented Aug 23, 2021

Thank you, that solves the XRT issue.

Unfortunately the packagegroup-petalinux-vitisai will still cause a build failure. I see it in step 4 that it's not currently possible to build the Vitis AI deps in the PetaLinux project. Is it possible to merge the downloaded sysroots content into my own one?

@imrickysu
Copy link
Contributor

Technically you can merge the two sysroots. But it's not a tested flow.
VAI 1.4 PetaLinux recipe will be released soon. After it's released, you would be able to generate one single sysroot from a PetaLinux project.

@imrickysu imrickysu removed the question Further information is requested label Aug 24, 2021
@imrickysu
Copy link
Contributor

Update: vitis-ai recipes have been published.
https://github.com/Xilinx/meta-vitis-ai

Now you can add this layer in PetaLinux and build a final sysroot.
Refer to UG1144 for how to add custom layers. Search for key word "add layer".

@ksstms
Copy link
Author

ksstms commented Aug 26, 2021

Thank you very much @imrickysu. I added it, but dnndk was still breaking the build. As mentioned here, I removed it from packagegroup-petalinux-vitisai.bb.

Additionally, opencv2 in this version is under /usr/include/opencv4/opencv2, so I had to add ${SYSROOT}/usr/include/opencv4/ to the host application's GCC includes.

I really appreciate your help!

@ksstms ksstms closed this as completed Aug 31, 2021
imrickysu pushed a commit that referenced this issue Nov 14, 2021
imrickysu pushed a commit that referenced this issue Nov 3, 2022
CRTejaswi pushed a commit to CRTejaswi/amd-vitis that referenced this issue Oct 3, 2023
37cba5b Clean WebpEnc
05b7e30 fixed index.html
d3e13e2 modified 2021.1 to 2021.2
5d21faf Merge pull request Xilinx#107 from yunleiz/fnext
2f4abaa [gui] add description
0183ab5 Merge pull request Xilinx#106 from yunleiz/fnext
672b1db [clean]fixed CR https://jira.xilinx.com/browse/CR-1109840
010b477 fixed CR https://jira.xilinx.com/browse/CR-1109840
a64fbce Merge pull request Xilinx#103 from yuxiangz/move
480ec86 rm L2include
8d4685b Merge pull request Xilinx#102 from siyangw/next
383fda2 fix some problem for https://jira.xilinx.com/browse/CR-1107161
de542c3 Merge pull request Xilinx#101 from yuxiangz/rmwebp
0b648f2 rm webp
5ff5869 Merge pull request Xilinx#100 from liyuanz/next
4fa8680 replace XILINX_VIVADO with XILINX_HLS
ffcb650 Merge pull request Xilinx#98 from yuxiangz/image_error
e95ae01 fixed image error
891a16e Merge pull request Xilinx#97 from yuxiangz/readme
b0c676e fixed benchmark
c04bc74 update release
1b28512 fixed kernel doc
c853e54 update benchmark wepb
573f3db revise code struct
451450e add wepb api
7d4d309 Merge pull request Xilinx#95 from yuxiangz/readme
b2e9ddd fixed error for readme
9f32eb2 Merge pull request Xilinx#94 from yuxiangz/readme
8974955 fixed error for readme
ca242c9 Merge pull request Xilinx#91 from yunleiz/fnext
53b7203 [doc] fixed pik profm in next
b53c54c [doc] fixed pik profm in net
4152274 Merge pull request Xilinx#90 from yunleiz/fnext
f4a9082 [doc] fixed readme on next
a1b4baa Merge pull request Xilinx#88 from siyangw/fix_sw_emu
4bbba7f change 2021.1_stable_latest to 2021.2_stable_latest
REVERT: 48cc941 Merge pull request Xilinx#99 from yuxiangz/cr-640
REVERT: c373206 fixed image error for master
REVERT: 4d5db06 Merge pull request Xilinx#92 from yunleiz/fmaster
REVERT: 19e4a69 [doc] fixed pik profm in master
REVERT: 74e5c6a Merge pull request Xilinx#89 from yunleiz/fmaster
REVERT: 2f9cc50 [doc] fixed readme on master
REVERT: 587473b Merge pull request Xilinx#87 from siyangw/fix_sw_emu
REVERT: 41a249c create master branch from next branch

git-subtree-dir: codec
git-subtree-split: 37cba5bec8072c63d0d75433cebe2467cd74f401

Co-authored-by: sdausr <[email protected]>
CRTejaswi pushed a commit to CRTejaswi/amd-vitis that referenced this issue Oct 3, 2023
695eee4 update version
04f4d5f fix typos
64588a9 update version
b763a17 update RTM 3D forward test
1773e6e Merge pull request Xilinx#90 from changg/fix_time
eee98af fix time
4953200 Merge pull request Xilinx#89 from yuanqian/next
dd4a215 increase max time
8b66520 Merge pull request Xilinx#88 from yuanqian/next
b1c2661 increase memory due to memory limit in daily regression
2b1e855 Merge pull request Xilinx#87 from yuanqian/next
e8cc376 increase max memory in runtime
ee272e1 increase maxruntime
134abba Merge pull request Xilinx#86 from liyuanz/next
3aa7fd8 fix bug about LD_LIBRARY_PATH in utils.mk
5f047f8 Merge pull request Xilinx#85 from liyuanz/next
956cd0b fix CR about Linking XRT native API on CentOS 8 fails

Co-authored-by: sdausr <[email protected]>

have 100% pass rate in daily regression
CRTejaswi pushed a commit to CRTejaswi/amd-vitis that referenced this issue Oct 3, 2023
b8aa0ac Merge pull request Xilinx#98 from changg/round2-mk
0dafa9e fix
69ce1de Merge pull request Xilinx#97 from changg/round2-mk
33635fb fix utils.mk
bb09f85 Merge pull request Xilinx#96 from tuol/fix_cr_1125397
26bfd12 upate description.json for GUI
6142bf4 Merge pull request Xilinx#95 from tuol/fix_cr1110852
18b6b69 add description for cscmvSingleHBM
489d6fe Merge pull request Xilinx#94 from changg/wa_u280
c83ed11 WA for u280
70d666c Revert "wa for xilinx_u280_xdma_201920_3"
27306c5 Merge pull request Xilinx#93 from changg/wa_u280_2019
2b4ec88 wa for xilinx_u280_xdma_201920_3
af1d094 Merge pull request Xilinx#92 from liyuanz/replace_cflags
a9ff957 replace cflags with clflags
eb58a83 Merge pull request Xilinx#91 from tuol/fix_cr_1110852
c9ca9ab add description to L2/tests/cscmvSingleHbm
b8e0210 Merge pull request Xilinx#90 from tuol/fix_cr_1083211
75204c8 remove 'exclude' from description.json
965b2e0 Merge pull request Xilinx#88 from liyuanz/replace_blacklist
0e87eee replace whiltelist/blacklist to allowlist/blocklist
ad26de7 Merge pull request Xilinx#87 from liyuanz/next
3db258c increase time
def14fe Merge pull request Xilinx#85 from changg/add_extraflags
f8a6122 fix makefile
031de2c Merge pull request Xilinx#84 from liyuanz/next
f10953c increase time
4745f24 Merge pull request Xilinx#83 from changg/fix_utils
6fb2652 fix utisl
7d9278f Merge pull request Xilinx#82 from liyuanz/replace_targets
c1c2de5 update targes
68ae52e Merge pull request Xilinx#80 from changg/metadata
6225d51 draft metadata files
e74cf2b change 2021.2_stable_latest to 2022.1_stable_latest

Co-authored-by: sdausr <[email protected]>
CRTejaswi pushed a commit to CRTejaswi/amd-vitis that referenced this issue Oct 3, 2023
b0ee140 Merge pull request Xilinx#92 from liyuanz/add_mmm
db0107b update
1a68c39 Merge pull request Xilinx#91 from liyuanz/add_mm
533e836 update
ab8f933 Merge pull request Xilinx#90 from tianminr/readme_modification
b99355a update readme
ba67162 Merge pull request Xilinx#89 from tianminr/doc
0c1f13d update api.json
8845ce5 Merge pull request Xilinx#88 from tianminr/doc
25561cf refine docs
5d55ecf Merge pull request Xilinx#87 from tianminr/plane_wave_refine
74da1b7 fixed for json file and coding-style
daff5ca Merge remote-tracking branch 'xf_ultrasound/next' into plane_wave_refine
0714894 Merge pull request Xilinx#86 from tianminr/code_clean
ba7d629 refine planewave regression
c353e1c clean for old window apis
23ede93 Merge pull request Xilinx#85 from tianminr/regression_refine
9af26a9 modificaiton for docson 23.1
8d81605 scanline timing update
d98d78e regression refine
e75b377 Merge pull request Xilinx#84 from tianminr/next_clean
b5fa450 clean kernels.hpp
fdafd55 next branch clean

Co-authored-by: sdausr <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants