Avoid off-by-one loop bugs - GPU Programming | Zoonk