llama.cpp
65840ed5 - ggml: fix CLAMP on non-contiguous views (CPU, CUDA) (#29517)

Commit
50 days ago
ggml: fix CLAMP on non-contiguous views (CPU, CUDA) (#29517) * ggml: fix CLAMP on non-contiguous views (CPU, CUDA) CUDA clamped ggml_nelements values flat and ignored the view strides. CPU addressed row j as j*nb01 and ignored nb02/nb03. Both now follow the strides of dims 1..3; CUDA supports_op requires contiguous rows, like Metal. test_clamp gains a non-contiguous view case. * cuda: clamp kernel uses fastdiv for the view strides
Parents
Loading