Skip to content

Commit

Permalink
Fix cuda warning
Browse files Browse the repository at this point in the history
Signed-off-by: Molly Sophia <[email protected]>
  • Loading branch information
MollySophia committed Dec 28, 2024
1 parent 74af642 commit 060e57a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ggml/src/ggml-cuda/gla.cu
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ void ggml_cuda_op_gated_linear_attn(ggml_backend_cuda_context & ctx, ggml_tensor
const int64_t C = dst->ne[0];
const int64_t H = dst->src[0]->ne[1];

const float scale = ((const float*)(dst->op_params))[0];
float scale;
memcpy(&scale, (float*)dst->op_params, sizeof(float));

float * dst_d = (float *)dst->data;

Expand Down

0 comments on commit 060e57a

Please sign in to comment.