From: shaofeiqi Date: Fri, 26 Jun 2026 01:48:24 +0000 (-0700) Subject: opencl: flush profiling batch at shutdown for incomplete batches (#25016) X-Git-Tag: upstream/0.0.10438~635 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=5c7c22c3e134cf7e2681fdddefd78b3dcada7154;p=pkg%2Fggml%2Fsources%2Fllama.cpp opencl: flush profiling batch at shutdown for incomplete batches (#25016) --- diff --git a/ggml/src/ggml-opencl/ggml-opencl.cpp b/ggml/src/ggml-opencl/ggml-opencl.cpp index fb330e062..00f20b09b 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