返回全部动态

llama.cpp b12176:修复测试中数学函数的 std:: 限定

原标题:b12176

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

AI 摘要

llama.cpp 发布 b12176 版本,主要修复测试代码中 isnan、signbit 等 C 数学函数未加 std:: 限定导致 NetBSD 11.99.9/x86_64 gcc 14.4.0 构建失败的问题,并将 test-quantize-fns.cpp 中其余数学调用统一改为 std:: 限定。附带的行为差异是 array_rmse() 改用 std::sqrt() 后保持 double 精度,结果相对误差不超过 1.4e-7。该版本同时提供 macOS、Linux、Windows、Android 等多平台预编译包。

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

正文节选

<details open> tests : qualify isnan and signbit with std:: (#31791) * tests : qualify isnan and signbit with std:: The unqualified calls rely on the C math.h names also being present in the global namespace, which is not the case for the NetBSD 11.99.9/x86_64 gcc 14.4.0 build reported in the issue. Prefix the calls with std:: to select the standard C++ overloads declared by <cmath>. ref: https://github.com/ggml-org/ggml/issues/1681 Assisted-by: dsh:llama.cpp/ggml-org/Qwen3.8-Flash-Next-GG


发布时间:2026-11-07 00:39
抓取时间:2026-11-07 01:15
来源机构:ggml-org
阅读原文github.com