Skip to content

Add missing pthread includes on FreeBSD #9258

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

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

yurivict
Copy link
Contributor

@github-actions github-actions bot added the ggml changes relating to the ggml tensor library for machine learning label Aug 31, 2024
@ngxson
Copy link
Collaborator

ngxson commented Aug 31, 2024

I don't see any benefit of this change. pthread is already included in another line:

https://github.com/ggerganov/llama.cpp/blob/121f915a09c1117d34aff6e8faf6d252aaf11027/ggml/src/ggml.c#L149

And pthread_np clearly does not exist outside of BSD, which breaks all the builds on the CI

@yurivict yurivict changed the title Add missing pthread includes Add missing pthread includes on FreeBSD Sep 1, 2024
@yurivict
Copy link
Contributor Author

yurivict commented Sep 1, 2024

Sorry, I adjusted the patch.

The missing include is pthread_np.h on FreeBSD.

@ggerganov ggerganov merged commit f771d06 into ggml-org:master Sep 2, 2024
52 checks passed
dsx1986 pushed a commit to dsx1986/llama.cpp that referenced this pull request Oct 29, 2024
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Nov 15, 2024
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ggml changes relating to the ggml tensor library for machine learning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants