whisper.cpp icon indicating copy to clipboard operation
whisper.cpp copied to clipboard

Add log callback for opencl

Open thewh1teagle opened this issue 8 months ago • 0 comments

I think currently there is no such way to trampoline opencl log. whisper.cpp doesn't allow setting a log callback in ggml-opencl.cpp

https://github.com/ggerganov/whisper.cpp/blob/af5833e29819810f2d83228228a9a3077e5ccd93/ggml-opencl.cpp#L1103-L205

as a comparison, the ggml_metal backend allows this

https://github.com/ggerganov/whisper.cpp/blob/af5833e29819810f2d83228228a9a3077e5ccd93/ggml-metal.h#L43C15-L43C50

As a result, I always see output such as

ggml_opencl: selecting platform: 'AMD Accelerated Parallel Processing'
ggml_opencl: selecting device: 'gfx902'

Can you add a way to to register log callback in ggml opencl?

Thanks

Related: https://github.com/tazz4843/whisper-rs/issues/155

thewh1teagle avatar Jun 04 '24 10:06 thewh1teagle