mirror of
https://github.com/ggml-org/whisper.cpp.git
synced 2026-10-02 20:41:54 +02:00
Incrementing `ref_count` at the beginning is important later in the `free()` method of the `ggml_backend_opencl_context` at program end. If we do not increment the `ref_count`, the result would be -1 here, and consequently, the profiling data would not be flushed and written. ( #ifdef GGML_OPENCL_PROFILING )