llama.cpp
994cc45e - CUDA: vectorize Inkling 2 depth_mix with float4 (#33507)

Commit
5 hours ago
CUDA: vectorize Inkling 2 depth_mix with float4 (#33507) * CUDA: vectorize Inkling 2 depth_mix with float4 Use 16-byte loads and (for Q == 1) stores in depth_mix_f32 when n is a multiple of 4 and the relevant strides and base addresses are 16-byte aligned, keeping the scalar path otherwise. Add DEPTH_MIX tests for boundary shapes and the scalar fallback cases. Assisted-by: Claude * CUDA: use 192 threads per block for depth_mix At n = 2304 the VEC = 4 loops have 576 float4 elements, which 192 threads cover in exactly 3 iterations each, whereas 256 threads left six of eight warps idle in the last iteration. 576 threads were slower on prefill because only one block fits per SM. Assisted-by: Claude
Author
Parents
Loading