Skip to content

Commit 5c7c22c

Browse files
authored
opencl: flush profiling batch at shutdown for incomplete batches (ggml-org#25016)
1 parent beac530 commit 5c7c22c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,7 @@ struct ggml_backend_opencl_context {
850850
ref_count--;
851851
if (ref_count == 0) {
852852
#ifdef GGML_OPENCL_PROFILING
853+
flush_profiling_batch();
853854
write_profiling_info();
854855
profiling_results.clear();
855856
#endif

0 commit comments

Comments
 (0)