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

metal : create autorelease pool during library build #4970

Merged
merged 2 commits into from
Jan 17, 2024

Conversation

ggerganov
Copy link
Owner

fix: #4952

Threads automatically create autorelease pools which can result in double-free on exit.
Added ggml-ci test to verify that Metal resources are release properly

Copy link
Contributor

@crasm crasm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, fwiw. dart run exits cleanly now.

@ggerganov ggerganov added sync Requires sync with the ggml repo after merging and removed sync Requires sync with the ggml repo after merging labels Jan 17, 2024
@ggerganov ggerganov merged commit c918fe8 into master Jan 17, 2024
46 of 53 checks passed
@ggerganov ggerganov deleted the gg/fix-autorelease-4952 branch January 17, 2024 16:38
jordankanter pushed a commit to jordankanter/llama.cpp that referenced this pull request Feb 3, 2024
* metal : create autorelease pool during library build

ggml-ci

* test : simplify

ggml-ci
hodlen pushed a commit to hodlen/llama.cpp that referenced this pull request Apr 1, 2024
* metal : create autorelease pool during library build

ggml-ci

* test : simplify

ggml-ci
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.

Getting segfault on exit using libllama.so after metal refactor
2 participants