CUDA: directly include cuda/iterator (llama/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 Georgi Gerganov
parent 4db2f45075
commit 0077a6d332
1 changed files with 1 additions and 0 deletions

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