Xilinx / Vitis-AI

Vitis AI is Xilinx’s development stack for AI inference on Xilinx hardware platforms, including both edge devices and Alveo cards.
https://www.xilinx.com/ai
Apache License 2.0
1.49k stars 635 forks source link

Vitis-AI 3.0 failed to run vaitrace tool #1131

Open jzymessi opened 1 year ago

jzymessi commented 1 year ago

I encountered the following problems when using vaitrace tool on VCK5000: image

Here are my implementation steps: step1: add -v /sys/kernel/debug:/sys/kernel/debug --privileged=true \ in docker_run.sh image step2: run docker image step3: sudo bash image but user is not root. step4: run vaitrace image

How to solve the above problem? Thanks.

jia0511 commented 1 year ago

+1

jia0511 commented 1 year ago

There are some updates?

Dexter706 commented 1 year ago

Any update on this issue...I am also facing the same

jzymessi commented 1 year ago
  1. 编译模型 xcompiler --debug_mode function -i -o -t 0x501000000160c2f
    注: 可以使用-t参数来指定生成模型的DPU型号。 通过 show_dpu指令来获取fingerprint的值。
  2. 使用vaitrace工具测试模型 vaitrace --fine_grained ./test_jpeg_classification xcompiler_model/reset50_pt.xmodel sample_classification
    运行完成之后,会在当前的文件夹下,生成如下文件 image
  3. 使用vitis_analyzer工具打开 vitis_analyzer 工具为xilinx提供的一个分析工具软件,安装Vitis时,会安装到host主机上,(硬件部门的服务器一般都安装完成) vitis_analyzer xrt.run_summary 执行上述指令之后,便会出现如下的图,可以查看模型每一层的信息。 image
Dexter706 commented 1 year ago

Hi @jzymessi

Thanks for the reply.But for me it's still not working.XRT is throwing the error.

` vitis-ai-user@XXXX:/workspace/examples/vai_library/samples/classification$ sudo vaitrace ./test_jpeg_classification resnet50_pt sample_classification.jpg INFO:root:VART will run xmodel in [NORMAL] mode INFO:root:Executable file: /workspace/examples/vai_library/samples/classification/test_jpeg_classification Analyzing symbol tables... 207 / 207 81 / 81 6 / 6 45 / 45 3 / 3 terminate called after throwing an instance of 'std::runtime_error' what(): XILINX_XRT not set INFO:root:Generating VTF ERROR:root:Xmodel info raw data empty INFO:root:[vart_trace.csv]: Events number: 0

vitis-ai-user@XXXX:/workspace/examples/vai_library/samples/classification$ echo $XILINX_XRT /opt/xilinx/xrt`

SuZhan0322 commented 1 year ago

Hi @jzymessi , Can you skip step3 and retry the vaitrace tool? Thanks!

jzymessi commented 1 year ago

@Dexter706 run follow: vaitrace --fine_grained ./test_jpeg_classification xcompiler_model/reset50_pt.xmodel sample_classification

SuZhan0322 commented 1 year ago

Hi @Dexter706 , any update about this issue? Thanks!

Irelia1 commented 10 months ago

sudo -E