llama.cpp b12080

b12080Pre-release
Added 1
  • Host gather descriptors are stored in a common buffer with a 128k-descriptor pinned buffer
Changed 1
  • CUDA backend gathers batched tensor reads into mapped host memory, using small-read gather copies and pinned DMA for large reads
Fixed 1
  • Host memory registration for CUDA gather reads is handled with RAII and logs registration failures

From llama.cpp

cuda : gather batched tensor reads into mapped host memory (PR to master) (#31391)

  • cuda: gather batched tensor reads into mapped host memory

Assisted-by: Codex

  • add comments

Assisted-by: Codex

  • simplify the implementation based on checks that exist earlier in the flow

  • simplify batched tensor gather indexing

  • add conditional dispatch

  • address comments - make host registration raii, better test mindful of ci time, assert instead of return false

  • cuda : gather small reads and use pinned DMA for large reads

  • cuda : use std::vector for host gather descriptors

  • cuda : add 8-byte gather copies, generalize tensor test and log registration failures

  • common buffer for descriptors

  • simplify stream sync + increase to 128k descriptor pinned buf

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:

View original

Upgraded? How did it go?

Discussion