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
tflite 2.4 build benchmark_model error on ubuntu 16.04 (cmake) #45290
Comments
It works well for me with r2.4 branch. BTW, here is the official guide on CMake build |
thanks for your reply, the reason for this problem is my gcc/g++ version too low, avx512 is supported after 6.x, but mine is 5.x, so i upgrade it to 9.0 and this problem solved. but this build also has problem when i build dynamic libraries in ubuntu/windows et. |
@lxiao217 could you share the command you used to build dynamic libraries? |
i added "shared" in CMakeLists.txt like this: TFLite libraryadd_library(tensorflow-lite SHARED and then" cmake ./ -B ./build ", then errors up thrown. i annotated those code at last, i dont know if this action will have other bad influence. though this code in test file. |
- Filtered Flex relate files - Filtered Kernel test files This patch may fix the GitHub issue #45290. PiperOrigin-RevId: 347527218 Change-Id: I3442dd0f4d1e939787f4fb31c576f3a4368160bb
Could you try if the patch 9455057 helps? |
thanks very much! i will try later. /tmp/cifar10-d10aa3.o: In function when i build so, i close the switch to build with xnnpack: option(TFLITE_ENABLE_XNNPACK "Enable XNNPACK backend" OFF) this option is set ON default. otherwise, seek for some helps: |
Hi, we had the same problem (undefined reference to TfLiteXNNPackDelegateCreate, `TfLiteXNNPackDelegateDelete, also Parse and Merge problem). The patch 9455057 seems to solve our issue, but it's not present in the r2.4 branch and we had to pull directly from the master |
Can you update to the latest stable version i.e |
This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you. |
Closing as stale. Please reopen if you'd like to work on this further. |
when i build tflite2.4 on Ubuntu, i encount the problem:
i can success build libtensorflow-lite.a with CMakeLists.txt use CMake, but when i buildbenchmark-model i got these errors:
my build command is : make benchmark-model
errors:
[ 98%] Linking CXX executable benchmark_model
_deps/xnnpack-build/libXNNPACK.a(4x16c8-minmax-avx512skx.c.o): In function
xnn_qs8_gemm_minmax_ukernel_4x16c8__avx512skx': 4x16c8-minmax-avx512skx.c:(.text+0x720): undefined reference to
_kshiftli_mask64'4x16c8-minmax-avx512skx.c:(.text+0x753): undefined reference to
_kshiftli_mask64' 4x16c8-minmax-avx512skx.c:(.text+0x785): undefined reference to
_kshiftli_mask64'_deps/xnnpack-build/libXNNPACK.a(4x16c8-minmax-avx512skx.c.o): In function
xnn_qs8_igemm_minmax_ukernel_4x16c8__avx512skx': 4x16c8-minmax-avx512skx.c:(.text+0x7a2): undefined reference to
_kshiftri_mask64'4x16c8-minmax-avx512skx.c:(.text+0x7d4): undefined reference to
_kshiftri_mask64' 4x16c8-minmax-avx512skx.c:(.text+0x80d): undefined reference to
_kshiftri_mask64'collect2: error: ld returned 1 exit status
CMakeFiles/benchmark_model.dir/build.make:382: recipe for target 'benchmark_model' failed
make[3]: *** [benchmark_model] Error 1
CMakeFiles/Makefile2:2012: recipe for target 'CMakeFiles/benchmark_model.dir/all' failed
make[2]: *** [CMakeFiles/benchmark_model.dir/all] Error 2
CMakeFiles/Makefile2:2019: recipe for target 'CMakeFiles/benchmark_model.dir/rule' failed
make[1]: *** [CMakeFiles/benchmark_model.dir/rule] Error 2
Makefile:199: recipe for target 'benchmark_model' failed
make: *** [benchmark_model] Error 2
this puzzled me for a long time , appreciate your reply!
the CMakeLists.txt help me much ,but also has some errors i think , for example the xnnpack delegate switch to control build with xnnpack delegate. i found use TFLITE_ENABLE_XNNPACK to control xnnpack delegate will get errors when i build shared library in windows x64. so i change the source code.
email: lxiao217@163.com
The text was updated successfully, but these errors were encountered: