mirror of
https://github.com/ggml-org/whisper.cpp.git
synced 2026-08-12 22:29:04 +04:00
opencl: flush profiling batch at shutdown for incomplete batches (llama/25016)
This commit is contained in:
committed by
Georgi Gerganov
parent
9cad795918
commit
7ce3616ae8
@@ -850,6 +850,7 @@ struct ggml_backend_opencl_context {
|
||||
ref_count--;
|
||||
if (ref_count == 0) {
|
||||
#ifdef GGML_OPENCL_PROFILING
|
||||
flush_profiling_batch();
|
||||
write_profiling_info();
|
||||
profiling_results.clear();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user