Skip to content

ggml : use wstring for backend search paths #10960

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
Dec 24, 2024
Merged

Conversation

slaren
Copy link
Member

@slaren slaren commented Dec 23, 2024

In windows std::filesystem uses wstring natively to represent the paths, and when a path contains unicode characters the conversion to string may fail and throw an exception. Using wstring consistently should avoid this problem.

Also contains some minor build fixes when using GGML_BACKEND_DL.

@github-actions github-actions bot added the ggml changes relating to the ggml tensor library for machine learning label Dec 23, 2024
@slaren slaren merged commit 60cfa72 into master Dec 24, 2024
53 checks passed
@slaren slaren deleted the sl/fix-fs-wstring branch December 24, 2024 03:05
tinglou pushed a commit to tinglou/llama.cpp that referenced this pull request Feb 13, 2025
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Feb 26, 2025
mglambda pushed a commit to mglambda/llama.cpp that referenced this pull request Mar 8, 2025
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.

2 participants