File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -9329,11 +9329,12 @@ static void ggml_compute_forward_mul_f32(
9329
9329
struct ggml_tensor * dst) {
9330
9330
GGML_ASSERT(ggml_can_repeat_rows(src1, src0) && ggml_are_same_shape(src0, dst));
9331
9331
9332
+ const int ith = params->ith;
9333
+ const int nth = params->nth;
9334
+
9332
9335
if (params->type == GGML_TASK_INIT || params->type == GGML_TASK_FINALIZE) {
9333
9336
return;
9334
9337
}
9335
- const int ith = params->ith;
9336
- const int nth = params->nth;
9337
9338
9338
9339
#ifdef GGML_USE_CLBLAST
9339
9340
if (src1->backend == GGML_BACKEND_GPU) {
@@ -17229,7 +17230,13 @@ struct ggml_cplan ggml_graph_plan(struct ggml_cgraph * cgraph, int n_threads) {
17229
17230
}
17230
17231
} break;
17231
17232
case GGML_OP_SILU_BACK:
17233
+ {
17234
+ n_tasks = n_threads;
17235
+ } break;
17232
17236
case GGML_OP_MUL:
17237
+ {
17238
+ n_tasks = MIN(n_threads, ggml_nrows(node->src[0]));
17239
+ } break;
17233
17240
case GGML_OP_NORM:
17234
17241
case GGML_OP_RMS_NORM:
17235
17242
case GGML_OP_RMS_NORM_BACK:
You can’t perform that action at this time.
0 commit comments