Skip to content
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

benchmark 跑npu 有段错误 #2348

Closed
yangshanjun opened this issue Apr 24, 2023 · 2 comments
Closed

benchmark 跑npu 有段错误 #2348

yangshanjun opened this issue Apr 24, 2023 · 2 comments
Assignees
Labels
bug Something isn't working stale

Comments

@yangshanjun
Copy link

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

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 : #1 pc 0000000000042da8 /data/local/tmp/MNN/libMNN.so
04-24 05:25:16.663 9078 9078 E ffrt : #2 pc 000000000004a60c /data/local/tmp/MNN/libMNN.so (MNN::Session::resize()+124)
04-24 05:25:16.663 9078 9078 E ffrt : #3 pc 00000000000268f4 /data/local/tmp/MNN/libMNN.so (MNN::Interpreter::createMultiPathSession(std::__ndk1::vector<MNN::ScheduleConfig, std::__ndk1::allocatorMNN::ScheduleConfig > const&, std::__ndk1::pair<std::__ndk1::map<MNNForwardType, std::__ndk1::shared_ptrMNN::Runtime, std::__ndk1::less, std::__ndk1::allocator<std::__ndk1::pair<MNNForwardType const, std::__ndk1::shared_ptrMNN::Runtime > > >, std::__ndk1::shared_ptrMNN::Runtime > const&)+836)
04-24 05:25:16.663 9078 9078 E ffrt : #4 pc 00000000000260e8 /data/local/tmp/MNN/libMNN.so (MNN::Interpreter::createMultiPathSession(std::__ndk1::vector<MNN::ScheduleConfig, std::__ndk1::allocatorMNN::ScheduleConfig > const&)+288)
04-24 05:25:16.663 9078 9078 E ffrt : #5 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 : #6 pc 00000000000029b8 /data/local/tmp/MNN/benchmark.out
04-24 05:25:16.663 9078 9078 E ffrt : #7 pc 00000000000031ac /data/local/tmp/MNN/benchmark.out
04-24 05:25:16.663 9078 9078 E ffrt : #8 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

@yangshanjun yangshanjun changed the title benchmark 跑Npu benchmark 跑npu 有段错误 Apr 24, 2023
@wangzhaode wangzhaode self-assigned this Apr 25, 2023
@wangzhaode wangzhaode added the bug Something isn't working label Apr 25, 2023
@wangzhaode
Copy link
Collaborator

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

Copy link

Marking as stale. No activity in 60 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants