-
Notifications
You must be signed in to change notification settings - Fork 154
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
Combine device_atomics
#561
Combine device_atomics
#561
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fantastic. I think it should move to cuspatial/detail/device_atomics.cuh
or cuspatial/detail/utility/device_atomics.cuh
.
rerun tests |
Moved to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should avoid std::min/max
in device code.
Co-authored-by: Mark Harris <mharris@nvidia.com>
…id/cuspatial into improvement/device_atomics_refactor
…into improvement/device_atomics_refactor
@vyasr if you are satisfied, we can merge this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of minor suggestions for improvement, but assuming that they're implemented I approve!
Co-authored-by: Vyas Ramasubramani <vyas.ramasubramani@gmail.com>
@gpucibot merge |
This PR makes device atomics inline and can be included in multiple header files. It also refactors the atomics to reduce duplication.
Closes #547