]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
opencl: use OpenCL C standard supported by the device (#12221)
authorHenry Linjamäki <redacted>
Mon, 10 Mar 2025 16:57:00 +0000 (18:57 +0200)
committerGitHub <redacted>
Mon, 10 Mar 2025 16:57:00 +0000 (09:57 -0700)
commit8acdacb3ea00697477eb019efbb6fc183371055c
tree6ea9a4603c1465d997adc13a2342af5c92087ff1
parent89b2b56e8658800375a8314200870b1ad4208a0b
opencl: use OpenCL C standard supported by the device (#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.
ggml/CMakeLists.txt
ggml/src/ggml-opencl/CMakeLists.txt
ggml/src/ggml-opencl/ggml-opencl.cpp