]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
fix profiling crash (#15072)
authorrmatif <redacted>
Wed, 6 Aug 2025 21:17:51 +0000 (23:17 +0200)
committerGitHub <redacted>
Wed, 6 Aug 2025 21:17:51 +0000 (14:17 -0700)
ggml/src/ggml-opencl/ggml-opencl.cpp

index eea6ad6cab3d0cc2b9e80c05a34ef6d926b6f466..4f765ab53092138a3c9979baca0a65d7803f22e8 100644 (file)
@@ -602,6 +602,7 @@ struct ggml_backend_opencl_context {
         if (ref_count == 0) {
 #ifdef GGML_OPENCL_PROFILING
             write_profiling_info();
+            profiling_info.clear();
 #endif
         }
     }