CUDA: directly include cuda/iterator (#22936)

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
This commit is contained in:
Oliver Simons
2026-05-11 12:16:38 +02:00
committed by GitHub
parent f5636f8fc7
commit 8cef8201a1

View 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