XiaoMi / mobile-ai-bench

Benchmarking Neural Network Inference on Mobile Devices
Apache License 2.0
353 stars 57 forks source link

can't support aarch64_linux SNPE #40

Closed WangFengtu1996 closed 4 years ago

WangFengtu1996 commented 4 years ago

Hi, all system info

devices sda845
abi  aarch64
os ubuntu 16.04

when I run the command bash tools/benchmark.sh --benchmark_option=Performance --target_abis=aarch64 --executors=SNPE I get the error

(mobile-ai-bench_env) wang@ubuntu-pc:~/workspace/benchmark_tool/source_code/mobile-ai-bench$ bash tools/benchmark.sh --benchmark_option=Performance --target_abis=aarch64 --executors=SNPE
INFO: Found 1 target...
Target //aibench/python:benchmark up-to-date:
  bazel-bin/aibench/python/benchmark
INFO: Elapsed time: 0.169s, Critical Path: 0.00s
Find ssh device:sda845
Prepare to run models on aarch64
Skip device  which doesn't support current executors

I am so con confused why the executors can not run in the devices. Because I find the

cc_library(
    name = "snpe_aarch64",
    srcs = [
        "lib/aarch64-linux-gcc4.9/libSNPE.so",
        "lib/aarch64-linux-gcc4.9/libsymphony-cpu.so",
    ],
    deps = ["snpe_hdr"],
    visibility = ["//visibility:public"],
)

in the file named mobile-ai-bench/third_party/snpe/snpe.BUILD. thanks for your time.

lee-bin commented 4 years ago

Please read the Note 1 part.

WangFengtu1996 commented 4 years ago

I read the part, and modify the file WORKSPACE Selection_006 And I try it in the android sda845, then it work very good. My SNPE version is snpe-1.25.1.310. This is maybe the version of SNPE, Can you give me the version 1.18.0. I can't find it. Thanks for your time.

WangFengtu1996 commented 4 years ago

About the Note 1, I can't find the libgnustl_shared.so, So I don't copy it, and I don't know where should copy to .

new_local_repository(
    name = "snpe",
    build_file = "third_party/snpe/snpe.BUILD",
    path = "/path/to/snpe",
)

just the path ??

WangFengtu1996 commented 4 years ago

And about the snpe-1.25.1.310, there is
Selection_007

in the directory snpe-sdk/lib

WangFengtu1996 commented 4 years ago

I try that through adb ,it can work. thanks for your help.