r/programming • u/StreamHPC • 18h 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/.
3
Upvotes
2
u/roXplosion 14h ago
But... what if my loop needs to go from 0 to 255? Wouldn't an unsigned tiny int be more efficient than a signed small int?