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 633 forks source link

A library for running model on CPU "libvart-cpu-runner.so" cannot found. #341

Closed lllkiller-jlll closed 3 years ago

lllkiller-jlll commented 3 years ago

Hi.

I'm trying to using Alveo U50 by Vitis AI.

My neural network model is divided four dpu-subgraph and the others are for cpu runner. I created runner object for cpu using VART API like below: auto runner_cpu = vart::Runner::create_runner(subgraph_cpu[0], "ref"); But VART API said that: F0318 07:46:37.057397 3576 dpu_runner.cpp:158] [UNILOG][FATAL][VART_RUNNER_CONSTRUCTION_FAIL][Cannot create runner] cannot open library! lib=libvart-cpu-runner.so, error=libvart-cpu-runner.so: cannot open shared object file: No such file or directory

I could not find "libvart-cpu-runner.so". I only could find "libvart-dpu-runner.so" and "libvart-runner.so" in /usr/lib path. How can I solve this problem?

qianglin-xlnx commented 3 years ago

Hi @lllkiller-jlll cpu-runner is not released in VAI1.3. Currently, only dpu-runner is supported. You need to implement the CPU op yourself. You can refer to this https://github.com/Xilinx/Vitis-AI/issues/320

lllkiller-jlll commented 3 years ago

Hi @qianglin-xlnx .

I understand that cpu-runner is not supported currently. I'll close this issue.