CUDA: add roll (#14919)

* CUDA: add roll

* Make everything const, use __restrict__
This commit is contained in:
Aman Gupta
2025-07-29 14:45:18 +08:00
committed by GitHub
parent 8ad7b3e65b
commit 0a5036bee9
3 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
#include "common.cuh"
#define CUDA_ROLL_BLOCK_SIZE 256
void ggml_cuda_op_roll(ggml_backend_cuda_context & ctx, ggml_tensor * dst);