Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You do need to care about large non-uniform branches as in the general case the GPU will have to execute both sides.


A non-branching version of the same algorithm will also run code equivalent to both branches. The branching version may sometimes skip one of the branches, the non-branching version can't. So if the functionality you want is best described by a branch, then use a branch.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: