]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
SYCL: Add fp16 type support to unary op kernels (#12788)
authorAkarshan Biswas <redacted>
Fri, 11 Apr 2025 08:03:50 +0000 (13:33 +0530)
committerGitHub <redacted>
Fri, 11 Apr 2025 08:03:50 +0000 (16:03 +0800)
commitfccf9cae83e6c6cd31a0ecb403d237638e427d0a
treea1090b720839ce1cbdbcf88d36488cb24dea5527
parentec6c09d0fac1f2699c3ea1994e10482cb4b95e0f
SYCL: Add fp16 type support to unary op kernels (#12788)

* SYCL: Add fp16 support to some elementwise OP kernels

* remove comment

ggml-ci

* Use static_cast directly

* remove not needed cast from tanh

* Use static cast and remove unneeded castings

* Adjust device_support_op for unary OPs

* Use cast_data and typed_data struct to deduplicate casting code
ggml/src/ggml-sycl/element_wise.cpp
ggml/src/ggml-sycl/element_wise.hpp
ggml/src/ggml-sycl/ggml-sycl.cpp