Comment by fifilura
I am not a CUDA programmer but when looking at this, I think I can see the parallels to Spark and SQL
https://gfxcourses.stanford.edu/cs149/fall24/lecture/datapar...
So - start getting used to programming without using for loops, would be my tip.