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

Optimize atomic operations in scan kernel template #1528

Open
adamfidel opened this issue Apr 24, 2024 · 1 comment
Open

Optimize atomic operations in scan kernel template #1528

adamfidel opened this issue Apr 24, 2024 · 1 comment
Assignees

Comments

@adamfidel
Copy link
Contributor

It may be possible to reduce the number of atomics in the scan kernel template algorithm. Currently, we use atomic loads/stores for both the status flags and status values, but it might be possible to only use atomics for the flags and rely on the standard happens-before relations to guarantee that the values would be updated.

Discussed in #1320 (review).

@adamfidel adamfidel self-assigned this Apr 24, 2024
@danhoeflinger
Copy link
Contributor

I agree that the values here shouldn't need to be atomics, and the atomics for the status flags can provide everything we need.

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