]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
opencl: flush profiling batch at shutdown for incomplete batches (#25016)
authorshaofeiqi <redacted>
Fri, 26 Jun 2026 01:48:24 +0000 (18:48 -0700)
committerGitHub <redacted>
Fri, 26 Jun 2026 01:48:24 +0000 (18:48 -0700)
ggml/src/ggml-opencl/ggml-opencl.cpp

index fb330e062515c3a624d17153a682733b762154e5..00f20b09b8fde53c78d4a8f06713ef1541c72ac9 100644 (file)
@@ -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