返回全部动态

llama.cpp b11570:测试按需链接库并显式启用 C++17

原标题:b11570

llama.cpp Releases一手来源开源质量 59

AI 摘要

llama.cpp 发布 b11570 版本,主要改动是重构测试构建系统:为 llama_build() 和 llama_build_and_test() 增加 LINK 关键字(默认 llama-common),使各测试只链接其实际使用的库,例如 ggml-only 测试仅链接 ggml,llama-only 测试不再链接 llama-common,mtmd 测试仅链接 mtmd。同时两个辅助函数显式设置 cxx_std_17,testing.h 不再包含 common.h。该版本照例提供 macOS、Linux、Windows、Android 等多平台预编译包。

以上摘要由 AI 生成,可能存在误差。事实请以原文为准。

正文节选

<details open> tests : link each test against only the libraries it uses (#30299) Give llama_build() and llama_build_and_test() a LINK keyword (default: llama-common) so call sites can declare what a test actually needs: - ggml-only tests now link just ggml: test-opt, test-metal-graph-optimize, test-backend-ops, test-tiled-mulmat, test-barrier, test-quantize-fns, test-quantize-perf, test-rope, test-col2im-1d, test-gguf, test-alloc - llama-only tests drop llama-common: test-unicode, test-s


发布时间:2026-10-12 21:40
抓取时间:2026-10-12 22:29
来源机构:ggml-org
阅读原文github.com