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

Attempt to improve threading in ggml #343

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Attempt to improve threading in ggml #343

wants to merge 1 commit into from

Conversation

ggerganov
Copy link
Owner

ref #200

Instead of creating and joining new threads for each graph compute, we create a thread pool with active threads and make them wait on a condition variable instead of joining.

Surprisingly, this does not seem to improve the performance.
It is actually degraded. Not sure what is going on.

@heshpdx
Copy link
Contributor

heshpdx commented Jun 4, 2023

Lot's of things have changed in six months, including that the segfault that happened when running more than 18 threads is now gone. Should we try this again? I attempted to rebase to mainline and tried to resolve the conflicts, but my runs livelock... so I clearly missed something. If you can rebase this branch and get it functional, I can help test.

@cook-jeremy
Copy link

Would also like to see this rebased, as I'm having threading issues when running this as an XPC Service.

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

Successfully merging this pull request may close these issues.

3 participants