News for hackers. Stuff that matters.
Re:An Introduction to GPU Programming in Julia by gpuhacker on Thursday October 18, 2018 @06:29PM (#18252749)
It's true that the programming model allows that, but underneath all threads within the warp will execute the same instructions. However if there is a branch, some threads can be predicated so their instructions have no effect. This is called warp divergence and can become a performance issue. If possible branch only on threadidx using multiples of the warp size. There's a cool slide deck on implementing a parallel sum algorithm that explains this really well.
Re:An Introduction to GPU Programming in Julia by dialecticDolt on Friday October 19, 2018 @12:43AM (#18254294)
Do you have any idea what the source of the slide deck could have been? It sounds very interesting and I'd love to see it.
Re:An Introduction to GPU Programming in Julia by gpuhacker on Friday October 19, 2018 @01:44AM (#18254448)