返回全部动态

llama.cpp b11889:CUDA 后端用 std::string 替换 VLA

原标题:b11889

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

AI 摘要

llama.cpp 发布 b11889 版本,主要变更是 CUDA 后端将 archName 的变长数组(VLA)替换为 std::string,以现代化代码并消除 Clang 的 -Wvla-cxx-extension 警告。该改动由 Hugging Face 的 Adrien Gallouët 提交,属于代码质量与可移植性改进,不涉及功能或性能变化。同时发布了覆盖 macOS、Linux、Windows、Android 及多种后端(CUDA、Vulkan、ROCm、SYCL、OpenVINO 等)的预编译二进制包。

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

正文节选

<details open> cuda : use std::string instead of VLA for archName (#30463) * cuda : use std::string instead of VLA for archName Modernize the code (old C style) and fix the following warnings: ``` ggml/src/ggml-cuda/ggml-cuda.cu:180:19: warning: variable length arrays in C++ are a Clang extension [-Wvla-cxx-extension] 180 | char archName[archLen + 1]; | ^~~~~~~~~~~ ggml/src/ggml-cuda/ggml-cuda.cu:180:19: note: read of non-const variable 'archLen' is not allowed


发布时间:2026-10-26 07:44
抓取时间:2026-10-26 08:42
来源机构:ggml-org
阅读原文github.com