]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
SYCL: Add fp16 type support to unary op kernels (llama/12788)
authorAkarshan Biswas <redacted>
Fri, 11 Apr 2025 08:03:50 +0000 (13:33 +0530)
committerGeorgi Gerganov <redacted>
Thu, 24 Apr 2025 17:39:16 +0000 (20:39 +0300)
commite9ce285135d412e3848cf80367a103485484fcd5
treecf21e648711aea11b95f8612d763b38126a17ee4
parentb942f451b6a0d023a98434d23e9aa7cbb9b09f24
SYCL: Add fp16 type support to unary op kernels (llama/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