Skip to content

Commit 756cfea

Browse files
authored
fix profiling crash (ggml-org#15072)
1 parent e725a1a commit 756cfea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ggml/src/ggml-opencl/ggml-opencl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ struct ggml_backend_opencl_context {
602602
if (ref_count == 0) {
603603
#ifdef GGML_OPENCL_PROFILING
604604
write_profiling_info();
605+
profiling_info.clear();
605606
#endif
606607
}
607608
}

0 commit comments

Comments
 (0)