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

Does bar.sync Emit Semaphores Alongside bar.arrive? #1403

Closed
ziyuhuang123 opened this issue Dec 20, 2024 · 1 comment
Closed

Does bar.sync Emit Semaphores Alongside bar.arrive? #1403

ziyuhuang123 opened this issue Dec 20, 2024 · 1 comment

Comments

@ziyuhuang123
Copy link

Does bar.sync also emit semaphores? What I mean is, for example, if I set bar.arrive 0, 128 (executed by 32 threads) and then bar.sync 0, 128 (executed by 96 threads), the total becomes 32 + 96 = 128. This satisfies the condition for sync and should execute normally, correct? (This idea comes from FA3, where the semaphore value equals the sum of arrive and sync calls, not just the arrive count alone.)

@tridao
Copy link
Contributor

tridao commented Jan 10, 2025

You can read the PTX docs

@tridao tridao closed this as completed Jan 10, 2025
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

2 participants