From: rmatif Date: Wed, 6 Aug 2025 21:17:51 +0000 (+0200) Subject: fix profiling crash (#15072) X-Git-Tag: upstream/0.0.6164~59 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=756cfea82608911bbfcbf45164b8fdaddbafaa31;p=pkg%2Fggml%2Fsources%2Fllama.cpp fix profiling crash (#15072) --- diff --git a/ggml/src/ggml-opencl/ggml-opencl.cpp b/ggml/src/ggml-opencl/ggml-opencl.cpp index eea6ad6c..4f765ab5 100644 --- a/ggml/src/ggml-opencl/ggml-opencl.cpp +++ b/ggml/src/ggml-opencl/ggml-opencl.cpp @@ -602,6 +602,7 @@ struct ggml_backend_opencl_context { if (ref_count == 0) { #ifdef GGML_OPENCL_PROFILING write_profiling_info(); + profiling_info.clear(); #endif } }