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

Depth min/max should be one pass #2

Open
MatejSakmary opened this issue Aug 5, 2023 · 0 comments
Open

Depth min/max should be one pass #2

MatejSakmary opened this issue Aug 5, 2023 · 0 comments

Comments

@MatejSakmary
Copy link
Owner

Atomic add to a global variable for each wg that already finished - I can use this to kill the amount of wgs that are not needed for the second pass.

For example:
If 4 wgs in first pass map to 1wg in second pass you just wait till the atomic add returns multiple of three. Then you know you are the one wg the previous 4 map to and you can also be sure they already finished their work so you can read the results.

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