ggml: fix HC_POST single-token CPU chunk count (#2357)
This commit is contained in:
parent
c49f7db34a
commit
08b500b958
|
|
@ -24471,7 +24471,8 @@ static void ggml_compute_forward_hc_post_f32(
|
|||
const float * post_r = (const float *)((const char *)post->data);
|
||||
const float * comb_r = (const float *)((const char *)comb->data);
|
||||
|
||||
int nchunk = (ne0 + nth - 1)/nth;
|
||||
// chunks are 64 elements wide (see `first` below); threads stride over chunks
|
||||
int nchunk = (ne0 + 63)/64;
|
||||
|
||||
for (int ic = ith; ic < nchunk; ic += nth) {
|
||||
int first = 64*ic;
|
||||
|
|
|
|||
Loading…
Reference in New Issue