opencl: add neg, exp and diag (#20127)

* opencl: add `neg`

* opencl: add `exp`

* opencl: add `diag`
This commit is contained in:
lhez
2026-03-05 21:16:39 -08:00
committed by GitHub
parent 2b10b62677
commit 6c97bffd65
5 changed files with 573 additions and 0 deletions
+3
View File
@@ -63,6 +63,7 @@ set(GGML_OPENCL_KERNELS
cpy
cvt
diag_mask_inf
diag
div
gelu
gemv_noshuffle_general
@@ -112,6 +113,7 @@ set(GGML_OPENCL_KERNELS
gemm_noshuffle_q4_1_f32
gemv_noshuffle_general_q8_0_f32
mul
neg
norm
relu
rms_norm
@@ -134,6 +136,7 @@ set(GGML_OPENCL_KERNELS
tsembd
upscale
tanh
exp
expm1
softplus
pad