GithubHelp home page GithubHelp logo

Comments (11)

Hikaru-Furuta avatar Hikaru-Furuta commented on August 22, 2024 2

@VishalX
I could compile succesfully and owe this to you
Thank you so much.

from vitis-ai.

sumitn-xilinx avatar sumitn-xilinx commented on August 22, 2024 1

You can try restarting butler. Following are the commands (to be run outside docker).
Start: % sudo service xbutler start
Stop: % sudo service xbutler stop
Restart: % sudo service xbutler Restart

Even after that if the problem persists, you can try running following (inside docker) to get more info:
xbutler_backdoor.sh -b

from vitis-ai.

VishalX avatar VishalX commented on August 22, 2024 1

@Hikaru-Furuta
I see a few issues with your approch.

  • I see you are programming XCLBIN manually onto the card, which is DPUv3int8 (DPUCADF8H) XCLBIN, then in the env setup step, you reset the card with xbutil reset, which will reset the card.
  • Another issue is, As I mentioned, you are programming DPUCADF8H xclbin onto the card but when you are trying the example, you're inside DPUCADX8G examples cd /workspace/examples/DPUCADX8G/vitis_ai_alveo_samples/video_analysis.

Can you please let us know which DPU are you targetting for your runs?

DPUCADX8G (dpuv1) is the older DPU with Batch-1
DPUCADF8H (dpuv3int8) in the newer DPU with Batch-4

from vitis-ai.

VishalX avatar VishalX commented on August 22, 2024 1

No, both are supported with VAI-1.3.

Here are some pointers.

DPUCADX8G Setup:
https://github.com/Xilinx/Vitis-AI/blob/master/setup/alveo/u200_u250/README.md#setup-for-alveo

This script: https://github.com/Xilinx/Vitis-AI/blob/master/setup/alveo/u200_u250/packages/install.sh, will do all you need for setting up for DPUCADX8G, including XCLBIN installation. You can go through the script and use the links to download packages manually as well.

DPUCADX8G Examples:
https://github.com/Xilinx/Vitis-AI/tree/master/examples/DPUCADX8G

from vitis-ai.

mahinlma avatar mahinlma commented on August 22, 2024

Thank you @sumitn-xilinx

from vitis-ai.

Hikaru-Furuta avatar Hikaru-Furuta commented on August 22, 2024

After restarting, I suffer this error.
Could you help me solve this one?

Speaking to Butler 
Response from Butler is: 
errCode: errCode: 9
errCode String: PROGRAM_CREATE_ERROR
myHandle: 0
valid: 1

from vitis-ai.

hanxue avatar hanxue commented on August 22, 2024

Hi @Hikaru-Furuta , could you please raise a new issue, and together with the exact version of Vitis AI docker container that you are using?

from vitis-ai.

Hikaru-Furuta avatar Hikaru-Furuta commented on August 22, 2024

@sumitn-xilinx
Yes, I tried.
as for xbutler_backdoor.sh -b, got followings

xbutler_backdoor.sh -b
-------------------------------
Validating Arguments... passed!
-------------------------------

----------------------
Verifying CONDA_PREFIX
----------------------
----------------------
Verifying XILINX_XRT
----------------------
Pass!
Password Correct!
-----------------------
 Handle/Resource Pairs
-----------------------

-----------------------
  Service/Handle Pairs
-----------------------

-----------------------
       Port Info
-----------------------

from vitis-ai.

sumitn-xilinx avatar sumitn-xilinx commented on August 22, 2024

Thanks for sharing the output of backdoor. I deleted my comment because I saw that you faced this issue after restart only.
This error is mostly related to XCLBIN not present or not being readable.
Which alveo example are you trying? Can you check if the corresponding xclbin is readable?

from vitis-ai.

Hikaru-Furuta avatar Hikaru-Furuta commented on August 22, 2024

@sumitn-xilinx
I'm using alveo U250.
And codes I had tried is follows.

FPGA writing command

cd ~/git/Vitis13/work/alveo_xclbin-1.3.0/U250-V3INT8
/opt/xilinx/xrt/bin/xbutil program -d 0 -p dpdpuv3_wrapper.hw.xilinx_u250_xdma_201830_2.xclbin

environment setup0

source /opt/xilinx/xrt/setup.sh
sudo /opt/xilinx/xrt/bin/xbmgmt flash --scan
xbutil reset

docker run(vai1.3)

cd ~/git/Vitis13/
./docker_run.sh xilinx/vitis-ai-cpu:latest
cd /workspace/examples/DPUCADX8G/vitis_ai_alveo_samples/video_analysis
conda activate vitis-ai-tensorflow
make clean
make
export VAI_ALVEO_ROOT=/workspace/examples
./run.sh XXX.mp4

from vitis-ai.

Hikaru-Furuta avatar Hikaru-Furuta commented on August 22, 2024

@VishalX
Thank you for your kind attention.
I'm targetting DPUCADX8G
So you mean DPUCADX8G is no longer supported by XCLBIN in vai1.3?

from vitis-ai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.