From 12c913c52cbb9bb0c1faa5a187db6ca432a60dc1 Mon Sep 17 00:00:00 2001 From: Jan Ploski Date: Sun, 2 Jun 2024 20:32:33 +0200 Subject: [PATCH] Fix backend test for ssm_conv CUDA op not working --- ggml/src/ggml-cuda/ssm_conv.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml/src/ggml-cuda/ssm_conv.cu b/ggml/src/ggml-cuda/ssm_conv.cu index 99eac7bea..b6c62893d 100644 --- a/ggml/src/ggml-cuda/ssm_conv.cu +++ b/ggml/src/ggml-cuda/ssm_conv.cu @@ -32,7 +32,7 @@ static __global__ void ssm_conv_f32( float * s = (float *) wdata_f32 + nc*dr*ith; for (int i3 = 0; i3 < n_s; ++i3) { - float * s0 = (float *) ((char *) src0 + ir0*src0_nb1) + i3*src0_nb2; // {d_conv, d_inner, n_s} + float * s0 = (float *) ((char *) src0 + ir0*src0_nb1 + i3*src0_nb2); // {d_conv, d_inner, n_s} // copy the state into working memory // can't use memcpy because (d_conv) != (d_conv - 1)