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

[FEA] Leverage shared memory with array buffer for writing data to global memory #2130

Open
ttnghia opened this issue Jun 8, 2024 · 0 comments

Comments

@ttnghia
Copy link
Collaborator

ttnghia commented Jun 8, 2024

In many operations, we need to write many discrete bytes into global memory. Such writes are not coherent thus it is very inefficient.

We can do better by using shared memory as the scratch pad for such discrete writing, only flush data from there to global memory when the buffer is full. Flushing data to global memory can be done by a single memcpy operation.

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

1 participant