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

Run resize in CPU and more aggressively release rknn resources #1287

Merged
merged 8 commits into from Mar 18, 2024

Conversation

mcm001
Copy link
Contributor

@mcm001 mcm001 commented Mar 17, 2024

With the latest dev opi image, i saw this stack trace when object detection stopped working (threads hanging forever on detect(). The stack pointed me to somewhere inside the RGA. Based on this i moved resize into CPU (as our native code already is lazy), and was not able to see more crashes

message.txt

Includes also a quick hack to add a shutdown hook that releases pipelines at exit.

@mcm001 mcm001 requested a review from a team as a code owner March 17, 2024 14:46
@mcm001 mcm001 changed the title Release rknn pipelines at program exit Run resize in CPU and more aggressively release rknn resources Mar 18, 2024
@mcm001 mcm001 merged commit 5dc70e4 into PhotonVision:master Mar 18, 2024
27 checks passed
@mcm001 mcm001 deleted the rknn-release-2 branch March 18, 2024 20:36
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

Successfully merging this pull request may close these issues.

None yet

2 participants