Skip to content

Commit 23553ba

Browse files
fix(turboquant): repair pinned WHT declaration
The known-good pin still carries a second definition of the WHT group-size symbol, which breaks static backend builds. Carry the declaration-only form while this older upstream commit is pinned. Assisted-by: Codex:gpt-5 [Codex]
1 parent d53b0ed commit 23553ba

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
ggml-cpu: keep the WHT group-size symbol declaration-only
2+
3+
The pinned fork commit declares turbo3_cpu_wht_group_size without extern in
4+
ops.cpp, creating a second definition in libggml-cpu. Keep the single definition
5+
from ggml-turbo-quant.c so static backend builds can link the two libraries.
6+
7+
diff --git a/ggml/src/ggml-cpu/ops.cpp b/ggml/src/ggml-cpu/ops.cpp
8+
index 35f7cf1de..b3ca80d79 100644
9+
--- a/ggml/src/ggml-cpu/ops.cpp
10+
+++ b/ggml/src/ggml-cpu/ops.cpp
11+
@@ -16,2 +16,2 @@ extern "C" {
12+
-GGML_API int turbo3_cpu_wht_group_size;
13+
+extern int turbo3_cpu_wht_group_size;
14+
}

0 commit comments

Comments
 (0)