From 5c7c22c3e134cf7e2681fdddefd78b3dcada7154 Mon Sep 17 00:00:00 2001 From: shaofeiqi Date: Thu, 25 Jun 2026 18:48:24 -0700 Subject: [PATCH] opencl: flush profiling batch at shutdown for incomplete batches (#25016) --- ggml/src/ggml-opencl/ggml-opencl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ggml/src/ggml-opencl/ggml-opencl.cpp b/ggml/src/ggml-opencl/ggml-opencl.cpp index fb330e0625..00f20b09b8 100644 --- a/ggml/src/ggml-opencl/ggml-opencl.cpp +++ b/ggml/src/ggml-opencl/ggml-opencl.cpp @@ -850,6 +850,7 @@ struct ggml_backend_opencl_context { ref_count--; if (ref_count == 0) { #ifdef GGML_OPENCL_PROFILING + flush_profiling_batch(); write_profiling_info(); profiling_results.clear(); #endif