buddy-compiler / buddy-benchmark

Benchmark Framework for Buddy Projects
Apache License 2.0
44 stars 34 forks source link

Build fails with Benchmark: undefined reference to `_mlir_ciface_xxx' #48

Closed xlinsist closed 1 year ago

xlinsist commented 1 year ago

Describe the bug After successfully running Buddy-MLIR and going to try out buddy-benchmark, I got trouble following README.md to build any benchmarks. Terminal commands 'ninja' after 'cmake -G Ninja ..' turned out to be stuck by 'undefined reference to `_mlir_ciface_mobilenet' or messages like that. Through I have checked out decently if any detail has been missing, still can't I figure out. Behaviours of building of other benchmarks like 'Vectorization Benchmark' is similarly abnormal.

Here is what I've checked:

  1. build OpenCV from source
  2. successfully build Buddy MLIR and make sure that buddy-opt works well
  3. remove the whole 'build' file in buddy-benchmark and try again

To Reproduce Just literally follow README.md.

Expected behavior Build success.

Desktop

Screenshots (base) zhouxulin@zhouxulin-MACHC-WAX9:~/buddy-benchmark/build$ cmake -G Ninja .. \ -DDEEP_LEARNING_BENCHMARKS=ON \ -DOpenCV_DIR=~/opencv/build \ -DBUDDY_OPT_BUILD_DIR=~/buddy-mlir/build -- The CXX compiler identification is GNU 11.2.0 -- The C compiler identification is GNU 11.2.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Configuring Target Architecture: avx512f -- Configuring Target Triple: x86_64-unknown-linux-gnu -- Configuring benchmarks: google -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE
-- Found OpenCV: /home/zhouxulin/opencv/build (found version "4.6.0") -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") -- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.6.37") -- Performing Test HAVE_SSE -- Performing Test HAVE_SSE - Success -- SSE support - yes -- Performing Test HAVE_AVX2 -- Performing Test HAVE_AVX2 - Success -- AVX2 support - yes -- Performing Test HAVE_AVX512 -- Performing Test HAVE_AVX512 - Failed -- AVX512 support - no -- Performing Test HAVE_NEON -- Performing Test HAVE_NEON - Failed -- Arm Neon support - no -- Configuring done -- Generating done -- Build files have been written to: /home/zhouxulin/buddy-benchmark/build (base) zhouxulin@zhouxulin-MACHC-WAX9:~/buddy-benchmark/build$ ninja [1/53] Generating mobilenet-default.o /bin/sh: 1: ~/buddy-mlir/build/../llvm/build/bin/mlir-opt: not found [2/53] Generating depthwise-conv-2d-nhwc-hwc.o /bin/sh: 1: ~/buddy-mlir/build/../llvm/build/bin/mlir-opt: not found [3/53] Generating mobilenet-v3-default.o /bin/sh: 1: ~/buddy-mlir/build/../llvm/build/bin/mlir-opt: not found [4/53] Generating conv-2d-nhwc-hwcf.o /bin/sh: 1: ~/buddy-mlir/build/../llvm/build/bin/mlir-opt: not found [5/53] Generating resnet-default.o /bin/sh: 1: ~/buddy-mlir/build/../llvm/build/bin/mlir-opt: not found [6/53] Generating inception-v3-default.o /bin/sh: 1: ~/buddy-mlir/build/../llvm/build/bin/mlir-opt: not found [7/53] Generating conv-2d-nchw-fchw.o /bin/sh: 1: ~/buddy-mlir/build/../llvm/build/bin/mlir-opt: not found [13/53] Generating pooling-nhwc-sum.o /bin/sh: 1: ~/buddy-mlir/build/../llvm/build/bin/mlir-opt: not found [22/53] Performing download step (git clone) for 'project_googlebenchmark' Cloning into 'project_googlebenchmark'... fatal: unable to access 'https://github.com/google/benchmark.git/': GnuTLS recv error (-110): The TLS connection was non-properly terminated. Cloning into 'project_googlebenchmark'... -- Had to git clone more than once: 2 times. HEAD is now at f91b6b4 bump version to 1.6 in preparation for release [25/53] Performing configure step for 'project_googlebenchmark' -- The CXX compiler identification is GNU 11.2.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Failed to find LLVM FileCheck -- Found Git: /usr/bin/git (found version "2.34.1") -- git version: v1.6.0 normalized to 1.6.0 -- Version: 1.6.0 -- Performing Test HAVE_CXX_FLAG_STD_CXX11 -- Performing Test HAVE_CXX_FLAG_STD_CXX11 - Success -- Performing Test HAVE_CXX_FLAG_WALL -- Performing Test HAVE_CXX_FLAG_WALL - Success -- Performing Test HAVE_CXX_FLAG_WEXTRA -- Performing Test HAVE_CXX_FLAG_WEXTRA - Success -- Performing Test HAVE_CXX_FLAG_WSHADOW -- Performing Test HAVE_CXX_FLAG_WSHADOW - Success -- Performing Test HAVE_CXX_FLAG_WERROR -- Performing Test HAVE_CXX_FLAG_WERROR - Success -- Performing Test HAVE_CXX_FLAG_WSUGGEST_OVERRIDE -- Performing Test HAVE_CXX_FLAG_WSUGGEST_OVERRIDE - Success -- Performing Test HAVE_CXX_FLAG_PEDANTIC -- Performing Test HAVE_CXX_FLAG_PEDANTIC - Success -- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS -- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS - Success -- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 -- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 - Failed -- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING -- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING - Success -- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS -- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS - Success -- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED -- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED - Success -- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING -- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING - Success -- Performing Test HAVE_CXX_FLAG_WD654 -- Performing Test HAVE_CXX_FLAG_WD654 - Failed -- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY -- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY - Failed -- Performing Test HAVE_CXX_FLAG_COVERAGE -- Performing Test HAVE_CXX_FLAG_COVERAGE - Success -- Performing Test HAVE_STD_REGEX -- Performing Test HAVE_STD_REGEX -- Performing Test HAVE_STD_REGEX -- success -- Performing Test HAVE_GNU_POSIX_REGEX -- Performing Test HAVE_GNU_POSIX_REGEX -- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile -- Performing Test HAVE_POSIX_REGEX -- Performing Test HAVE_POSIX_REGEX -- Performing Test HAVE_POSIX_REGEX -- success -- Performing Test HAVE_STEADY_CLOCK -- Performing Test HAVE_STEADY_CLOCK -- Performing Test HAVE_STEADY_CLOCK -- success -- Looking for C++ include pthread.h -- Looking for C++ include pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE
-- Configuring done -- Generating done -- Build files have been written to: /home/zhouxulin/buddy-benchmark/build/vendor/benchmark/src/project_googlebenchmark-build [26/53] Performing build step for 'project_googlebenchmark' [1/22] Building CXX object src/CMakeFiles/benchmark.dir/benchmark_name.cc.o [2/22] Building CXX object src/CMakeFiles/benchmark.dir/colorprint.cc.o [3/22] Building CXX object src/CMakeFiles/benchmark.dir/benchmark_api_internal.cc.o [4/22] Building CXX object src/CMakeFiles/benchmark.dir/counter.cc.o [5/22] Building CXX object src/CMakeFiles/benchmark.dir/commandlineflags.cc.o [6/22] Building CXX object src/CMakeFiles/benchmark.dir/console_reporter.cc.o [7/22] Building CXX object src/CMakeFiles/benchmark.dir/complexity.cc.o [8/22] Building CXX object src/CMakeFiles/benchmark.dir/sleep.cc.o [9/22] Building CXX object src/CMakeFiles/benchmark.dir/perf_counters.cc.o [10/22] Building CXX object src/CMakeFiles/benchmark.dir/json_reporter.cc.o [11/22] Building CXX object src/CMakeFiles/benchmark.dir/csv_reporter.cc.o [12/22] Building CXX object src/CMakeFiles/benchmark.dir/reporter.cc.o [13/22] Building CXX object src/CMakeFiles/benchmark.dir/string_util.cc.o [14/22] Building CXX object src/CMakeFiles/benchmark.dir/statistics.cc.o [15/22] Building CXX object src/CMakeFiles/benchmark_main.dir/benchmark_main.cc.o [16/22] Building CXX object src/CMakeFiles/benchmark.dir/benchmark_runner.cc.o [17/22] Building CXX object src/CMakeFiles/benchmark.dir/timers.cc.o [18/22] Building CXX object src/CMakeFiles/benchmark.dir/sysinfo.cc.o [19/22] Building CXX object src/CMakeFiles/benchmark.dir/benchmark.cc.o [20/22] Building CXX object src/CMakeFiles/benchmark.dir/benchmark_register.cc.o [21/22] Linking CXX static library src/libbenchmark.a [22/22] Linking CXX static library src/libbenchmark_main.a [27/53] Performing install step for 'project_googlebenchmark' [0/1] Install the project... -- Install configuration: "" -- Installing: /home/zhouxulin/buddy-benchmark/build/vendor/benchmark/lib/libbenchmark.a -- Installing: /home/zhouxulin/buddy-benchmark/build/vendor/benchmark/lib/libbenchmark_main.a -- Installing: /home/zhouxulin/buddy-benchmark/build/vendor/benchmark/include/benchmark -- Installing: /home/zhouxulin/buddy-benchmark/build/vendor/benchmark/include/benchmark/benchmark.h -- Installing: /home/zhouxulin/buddy-benchmark/build/vendor/benchmark/lib/cmake/benchmark/benchmarkConfig.cmake -- Installing: /home/zhouxulin/buddy-benchmark/build/vendor/benchmark/lib/cmake/benchmark/benchmarkConfigVersion.cmake -- Installing: /home/zhouxulin/buddy-benchmark/build/vendor/benchmark/lib/pkgconfig/benchmark.pc -- Installing: /home/zhouxulin/buddy-benchmark/build/vendor/benchmark/lib/cmake/benchmark/benchmarkTargets.cmake -- Installing: /home/zhouxulin/buddy-benchmark/build/vendor/benchmark/lib/cmake/benchmark/benchmarkTargets-noconfig.cmake -- Installing: /home/zhouxulin/buddy-benchmark/build/vendor/benchmark/share/doc/benchmark -- Installing: /home/zhouxulin/buddy-benchmark/build/vendor/benchmark/share/doc/benchmark/perf_counters.md -- Installing: /home/zhouxulin/buddy-benchmark/build/vendor/benchmark/share/doc/benchmark/AssemblyTests.md -- Installing: /home/zhouxulin/buddy-benchmark/build/vendor/benchmark/share/doc/benchmark/dependencies.md -- Installing: /home/zhouxulin/buddy-benchmark/build/vendor/benchmark/share/doc/benchmark/tools.md -- Installing: /home/zhouxulin/buddy-benchmark/build/vendor/benchmark/share/doc/benchmark/platform_specific_build_instructions.md -- Installing: /home/zhouxulin/buddy-benchmark/build/vendor/benchmark/share/doc/benchmark/releasing.md -- Installing: /home/zhouxulin/buddy-benchmark/build/vendor/benchmark/share/doc/benchmark/user_guide.md -- Installing: /home/zhouxulin/buddy-benchmark/build/vendor/benchmark/share/doc/benchmark/random_interleaving.md -- Installing: /home/zhouxulin/buddy-benchmark/build/vendor/benchmark/share/doc/benchmark/index.md -- Installing: /home/zhouxulin/buddy-benchmark/build/vendor/benchmark/share/doc/benchmark/_config.yml [43/53] Linking CXX executable bin/inception-v3-benchmark FAILED: bin/inception-v3-benchmark : && /usr/bin/c++ -no-pie benchmarks/DeepLearning/Models/Inception-V3/CMakeFiles/inception-v3-benchmark.dir/Main.cpp.o benchmarks/DeepLearning/Models/Inception-V3/CMakeFiles/inception-v3-benchmark.dir/InceptionBenchmark.cpp.o -o bin/inception-v3-benchmark -L/home/zhouxulin/buddy-mlir/build/../llvm/build/lib -Wl,-rpath,/home/zhouxulin/buddy-mlir/build/../llvm/build/lib:/home/zhouxulin/opencv/build/lib benchmarks/DeepLearning/Models/Inception-V3/libInceptionV3Default.a vendor/benchmark/lib/libbenchmark.a lib/Utils/libContainer.a -lmlir_c_runner_utils benchmarks/DeepLearning/Models/Inception-V3/libInceptionV3Default.a /home/zhouxulin/opencv/build/lib/libopencv_gapi.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_highgui.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_ml.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_objdetect.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_photo.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_stitching.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_video.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_videoio.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_calib3d.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_dnn.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_features2d.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_flann.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_imgcodecs.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_imgproc.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_core.so.4.6.0 && : /usr/bin/ld: benchmarks/DeepLearning/Models/Inception-V3/CMakeFiles/inception-v3-benchmark.dir/InceptionBenchmark.cpp.o: in function (anonymous namespace)::BM_InceptionV3(benchmark::State&)': InceptionBenchmark.cpp:(.text+0x320): undefined reference to_mlir_ciface_inception_v3' /usr/bin/ld: benchmarks/DeepLearning/Models/Inception-V3/CMakeFiles/inception-v3-benchmark.dir/InceptionBenchmark.cpp.o: in function printResult()': InceptionBenchmark.cpp:(.text+0x715): undefined reference to_mlir_ciface_inception_v3' collect2: error: ld returned 1 exit status [44/53] Linking CXX executable bin/mobilenet-v3-benchmark FAILED: bin/mobilenet-v3-benchmark : && /usr/bin/c++ -no-pie benchmarks/DeepLearning/Models/MobileNet-V3/CMakeFiles/mobilenet-v3-benchmark.dir/Main.cpp.o benchmarks/DeepLearning/Models/MobileNet-V3/CMakeFiles/mobilenet-v3-benchmark.dir/MobileNetBenchmark.cpp.o -o bin/mobilenet-v3-benchmark -L/home/zhouxulin/buddy-mlir/build/../llvm/build/lib -Wl,-rpath,/home/zhouxulin/buddy-mlir/build/../llvm/build/lib:/home/zhouxulin/opencv/build/lib benchmarks/DeepLearning/Models/MobileNet-V3/libMobileNetV3Default.a vendor/benchmark/lib/libbenchmark.a lib/Utils/libContainer.a -lmlir_c_runner_utils benchmarks/DeepLearning/Models/MobileNet-V3/libMobileNetV3Default.a /home/zhouxulin/opencv/build/lib/libopencv_gapi.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_highgui.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_ml.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_objdetect.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_photo.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_stitching.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_video.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_videoio.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_calib3d.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_dnn.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_features2d.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_flann.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_imgcodecs.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_imgproc.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_core.so.4.6.0 && : /usr/bin/ld: benchmarks/DeepLearning/Models/MobileNet-V3/CMakeFiles/mobilenet-v3-benchmark.dir/MobileNetBenchmark.cpp.o: in function (anonymous namespace)::BM_MobileNet(benchmark::State&)': MobileNetBenchmark.cpp:(.text+0x320): undefined reference to_mlir_ciface_mobilenet_v3' /usr/bin/ld: benchmarks/DeepLearning/Models/MobileNet-V3/CMakeFiles/mobilenet-v3-benchmark.dir/MobileNetBenchmark.cpp.o: in function printResult()': MobileNetBenchmark.cpp:(.text+0x715): undefined reference to_mlir_ciface_mobilenet_v3' collect2: error: ld returned 1 exit status [45/53] Linking CXX executable bin/depthwise-conv-2d-nhwc-hwc-benchmark FAILED: bin/depthwise-conv-2d-nhwc-hwc-benchmark : && /usr/bin/c++ -no-pie benchmarks/DeepLearning/Ops/DepthwiseConv2DNhwcHwcOp/CMakeFiles/depthwise-conv-2d-nhwc-hwc-benchmark.dir/Main.cpp.o benchmarks/DeepLearning/Ops/DepthwiseConv2DNhwcHwcOp/CMakeFiles/depthwise-conv-2d-nhwc-hwc-benchmark.dir/MLIROptBenchmark.cpp.o -o bin/depthwise-conv-2d-nhwc-hwc-benchmark -Wl,-rpath,/home/zhouxulin/opencv/build/lib benchmarks/DeepLearning/Ops/DepthwiseConv2DNhwcHwcOp/libDepthwiseConv2DNhwcHwc.a vendor/benchmark/lib/libbenchmark.a lib/Utils/libContainer.a /home/zhouxulin/opencv/build/lib/libopencv_gapi.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_highgui.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_ml.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_objdetect.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_photo.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_stitching.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_video.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_calib3d.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_dnn.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_features2d.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_flann.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_videoio.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_imgcodecs.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_imgproc.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_core.so.4.6.0 && : /usr/bin/ld: benchmarks/DeepLearning/Ops/DepthwiseConv2DNhwcHwcOp/CMakeFiles/depthwise-conv-2d-nhwc-hwc-benchmark.dir/MLIROptBenchmark.cpp.o: in function (anonymous namespace)::BM_DepthwiseConv2DNhw(benchmark::State&)': MLIROptBenchmark.cpp:(.text+0xdc): undefined reference to_mlir_ciface_depthwise_conv_2d_nhwc_hwc' /usr/bin/ld: benchmarks/DeepLearning/Ops/DepthwiseConv2DNhwcHwcOp/CMakeFiles/depthwise-conv-2d-nhwc-hwc-benchmark.dir/MLIROptBenchmark.cpp.o: in function printResult()': MLIROptBenchmark.cpp:(.text+0x249): undefined reference to_mlir_ciface_depthwise_conv_2d_nhwc_hwc' collect2: error: ld returned 1 exit status [46/53] Linking CXX executable bin/resnet_v2_50-benchmark FAILED: bin/resnet_v2_50-benchmark : && /usr/bin/c++ -no-pie benchmarks/DeepLearning/Models/ResNet-V2-50/CMakeFiles/resnet_v2_50-benchmark.dir/Main.cpp.o benchmarks/DeepLearning/Models/ResNet-V2-50/CMakeFiles/resnet_v2_50-benchmark.dir/ResNetBenchmark.cpp.o -o bin/resnet_v2_50-benchmark -L/home/zhouxulin/buddy-mlir/build/../llvm/build/lib -Wl,-rpath,/home/zhouxulin/buddy-mlir/build/../llvm/build/lib:/home/zhouxulin/opencv/build/lib benchmarks/DeepLearning/Models/ResNet-V2-50/libResNetDefault.a vendor/benchmark/lib/libbenchmark.a lib/Utils/libContainer.a -lmlir_c_runner_utils benchmarks/DeepLearning/Models/ResNet-V2-50/libResNetDefault.a /home/zhouxulin/opencv/build/lib/libopencv_gapi.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_highgui.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_ml.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_objdetect.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_photo.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_stitching.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_video.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_videoio.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_calib3d.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_dnn.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_features2d.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_flann.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_imgcodecs.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_imgproc.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_core.so.4.6.0 && : /usr/bin/ld: benchmarks/DeepLearning/Models/ResNet-V2-50/CMakeFiles/resnet_v2_50-benchmark.dir/ResNetBenchmark.cpp.o: in function (anonymous namespace)::BM_ResNet(benchmark::State&)': ResNetBenchmark.cpp:(.text+0x320): undefined reference to_mlir_ciface_resnet' /usr/bin/ld: benchmarks/DeepLearning/Models/ResNet-V2-50/CMakeFiles/resnet_v2_50-benchmark.dir/ResNetBenchmark.cpp.o: in function printResult()': ResNetBenchmark.cpp:(.text+0x715): undefined reference to_mlir_ciface_resnet' collect2: error: ld returned 1 exit status [47/53] Linking CXX executable bin/mobilenet-benchmark FAILED: bin/mobilenet-benchmark : && /usr/bin/c++ -no-pie benchmarks/DeepLearning/Models/MobileNet-V2/CMakeFiles/mobilenet-benchmark.dir/Main.cpp.o benchmarks/DeepLearning/Models/MobileNet-V2/CMakeFiles/mobilenet-benchmark.dir/MobileNetBenchmark.cpp.o -o bin/mobilenet-benchmark -L/home/zhouxulin/buddy-mlir/build/../llvm/build/lib -Wl,-rpath,/home/zhouxulin/buddy-mlir/build/../llvm/build/lib:/home/zhouxulin/opencv/build/lib benchmarks/DeepLearning/Models/MobileNet-V2/libMobileNetDefault.a vendor/benchmark/lib/libbenchmark.a lib/Utils/libContainer.a -lmlir_c_runner_utils benchmarks/DeepLearning/Models/MobileNet-V2/libMobileNetDefault.a /home/zhouxulin/opencv/build/lib/libopencv_gapi.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_highgui.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_ml.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_objdetect.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_photo.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_stitching.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_video.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_videoio.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_calib3d.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_dnn.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_features2d.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_flann.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_imgcodecs.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_imgproc.so.4.6.0 /home/zhouxulin/opencv/build/lib/libopencv_core.so.4.6.0 && : /usr/bin/ld: benchmarks/DeepLearning/Models/MobileNet-V2/CMakeFiles/mobilenet-benchmark.dir/MobileNetBenchmark.cpp.o: in function (anonymous namespace)::BM_MobileNet(benchmark::State&)': MobileNetBenchmark.cpp:(.text+0x320): undefined reference to_mlir_ciface_mobilenet' /usr/bin/ld: benchmarks/DeepLearning/Models/MobileNet-V2/CMakeFiles/mobilenet-benchmark.dir/MobileNetBenchmark.cpp.o: in function printResult()': MobileNetBenchmark.cpp:(.text+0x715): undefined reference to_mlir_ciface_mobilenet' collect2: error: ld returned 1 exit status [50/53] Building CXX object benchmarks...m-benchmark.dir/MLIROptBenchmark.cpp.o ninja: build stopped: subcommand failed. (base) zhouxulin@zhouxulin-MACHC-WAX9:~/buddy-benchmark/build$

zhanghb97 commented 1 year ago

@xlinsist Thanks for reporting the issue! Please check the deep learning model files buddy-benchmark/benchmarks/DeepLearning/Models/<model name>/<model name>.mlir. They are hosted using Git LFS, please check if you have cloned them successfully.