]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
opencl: refactor backend initilization (llama/23318)
authorlhez <redacted>
Wed, 20 May 2026 16:57:36 +0000 (09:57 -0700)
committerGeorgi Gerganov <redacted>
Mon, 25 May 2026 09:26:07 +0000 (12:26 +0300)
commit896718eacf0fd975368784a917d2e4d1856a6e70
treeec80a73cc4fcb2f201ca59c8984ba11463d0c8e2
parentad717a6de0727b64345d7141094e7b87c43952a1
opencl: refactor backend initilization (llama/23318)

* opencl: refactor initialization

* opencl: refactor GPU identification

* opencl: rename for consistency

* opencl: cache global mem size in dev_ctx

* opencl: adjust log level

* opencl: load argsort and flash_attn kernels in supports_op

* argsort kernel must be built for supports_op for querying the max
  workgroups
* flash_attn kernel has many variants, only load them when needed
ggml/src/ggml-opencl/ggml-opencl.cpp