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

Fix destroy_gpu_instance crash #5353

Merged
merged 2 commits into from
Mar 4, 2024
Merged

Conversation

shatyuka
Copy link
Contributor

destroy_gpu_instance crashes when create_gpu_instance execution fails.
for example it will crash in the __ncnn_vulkan_instance_holder destructor on program exit if there is no vulkan driver found.

@github-actions github-actions bot added the core label Feb 29, 2024
src/gpu.cpp Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Mar 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.48%. Comparing base (ddd17dd) to head (5f9264c).
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5353   +/-   ##
=======================================
  Coverage   94.48%   94.48%           
=======================================
  Files         778      778           
  Lines      243352   243355    +3     
=======================================
+ Hits       229921   229924    +3     
  Misses      13431    13431           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@shatyuka shatyuka requested a review from nihui March 3, 2024 12:57
@nihui nihui merged commit e7748e5 into Tencent:master Mar 4, 2024
103 of 108 checks passed
@nihui
Copy link
Member

nihui commented Mar 4, 2024

Thanks for your contribution !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants