Skip to content

Commit

Permalink
ggml : fix OpenCL broadcast requirement for ggml_mul (close ggerganov…
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov authored and teleprint-me committed Dec 21, 2023
1 parent 8628f87 commit 2712de8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -7763,10 +7763,10 @@ static void ggml_compute_forward_mul_f32(
const int ith = params->ith;
const int nth = params->nth;

// TODO: OpenCL kernel support broadcast
#ifdef GGML_USE_CLBLAST
if (src1->backend == GGML_BACKEND_GPU) {
GGML_ASSERT(ggml_are_same_shape(src0, src1));
// TODO: OpenCL kernel support full broadcast
GGML_ASSERT(ggml_can_repeat_rows(src1, src0));
if (ith == 0) {
ggml_cl_mul(src0, src1, dst);
}
Expand Down

0 comments on commit 2712de8

Please sign in to comment.