]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
opencl: fix couple crashes (llama/12795)
authorHenry Linjamäki <redacted>
Wed, 21 May 2025 20:21:17 +0000 (23:21 +0300)
committerGeorgi Gerganov <redacted>
Tue, 27 May 2025 15:03:00 +0000 (18:03 +0300)
commit42f2b3bb6599659a5cb0a69ca2cbd67968ba6d48
treecb6930b00e629487786186c7b66e2aadba2a2076
parentdd6ef64060505148d858343b4004cc8a47404564
opencl: fix couple crashes (llama/12795)

* opencl: fix couple crashes

* fix kernel launches failed on devices which do not support
  non-uniform work-groups. When non-uniform work-groups are not
  supported, set `local_work_size` to NULL (= let driver choose the
  work-group sizes). This patch does not cover everything - just the
  cases tested by test-backend-ops.

* fix sub-buffer creation failed due to `cl_buffer_region::origin` not
  being aligned to `CL_DEVICE_MEM_BASE_ADDR_ALIGN`.

* OpenCL: query non-uniform WG sizes only on OpenCL 3.0+
ggml/src/ggml-opencl/ggml-opencl.cpp