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