]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
CUDA: directly include cuda/iterator (#22936)
authorOliver Simons <redacted>
Mon, 11 May 2026 10:16:38 +0000 (12:16 +0200)
committerGitHub <redacted>
Mon, 11 May 2026 10:16:38 +0000 (12:16 +0200)
Before, we relied on a transient import from `cub/cub.cuh`, which is
bad practice to do as cub may not always expose cuda/iterator

ggml/src/ggml-cuda/argsort.cu

index 0f3f017b534f118027dcd216bbd20126a0070e4f..c4f08091e79a7244264712edaf6fccc4230ab8e6 100644 (file)
@@ -4,6 +4,7 @@
 #    include <cub/cub.cuh>
 #    if (CCCL_MAJOR_VERSION >= 3 && CCCL_MINOR_VERSION >= 1)
 #        define STRIDED_ITERATOR_AVAILABLE
+#        include <cuda/iterator>
 #    endif
 using namespace cub;
 #endif  // GGML_CUDA_USE_CUB