Skip to content

Conversation

ggerganov
Copy link
Member

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
@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