VeriSilicon / tflite-vx-delegate

Tensorflow Lite external delegate based on TIM-VX
MIT License
41 stars 23 forks source link

Unable to build tflite-vx-delegate on A311D processor running Linux #186

Open sanjeewk opened 1 year ago

sanjeewk commented 1 year ago

According to my understanding, I should be bale to build this repo to produce a libvx_delegate.so binary file, which can be called using TFLite to run model inference on the NPU. However when trying to build the package, I'm experiencing a complete system crash.

/bin/sh: 1: /home/pi/Desktop/wksp/tflite-vx-delegate/build/_deps/tim-vx-build/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++: Exec format error make[3]: *** [_deps/tim-vx-build/src/tim/CMakeFiles/tim-vx.dir/build.make:63: _deps/tim-vx-build/src/tim/CMakeFiles/tim-vx.dir/vx/builtin_op.cc.o] Error 2 make[2]: *** [CMakeFiles/Makefile2:7050: _deps/tim-vx-build/src/tim/CMakeFiles/tim-vx.dir/all] Error 2 make[2]: *** Waiting for unfinished jobs....

Would cross compilation be a better solution?

tomeuv commented 1 year ago

Looks like you are trying to run on aarch64 a compiler built for x86_64.

sunshinemyson commented 1 year ago

@sanjeewk , Please check tomeuv's comment. Please share what's you finding.

Thanks