llama.cpp
3ab38514 - CUDA: fix ADD_ID launch for more than 65535 tokens (#33162)

Commit
17 hours ago
CUDA: fix ADD_ID launch for more than 65535 tokens (#33162) The grid's y dimension came directly from the token count, so ADD_ID launches with more than 65535 tokens failed with "invalid configuration argument". NVIDIA and HIP are equally affected, since gridDim.y is capped at 65535 on both. Clamp the grid and stride over ne2 in the kernel, matching convert.cu and pad.cu. Add a test case at 70000 tokens; the existing cases top out at 129. Assisted-by: Claude Opus 5
Author
Parents
Loading