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

Investigate using OCL's atomic functions for AtormicCAS and AtomicRMW codegen. #1882

Open
etiotto opened this issue Aug 14, 2024 · 0 comments

Comments

@etiotto
Copy link
Contributor

etiotto commented Aug 14, 2024

          > Have we considered using OCL's atomic functions instead of this "manual" approach?

https://registry.khronos.org/OpenCL/specs/3.0-unified/html/OpenCL_C.html#atomic_compare_exchange

https://registry.khronos.org/OpenCL/specs/3.0-unified/html/OpenCL_C.html#atomic_compare_exchangeatomic

These should map to SPIR-V operations and IGC should be handling those.

Thanks @victor-eds for the suggestion. That is something we can take a look at. This PR scope is more narrow and aims to to just remove the redundant barriers we are injecting in the current codegen approach. I will open an issue to track your suggestion though.

Originally posted by @etiotto in #1872 (comment)

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

No branches or pull requests

2 participants