Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On branch divergence #4

Open
redgpu opened this issue Apr 25, 2024 · 0 comments
Open

On branch divergence #4

redgpu opened this issue Apr 25, 2024 · 0 comments

Comments

@redgpu
Copy link

redgpu commented Apr 25, 2024

In real GPUs, individual threads can branch to different PCs, causing branch divergence where a group of threads threads initially being processed together has to split out into separate execution.

It's simpler than that: the execution continues for both branches and a mask per thread controls if you store the computed value of that thread or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant