From 751648855061c6d0fd602136c87a99f31da2675d Mon Sep 17 00:00:00 2001 From: Sammy Date: Wed, 12 Jul 2023 04:44:56 +0200 Subject: [PATCH] fix compilation (#313) --- ggml-cuda.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml-cuda.cu b/ggml-cuda.cu index e2400457d..5db694b43 100644 --- a/ggml-cuda.cu +++ b/ggml-cuda.cu @@ -2547,7 +2547,7 @@ inline void ggml_cuda_op_rope( const float theta_scale = get_theta_scale(n_dims,n_past,n_ctx); const float p0 = ((mode & 1) == 0 ? n_past + i02 : i02); - const float p = p0; + float p = p0; if(!get_ntk_rope_scale_mode()) { p = n_ctx <= GGML_TRAINING_CTX ? p0 : p0 * GGML_TRAINING_CTX / n_ctx;