summaryrefslogtreecommitdiff
path: root/ggml-cuda
diff options
context:
space:
mode:
Diffstat (limited to 'ggml-cuda')
-rw-r--r--ggml-cuda/rope.cu4
1 files changed, 2 insertions, 2 deletions
diff --git a/ggml-cuda/rope.cu b/ggml-cuda/rope.cu
index 4a558f4b..50f2cf41 100644
--- a/ggml-cuda/rope.cu
+++ b/ggml-cuda/rope.cu
@@ -283,9 +283,9 @@ void ggml_cuda_op_rope(ggml_backend_cuda_context & ctx, ggml_tensor * dst) {
const bool is_neox = mode & 2;
const bool is_glm = mode & 4;
- if (is_neox) {
- pos = (const int32_t *) src1_d;
+ pos = (const int32_t *) src1_d;
+ if (is_neox) {
if (src2 != nullptr) {
freq_factors = (const float *) src2->data;
}