Skip to content

Commit 9768e7e

Browse files
committed
https://github.com/ggerganov/llama.cpp/pull/11736
1 parent 852a5f7 commit 9768e7e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ggml/src/ggml-cpu/ggml-cpu.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13416,9 +13416,13 @@ static thread_ret_t ggml_graph_compute_thread(void * data) {
1341613416
tp->ec = GGML_STATUS_ABORTED;
1341713417
}
1341813418

13419-
ggml_barrier(state->threadpool);
13419+
if (node_n + 1 < cgraph->n_nodes) {
13420+
ggml_barrier(state->threadpool);
13421+
}
1342013422
}
1342113423

13424+
ggml_barrier(state->threadpool);
13425+
1342213426
return 0;
1342313427
}
1342413428

0 commit comments

Comments
 (0)