Skip to content

Commit 6d18c6e

Browse files
committed
Fix the number of forward looking nodes
1 parent 6f2a61e commit 6d18c6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9531,7 +9531,7 @@ void ggml_graph_compute(struct ggml_context * ctx, struct ggml_cgraph * cgraph)
95319531
{
95329532
int start = i;
95339533
int end = i;
9534-
while (end < cgraph->n_nodes && (end - start) < n_threads * 2)
9534+
while (end < cgraph->n_nodes && (end - start) < 48)
95359535
{
95369536
struct ggml_tensor * next = cgraph->nodes[end];
95379537
end++;

0 commit comments

Comments
 (0)