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
This commit is contained in:
Akarshan Biswas
2025-04-24 20:39:16 +03:00
committed by Georgi Gerganov
parent b942f451b6
commit e9ce285135
3 changed files with 778 additions and 297 deletions
File diff suppressed because it is too large Load Diff