From a76896ec7ce60baaefcf5dd8062776be01dbc57a Mon Sep 17 00:00:00 2001 From: historia Date: Tue, 25 Aug 2026 01:47:32 -0400 Subject: fix: automatic patch for top-k.cu to file ggml build error --- app/backends/patches/ggml-top-k-cuda-iterator.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 app/backends/patches/ggml-top-k-cuda-iterator.patch (limited to 'app/backends/patches') diff --git a/app/backends/patches/ggml-top-k-cuda-iterator.patch b/app/backends/patches/ggml-top-k-cuda-iterator.patch new file mode 100644 index 0000000..0eb89a5 --- /dev/null +++ b/app/backends/patches/ggml-top-k-cuda-iterator.patch @@ -0,0 +1,10 @@ +--- a/external/ggml/src/ggml-cuda/top-k.cu ++++ b/external/ggml/src/ggml-cuda/top-k.cu +@@ -4,6 +4,7 @@ + #ifdef GGML_CUDA_USE_CUB + # include + # if (CCCL_MAJOR_VERSION >= 3 && CCCL_MINOR_VERSION >= 2) + # define CUB_TOP_K_AVAILABLE ++# include + using namespace cub; + # endif // CCCL_MAJOR_VERSION >= 3 && CCCL_MINOR_VERSION >= 2 -- cgit v1.2.3