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

Alloc Device Memory Failed! Program Terminated。设备内存分配问题 #58

Open
yuhan159 opened this issue Nov 5, 2024 · 2 comments

Comments

@yuhan159
Copy link

yuhan159 commented Nov 5, 2024

我在BM1684上运行yolov5_bytetrack_distributor_resnet_converger这个demo,程序运行一会后,出现了以下错误:
[bmlib_memory][error] bm_alloc_gmem failed, dev_id = 0, size = 0x639c00
[BM_CHECK][error] BM_CHECK_RET fail /workspace/libsophon/bmlib/src/bmlib_memory.cpp: bm_malloc_device_byte_heap: 994
[STREAM_CHECK_ERROR] /workspace/element/algorithm/yolov5/../algorithmApi/inference.h: 117
[STREAM_CHECK_MESSAGE] Expected ret == 0 to be true, but got false. Alloc Device Memory Failed! Program Terminated.

@Yi-sir
Copy link

Yi-sir commented Nov 6, 2024

内存申请不到了,可以考虑修改内存布局,也可以检查一下是不是路数太多,抽帧太少,或者线程配置不合理

@yuhan159
Copy link
Author

yuhan159 commented Nov 6, 2024

解决了,入口的json文件配置了四个视频输入,只使用一个视频,没再出现这个问题

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