The yield shouldn't be necessary.
This commit is contained in:
parent
c0557fa20a
commit
4762d79d3d
1 changed files with 0 additions and 6 deletions
6
ggml.c
6
ggml.c
|
@ -12106,12 +12106,6 @@ UseGgmlGemm2:;
|
||||||
const int64_t ir1_start = dr1 * ith1;
|
const int64_t ir1_start = dr1 * ith1;
|
||||||
const int64_t ir1_end = MIN(ir1_start + dr1, nr1);
|
const int64_t ir1_end = MIN(ir1_start + dr1, nr1);
|
||||||
|
|
||||||
// threads with no work simply yield (not sure if it helps)
|
|
||||||
if (ir0_start >= ir0_end || ir1_start >= ir1_end) {
|
|
||||||
sched_yield();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
ggml_compute_forward_mul_mat_one_chunk(params, dst, num_rows_per_vec_dot, ir0_start, ir0_end, ir1_start, ir1_end);
|
ggml_compute_forward_mul_mat_one_chunk(params, dst, num_rows_per_vec_dot, ir0_start, ir0_end, ir1_start, ir1_end);
|
||||||
|
|
||||||
#ifdef GGML_PERF
|
#ifdef GGML_PERF
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue