aboutsummaryrefslogtreecommitdiff
path: root/app/backends/patches
diff options
context:
space:
mode:
authorhistoria <historiavg@proton.me>2026-08-25 01:47:32 -0400
committerhistoria <historiavg@proton.me>2026-08-25 01:47:32 -0400
commita76896ec7ce60baaefcf5dd8062776be01dbc57a (patch)
tree126985294645ab412cc2bae72a64539663222e7b /app/backends/patches
parentfe4b2b9eb7fb8aac81f65630720c9079d0a3121a (diff)
downloadtts-audiobook-generator-a76896ec7ce60baaefcf5dd8062776be01dbc57a.tar.gz
fix: automatic patch for top-k.cu to file ggml build error
Diffstat (limited to 'app/backends/patches')
-rw-r--r--app/backends/patches/ggml-top-k-cuda-iterator.patch10
1 files changed, 10 insertions, 0 deletions
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 <cub/cub.cuh>
+ # if (CCCL_MAJOR_VERSION >= 3 && CCCL_MINOR_VERSION >= 2)
+ # define CUB_TOP_K_AVAILABLE
++# include <cuda/iterator>
+ using namespace cub;
+ # endif // CCCL_MAJOR_VERSION >= 3 && CCCL_MINOR_VERSION >= 2