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

Make embedded_pointer store pointer which than convert to unique_id rather than the other way round #821

Merged
merged 1 commit into from
Oct 11, 2022

Conversation

illuhad
Copy link
Collaborator

@illuhad illuhad commented Sep 1, 2022

Previously, embedded_pointer has stored unique_id and then reinterpreted the id to pointers inside device code. I believe that this can cause backends to be unable to infer that the address space of the accessor pointer must be global address space, which can have performance impact.

This PR swaps the behavior of embedded_pointer: It now stores pointers, which are reinterpret-casted to unique_id when needed. This should help backends infer address space.

There is a chance that this fixes #729

@illuhad illuhad merged commit 849b95b into develop Oct 11, 2022
@illuhad illuhad deleted the feature/make-embedded-pointer-store-pointers branch October 11, 2022 16:56
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

Successfully merging this pull request may close these issues.

Atomic performance issue when using the buffer-accessor model
1 participant