Skip to content

Commit

Permalink
opencl : fix a bug in ggml_cl_pool_malloc() for ggml_cl_mul_mat_f32() (
Browse files Browse the repository at this point in the history
…#2955)

Co-authored-by: Wentai Zhang <wentaizhang@tencent.com>
  • Loading branch information
rchardx and Wentai Zhang authored Sep 3, 2023
1 parent ca82cf7 commit 6460f75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ggml-opencl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1493,7 +1493,7 @@ static void ggml_cl_mul_mat_f32(const ggml_tensor * src0, const ggml_tensor * sr
if (src0->backend == GGML_BACKEND_GPU) { // NOLINT
d_X = (cl_mem) src0->data;
} else {
d_X = ggml_cl_pool_malloc(sizeof(ggml_fp16_t) * x_ne, &x_size);
d_X = ggml_cl_pool_malloc(sizeof(float) * x_ne, &x_size);
}
cl_mem d_Y = ggml_cl_pool_malloc(sizeof(float) * y_ne, &y_size);
cl_mem d_D = ggml_cl_pool_malloc(sizeof(float) * d_ne, &d_size);
Expand Down

0 comments on commit 6460f75

Please sign in to comment.