]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
fix profiling crash (llama/15072)
authorrmatif <redacted>
Wed, 6 Aug 2025 21:17:51 +0000 (23:17 +0200)
committerGeorgi Gerganov <redacted>
Thu, 14 Aug 2025 11:17:28 +0000 (14:17 +0300)
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
         }
     }