opencl: flush profiling batch at shutdown for incomplete batches (#25016)
This commit is contained in:
@@ -850,6 +850,7 @@ struct ggml_backend_opencl_context {
|
|||||||
ref_count--;
|
ref_count--;
|
||||||
if (ref_count == 0) {
|
if (ref_count == 0) {
|
||||||
#ifdef GGML_OPENCL_PROFILING
|
#ifdef GGML_OPENCL_PROFILING
|
||||||
|
flush_profiling_batch();
|
||||||
write_profiling_info();
|
write_profiling_info();
|
||||||
profiling_results.clear();
|
profiling_results.clear();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user