Remove finalizer

This commit is contained in:
Howard Su 2023-04-07 22:24:14 +08:00
parent b8c9b27452
commit c640d2a4bd

4
ggml.c
View File

@ -9550,7 +9550,7 @@ void ggml_graph_compute(struct ggml_context * ctx, struct ggml_cgraph * cgraph)
if (node->n_tasks > 1) { if (node->n_tasks > 1) {
thpool_wait(ctx->tpool); thpool_wait(ctx->tpool);
} }
#if 0
// FINALIZE // FINALIZE
if (node->n_tasks > 1) { if (node->n_tasks > 1) {
// launch thread pool // launch thread pool
@ -9574,7 +9574,7 @@ void ggml_graph_compute(struct ggml_context * ctx, struct ggml_cgraph * cgraph)
if (node->n_tasks > 1) { if (node->n_tasks > 1) {
thpool_wait(ctx->tpool); thpool_wait(ctx->tpool);
} }
#endif
// performance stats (node) // performance stats (node)
{ {
int64_t perf_cycles_cur = ggml_perf_cycles() - perf_node_start_cycles; int64_t perf_cycles_cur = ggml_perf_cycles() - perf_node_start_cycles;