]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
opencl: use OpenCL C standard supported by the device (llama/12221)
authorHenry Linjamäki <redacted>
Mon, 10 Mar 2025 16:57:00 +0000 (18:57 +0200)
committerGeorgi Gerganov <redacted>
Thu, 27 Mar 2025 07:35:24 +0000 (09:35 +0200)
commitb9a9743be5bd6a8096ab75ffa2bf2b363c00edaf
tree40501c01e5acb586f15c186d49fa97ebc06ba758
parentb6fab4332be15071a13e5a32baf9c8124c2a04a3
opencl: use OpenCL C standard supported by the device (llama/12221)

This patch nudges the llama.cpp a bit to be supported on PoCL which
doesn't support OpenCL C CL2.0. The issue is solved by querying the
device for the supported OpenCL C versions and using the highest one
available.
CMakeLists.txt
src/ggml-opencl/CMakeLists.txt
src/ggml-opencl/ggml-opencl.cpp