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

rknn_set_core_mask(m_ctx, RKNN_NPU_CORE_1)后,NPU飙升到100%,识别失败,最后系统卡死 #121

Open
LongchuanYu opened this issue Dec 11, 2023 · 3 comments

Comments

@LongchuanYu
Copy link

环境

板子:RK3588s
系统:ubuntu20.04
rknpu2 sdk版本:1.5.2
driver版本:0.9.2

步骤

  1. 修改rknpu2/examples/rknn_yolov5_demo/src/main.cc
//set core mask
ret = rknn_set_core_mask(ctx, RKNN_NPU_CORE_1);
if(ret<0){
  printf("rknn_set_core_mask error ret=%d\n", ret);
  return -1;
}

1

  1. 编译
cd rknpu2/examples/rknn_yolov5_demo
./build-linux_RK3588.sh
  1. 运行demo
cd rknpu2/examples/rknn_yolov5_demo/install/rknn_yolov5_demo_Linux
./rknn_yolov5_demo model/RK3588/yolov5s-640-640.rknn model/bus.jpg
  1. 结果
    2
    3
    4

备注

  1. 如果这样设置:rknn_set_core_mask(m_ctx, RKNN_NPU_CORE_0),运行在第一颗核心,则没有问题
@bobqianic
Copy link

请问你板子的NPU驱动程序是怎么装的?用的什么版本的系统?

@LongchuanYu
Copy link
Author

请问你板子的NPU驱动程序是怎么装的?用的什么版本的系统?

驱动程序按照官方教程装的,版本系统在issue最上面有些的

@LongchuanYu
Copy link
Author

最终结论:别用友善的板子,换了块板子就没这个问题了。。。

friendlyarm pushed a commit to friendlyarm/kernel-rockchip that referenced this issue Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants