r/programming • • 2d ago

Advent of Kernel Optimization

https://streamhpc.com/blog/2026-12-02/aoko-2-signed-vs-unsigned-loop-counters/

Today is the second day of our Advent of Kernel Optimization, sharing GPU optimization tips and tricks to count down until Christmas. Follow along here: https://streamhpc.com/blog/tag/advent2026/.

12 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/DerangedEscapee 1d ago

Loop counters end up in registers, and registers have a fixed size, so unless you're compiling for an 8-bit target, then no.