Skip to content

b11449

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 06 Oct 18:48
65840ed

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

Website:

Attestations:

macOS/iOS:

Linux:

Android:

Windows:

openEuler:

  • DISABLED
  • openEuler x86 (310p)
  • openEuler x86 (910b, ACL Graph)
  • openEuler aarch64 (310p)
  • openEuler aarch64 (910b, ACL Graph)

UI: