XiaoMi / mobile-ai-bench

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

MACE framework,library "libcdsprpc.so" not found #4

Closed jellyDL closed 6 years ago

jellyDL commented 6 years ago

python tools/benchmark.py --output_dir=output --frameworks=MACE --runtimes=CPU --model_names=MobileNetV1 --target_abis=armeabi-v7a

when run the cmd above, it errors on MACE, NCNN and SNPE framework are able to run successfully

('## make_output_processor ', <function process_output at 0x1042a4848>) ('cmd :', "cd /data/local/tmp/aibench; ADSP_LIBRARY_PATH='.;/system/lib/rfsa/adsp;/system/vendor/lib/rfsa/adsp;/dsp'; LD_LIBRARY_PATH=. ./model_benchmark") ('frameworks :', ['MACE']) ('MACE', 'CPU', 'MobileNetV1') WARNING: linker: ./model_benchmark: unused DT entry: type 0xf arg 0xa6a CANNOT LINK EXECUTABLE: library "libcdsprpc.so" not found page record for 0xf769503c was not found (block_size=16)

jellyDL commented 6 years ago

solved. some phone without dsp, so can't find libcdsprpc.so. it runs successfuly on XiaoMi with SnapDragon 835

lee-bin commented 6 years ago

Yes, you are right. Fixed in c141657f01fc36b5e8474d60e2647b3153584740. Now MACE can run on CPU/GPU without libcdsprpc.so.

jellyDL commented 6 years ago

it works! thanks! Incidentally,could you tell me the version of Mace(libmace.zip)?

lee-bin commented 6 years ago

You can run benchmark and see the version from the log.