summaryrefslogtreecommitdiff
path: root/llama.cpp/ggml/src/ggml-cuda/rope.cuh
diff options
context:
space:
mode:
Diffstat (limited to 'llama.cpp/ggml/src/ggml-cuda/rope.cuh')
-rw-r--r--llama.cpp/ggml/src/ggml-cuda/rope.cuh9
1 files changed, 9 insertions, 0 deletions
diff --git a/llama.cpp/ggml/src/ggml-cuda/rope.cuh b/llama.cpp/ggml/src/ggml-cuda/rope.cuh
new file mode 100644
index 0000000..72af086
--- /dev/null
+++ b/llama.cpp/ggml/src/ggml-cuda/rope.cuh
@@ -0,0 +1,9 @@
+#include "common.cuh"
+
+#define CUDA_ROPE_BLOCK_SIZE 256
+
+void ggml_cuda_op_rope(ggml_backend_cuda_context & ctx, ggml_tensor * dst);
+
+void ggml_cuda_op_rope_back(ggml_backend_cuda_context & ctx, ggml_tensor * dst);
+
+void ggml_cuda_op_rope_fused(ggml_backend_cuda_context & ctx, ggml_tensor * dst, ggml_tensor * set_rows);