alibaba / MNN

MNN is a blazing fast, lightweight deep learning framework, battle-tested by business-critical use cases in Alibaba
http://www.mnn.zone/
8.76k stars 1.67k forks source link

benchmark 跑npu 有段错误 #2348

Closed yangshanjun closed 9 months ago

yangshanjun commented 1 year ago

平台(如果交叉编译请再附上交叉编译目标平台):

andriod 64

./benchmark.out ./benchmark/models 1 0 8

MNN benchmark Forward type: N/A thread=4 precision=2 sparsity=0 sparseBlockOC=1 --------> Benchmarking... loop = 1, warmup = 0 The device support dot:1, support fp16:1, support i8mm: 1 [NPU] ddk currentversion : 100.600.020.100 [NPU] ddk currentversion : 100.600.020.100 [NPU] ddk currentversion : 100.600.020.100 [NPU] ddk currentversion : 100.600.020.100 Segmentation fault**

调用栈

04-24 05:25:16.583 9078 9078 I AI_FMK : ai_dedicated_model_manager.cpp DedicatedMMListener(55)::"DedicatedMMListener construct" 04-24 05:25:16.583 9078 9078 I ENGINE : RegisterTensor(246)::"Tensor register success! type is :AINeuralNetworkBuffer." 04-24 05:25:16.587 9078 9078 W HIAI_DDK_MSG: hiai_plugin_version.c HIAI_GetPluginVersion(29)::"dlopen failed, lib[libhiai_enhance.so], errmsg[dlopen failed: library "libhiai_enhance.so" not found]" 04-24 05:25:16.587 9078 9078 I AI_FMK : hiai_c_version.cpp HIAI_GetVersion_Config(16)::"AI_GetVersion_Config ERROR system_property_get <= 0" 04-24 05:25:16.588 9078 9078 I HIAI_DDK_MSG: hiai_plugin_version.c HIAI_GetVersion(98)::"version is 100.600.020.100" 04-24 05:25:16.658 9078 9078 E ffrt : <<<=== ffrt black box start ===>>> 04-24 05:25:16.659 9078 9078 E ffrt : <<<=== current status ===>>> 04-24 05:25:16.659 9078 9078 E ffrt : backtrace 04-24 05:25:16.663 9078 9078 E ffrt : #00 pc 000000000001546c /data/local/tmp/MNN/libMNN_NPU.so 04-24 05:25:16.663 9078 9078 E ffrt : #01 pc 0000000000042da8 /data/local/tmp/MNN/libMNN.so 04-24 05:25:16.663 9078 9078 E ffrt : #02 pc 000000000004a60c /data/local/tmp/MNN/libMNN.so (MNN::Session::resize()+124) 04-24 05:25:16.663 9078 9078 E ffrt : #03 pc 00000000000268f4 /data/local/tmp/MNN/libMNN.so (MNN::Interpreter::createMultiPathSession(std::ndk1::vector<MNN::ScheduleConfig, std::ndk1::allocator > const&, std::ndk1::pair<std::ndk1::map<MNNForwardType, std::ndk1::shared_ptr, std::ndk1::less, std::ndk1::allocator<std::ndk1::pair<MNNForwardType const, std::ndk1::shared_ptr > > >, std::__ndk1::shared_ptr > const&)+836) 04-24 05:25:16.663 9078 9078 E ffrt : #04 pc 00000000000260e8 /data/local/tmp/MNN/libMNN.so (MNN::Interpreter::createMultiPathSession(std::ndk1::vector<MNN::ScheduleConfig, std::ndk1::allocator > const&)+288) 04-24 05:25:16.663 9078 9078 E ffrt : #05 pc 0000000000026cc8 /data/local/tmp/MNN/libMNN.so (MNN::Interpreter::createSession(MNN::ScheduleConfig const&)+200) 04-24 05:25:16.663 9078 9078 E ffrt : #06 pc 00000000000029b8 /data/local/tmp/MNN/benchmark.out 04-24 05:25:16.663 9078 9078 E ffrt : #07 pc 00000000000031ac /data/local/tmp/MNN/benchmark.out 04-24 05:25:16.663 9078 9078 E ffrt : #08 pc 0000000000082148 /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+96) 04-24 05:25:16.663 9078 9078 E ffrt : <<<=== task counter ===>>> 04-24 05:25:16.663 9078 9078 E ffrt : FFRT BBOX TaskSubmitCounter:0 TaskEnQueueCounter:0 TaskDoneCounter:0 04-24 05:25:16.663 9078 9078 E ffrt : FFRT BBOX TaskRunCounter:0 TaskSwitchCounter:0 TaskFinishCounter:0 04-24 05:25:16.663 9078 9078 E ffrt : TaskRunCounter equals TaskSwitchCounter + TaskFinishCounter 04-24 05:25:16.663 9078 9078 E ffrt : <<<=== worker status ===>>> 04-24 05:25:16.663 9078 9078 E ffrt : <<<=== ready queue status ===>>> 04-24 05:25:16.663 9078 9078 E ffrt : <<<=== ffrt black box finish ===>>> 04-24 05:25:16.663 9078 9078 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xffffffffffffffd8 in tid 9078 (benchmark.out), pid 9078 (benchmark.out) 04-24 05:25:16.682 9082 9082 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstoneProto 04-24 05:25:16.682 618 618 I tombstoned: received crash request for pid 9078 04-24 05:25:16.684 9082 9082 I crash_dump64: performing dump of process 9078 (target tid = 9078) 04-24 05:25:16.701 618 618 W tombstoned: crash socket received short read of length 0 (expected 12) 04-24 05:25:16.841 3017 3028 I bms_behavior: runState = 1, cvStatus = 1 04-24 05:25:16.842 3017 3028 E bms_file: file /sys/class/hw_power/charger/direct_charger/direct_charge_succ is invalid 04-24 05:25:16.842 3017 3028 E bms_file: file /sys/class/hw_power/charger/direct_charger_sc/direct_charge_succ is invalid 04-24 05:25:16.843 3017 3028 E bms_file: file /sys/class/hw_power/charger/direct_charger/direct_charge_succ is invalid

wangzhaode commented 1 year ago

HIAI_DDK_MSG: hiai_plugin_version.c HIAI_GetPluginVersion(29)::"dlopen failed, lib[libhiai_enhance.so], errmsg[dlopen failed: library "libhiai_enhance.so" not found]"

看起来好像缺少so

github-actions[bot] commented 10 months ago

Marking as stale. No activity in 60 days.